2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.13.0.
5 # Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/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
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: unbound-bugs@nlnetlabs.nl or
279 $0: https://github.com/NLnetLabs/unbound/issues about your
280 $0: system, including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='unbound'
593 PACKAGE_TARNAME='unbound'
594 PACKAGE_VERSION='1.13.0'
595 PACKAGE_STRING='unbound 1.13.0'
596 PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues'
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='LTLIBOBJS
649 ENABLE_DNSCRYPT_XCHACHA20
653 opt_dnstap_socket_path
658 COMMON_OBJ_ALL_SYMBOLS
660 LIBOBJ_WITHOUT_CTIMEARC4
661 WIN_CHECKCONF_OBJ_LINK
663 WIN_UBANCHOR_OBJ_LINK
672 PC_LIBEVENT_DEPENDENCY
673 UNBOUND_EVENT_UNINSTALL
674 UNBOUND_EVENT_INSTALL
712 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ
713 SLDNS_ALLOCCHECK_EXTRA_OBJ
717 SYSTEMD_DAEMON_CFLAGS
765 UNBOUND_ROOTCERT_FILE
773 UNBOUND_LOCALSTATE_DIR
789 UNBOUND_VERSION_MICRO
790 UNBOUND_VERSION_MINOR
791 UNBOUND_VERSION_MAJOR
819 program_transform_name
832 enable_option_checking
859 enable_alloc_nonregional
866 enable_swig_version_check
891 with_dnstap_socket_path
899 enable_explicit_port_randomisation
902 ac_precious_vars='build_alias
919 SYSTEMD_DAEMON_CFLAGS
924 # Initialize some variables set by options.
926 ac_init_version=false
927 ac_unrecognized_opts=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
938 program_transform_name=s,x,x,
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
963 infodir='${datarootdir}/info'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989 # Accept the important Cygnus configure options, so we can diagnose typos.
991 case $ac_dashdash$ac_option in
995 -bindir | --bindir | --bindi | --bind | --bin | --bi)
997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000 -build | --build | --buil | --bui | --bu)
1001 ac_prev=build_alias ;;
1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003 build_alias=$ac_optarg ;;
1005 -cache-file | --cache-file | --cache-fil | --cache-fi \
1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007 ac_prev=cache_file ;;
1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010 cache_file=$ac_optarg ;;
1012 --config-cache | -C)
1013 cache_file=config.cache ;;
1015 -datadir | --datadir | --datadi | --datad)
1017 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018 datadir=$ac_optarg ;;
1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021 | --dataroo | --dataro | --datar)
1022 ac_prev=datarootdir ;;
1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025 datarootdir=$ac_optarg ;;
1027 -disable-* | --disable-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error $? "invalid feature name: $ac_useropt"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1036 "enable_$ac_useropt"
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1041 eval enable_$ac_useropt=no ;;
1043 -docdir | --docdir | --docdi | --doc | --do)
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1053 -enable-* | --enable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1067 eval enable_$ac_useropt=\$ac_optarg ;;
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
1076 exec_prefix=$ac_optarg ;;
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
1089 -host | --host | --hos | --ho)
1090 ac_prev=host_alias ;;
1091 -host=* | --host=* | --hos=* | --ho=*)
1092 host_alias=$ac_optarg ;;
1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098 htmldir=$ac_optarg ;;
1100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
1105 includedir=$ac_optarg ;;
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110 infodir=$ac_optarg ;;
1112 -libdir | --libdir | --libdi | --libd)
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115 libdir=$ac_optarg ;;
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
1122 libexecdir=$ac_optarg ;;
1124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1129 -localstatedir | --localstatedir | --localstatedi | --localstated \
1130 | --localstate | --localstat | --localsta | --localst | --locals)
1131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134 localstatedir=$ac_optarg ;;
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139 mandir=$ac_optarg ;;
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146 | --no-cr | --no-c | -n)
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160 oldincludedir=$ac_optarg ;;
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165 prefix=$ac_optarg ;;
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172 program_prefix=$ac_optarg ;;
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179 program_suffix=$ac_optarg ;;
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
1196 program_transform_name=$ac_optarg ;;
1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1203 -psdir | --psdir | --psdi | --psd | --ps)
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216 sbindir=$ac_optarg ;;
1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220 | --sharedst | --shareds | --shared | --share | --shar \
1222 ac_prev=sharedstatedir ;;
1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227 sharedstatedir=$ac_optarg ;;
1229 -site | --site | --sit)
1231 -site=* | --site=* | --sit=*)
1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237 srcdir=$ac_optarg ;;
1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240 | --syscon | --sysco | --sysc | --sys | --sy)
1241 ac_prev=sysconfdir ;;
1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244 sysconfdir=$ac_optarg ;;
1246 -target | --target | --targe | --targ | --tar | --ta | --t)
1247 ac_prev=target_alias ;;
1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249 target_alias=$ac_optarg ;;
1251 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254 -version | --version | --versio | --versi | --vers | -V)
1255 ac_init_version=: ;;
1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1271 eval with_$ac_useropt=\$ac_optarg ;;
1273 -without-* | --without-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error $? "invalid package name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1287 eval with_$ac_useropt=no ;;
1290 # Obsolete; use --with-x.
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298 x_includes=$ac_optarg ;;
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305 x_libraries=$ac_optarg ;;
1307 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1308 Try \`$0 --help' for more information"
1312 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313 # Reject names that are not valid shell variable names.
1314 case $ac_envvar in #(
1315 '' | [0-9]* | *[!_$as_cr_alnum]* )
1316 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1318 eval $ac_envvar=\$ac_optarg
1319 export $ac_envvar ;;
1322 # FIXME: should be removed in autoconf 3.0.
1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1332 if test -n "$ac_prev"; then
1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334 as_fn_error $? "missing argument to $ac_option"
1337 if test -n "$ac_unrecognized_opts"; then
1338 case $enable_option_checking in
1340 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1341 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1345 # Check all directory arguments for consistency.
1346 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
1351 eval ac_val=\$$ac_var
1352 # Remove trailing slashes.
1355 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356 eval $ac_var=\$ac_val;;
1358 # Be sure to have absolute directory names.
1360 [\\/$]* | ?:[\\/]* ) continue;;
1361 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1363 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1366 # There might be people who depend on the old broken behavior: `$host'
1367 # used to hold the argument of --host etc.
1368 # FIXME: To remove some day.
1371 target=$target_alias
1373 # FIXME: To remove some day.
1374 if test "x$host_alias" != x; then
1375 if test "x$build_alias" = x; then
1376 cross_compiling=maybe
1377 elif test "x$build_alias" != "x$host_alias"; then
1383 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385 test "$silent" = yes && exec 6>/dev/null
1388 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di=`ls -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 as_fn_error $? "working directory cannot be determined"
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 as_fn_error $? "pwd does not report name of working directory"
1396 # Find the source files, if location was not specified.
1397 if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$as_myself" ||
1401 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405 $as_echo X"$as_myself" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1428 ac_srcdir_defaulted=no
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456 # Report the --help message.
1458 if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1462 \`configure' configures unbound 1.13.0 to adapt to many kinds of systems.
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE. See below for descriptions of some of the useful variables.
1469 Defaults for the options are specified in brackets.
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking ...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482 Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1493 For better control, use the options below.
1495 Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive ) echo "Configuration of unbound 1.13.0:";;
1532 --disable-option-checking ignore unrecognized --enable/--with options
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1535 --enable-checking Enable warnings, asserts, makefile-dependencies
1536 --enable-debug same as enable-checking
1537 --disable-flto Disable link-time optimization (gcc specific option)
1538 --enable-pie Enable Position-Independent Executable (eg. to fully
1539 benefit from ASLR, small performance penalty)
1540 --enable-relro-now Enable full relocation binding at load-time (RELRO
1541 NOW, to protect GOT and .dtor areas)
1542 --enable-shared[=PKGS] build shared libraries [default=yes]
1543 --enable-static[=PKGS] build static libraries [default=yes]
1544 --enable-fast-install[=PKGS]
1545 optimize for fast installation [default=yes]
1546 --disable-libtool-lock avoid locking (might break parallel builds)
1547 --disable-rpath disable hardcoded rpath (default=enabled)
1548 --disable-largefile omit support for large files
1549 --enable-systemd compile with systemd support
1550 --enable-alloc-checks enable to memory allocation statistics, for debug
1552 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1554 --enable-alloc-nonregional
1555 enable nonregional allocs, slow but exposes regional
1556 allocations to other memory purifiers, for debug
1558 --disable-swig-version-check
1559 Disable swig version check to build python modules
1560 with older swig even though that is unreliable
1561 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3
1563 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1564 --enable-subnet Enable client subnet
1565 --disable-gost Disable GOST support
1566 --disable-ecdsa Disable ECDSA support
1567 --disable-dsa Disable DSA support
1568 --disable-ed25519 Disable ED25519 support
1569 --disable-ed448 Disable ED448 support
1570 --enable-event-api Enable (experimental) pluggable event base
1571 libunbound API installed to unbound-event.h
1572 --enable-tfo-client Enable TCP Fast Open for client mode
1573 --enable-tfo-server Enable TCP Fast Open for server mode
1574 --enable-static-exe enable to compile executables statically against
1575 (event) uninstalled libs, for debug purposes
1576 --enable-fully-static enable to compile fully static
1577 --enable-lock-checks enable to check lock and unlock calls, for debug
1579 --enable-allsymbols export all symbols from libunbound and link binaries
1580 to it, smaller install size but libunbound export
1581 table is polluted by internal symbols
1582 --enable-dnstap Enable dnstap support (requires protobuf-c)
1583 --enable-dnscrypt Enable dnscrypt support (requires libsodium)
1584 --enable-cachedb enable cachedb module that can use external cache
1586 --enable-ipsecmod Enable ipsecmod module that facilitates
1588 --enable-ipset enable ipset module
1589 --disable-explicit-port-randomisation
1590 disable explicit source port randomisation and rely
1591 on the kernel to provide random source ports
1594 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1595 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1596 --with-conf-file=path Pathname to the Unbound configuration file
1597 --with-run-dir=path set default directory to chdir to (by default dir
1599 --with-chroot-dir=path set default directory to chroot to (by default same
1601 --with-share-dir=path set default directory with shared data (by default
1602 same as share/unbound)
1603 --with-pidfile=filename set default pathname to unbound pidfile (default
1604 run-dir/unbound.pid)
1605 --with-rootkey-file=filename
1606 set default pathname to root key file (default
1607 run-dir/root.key). This file is read and written.
1608 --with-rootcert-file=filename
1609 set default pathname to root update certificate file
1610 (default run-dir/icannbundle.pem). This file need
1611 not exist if you are content with the builtin.
1612 --with-username=user set default user that unbound changes to (default
1614 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1616 --with-aix-soname=aix|svr4|both
1617 shared library versioning (aka "SONAME") variant to
1618 provide on AIX, [default=aix].
1619 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1620 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1621 compiler's sysroot if not specified).
1622 --with-pthreads use pthreads library, or --without-pthreads to
1623 disable threading support.
1624 --with-solaris-threads use solaris native thread library.
1625 --with-syslog-facility=LOCAL0 - LOCAL7
1626 set SYSLOG_FACILITY, default DAEMON
1627 --with-dynlibmodule build dynamic library module, or
1628 --without-dynlibmodule to disable it. (default=no)
1629 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1631 --with-pythonmodule build Python module, or --without-pythonmodule to
1632 disable script engine. (default=no)
1633 --with-nss=path use libnss instead of openssl, installed at path.
1634 --with-nettle=path use libnettle as crypto library, installed at path.
1635 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1636 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1638 --with-libbsd Use portable libbsd functions
1639 --with-libevent=pathname
1640 use libevent (will check /usr/local /opt/local
1641 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1642 an explicit path). Slower, but allows use of large
1643 outgoing port ranges.
1644 --with-libexpat=path specify explicit path for libexpat.
1645 --with-libhiredis=path specify explicit path for libhiredis.
1646 --with-libnghttp2=path specify explicit path for libnghttp2.
1647 --with-dnstap-socket-path=pathname
1648 set default dnstap socket path
1649 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1650 --with-libsodium=path Path where libsodium is installed, for dnscrypt
1651 --with-libmnl=path specify explicit path for libmnl.
1652 --with-libunbound-only do not build daemon and tool programs
1654 Some influential environment variables:
1655 CC C compiler command
1656 CFLAGS C compiler flags
1657 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1658 nonstandard directory <lib dir>
1659 LIBS libraries to pass to the linker, e.g. -l<library>
1660 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1661 you have headers in a nonstandard directory <include dir>
1663 YACC The `Yet Another Compiler Compiler' implementation to use.
1664 Defaults to the first program found out of: `bison -y', `byacc',
1666 YFLAGS The list of arguments that will be passed by default to $YACC.
1667 This script will default YFLAGS to the empty string to avoid a
1668 default value of `-d' given by some make applications.
1670 User-defined run-time library search path.
1671 PKG_CONFIG path to pkg-config utility
1673 directories to add to pkg-config's search path
1675 path overriding pkg-config's built-in search path
1677 C compiler flags for SYSTEMD, overriding pkg-config
1679 linker flags for SYSTEMD, overriding pkg-config
1680 SYSTEMD_DAEMON_CFLAGS
1681 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1683 linker flags for SYSTEMD_DAEMON, overriding pkg-config
1685 The installed Python version to use, for example '2.3'. This
1686 string will be appended to the Python interpreter canonical
1689 Use these variables to override the choices made by `configure' or to help
1690 it to find libraries and programs with nonstandard names/locations.
1692 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
1697 if test "$ac_init_help" = "recursive"; then
1698 # If there are subdirs, report their specific --help.
1699 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1700 test -d "$ac_dir" ||
1701 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1709 # A ".." for each directory in $ac_dir_suffix.
1710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1711 case $ac_top_builddir_sub in
1712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716 ac_abs_top_builddir=$ac_pwd
1717 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1718 # for backward compatibility:
1719 ac_top_builddir=$ac_top_build_prefix
1722 .) # We are building in place.
1724 ac_top_srcdir=$ac_top_builddir_sub
1725 ac_abs_top_srcdir=$ac_pwd ;;
1726 [\\/]* | ?:[\\/]* ) # Absolute name.
1727 ac_srcdir=$srcdir$ac_dir_suffix;
1728 ac_top_srcdir=$srcdir
1729 ac_abs_top_srcdir=$srcdir ;;
1731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1732 ac_top_srcdir=$ac_top_build_prefix$srcdir
1733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1735 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1737 cd "$ac_dir" || { ac_status=$?; continue; }
1738 # Check for guested configure.
1739 if test -f "$ac_srcdir/configure.gnu"; then
1741 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742 elif test -f "$ac_srcdir/configure"; then
1744 $SHELL "$ac_srcdir/configure" --help=recursive
1746 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1748 cd "$ac_pwd" || { ac_status=$?; break; }
1752 test -n "$ac_init_help" && exit $ac_status
1753 if $ac_init_version; then
1755 unbound configure 1.13.0
1756 generated by GNU Autoconf 2.69
1758 Copyright (C) 2012 Free Software Foundation, Inc.
1759 This configure script is free software; the Free Software Foundation
1760 gives unlimited permission to copy, distribute and modify it.
1765 ## ------------------------ ##
1766 ## Autoconf initialization. ##
1767 ## ------------------------ ##
1769 # ac_fn_c_try_compile LINENO
1770 # --------------------------
1771 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext
1776 if { { ac_try="$ac_compile"
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext; then :
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1805 } # ac_fn_c_try_compile
1807 # ac_fn_c_try_cpp LINENO
1808 # ----------------------
1809 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_cpp conftest.$ac_ext"
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } > conftest.i && {
1829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1844 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1847 # the include files in INCLUDES and setting the cache variable VAR
1849 ac_fn_c_check_header_mongrel ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if eval \${$3+:} false; then :
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1862 # Is the header compilable?
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1864 $as_echo_n "checking $2 usability... " >&6; }
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871 ac_header_compiler=yes
1873 ac_header_compiler=no
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1877 $as_echo "$ac_header_compiler" >&6; }
1879 # Is the header present?
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1881 $as_echo_n "checking $2 presence... " >&6; }
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1886 if ac_fn_c_try_cpp "$LINENO"; then :
1887 ac_header_preproc=yes
1889 ac_header_preproc=no
1891 rm -f conftest.err conftest.i conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1893 $as_echo "$ac_header_preproc" >&6; }
1895 # So? What about this header?
1896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1899 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1905 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1907 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1909 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1911 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1914 ( $as_echo "## --------------------------------------------------------------------------------------- ##
1915 ## Report this to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ##
1916 ## --------------------------------------------------------------------------------------- ##"
1917 ) | sed "s/^/$as_me: WARNING: /" >&2
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1925 eval "$3=\$ac_header_compiler"
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 } # ac_fn_c_check_header_mongrel
1935 # ac_fn_c_try_run LINENO
1936 # ----------------------
1937 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1938 # that executables *can* be run.
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if { { ac_try="$ac_link"
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>&5
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1953 { { case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_try") 2>&5
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; }; }; then :
1965 $as_echo "$as_me: program exited with status $ac_status" >&5
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1969 ac_retval=$ac_status
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1977 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1978 # -------------------------------------------------------
1979 # Tests whether HEADER exists and can be compiled using the include files in
1980 # INCLUDES, setting the cache variable VAR accordingly.
1981 ac_fn_c_check_header_compile ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1994 if ac_fn_c_try_compile "$LINENO"; then :
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 } # ac_fn_c_check_header_compile
2008 # ac_fn_c_try_link LINENO
2009 # -----------------------
2010 # Try to link conftest.$ac_ext, and return whether this succeeded.
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 rm -f conftest.$ac_objext conftest$ac_exeext
2015 if { { ac_try="$ac_link"
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_link") 2>conftest.err
2024 if test -s conftest.err; then
2025 grep -v '^ *+' conftest.err >conftest.er1
2026 cat conftest.er1 >&5
2027 mv -f conftest.er1 conftest.err
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; } && {
2031 test -z "$ac_c_werror_flag" ||
2032 test ! -s conftest.err
2033 } && test -s conftest$ac_exeext && {
2034 test "$cross_compiling" = yes ||
2035 test -x conftest$ac_exeext
2039 $as_echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2044 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2045 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2046 # interfere with the next link command; also delete a directory that is
2047 # left behind by Apple's compiler. We do this before executing the actions.
2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 as_fn_set_status $ac_retval
2052 } # ac_fn_c_try_link
2054 # ac_fn_c_check_func LINENO FUNC VAR
2055 # ----------------------------------
2056 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2057 ac_fn_c_check_func ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval \${$3+:} false; then :
2063 $as_echo_n "(cached) " >&6
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2069 #define $2 innocuous_$2
2071 /* System header to define __stub macros and hopefully few prototypes,
2072 which can conflict with char $2 (); below.
2073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2074 <limits.h> exists even on freestanding compilers. */
2077 # include <limits.h>
2079 # include <assert.h>
2084 /* Override any GCC internal prototype to avoid an error.
2085 Use char because int might match the return type of a GCC
2086 builtin and then its argument prototype would still apply. */
2091 /* The GNU C library defines this for functions which it implements
2092 to always fail with ENOSYS. Some functions are actually named
2093 something starting with __ and the normal name is an alias. */
2094 #if defined __stub_$2 || defined __stub___$2
2106 if ac_fn_c_try_link "$LINENO"; then :
2111 rm -f core conftest.err conftest.$ac_objext \
2112 conftest$ac_exeext conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119 } # ac_fn_c_check_func
2121 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2122 # -------------------------------------------
2123 # Tests whether TYPE exists after having included INCLUDES, setting cache
2124 # variable VAR accordingly.
2125 ac_fn_c_check_type ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval \${$3+:} false; then :
2131 $as_echo_n "(cached) " >&6
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2159 if ac_fn_c_try_compile "$LINENO"; then :
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 } # ac_fn_c_check_type
2175 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2176 # --------------------------------------------
2177 # Tries to find the compile-time value of EXPR in a program that includes
2178 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2180 ac_fn_c_compute_int ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 if test "$cross_compiling" = yes; then
2184 # Depending upon the size, compute the lo and hi bounds.
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2191 static int test_array [1 - 2 * !(($2) >= 0)];
2193 return test_array [0];
2199 if ac_fn_c_try_compile "$LINENO"; then :
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2208 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2210 return test_array [0];
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217 ac_hi=$ac_mid; break
2219 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2220 if test $ac_lo -le $ac_mid; then
2224 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2235 static int test_array [1 - 2 * !(($2) < 0)];
2237 return test_array [0];
2243 if ac_fn_c_try_compile "$LINENO"; then :
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2252 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2254 return test_array [0];
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261 ac_lo=$ac_mid; break
2263 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2264 if test $ac_mid -le $ac_hi; then
2268 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 # Binary search between lo and hi bounds.
2279 while test "x$ac_lo" != "x$ac_hi"; do
2280 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2287 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2289 return test_array [0];
2295 if ac_fn_c_try_compile "$LINENO"; then :
2298 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2310 static long int longval () { return $2; }
2311 static unsigned long int ulongval () { return $2; }
2318 FILE *f = fopen ("conftest.val", "w");
2323 long int i = longval ();
2326 fprintf (f, "%ld", i);
2330 unsigned long int i = ulongval ();
2333 fprintf (f, "%lu", i);
2335 /* Do not output a trailing newline, as this causes \r\n confusion
2336 on some platforms. */
2337 return ferror (f) || fclose (f) != 0;
2343 if ac_fn_c_try_run "$LINENO"; then :
2344 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2349 conftest.$ac_objext conftest.beam conftest.$ac_ext
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354 as_fn_set_status $ac_retval
2356 } # ac_fn_c_compute_int
2358 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2359 # ---------------------------------------------
2360 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2362 ac_fn_c_check_decl ()
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365 as_decl_name=`echo $2|sed 's/ *(.*//'`
2366 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2368 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2369 if eval \${$3+:} false; then :
2370 $as_echo_n "(cached) " >&6
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2378 #ifndef $as_decl_name
2380 (void) $as_decl_use;
2382 (void) $as_decl_name;
2390 if ac_fn_c_try_compile "$LINENO"; then :
2395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2399 $as_echo "$ac_res" >&6; }
2400 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2402 } # ac_fn_c_check_decl
2404 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2405 # ----------------------------------------------------
2406 # Tries to find if the field MEMBER exists in type AGGR, after including
2407 # INCLUDES, setting cache variable VAR accordingly.
2408 ac_fn_c_check_member ()
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2412 $as_echo_n "checking for $2.$3... " >&6; }
2413 if eval \${$4+:} false; then :
2414 $as_echo_n "(cached) " >&6
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2429 if ac_fn_c_try_compile "$LINENO"; then :
2432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2433 /* end confdefs.h. */
2439 if (sizeof ac_aggr.$3)
2445 if ac_fn_c_try_compile "$LINENO"; then :
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459 } # ac_fn_c_check_member
2460 cat >config.log <<_ACEOF
2461 This file contains any messages produced by compilers while
2462 running configure, to aid debugging if configure makes a mistake.
2464 It was created by unbound $as_me 1.13.0, which was
2465 generated by GNU Autoconf 2.69. Invocation command line was
2477 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2478 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2479 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2480 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2481 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2483 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2484 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2486 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2487 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2488 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2489 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2490 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2491 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2492 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 test -z "$as_dir" && as_dir=.
2501 $as_echo "PATH: $as_dir"
2517 # Keep a trace of the command line.
2518 # Strip out --no-create and --no-recursion so they do not pile up.
2519 # Strip out --silent because we don't want to record it for future runs.
2520 # Also quote any args containing shell meta-characters.
2521 # Make two passes to allow for proper duplicate-argument suppression.
2525 ac_must_keep_next=false
2531 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2533 | -silent | --silent | --silen | --sile | --sil)
2536 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2539 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2541 as_fn_append ac_configure_args1 " '$ac_arg'"
2542 if test $ac_must_keep_next = true; then
2543 ac_must_keep_next=false # Got value, back to normal.
2546 *=* | --config-cache | -C | -disable-* | --disable-* \
2547 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2548 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2549 | -with-* | --with-* | -without-* | --without-* | --x)
2550 case "$ac_configure_args0 " in
2551 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2554 -* ) ac_must_keep_next=true ;;
2557 as_fn_append ac_configure_args " '$ac_arg'"
2562 { ac_configure_args0=; unset ac_configure_args0;}
2563 { ac_configure_args1=; unset ac_configure_args1;}
2565 # When interrupted or exit'd, cleanup temporary files, and complete
2566 # config.log. We remove comments because anyway the quotes in there
2567 # would cause problems or look ugly.
2568 # WARNING: Use '\'' to represent an apostrophe within the trap.
2569 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2570 trap 'exit_status=$?
2571 # Save into config.log some information that might help in debugging.
2575 $as_echo "## ---------------- ##
2576 ## Cache variables. ##
2577 ## ---------------- ##"
2579 # The following way of writing the cache mishandles newlines in values,
2581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2582 eval ac_val=\$$ac_var
2586 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2587 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2590 _ | IFS | as_nl) ;; #(
2591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2592 *) { eval $ac_var=; unset $ac_var;} ;;
2597 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2598 *${as_nl}ac_space=\ *)
2600 "s/'\''/'\''\\\\'\'''\''/g;
2601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2611 $as_echo "## ----------------- ##
2612 ## Output variables. ##
2613 ## ----------------- ##"
2615 for ac_var in $ac_subst_vars
2617 eval ac_val=\$$ac_var
2619 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2621 $as_echo "$ac_var='\''$ac_val'\''"
2625 if test -n "$ac_subst_files"; then
2626 $as_echo "## ------------------- ##
2627 ## File substitutions. ##
2628 ## ------------------- ##"
2630 for ac_var in $ac_subst_files
2632 eval ac_val=\$$ac_var
2634 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2636 $as_echo "$ac_var='\''$ac_val'\''"
2641 if test -s confdefs.h; then
2642 $as_echo "## ----------- ##
2649 test "$ac_signal" != 0 &&
2650 $as_echo "$as_me: caught signal $ac_signal"
2651 $as_echo "$as_me: exit $exit_status"
2653 rm -f core *.core core.conftest.* &&
2654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2657 for ac_signal in 1 2 13 15; do
2658 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2663 rm -f -r conftest* confdefs.h
2665 $as_echo "/* confdefs.h */" > confdefs.h
2667 # Predefined preprocessor variables.
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE_NAME "$PACKAGE_NAME"
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2681 cat >>confdefs.h <<_ACEOF
2682 #define PACKAGE_STRING "$PACKAGE_STRING"
2685 cat >>confdefs.h <<_ACEOF
2686 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2689 cat >>confdefs.h <<_ACEOF
2690 #define PACKAGE_URL "$PACKAGE_URL"
2694 # Let the site file select an alternate cache file if it wants to.
2695 # Prefer an explicitly selected file to automatically selected ones.
2698 if test -n "$CONFIG_SITE"; then
2699 # We do not want a PATH search for config.site.
2700 case $CONFIG_SITE in #((
2701 -*) ac_site_file1=./$CONFIG_SITE;;
2702 */*) ac_site_file1=$CONFIG_SITE;;
2703 *) ac_site_file1=./$CONFIG_SITE;;
2705 elif test "x$prefix" != xNONE; then
2706 ac_site_file1=$prefix/share/config.site
2707 ac_site_file2=$prefix/etc/config.site
2709 ac_site_file1=$ac_default_prefix/share/config.site
2710 ac_site_file2=$ac_default_prefix/etc/config.site
2712 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2714 test "x$ac_site_file" = xNONE && continue
2715 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2717 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2718 sed 's/^/| /' "$ac_site_file" >&5
2720 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2722 as_fn_error $? "failed to load site script $ac_site_file
2723 See \`config.log' for more details" "$LINENO" 5; }
2727 if test -r "$cache_file"; then
2728 # Some versions of bash will fail to source /dev/null (special files
2729 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2730 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2732 $as_echo "$as_me: loading cache $cache_file" >&6;}
2734 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2735 *) . "./$cache_file";;
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2740 $as_echo "$as_me: creating cache $cache_file" >&6;}
2744 # Check that the precious variables saved in the cache have kept the same
2746 ac_cache_corrupted=false
2747 for ac_var in $ac_precious_vars; do
2748 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2749 eval ac_new_set=\$ac_env_${ac_var}_set
2750 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2751 eval ac_new_val=\$ac_env_${ac_var}_value
2752 case $ac_old_set,$ac_new_set in
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2755 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2756 ac_cache_corrupted=: ;;
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2759 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2760 ac_cache_corrupted=: ;;
2763 if test "x$ac_old_val" != "x$ac_new_val"; then
2764 # differences in whitespace do not lead to failure.
2765 ac_old_val_w=`echo x $ac_old_val`
2766 ac_new_val_w=`echo x $ac_new_val`
2767 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2769 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2770 ac_cache_corrupted=:
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2773 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2774 eval $ac_var=\$ac_old_val
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2777 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2779 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2782 # Pass precious variables to config.status.
2783 if test "$ac_new_set" = set; then
2785 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2786 *) ac_arg=$ac_var=$ac_new_val ;;
2788 case " $ac_configure_args " in
2789 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2790 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2794 if $ac_cache_corrupted; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2798 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2799 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2801 ## -------------------- ##
2802 ## Main body of script. ##
2803 ## -------------------- ##
2806 ac_cpp='$CPP $CPPFLAGS'
2807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812 UNBOUND_VERSION_MAJOR=1
2814 UNBOUND_VERSION_MINOR=13
2816 UNBOUND_VERSION_MICRO=0
2819 LIBUNBOUND_CURRENT=9
2820 LIBUNBOUND_REVISION=11
2829 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2834 # 1.4.0-snapshots had 1:5:0
2835 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2849 # and 1.4.13p1 and 1.4.13.p2
2851 # 1.4.15 had 3:0:1 # adds ub_version()
2856 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2859 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2867 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2871 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2883 # 1.8.0 had 8:0:0 # changes the event callback function signature
2887 # 1.9.0 had 9:0:1 # add ub_ctx_set_tls
2900 # Current -- the number of the binary API that we're implementing
2901 # Revision -- which iteration of the implementation of the binary
2902 # API are we supplying?
2903 # Age -- How many previous binary API versions do we also
2906 # If we release a new version that does not change the binary API,
2907 # increment Revision.
2909 # If we release a new version that changes the binary API, but does
2910 # not break programs compiled against the old binary API, increment
2911 # Current and Age. Set Revision to 0, since this is the first
2912 # implementation of the new API.
2914 # Otherwise, we're changing the binary API and breaking backward
2915 # compatibility with old binaries. Increment Current. Set Age to 0,
2916 # since we're backward compatible with no previous APIs. Set Revision
2923 cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
2925 cat >>confdefs.h <<_ACEOF
2926 #define CONFCMDLINE "$cmdln"
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_CC+:} false; then :
2942 $as_echo_n "(cached) " >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 if test -n "$CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2975 if test -z "$ac_cv_prog_CC"; then
2977 # Extract the first word of "gcc", so it can be a program name with args.
2978 set dummy gcc; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2982 $as_echo_n "(cached) " >&6
2984 if test -n "$ac_ct_CC"; then
2985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_ac_ct_CC="gcc"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3007 $as_echo "$ac_ct_CC" >&6; }
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3013 if test "x$ac_ct_CC" = x; then
3016 case $cross_compiling:$ac_tool_warned in
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020 ac_tool_warned=yes ;;
3028 if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}cc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_CC+:} false; then :
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_CC="${ac_tool_prefix}cc"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3069 if test -z "$CC"; then
3070 # Extract the first word of "cc", so it can be a program name with args.
3071 set dummy cc; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_CC+:} false; then :
3075 $as_echo_n "(cached) " >&6
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3089 ac_prog_rejected=yes
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 if test $ac_prog_rejected = yes; then
3101 # We found a bogon in the path, so make sure we never use it.
3102 set dummy $ac_cv_prog_CC
3104 if test $# != 0; then
3105 # We chose a different compiler from the bogus one.
3106 # However, it has the same basename, so the bogon will be chosen
3107 # first if we set CC to just the basename; use the full file name.
3109 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3115 if test -n "$CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3125 if test -z "$CC"; then
3126 if test -n "$ac_tool_prefix"; then
3127 for ac_prog in cl.exe
3129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_CC+:} false; then :
3134 $as_echo_n "(cached) " >&6
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 if test -n "$CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3166 test -n "$CC" && break
3169 if test -z "$CC"; then
3171 for ac_prog in cl.exe
3173 # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy $ac_prog; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3178 $as_echo_n "(cached) " >&6
3180 if test -n "$ac_ct_CC"; then
3181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_ac_ct_CC="$ac_prog"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3203 $as_echo "$ac_ct_CC" >&6; }
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3210 test -n "$ac_ct_CC" && break
3213 if test "x$ac_ct_CC" = x; then
3216 case $cross_compiling:$ac_tool_warned in
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3229 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error $? "no acceptable C compiler found in \$PATH
3232 See \`config.log' for more details" "$LINENO" 5; }
3234 # Provide some information about the compiler.
3235 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3238 for ac_option in --version -v -V -qversion; do
3239 { { ac_try="$ac_compiler $ac_option >&5"
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3248 if test -s conftest.err; then
3250 ... rest of stderr output deleted ...
3251 10q' conftest.err >conftest.er1
3252 cat conftest.er1 >&5
3254 rm -f conftest.er1 conftest.err
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3270 ac_clean_files_save=$ac_clean_files
3271 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3272 # Try to create an executable without -o first, disregard a.out.
3273 # It will help us diagnose broken compilers, and finding out an intuition
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3276 $as_echo_n "checking whether the C compiler works... " >&6; }
3277 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3279 # The possible output files:
3280 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3283 for ac_file in $ac_files
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3287 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3292 if { { ac_try="$ac_link_default"
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299 (eval "$ac_link_default") 2>&5
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }; then :
3303 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3304 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3305 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3306 # so that the user can short-circuit this test for compilers unknown to
3308 for ac_file in $ac_files ''
3310 test -f "$ac_file" || continue
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3315 # We found the default executable, but exeext='' is most
3319 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3321 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3323 # We set ac_cv_exeext here because the later test for it is not
3324 # safe: cross compilers may not add the suffix if given an `-o'
3325 # argument, so we may need to know it at that point already.
3326 # Even if this section looks crufty: it has the advantage of
3333 test "$ac_cv_exeext" = no && ac_cv_exeext=
3338 if test -z "$ac_file"; then :
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 $as_echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error 77 "C compiler cannot create executables
3347 See \`config.log' for more details" "$LINENO" 5; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350 $as_echo "yes" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3353 $as_echo_n "checking for C compiler default output file name... " >&6; }
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3355 $as_echo "$ac_file" >&6; }
3356 ac_exeext=$ac_cv_exeext
3358 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3359 ac_clean_files=$ac_clean_files_save
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3361 $as_echo_n "checking for suffix of executables... " >&6; }
3362 if { { ac_try="$ac_link"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_link") 2>&5
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; then :
3373 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3374 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3375 # work properly (i.e., refer to `conftest.exe'), while it won't with
3377 for ac_file in conftest.exe conftest conftest.*; do
3378 test -f "$ac_file" || continue
3380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3381 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3390 See \`config.log' for more details" "$LINENO" 5; }
3392 rm -f conftest conftest$ac_cv_exeext
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3394 $as_echo "$ac_cv_exeext" >&6; }
3396 rm -f conftest.$ac_ext
3397 EXEEXT=$ac_cv_exeext
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3405 FILE *f = fopen ("conftest.out", "w");
3406 return ferror (f) || fclose (f) != 0;
3412 ac_clean_files="$ac_clean_files conftest.out"
3413 # Check that the compiler produces executables we can run. If not, either
3414 # the compiler is broken, or we cross compile.
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3416 $as_echo_n "checking whether we are cross compiling... " >&6; }
3417 if test "$cross_compiling" != yes; then
3418 { { ac_try="$ac_link"
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_link") 2>&5
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }
3429 if { ac_try='./conftest$ac_cv_exeext'
3430 { { case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_try") 2>&5
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; }; then
3442 if test "$cross_compiling" = maybe; then
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error $? "cannot run C compiled programs.
3448 If you meant to cross compile, use \`--host'.
3449 See \`config.log' for more details" "$LINENO" 5; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3454 $as_echo "$cross_compiling" >&6; }
3456 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3457 ac_clean_files=$ac_clean_files_save
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3459 $as_echo_n "checking for suffix of object files... " >&6; }
3460 if ${ac_cv_objext+:} false; then :
3461 $as_echo_n "(cached) " >&6
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3474 rm -f conftest.o conftest.obj
3475 if { { ac_try="$ac_compile"
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_compile") 2>&5
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; then :
3486 for ac_file in conftest.o conftest.obj conftest.*; do
3487 test -f "$ac_file" || continue;
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error $? "cannot compute suffix of object files: cannot compile
3501 See \`config.log' for more details" "$LINENO" 5; }
3503 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3506 $as_echo "$ac_cv_objext" >&6; }
3507 OBJEXT=$ac_cv_objext
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3510 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3511 if ${ac_cv_c_compiler_gnu+:} false; then :
3512 $as_echo_n "(cached) " >&6
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3528 if ac_fn_c_try_compile "$LINENO"; then :
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3538 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3539 if test $ac_compiler_gnu = yes; then
3544 ac_test_CFLAGS=${CFLAGS+set}
3545 ac_save_CFLAGS=$CFLAGS
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3547 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3548 if ${ac_cv_prog_cc_g+:} false; then :
3549 $as_echo_n "(cached) " >&6
3551 ac_save_c_werror_flag=$ac_c_werror_flag
3552 ac_c_werror_flag=yes
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3566 if ac_fn_c_try_compile "$LINENO"; then :
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3581 if ac_fn_c_try_compile "$LINENO"; then :
3584 ac_c_werror_flag=$ac_save_c_werror_flag
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3597 if ac_fn_c_try_compile "$LINENO"; then :
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_c_werror_flag=$ac_save_c_werror_flag
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3608 $as_echo "$ac_cv_prog_cc_g" >&6; }
3609 if test "$ac_test_CFLAGS" = set; then
3610 CFLAGS=$ac_save_CFLAGS
3611 elif test $ac_cv_prog_cc_g = yes; then
3612 if test "$GCC" = yes; then
3618 if test "$GCC" = yes; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3625 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3626 if ${ac_cv_prog_cc_c89+:} false; then :
3627 $as_echo_n "(cached) " >&6
3629 ac_cv_prog_cc_c89=no
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3636 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3637 struct buf { int x; };
3638 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3639 static char *e (p, i)
3645 static char *f (char * (*g) (char **, int), char **p, ...)
3650 s = g (p, va_arg (v,int));
3655 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3656 function prototypes and stuff, but not '\xHH' hex character constants.
3657 These don't provoke an error unfortunately, instead are silently treated
3658 as 'x'. The following induces an error, until -std is added to get
3659 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3660 array size at least. It's necessary to write '\x00'==0 to get something
3661 that's true only with -std. */
3662 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3664 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3665 inside strings and character constants. */
3667 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3669 int test (int i, double x);
3670 struct s1 {int (*f) (int a);};
3671 struct s2 {int (*f) (double a);};
3672 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3678 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3683 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3684 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3686 CC="$ac_save_CC $ac_arg"
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_cv_prog_cc_c89=$ac_arg
3690 rm -f core conftest.err conftest.$ac_objext
3691 test "x$ac_cv_prog_cc_c89" != "xno" && break
3693 rm -f conftest.$ac_ext
3698 case "x$ac_cv_prog_cc_c89" in
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3701 $as_echo "none needed" >&6; } ;;
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3704 $as_echo "unsupported" >&6; } ;;
3706 CC="$CC $ac_cv_prog_cc_c89"
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3708 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3710 if test "x$ac_cv_prog_cc_c89" != xno; then :
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722 ac_cpp='$CPP $CPPFLAGS'
3723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3727 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3728 # On Suns, sometimes $CPP names a directory.
3729 if test -n "$CPP" && test -d "$CPP"; then
3732 if test -z "$CPP"; then
3733 if ${ac_cv_prog_CPP+:} false; then :
3734 $as_echo_n "(cached) " >&6
3736 # Double quotes because CPP needs to be expanded
3737 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3740 for ac_c_preproc_warn_flag in '' yes
3742 # Use a header file that comes with gcc, so configuring glibc
3743 # with a fresh cross-compiler works.
3744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3745 # <limits.h> exists even on freestanding compilers.
3746 # On the NeXT, cc -E runs the code through the compiler's parser,
3747 # not just through cpp. "Syntax error" is here to catch this case.
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3751 # include <limits.h>
3753 # include <assert.h>
3757 if ac_fn_c_try_cpp "$LINENO"; then :
3760 # Broken: fails on valid input.
3763 rm -f conftest.err conftest.i conftest.$ac_ext
3765 # OK, works on sane cases. Now check whether nonexistent headers
3766 # can be detected and how.
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769 #include <ac_nonexistent.h>
3771 if ac_fn_c_try_cpp "$LINENO"; then :
3772 # Broken: success on invalid input.
3775 # Passes both tests.
3779 rm -f conftest.err conftest.i conftest.$ac_ext
3782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3783 rm -f conftest.i conftest.err conftest.$ac_ext
3784 if $ac_preproc_ok; then :
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3797 $as_echo "$CPP" >&6; }
3799 for ac_c_preproc_warn_flag in '' yes
3801 # Use a header file that comes with gcc, so configuring glibc
3802 # with a fresh cross-compiler works.
3803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3804 # <limits.h> exists even on freestanding compilers.
3805 # On the NeXT, cc -E runs the code through the compiler's parser,
3806 # not just through cpp. "Syntax error" is here to catch this case.
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3810 # include <limits.h>
3812 # include <assert.h>
3816 if ac_fn_c_try_cpp "$LINENO"; then :
3819 # Broken: fails on valid input.
3822 rm -f conftest.err conftest.i conftest.$ac_ext
3824 # OK, works on sane cases. Now check whether nonexistent headers
3825 # can be detected and how.
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3828 #include <ac_nonexistent.h>
3830 if ac_fn_c_try_cpp "$LINENO"; then :
3831 # Broken: success on invalid input.
3834 # Passes both tests.
3838 rm -f conftest.err conftest.i conftest.$ac_ext
3841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3842 rm -f conftest.i conftest.err conftest.$ac_ext
3843 if $ac_preproc_ok; then :
3846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3849 See \`config.log' for more details" "$LINENO" 5; }
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3860 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3861 if ${ac_cv_path_GREP+:} false; then :
3862 $as_echo_n "(cached) " >&6
3864 if test -z "$GREP"; then
3865 ac_path_GREP_found=false
3866 # Loop through the user's path and test for each of PROGNAME-LIST
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3871 test -z "$as_dir" && as_dir=.
3872 for ac_prog in grep ggrep; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3875 as_fn_executable_p "$ac_path_GREP" || continue
3876 # Check for GNU ac_path_GREP and select it if it is found.
3877 # Check for GNU $ac_path_GREP
3878 case `"$ac_path_GREP" --version 2>&1` in
3880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3883 $as_echo_n 0123456789 >"conftest.in"
3886 cat "conftest.in" "conftest.in" >"conftest.tmp"
3887 mv "conftest.tmp" "conftest.in"
3888 cp "conftest.in" "conftest.nl"
3889 $as_echo 'GREP' >> "conftest.nl"
3890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3892 as_fn_arith $ac_count + 1 && ac_count=$as_val
3893 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3894 # Best one so far, save it but keep looking for a better one
3895 ac_cv_path_GREP="$ac_path_GREP"
3896 ac_path_GREP_max=$ac_count
3898 # 10*(2^10) chars as input seems more than enough
3899 test $ac_count -gt 10 && break
3901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3904 $ac_path_GREP_found && break 3
3909 if test -z "$ac_cv_path_GREP"; then
3910 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3913 ac_cv_path_GREP=$GREP
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3918 $as_echo "$ac_cv_path_GREP" >&6; }
3919 GREP="$ac_cv_path_GREP"
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3923 $as_echo_n "checking for egrep... " >&6; }
3924 if ${ac_cv_path_EGREP+:} false; then :
3925 $as_echo_n "(cached) " >&6
3927 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3928 then ac_cv_path_EGREP="$GREP -E"
3930 if test -z "$EGREP"; then
3931 ac_path_EGREP_found=false
3932 # Loop through the user's path and test for each of PROGNAME-LIST
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3937 test -z "$as_dir" && as_dir=.
3938 for ac_prog in egrep; do
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3941 as_fn_executable_p "$ac_path_EGREP" || continue
3942 # Check for GNU ac_path_EGREP and select it if it is found.
3943 # Check for GNU $ac_path_EGREP
3944 case `"$ac_path_EGREP" --version 2>&1` in
3946 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3949 $as_echo_n 0123456789 >"conftest.in"
3952 cat "conftest.in" "conftest.in" >"conftest.tmp"
3953 mv "conftest.tmp" "conftest.in"
3954 cp "conftest.in" "conftest.nl"
3955 $as_echo 'EGREP' >> "conftest.nl"
3956 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3958 as_fn_arith $ac_count + 1 && ac_count=$as_val
3959 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3960 # Best one so far, save it but keep looking for a better one
3961 ac_cv_path_EGREP="$ac_path_EGREP"
3962 ac_path_EGREP_max=$ac_count
3964 # 10*(2^10) chars as input seems more than enough
3965 test $ac_count -gt 10 && break
3967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3970 $ac_path_EGREP_found && break 3
3975 if test -z "$ac_cv_path_EGREP"; then
3976 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3979 ac_cv_path_EGREP=$EGREP
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3985 $as_echo "$ac_cv_path_EGREP" >&6; }
3986 EGREP="$ac_cv_path_EGREP"
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3990 $as_echo_n "checking for ANSI C header files... " >&6; }
3991 if ${ac_cv_header_stdc+:} false; then :
3992 $as_echo_n "(cached) " >&6
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
4009 if ac_fn_c_try_compile "$LINENO"; then :
4010 ac_cv_header_stdc=yes
4012 ac_cv_header_stdc=no
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 if test $ac_cv_header_stdc = yes; then
4017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4024 $EGREP "memchr" >/dev/null 2>&1; then :
4027 ac_cv_header_stdc=no
4033 if test $ac_cv_header_stdc = yes; then
4034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4041 $EGREP "free" >/dev/null 2>&1; then :
4044 ac_cv_header_stdc=no
4050 if test $ac_cv_header_stdc = yes; then
4051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4052 if test "$cross_compiling" = yes; then :
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4059 #if ((' ' & 0x0FF) == 0x020)
4060 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4061 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4063 # define ISLOWER(c) \
4064 (('a' <= (c) && (c) <= 'i') \
4065 || ('j' <= (c) && (c) <= 'r') \
4066 || ('s' <= (c) && (c) <= 'z'))
4067 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4070 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4075 for (i = 0; i < 256; i++)
4076 if (XOR (islower (i), ISLOWER (i))
4077 || toupper (i) != TOUPPER (i))
4082 if ac_fn_c_try_run "$LINENO"; then :
4085 ac_cv_header_stdc=no
4087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4088 conftest.$ac_objext conftest.beam conftest.$ac_ext
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4094 $as_echo "$ac_cv_header_stdc" >&6; }
4095 if test $ac_cv_header_stdc = yes; then
4097 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4101 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4102 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4103 inttypes.h stdint.h unistd.h
4105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4106 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4108 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4109 cat >>confdefs.h <<_ACEOF
4110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4119 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4120 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4127 if test "$MINIX" = yes; then
4129 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4132 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4135 $as_echo "#define _MINIX 1" >>confdefs.h
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4141 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4142 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4143 $as_echo_n "(cached) " >&6
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4148 # define __EXTENSIONS__ 1
4149 $ac_includes_default
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_cv_safe_to_define___extensions__=yes
4161 ac_cv_safe_to_define___extensions__=no
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4166 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4167 test $ac_cv_safe_to_define___extensions__ = yes &&
4168 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4170 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4172 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4174 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4176 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4180 if test "$ac_cv_header_minix_config_h" = "yes"; then
4182 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4191 case "$exec_prefix" in
4193 exec_prefix="$prefix"
4198 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4200 if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes"
4201 else on_mingw="no"; fi
4205 # Determine configuration file
4206 # the eval is to evaluate shell expansion twice
4207 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4209 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4211 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4213 if test $on_mingw = "no"; then
4214 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4216 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4219 # Check whether --with-conf_file was given.
4220 if test "${with_conf_file+set}" = set; then :
4221 withval=$with_conf_file; ub_conf_file="$withval"
4225 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4228 cat >>confdefs.h <<_ACEOF
4229 #define CONFIGFILE "$hdr_config"
4232 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4233 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4234 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4235 X"$ub_conf_file" : 'X\(//\)$' \| \
4236 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4237 $as_echo X"$ub_conf_file" |
4238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4257 # Determine run, chroot directory and pidfile locations
4259 # Check whether --with-run-dir was given.
4260 if test "${with_run_dir+set}" = set; then :
4261 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4263 if test $on_mingw = no; then
4264 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4272 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4275 cat >>confdefs.h <<_ACEOF
4276 #define RUN_DIR "$hdr_run"
4281 # Check whether --with-chroot-dir was given.
4282 if test "${with_chroot_dir+set}" = set; then :
4283 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4285 if test $on_mingw = no; then
4286 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4288 UNBOUND_CHROOT_DIR=""
4294 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4297 cat >>confdefs.h <<_ACEOF
4298 #define CHROOT_DIR "$hdr_chroot"
4303 # Check whether --with-share-dir was given.
4304 if test "${with_share_dir+set}" = set; then :
4305 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4307 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4312 cat >>confdefs.h <<_ACEOF
4313 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4318 # Check whether --with-pidfile was given.
4319 if test "${with_pidfile+set}" = set; then :
4320 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4322 if test $on_mingw = no; then
4323 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4331 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4334 cat >>confdefs.h <<_ACEOF
4335 #define PIDFILE "$hdr_pid"
4340 # Check whether --with-rootkey-file was given.
4341 if test "${with_rootkey_file+set}" = set; then :
4342 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4344 if test $on_mingw = no; then
4345 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4347 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4353 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4356 cat >>confdefs.h <<_ACEOF
4357 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4362 # Check whether --with-rootcert-file was given.
4363 if test "${with_rootcert_file+set}" = set; then :
4364 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4366 if test $on_mingw = no; then
4367 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4369 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4375 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4378 cat >>confdefs.h <<_ACEOF
4379 #define ROOT_CERT_FILE "$hdr_rpem"
4384 # Check whether --with-username was given.
4385 if test "${with_username+set}" = set; then :
4386 withval=$with_username; UNBOUND_USERNAME="$withval"
4388 UNBOUND_USERNAME="unbound"
4393 cat >>confdefs.h <<_ACEOF
4394 #define UB_USERNAME "$UNBOUND_USERNAME"
4399 $as_echo "#define WINVER 0x0502" >>confdefs.h
4401 wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\).*$/\1,\2,\3,\4/' -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1,\2,\3,0/' `
4404 cat >>confdefs.h <<_ACEOF
4405 #define RSRC_PACKAGE_VERSION $wnvs
4409 # Checks for typedefs, structures, and compiler characteristics.
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4411 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4412 if ${ac_cv_c_const+:} false; then :
4413 $as_echo_n "(cached) " >&6
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4423 /* Ultrix mips cc rejects this sort of thing. */
4424 typedef int charset[2];
4425 const charset cs = { 0, 0 };
4426 /* SunOS 4.1.1 cc rejects this. */
4427 char const *const *pcpcc;
4429 /* NEC SVR4.0.2 mips cc rejects this. */
4430 struct point {int x, y;};
4431 static struct point const zero = {0,0};
4432 /* AIX XL C 1.02.0.0 rejects this.
4433 It does not let you subtract one const X* pointer from another in
4434 an arm of an if-expression whose if-part is not a constant
4436 const char *g = "string";
4437 pcpcc = &g + (g ? g-g : 0);
4438 /* HPUX 7.0 cc rejects these. */
4440 ppc = (char**) pcpcc;
4441 pcpcc = (char const *const *) ppc;
4442 { /* SCO 3.2v4 cc rejects this sort of thing. */
4445 char const *s = 0 ? (char *) 0 : (char const *) 0;
4450 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4452 const int *foo = &x[0];
4455 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4456 typedef const int *iptr;
4460 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4461 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4462 struct s { int j; const int *ap[3]; } bx;
4463 struct s *b = &bx; b->j = 5;
4465 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4469 return !cs[0] && !zero.x;
4476 if ac_fn_c_try_compile "$LINENO"; then :
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4484 $as_echo "$ac_cv_c_const" >&6; }
4485 if test $ac_cv_c_const = no; then
4487 $as_echo "#define const /**/" >>confdefs.h
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497 # allow user to override the -g -O2 flags.
4499 if test "x$CFLAGS" = "x" ; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4503 $as_echo_n "checking whether $CC supports -g... " >&6; }
4504 cache=`echo g | sed 'y%.=/+-%___p_%'`
4505 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4506 $as_echo_n "(cached) " >&6
4509 echo 'void f(void){}' >conftest.c
4510 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4511 eval "cv_prog_cc_flag_$cache=yes"
4513 eval "cv_prog_cc_flag_$cache=no"
4515 rm -f conftest conftest.o conftest.c
4519 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4521 $as_echo "yes" >&6; }
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526 $as_echo "no" >&6; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4534 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4535 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4536 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4537 $as_echo_n "(cached) " >&6
4540 echo 'void f(void){}' >conftest.c
4541 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4542 eval "cv_prog_cc_flag_$cache=yes"
4544 eval "cv_prog_cc_flag_$cache=no"
4546 rm -f conftest conftest.o conftest.c
4550 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4552 $as_echo "yes" >&6; }
4554 CFLAGS="$CFLAGS -O2"
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557 $as_echo "no" >&6; }
4565 ac_cpp='$CPP $CPPFLAGS'
4566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4569 if test -n "$ac_tool_prefix"; then
4570 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4571 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if ${ac_cv_prog_CC+:} false; then :
4575 $as_echo_n "(cached) " >&6
4577 if test -n "$CC"; then
4578 ac_cv_prog_CC="$CC" # Let the user override the test.
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 if test -n "$CC"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4600 $as_echo "$CC" >&6; }
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4608 if test -z "$ac_cv_prog_CC"; then
4610 # Extract the first word of "gcc", so it can be a program name with args.
4611 set dummy gcc; ac_word=$2
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613 $as_echo_n "checking for $ac_word... " >&6; }
4614 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4615 $as_echo_n "(cached) " >&6
4617 if test -n "$ac_ct_CC"; then
4618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627 ac_cv_prog_ac_ct_CC="gcc"
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4638 if test -n "$ac_ct_CC"; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4640 $as_echo "$ac_ct_CC" >&6; }
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4646 if test "x$ac_ct_CC" = x; then
4649 case $cross_compiling:$ac_tool_warned in
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4653 ac_tool_warned=yes ;;
4661 if test -z "$CC"; then
4662 if test -n "$ac_tool_prefix"; then
4663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4664 set dummy ${ac_tool_prefix}cc; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if ${ac_cv_prog_CC+:} false; then :
4668 $as_echo_n "(cached) " >&6
4670 if test -n "$CC"; then
4671 ac_cv_prog_CC="$CC" # Let the user override the test.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_prog_CC="${ac_tool_prefix}cc"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 if test -n "$CC"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4693 $as_echo "$CC" >&6; }
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4702 if test -z "$CC"; then
4703 # Extract the first word of "cc", so it can be a program name with args.
4704 set dummy cc; ac_word=$2
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706 $as_echo_n "checking for $ac_word... " >&6; }
4707 if ${ac_cv_prog_CC+:} false; then :
4708 $as_echo_n "(cached) " >&6
4710 if test -n "$CC"; then
4711 ac_cv_prog_CC="$CC" # Let the user override the test.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4722 ac_prog_rejected=yes
4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 if test $ac_prog_rejected = yes; then
4734 # We found a bogon in the path, so make sure we never use it.
4735 set dummy $ac_cv_prog_CC
4737 if test $# != 0; then
4738 # We chose a different compiler from the bogus one.
4739 # However, it has the same basename, so the bogon will be chosen
4740 # first if we set CC to just the basename; use the full file name.
4742 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4748 if test -n "$CC"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4750 $as_echo "$CC" >&6; }
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4758 if test -z "$CC"; then
4759 if test -n "$ac_tool_prefix"; then
4760 for ac_prog in cl.exe
4762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if ${ac_cv_prog_CC+:} false; then :
4767 $as_echo_n "(cached) " >&6
4769 if test -n "$CC"; then
4770 ac_cv_prog_CC="$CC" # Let the user override the test.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 if test -n "$CC"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4792 $as_echo "$CC" >&6; }
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4799 test -n "$CC" && break
4802 if test -z "$CC"; then
4804 for ac_prog in cl.exe
4806 # Extract the first word of "$ac_prog", so it can be a program name with args.
4807 set dummy $ac_prog; ac_word=$2
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 $as_echo_n "checking for $ac_word... " >&6; }
4810 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4811 $as_echo_n "(cached) " >&6
4813 if test -n "$ac_ct_CC"; then
4814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4823 ac_cv_prog_ac_ct_CC="$ac_prog"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4834 if test -n "$ac_ct_CC"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4836 $as_echo "$ac_ct_CC" >&6; }
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4843 test -n "$ac_ct_CC" && break
4846 if test "x$ac_ct_CC" = x; then
4849 case $cross_compiling:$ac_tool_warned in
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4853 ac_tool_warned=yes ;;
4862 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4864 as_fn_error $? "no acceptable C compiler found in \$PATH
4865 See \`config.log' for more details" "$LINENO" 5; }
4867 # Provide some information about the compiler.
4868 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4871 for ac_option in --version -v -V -qversion; do
4872 { { ac_try="$ac_compiler $ac_option >&5"
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4878 $as_echo "$ac_try_echo"; } >&5
4879 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4881 if test -s conftest.err; then
4883 ... rest of stderr output deleted ...
4884 10q' conftest.err >conftest.er1
4885 cat conftest.er1 >&5
4887 rm -f conftest.er1 conftest.err
4888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4889 test $ac_status = 0; }
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4893 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4894 if ${ac_cv_c_compiler_gnu+:} false; then :
4895 $as_echo_n "(cached) " >&6
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4911 if ac_fn_c_try_compile "$LINENO"; then :
4916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4921 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4922 if test $ac_compiler_gnu = yes; then
4927 ac_test_CFLAGS=${CFLAGS+set}
4928 ac_save_CFLAGS=$CFLAGS
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4930 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4931 if ${ac_cv_prog_cc_g+:} false; then :
4932 $as_echo_n "(cached) " >&6
4934 ac_save_c_werror_flag=$ac_c_werror_flag
4935 ac_c_werror_flag=yes
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4949 if ac_fn_c_try_compile "$LINENO"; then :
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4964 if ac_fn_c_try_compile "$LINENO"; then :
4967 ac_c_werror_flag=$ac_save_c_werror_flag
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4980 if ac_fn_c_try_compile "$LINENO"; then :
4983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 ac_c_werror_flag=$ac_save_c_werror_flag
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4991 $as_echo "$ac_cv_prog_cc_g" >&6; }
4992 if test "$ac_test_CFLAGS" = set; then
4993 CFLAGS=$ac_save_CFLAGS
4994 elif test $ac_cv_prog_cc_g = yes; then
4995 if test "$GCC" = yes; then
5001 if test "$GCC" = yes; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5008 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5009 if ${ac_cv_prog_cc_c89+:} false; then :
5010 $as_echo_n "(cached) " >&6
5012 ac_cv_prog_cc_c89=no
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5019 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5020 struct buf { int x; };
5021 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5022 static char *e (p, i)
5028 static char *f (char * (*g) (char **, int), char **p, ...)
5033 s = g (p, va_arg (v,int));
5038 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5039 function prototypes and stuff, but not '\xHH' hex character constants.
5040 These don't provoke an error unfortunately, instead are silently treated
5041 as 'x'. The following induces an error, until -std is added to get
5042 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5043 array size at least. It's necessary to write '\x00'==0 to get something
5044 that's true only with -std. */
5045 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5047 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5048 inside strings and character constants. */
5050 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5052 int test (int i, double x);
5053 struct s1 {int (*f) (int a);};
5054 struct s2 {int (*f) (double a);};
5055 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5061 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5066 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5067 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5069 CC="$ac_save_CC $ac_arg"
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_prog_cc_c89=$ac_arg
5073 rm -f core conftest.err conftest.$ac_objext
5074 test "x$ac_cv_prog_cc_c89" != "xno" && break
5076 rm -f conftest.$ac_ext
5081 case "x$ac_cv_prog_cc_c89" in
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5084 $as_echo "none needed" >&6; } ;;
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5087 $as_echo "unsupported" >&6; } ;;
5089 CC="$CC $ac_cv_prog_cc_c89"
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5091 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5093 if test "x$ac_cv_prog_cc_c89" != xno; then :
5098 ac_cpp='$CPP $CPPFLAGS'
5099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5105 $as_echo_n "checking $CC dependency flag... " >&6; }
5106 echo 'void f(){}' >conftest.c
5107 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5110 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5113 DEPFLAG="-MM" # dunno do something
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5117 $as_echo "$DEPFLAG" >&6; }
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5125 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
5126 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5127 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5128 $as_echo_n "(cached) " >&6
5131 echo 'void f(void){}' >conftest.c
5132 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5133 eval "cv_prog_cc_flag_$cache=yes"
5135 eval "cv_prog_cc_flag_$cache=no"
5137 rm -f conftest conftest.o conftest.c
5141 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5143 $as_echo "yes" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5156 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5157 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5158 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5159 $as_echo_n "(cached) " >&6
5162 echo 'void f(void){}' >conftest.c
5163 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5164 eval "cv_prog_cc_flag_$cache=yes"
5166 eval "cv_prog_cc_flag_$cache=no"
5168 rm -f conftest conftest.o conftest.c
5172 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5174 $as_echo "yes" >&6; }
5176 ERRFLAG="$ERRFLAG -Wall"
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5181 ERRFLAG="$ERRFLAG -errfmt"
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5189 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5190 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5191 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5192 $as_echo_n "(cached) " >&6
5195 echo 'void f(void){}' >conftest.c
5196 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5197 eval "cv_prog_cc_flag_$cache=yes"
5199 eval "cv_prog_cc_flag_$cache=no"
5201 rm -f conftest conftest.o conftest.c
5205 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5207 $as_echo "yes" >&6; }
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5220 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5221 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5222 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5223 $as_echo_n "(cached) " >&6
5226 echo 'void f(void){}' >conftest.c
5227 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5228 eval "cv_prog_cc_flag_$cache=yes"
5230 eval "cv_prog_cc_flag_$cache=no"
5232 rm -f conftest conftest.o conftest.c
5236 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5238 $as_echo "yes" >&6; }
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5249 for ac_header in getopt.h time.h
5251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5252 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5254 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5255 cat >>confdefs.h <<_ACEOF
5256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5268 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5269 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5270 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5271 $as_echo_n "(cached) " >&6
5275 #include "confdefs.h"
5278 #include <sys/time.h>
5284 #ifdef HAVE_GETOPT_H
5295 const char* str = NULL;
5297 msg.msg_control = 0;
5298 t = ctime_r(&time, buf);
5301 a = getopt(2, opts, "a");
5303 str = gai_strerror(0);
5304 if(str && t && tv.tv_usec && msg.msg_control)
5309 echo 'void f(){}' >>conftest.c
5310 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5311 eval "cv_prog_cc_flag_needed_$cache=no"
5314 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5315 eval "cv_prog_cc_flag_needed_$cache=yes"
5317 eval "cv_prog_cc_flag_needed_$cache=fail"
5318 #echo 'Test with flag fails too!'
5320 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5321 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5326 rm -f conftest conftest.c conftest.o
5330 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5332 $as_echo "yes" >&6; }
5334 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5336 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 #echo 'Test with flag is no!'
5341 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5342 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5348 $as_echo "failed" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5359 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5360 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5361 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5362 $as_echo_n "(cached) " >&6
5366 #include "confdefs.h"
5369 #include <sys/time.h>
5375 #ifdef HAVE_GETOPT_H
5386 const char* str = NULL;
5388 msg.msg_control = 0;
5389 t = ctime_r(&time, buf);
5392 a = getopt(2, opts, "a");
5394 str = gai_strerror(0);
5395 if(str && t && tv.tv_usec && msg.msg_control)
5400 echo 'void f(){}' >>conftest.c
5401 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5402 eval "cv_prog_cc_flag_needed_$cache=no"
5405 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5406 eval "cv_prog_cc_flag_needed_$cache=yes"
5408 eval "cv_prog_cc_flag_needed_$cache=fail"
5409 #echo 'Test with flag fails too!'
5411 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5412 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5417 rm -f conftest conftest.c conftest.o
5421 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5423 $as_echo "yes" >&6; }
5425 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5427 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 #echo 'Test with flag is no!'
5432 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5433 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5439 $as_echo "failed" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5450 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5451 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5452 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5453 $as_echo_n "(cached) " >&6
5457 #include <stdbool.h>
5464 echo 'void f(){}' >>conftest.c
5465 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5466 eval "cv_prog_cc_flag_needed_$cache=no"
5469 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5470 eval "cv_prog_cc_flag_needed_$cache=yes"
5472 eval "cv_prog_cc_flag_needed_$cache=fail"
5473 #echo 'Test with flag fails too!'
5475 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5476 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5481 rm -f conftest conftest.c conftest.o
5485 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5487 $as_echo "yes" >&6; }
5489 CFLAGS="$CFLAGS $C99FLAG"
5491 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 #echo 'Test with flag is no!'
5496 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5497 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5503 $as_echo "failed" >&6; }
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5514 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5515 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5516 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5517 $as_echo_n "(cached) " >&6
5529 echo 'void f(){}' >>conftest.c
5530 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5531 eval "cv_prog_cc_flag_needed_$cache=no"
5534 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5535 eval "cv_prog_cc_flag_needed_$cache=yes"
5537 eval "cv_prog_cc_flag_needed_$cache=fail"
5538 #echo 'Test with flag fails too!'
5540 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5541 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5546 rm -f conftest conftest.c conftest.o
5550 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5552 $as_echo "yes" >&6; }
5554 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5556 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5559 #echo 'Test with flag is no!'
5561 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5562 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5568 $as_echo "failed" >&6; }
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5579 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5581 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5582 $as_echo_n "(cached) " >&6
5586 #include <netinet/in.h>
5589 struct in6_pktinfo inf;
5590 int a = (int)sizeof(inf);
5594 echo 'void f(){}' >>conftest.c
5595 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5596 eval "cv_prog_cc_flag_needed_$cache=no"
5599 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5600 eval "cv_prog_cc_flag_needed_$cache=yes"
5602 eval "cv_prog_cc_flag_needed_$cache=fail"
5603 #echo 'Test with flag fails too!'
5605 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5606 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5611 rm -f conftest conftest.c conftest.o
5615 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5617 $as_echo "yes" >&6; }
5619 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5621 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5624 #echo 'Test with flag is no!'
5626 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5627 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5633 $as_echo "failed" >&6; }
5640 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5641 # is not available at all. -D_FRSRESGID is to make this check unique.
5642 # otherwise we would get the previous cached result.
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5647 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5648 cache=_D_GNU_SOURCE__D_FRSRESGID
5649 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5650 $as_echo_n "(cached) " >&6
5657 int a = setresgid(0,0,0);
5658 a = setresuid(0,0,0);
5662 echo 'void f(){}' >>conftest.c
5663 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5664 eval "cv_prog_cc_flag_needed_$cache=no"
5667 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5668 eval "cv_prog_cc_flag_needed_$cache=yes"
5670 eval "cv_prog_cc_flag_needed_$cache=fail"
5671 #echo 'Test with flag fails too!'
5673 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5674 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5679 rm -f conftest conftest.c conftest.o
5683 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5685 $as_echo "yes" >&6; }
5687 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5689 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692 #echo 'Test with flag is no!'
5694 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5695 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5701 $as_echo "failed" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5712 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5713 cache=_D_POSIX_C_SOURCE_200112
5714 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5715 $as_echo_n "(cached) " >&6
5719 #include "confdefs.h"
5730 const char* str = NULL;
5731 t = ctime_r(&time, buf);
5732 str = gai_strerror(0);
5738 echo 'void f(){}' >>conftest.c
5739 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5740 eval "cv_prog_cc_flag_needed_$cache=no"
5743 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5744 eval "cv_prog_cc_flag_needed_$cache=yes"
5746 eval "cv_prog_cc_flag_needed_$cache=fail"
5747 #echo 'Test with flag fails too!'
5749 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5750 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5755 rm -f conftest conftest.c conftest.o
5759 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5761 $as_echo "yes" >&6; }
5763 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5765 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5768 #echo 'Test with flag is no!'
5770 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5771 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5777 $as_echo "failed" >&6; }
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5788 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5789 cache=_D__EXTENSIONS__
5790 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5791 $as_echo_n "(cached) " >&6
5795 #include "confdefs.h"
5798 #include <sys/time.h>
5803 #ifdef HAVE_GETOPT_H
5813 a = getopt(2, opts, "a");
5820 echo 'void f(){}' >>conftest.c
5821 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5822 eval "cv_prog_cc_flag_needed_$cache=no"
5825 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5826 eval "cv_prog_cc_flag_needed_$cache=yes"
5828 eval "cv_prog_cc_flag_needed_$cache=fail"
5829 #echo 'Test with flag fails too!'
5831 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5832 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5837 rm -f conftest conftest.c conftest.o
5841 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5843 $as_echo "yes" >&6; }
5845 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5847 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5850 #echo 'Test with flag is no!'
5852 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5853 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5859 $as_echo "failed" >&6; }
5868 # debug mode flags warnings
5869 # Check whether --enable-checking was given.
5870 if test "${enable_checking+set}" = set; then :
5871 enableval=$enable_checking;
5874 # Check whether --enable-debug was given.
5875 if test "${enable_debug+set}" = set; then :
5876 enableval=$enable_debug;
5879 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5880 else debug_enabled="$enable_checking"; fi
5882 case "$debug_enabled" in
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5887 $as_echo_n "checking whether $CC supports -W... " >&6; }
5888 cache=`echo W | sed 'y%.=/+-%___p_%'`
5889 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5890 $as_echo_n "(cached) " >&6
5893 echo 'void f(void){}' >conftest.c
5894 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5895 eval "cv_prog_cc_flag_$cache=yes"
5897 eval "cv_prog_cc_flag_$cache=no"
5899 rm -f conftest conftest.o conftest.c
5903 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5905 $as_echo "yes" >&6; }
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5918 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5919 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5920 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5921 $as_echo_n "(cached) " >&6
5924 echo 'void f(void){}' >conftest.c
5925 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5926 eval "cv_prog_cc_flag_$cache=yes"
5928 eval "cv_prog_cc_flag_$cache=no"
5930 rm -f conftest conftest.o conftest.c
5934 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5936 $as_echo "yes" >&6; }
5938 CFLAGS="$CFLAGS -Wall"
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5949 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5950 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5951 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5952 $as_echo_n "(cached) " >&6
5955 echo 'void f(void){}' >conftest.c
5956 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5957 eval "cv_prog_cc_flag_$cache=yes"
5959 eval "cv_prog_cc_flag_$cache=no"
5961 rm -f conftest conftest.o conftest.c
5965 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5967 $as_echo "yes" >&6; }
5969 CFLAGS="$CFLAGS -Wextra"
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5980 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5981 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5982 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5983 $as_echo_n "(cached) " >&6
5986 echo 'void f(void){}' >conftest.c
5987 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5988 eval "cv_prog_cc_flag_$cache=yes"
5990 eval "cv_prog_cc_flag_$cache=no"
5992 rm -f conftest conftest.o conftest.c
5996 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5998 $as_echo "yes" >&6; }
6000 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6009 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
6016 if test "$default_cflags" = "yes"; then
6017 # only when CFLAGS was "" at the start, if the users wants to
6018 # override we shouldn't add default cflags, because they wouldn't
6019 # be able to turn off these options and set the CFLAGS wanted.
6021 # Check whether --enable-flto was given.
6022 if test "${enable_flto+set}" = set; then :
6023 enableval=$enable_flto;
6026 if test "x$enable_flto" != "xno"; then :
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
6029 $as_echo_n "checking if $CC supports -flto... " >&6; }
6031 CFLAGS="$CFLAGS -flto"
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6043 if ac_fn_c_try_link "$LINENO"; then :
6045 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6051 $as_echo "yes" >&6; }
6053 rm -f conftest conftest.c conftest.o
6056 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6059 rm -f core conftest.err conftest.$ac_objext \
6060 conftest$ac_exeext conftest.$ac_ext
6065 # Check whether --enable-pie was given.
6066 if test "${enable_pie+set}" = set; then :
6067 enableval=$enable_pie;
6070 if test "x$enable_pie" = "xyes"; then :
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
6073 $as_echo_n "checking if $CC supports PIE... " >&6; }
6074 BAKLDFLAGS="$LDFLAGS"
6076 LDFLAGS="$LDFLAGS -pie"
6077 CFLAGS="$CFLAGS -fPIE"
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6089 if ac_fn_c_try_link "$LINENO"; then :
6091 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6092 LDFLAGS="$BAKLDFLAGS"
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 $as_echo "no" >&6; }
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6097 $as_echo "yes" >&6; }
6099 rm -f conftest conftest.c conftest.o
6102 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 $as_echo "no" >&6; }
6105 rm -f core conftest.err conftest.$ac_objext \
6106 conftest$ac_exeext conftest.$ac_ext
6111 # Check whether --enable-relro_now was given.
6112 if test "${enable_relro_now+set}" = set; then :
6113 enableval=$enable_relro_now;
6116 if test "x$enable_relro_now" = "xyes"; then :
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6119 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6120 BAKLDFLAGS="$LDFLAGS"
6121 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6133 if ac_fn_c_try_link "$LINENO"; then :
6135 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6136 LDFLAGS="$BAKLDFLAGS"
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 $as_echo "no" >&6; }
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6141 $as_echo "yes" >&6; }
6143 rm -f conftest conftest.c conftest.o
6146 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6149 rm -f core conftest.err conftest.$ac_objext \
6150 conftest$ac_exeext conftest.$ac_ext
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6157 $as_echo_n "checking for inline... " >&6; }
6158 if ${ac_cv_c_inline+:} false; then :
6159 $as_echo_n "(cached) " >&6
6162 for ac_kw in inline __inline__ __inline; do
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6167 static $ac_kw foo_t static_foo () {return 0; }
6168 $ac_kw foo_t foo () {return 0; }
6172 if ac_fn_c_try_compile "$LINENO"; then :
6173 ac_cv_c_inline=$ac_kw
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 test "$ac_cv_c_inline" != no && break
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6181 $as_echo "$ac_cv_c_inline" >&6; }
6183 case $ac_cv_c_inline in
6186 case $ac_cv_c_inline in
6188 *) ac_val=$ac_cv_c_inline;;
6190 cat >>confdefs.h <<_ACEOF
6192 #define inline $ac_val
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6200 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6201 if ${ac_cv_c_format_attribute+:} false; then :
6202 $as_echo_n "(cached) " >&6
6204 ac_cv_c_format_attribute=no
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6208 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6209 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6221 if ac_fn_c_try_compile "$LINENO"; then :
6222 ac_cv_c_format_attribute="yes"
6224 ac_cv_c_format_attribute="no"
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6232 $as_echo "$ac_cv_c_format_attribute" >&6; }
6233 if test $ac_cv_c_format_attribute = yes; then
6235 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6241 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6242 if ${ac_cv_c_unused_attribute+:} false; then :
6243 $as_echo_n "(cached) " >&6
6245 ac_cv_c_unused_attribute=no
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6249 void f (char *u __attribute__((unused)));
6261 if ac_fn_c_try_compile "$LINENO"; then :
6262 ac_cv_c_unused_attribute="yes"
6264 ac_cv_c_unused_attribute="no"
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6274 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6275 if test $ac_cv_c_unused_attribute = yes; then
6277 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6285 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6286 if ${ac_cv_c_weak_attribute+:} false; then :
6287 $as_echo_n "(cached) " >&6
6289 ac_cv_c_weak_attribute=no
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6293 __attribute__((weak)) void f(int x) { printf("%d", x); }
6305 if ac_fn_c_try_compile "$LINENO"; then :
6306 ac_cv_c_weak_attribute="yes"
6308 ac_cv_c_weak_attribute="no"
6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6316 $as_echo "$ac_cv_c_weak_attribute" >&6; }
6317 if test $ac_cv_c_weak_attribute = yes; then
6319 $as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6322 $as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6330 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6331 if ${ac_cv_c_noreturn_attribute+:} false; then :
6332 $as_echo_n "(cached) " >&6
6334 ac_cv_c_noreturn_attribute=no
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6338 __attribute__((noreturn)) void f(int x) { printf("%d", x); }
6350 if ac_fn_c_try_compile "$LINENO"; then :
6351 ac_cv_c_noreturn_attribute="yes"
6353 ac_cv_c_noreturn_attribute="no"
6355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
6361 $as_echo "$ac_cv_c_noreturn_attribute" >&6; }
6362 if test $ac_cv_c_noreturn_attribute = yes; then
6364 $as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
6367 $as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
6372 if test "$srcdir" != "."; then
6373 CPPFLAGS="$CPPFLAGS -I$srcdir"
6380 for ac_prog in flex lex
6382 # Extract the first word of "$ac_prog", so it can be a program name with args.
6383 set dummy $ac_prog; ac_word=$2
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6385 $as_echo_n "checking for $ac_word... " >&6; }
6386 if ${ac_cv_prog_LEX+:} false; then :
6387 $as_echo_n "(cached) " >&6
6389 if test -n "$LEX"; then
6390 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399 ac_cv_prog_LEX="$ac_prog"
6400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 if test -n "$LEX"; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6412 $as_echo "$LEX" >&6; }
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6419 test -n "$LEX" && break
6421 test -n "$LEX" || LEX=":"
6423 if test "x$LEX" != "x:"; then
6424 cat >conftest.l <<_ACEOF
6430 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6431 yyless ((input () != 0)); }
6432 f { unput (yytext[0]); }
6433 . { BEGIN INITIAL; }
6435 #ifdef YYTEXT_POINTER
6436 extern char *yytext;
6441 return ! yylex () + ! yywrap ();
6444 { { ac_try="$LEX conftest.l"
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6450 $as_echo "$ac_try_echo"; } >&5
6451 (eval "$LEX conftest.l") 2>&5
6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; }
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6456 $as_echo_n "checking lex output file root... " >&6; }
6457 if ${ac_cv_prog_lex_root+:} false; then :
6458 $as_echo_n "(cached) " >&6
6461 if test -f lex.yy.c; then
6462 ac_cv_prog_lex_root=lex.yy
6463 elif test -f lexyy.c; then
6464 ac_cv_prog_lex_root=lexyy
6466 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6470 $as_echo "$ac_cv_prog_lex_root" >&6; }
6471 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6473 if test -z "${LEXLIB+set}"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6475 $as_echo_n "checking lex library... " >&6; }
6476 if ${ac_cv_lib_lex+:} false; then :
6477 $as_echo_n "(cached) " >&6
6481 ac_cv_lib_lex='none needed'
6482 for ac_lib in '' -lfl -ll; do
6483 LIBS="$ac_lib $ac_save_LIBS"
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6486 `cat $LEX_OUTPUT_ROOT.c`
6488 if ac_fn_c_try_link "$LINENO"; then :
6489 ac_cv_lib_lex=$ac_lib
6491 rm -f core conftest.err conftest.$ac_objext \
6492 conftest$ac_exeext conftest.$ac_ext
6493 test "$ac_cv_lib_lex" != 'none needed' && break
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6499 $as_echo "$ac_cv_lib_lex" >&6; }
6500 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6505 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6506 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6507 $as_echo_n "(cached) " >&6
6509 # POSIX says lex can declare yytext either as a pointer or an array; the
6510 # default is implementation-dependent. Figure out which it is, since
6511 # not all implementations provide the %pointer and %array declarations.
6512 ac_cv_prog_lex_yytext_pointer=no
6514 LIBS="$LEXLIB $ac_save_LIBS"
6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6518 #define YYTEXT_POINTER 1
6519 `cat $LEX_OUTPUT_ROOT.c`
6521 if ac_fn_c_try_link "$LINENO"; then :
6522 ac_cv_prog_lex_yytext_pointer=yes
6524 rm -f core conftest.err conftest.$ac_objext \
6525 conftest$ac_exeext conftest.$ac_ext
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6530 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6531 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6533 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6536 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6539 if test "$LEX" != "" -a "$LEX" != ":"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6542 $as_echo_n "checking for yylex_destroy... " >&6; }
6543 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6545 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6548 $as_echo "yes" >&6; }
6549 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 $as_echo "no" >&6; };
6555 if test "$LEX" != "" -a "$LEX" != ":"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
6558 $as_echo_n "checking for lex %option... " >&6; }
6559 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6564 $as_echo "yes" >&6; }
6565 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; };
6571 for ac_prog in 'bison -y' byacc
6573 # Extract the first word of "$ac_prog", so it can be a program name with args.
6574 set dummy $ac_prog; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if ${ac_cv_prog_YACC+:} false; then :
6578 $as_echo_n "(cached) " >&6
6580 if test -n "$YACC"; then
6581 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590 ac_cv_prog_YACC="$ac_prog"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 YACC=$ac_cv_prog_YACC
6601 if test -n "$YACC"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6603 $as_echo "$YACC" >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6610 test -n "$YACC" && break
6612 test -n "$YACC" || YACC="yacc"
6614 # Extract the first word of "doxygen", so it can be a program name with args.
6615 set dummy doxygen; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if ${ac_cv_prog_doxygen+:} false; then :
6619 $as_echo_n "(cached) " >&6
6621 if test -n "$doxygen"; then
6622 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631 ac_cv_prog_doxygen="doxygen"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 doxygen=$ac_cv_prog_doxygen
6642 if test -n "$doxygen"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6644 $as_echo "$doxygen" >&6; }
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6651 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}strip; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_STRIP+:} false; then :
6657 $as_echo_n "(cached) " >&6
6659 if test -n "$STRIP"; then
6660 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 STRIP=$ac_cv_prog_STRIP
6680 if test -n "$STRIP"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6682 $as_echo "$STRIP" >&6; }
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6690 if test -z "$ac_cv_prog_STRIP"; then
6692 # Extract the first word of "strip", so it can be a program name with args.
6693 set dummy strip; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6697 $as_echo_n "(cached) " >&6
6699 if test -n "$ac_ct_STRIP"; then
6700 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_ac_ct_STRIP="strip"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6720 if test -n "$ac_ct_STRIP"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6722 $as_echo "$ac_ct_STRIP" >&6; }
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6728 if test "x$ac_ct_STRIP" = x; then
6731 case $cross_compiling:$ac_tool_warned in
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6735 ac_tool_warned=yes ;;
6740 STRIP="$ac_cv_prog_STRIP"
6744 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6745 if test -f "$ac_dir/install-sh"; then
6747 ac_install_sh="$ac_aux_dir/install-sh -c"
6749 elif test -f "$ac_dir/install.sh"; then
6751 ac_install_sh="$ac_aux_dir/install.sh -c"
6753 elif test -f "$ac_dir/shtool"; then
6755 ac_install_sh="$ac_aux_dir/shtool install -c"
6759 if test -z "$ac_aux_dir"; then
6760 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6763 # These three variables are undocumented and unsupported,
6764 # and are intended to be withdrawn in a future Autoconf release.
6765 # They can cause serious problems if a builder's source tree is in a directory
6766 # whose full name contains unusual characters.
6767 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6768 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6769 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6772 # Make sure we can run config.sub.
6773 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6774 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6777 $as_echo_n "checking build system type... " >&6; }
6778 if ${ac_cv_build+:} false; then :
6779 $as_echo_n "(cached) " >&6
6781 ac_build_alias=$build_alias
6782 test "x$ac_build_alias" = x &&
6783 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6784 test "x$ac_build_alias" = x &&
6785 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6786 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6787 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6791 $as_echo "$ac_cv_build" >&6; }
6792 case $ac_cv_build in
6794 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6797 ac_save_IFS=$IFS; IFS='-'
6803 # Remember, the first character of IFS is used to create $*,
6804 # except with old shells:
6807 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6811 $as_echo_n "checking host system type... " >&6; }
6812 if ${ac_cv_host+:} false; then :
6813 $as_echo_n "(cached) " >&6
6815 if test "x$host_alias" = x; then
6816 ac_cv_host=$ac_cv_build
6818 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6819 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6824 $as_echo "$ac_cv_host" >&6; }
6827 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6830 ac_save_IFS=$IFS; IFS='-'
6836 # Remember, the first character of IFS is used to create $*,
6837 # except with old shells:
6840 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6844 # skip these tests, we do not need them.
6853 # always use ./libtool unless override from commandline (libtool=mylibtool)
6854 if test -z "$libtool"; then
6858 # avoid libtool max commandline length test on systems that fork slowly.
6860 if echo "$host_os" | grep "sunos4" >/dev/null; then
6861 lt_cv_sys_max_cmd_len=32750;
6863 if test -n "$ac_tool_prefix"; then
6864 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6865 set dummy ${ac_tool_prefix}ar; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if ${ac_cv_path_AR+:} false; then :
6869 $as_echo_n "(cached) " >&6
6873 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 if test -n "$AR"; then
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6897 $as_echo "$AR" >&6; }
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6905 if test -z "$ac_cv_path_AR"; then
6907 # Extract the first word of "ar", so it can be a program name with args.
6908 set dummy ar; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if ${ac_cv_path_ac_pt_AR+:} false; then :
6912 $as_echo_n "(cached) " >&6
6916 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 ac_pt_AR=$ac_cv_path_ac_pt_AR
6938 if test -n "$ac_pt_AR"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6940 $as_echo "$ac_pt_AR" >&6; }
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6946 if test "x$ac_pt_AR" = x; then
6949 case $cross_compiling:$ac_tool_warned in
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953 ac_tool_warned=yes ;;
6961 if test $AR = false; then
6962 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6968 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6973 macro_version='2.4.6'
6974 macro_revision='2.4.6'
6988 ltmain=$ac_aux_dir/ltmain.sh
6990 # Backslashify metacharacters that are still active within
6991 # double-quoted strings.
6992 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6994 # Same as above, but do not quote variable references.
6995 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6997 # Sed substitution to delay expansion of an escaped shell variable in a
6998 # double_quote_subst'ed string.
6999 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7001 # Sed substitution to delay expansion of an escaped single quote.
7002 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7004 # Sed substitution to avoid accidental globbing in evaled expressions
7005 no_glob_subst='s/\*/\\\*/g'
7007 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7008 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7009 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7012 $as_echo_n "checking how to print strings... " >&6; }
7013 # Test print first, because it will be a builtin if present.
7014 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7015 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7017 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7020 # Use this function as a fallback that always works.
7021 func_fallback_echo ()
7023 eval 'cat <<_LTECHO_EOF
7027 ECHO='func_fallback_echo'
7030 # func_echo_all arg...
7031 # Invoke $ECHO with all args, space-separated.
7038 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7039 $as_echo "printf" >&6; } ;;
7040 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7041 $as_echo "print -r" >&6; } ;;
7042 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7043 $as_echo "cat" >&6; } ;;
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7060 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7061 if ${ac_cv_path_SED+:} false; then :
7062 $as_echo_n "(cached) " >&6
7064 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7065 for ac_i in 1 2 3 4 5 6 7; do
7066 ac_script="$ac_script$as_nl$ac_script"
7068 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7069 { ac_script=; unset ac_script;}
7070 if test -z "$SED"; then
7071 ac_path_SED_found=false
7072 # Loop through the user's path and test for each of PROGNAME-LIST
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 test -z "$as_dir" && as_dir=.
7078 for ac_prog in sed gsed; do
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7081 as_fn_executable_p "$ac_path_SED" || continue
7082 # Check for GNU ac_path_SED and select it if it is found.
7083 # Check for GNU $ac_path_SED
7084 case `"$ac_path_SED" --version 2>&1` in
7086 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7089 $as_echo_n 0123456789 >"conftest.in"
7092 cat "conftest.in" "conftest.in" >"conftest.tmp"
7093 mv "conftest.tmp" "conftest.in"
7094 cp "conftest.in" "conftest.nl"
7095 $as_echo '' >> "conftest.nl"
7096 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7098 as_fn_arith $ac_count + 1 && ac_count=$as_val
7099 if test $ac_count -gt ${ac_path_SED_max-0}; then
7100 # Best one so far, save it but keep looking for a better one
7101 ac_cv_path_SED="$ac_path_SED"
7102 ac_path_SED_max=$ac_count
7104 # 10*(2^10) chars as input seems more than enough
7105 test $ac_count -gt 10 && break
7107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7110 $ac_path_SED_found && break 3
7115 if test -z "$ac_cv_path_SED"; then
7116 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7124 $as_echo "$ac_cv_path_SED" >&6; }
7125 SED="$ac_cv_path_SED"
7128 test -z "$SED" && SED=sed
7129 Xsed="$SED -e 1s/^X//"
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7142 $as_echo_n "checking for fgrep... " >&6; }
7143 if ${ac_cv_path_FGREP+:} false; then :
7144 $as_echo_n "(cached) " >&6
7146 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7147 then ac_cv_path_FGREP="$GREP -F"
7149 if test -z "$FGREP"; then
7150 ac_path_FGREP_found=false
7151 # Loop through the user's path and test for each of PROGNAME-LIST
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7156 test -z "$as_dir" && as_dir=.
7157 for ac_prog in fgrep; do
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7160 as_fn_executable_p "$ac_path_FGREP" || continue
7161 # Check for GNU ac_path_FGREP and select it if it is found.
7162 # Check for GNU $ac_path_FGREP
7163 case `"$ac_path_FGREP" --version 2>&1` in
7165 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7168 $as_echo_n 0123456789 >"conftest.in"
7171 cat "conftest.in" "conftest.in" >"conftest.tmp"
7172 mv "conftest.tmp" "conftest.in"
7173 cp "conftest.in" "conftest.nl"
7174 $as_echo 'FGREP' >> "conftest.nl"
7175 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7177 as_fn_arith $ac_count + 1 && ac_count=$as_val
7178 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7179 # Best one so far, save it but keep looking for a better one
7180 ac_cv_path_FGREP="$ac_path_FGREP"
7181 ac_path_FGREP_max=$ac_count
7183 # 10*(2^10) chars as input seems more than enough
7184 test $ac_count -gt 10 && break
7186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7189 $ac_path_FGREP_found && break 3
7194 if test -z "$ac_cv_path_FGREP"; then
7195 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7198 ac_cv_path_FGREP=$FGREP
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7204 $as_echo "$ac_cv_path_FGREP" >&6; }
7205 FGREP="$ac_cv_path_FGREP"
7208 test -z "$GREP" && GREP=grep
7228 # Check whether --with-gnu-ld was given.
7229 if test "${with_gnu_ld+set}" = set; then :
7230 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7236 if test yes = "$GCC"; then
7237 # Check if gcc -print-prog-name=ld gives a path.
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7239 $as_echo_n "checking for ld used by $CC... " >&6; }
7242 # gcc leaves a trailing carriage return, which upsets mingw
7243 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7245 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7248 # Accept absolute paths.
7250 re_direlt='/[^/][^/]*/\.\./'
7251 # Canonicalize the pathname of ld
7252 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7253 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7254 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7256 test -z "$LD" && LD=$ac_prog
7259 # If it fails, then pretend we aren't using GCC.
7263 # If it is relative, then search for the first ld in PATH.
7267 elif test yes = "$with_gnu_ld"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7269 $as_echo_n "checking for GNU ld... " >&6; }
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7272 $as_echo_n "checking for non-GNU ld... " >&6; }
7274 if ${lt_cv_path_LD+:} false; then :
7275 $as_echo_n "(cached) " >&6
7277 if test -z "$LD"; then
7278 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7279 for ac_dir in $PATH; do
7281 test -z "$ac_dir" && ac_dir=.
7282 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7283 lt_cv_path_LD=$ac_dir/$ac_prog
7284 # Check to see if the program is GNU ld. I'd rather use --version,
7285 # but apparently some variants of GNU ld only accept -v.
7286 # Break only if it was the GNU/non-GNU ld that we prefer.
7287 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7288 *GNU* | *'with BFD'*)
7289 test no != "$with_gnu_ld" && break
7292 test yes != "$with_gnu_ld" && break
7299 lt_cv_path_LD=$LD # Let the user override the test with a path.
7304 if test -n "$LD"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7306 $as_echo "$LD" >&6; }
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7311 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7313 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7314 if ${lt_cv_prog_gnu_ld+:} false; then :
7315 $as_echo_n "(cached) " >&6
7317 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7318 case `$LD -v 2>&1 </dev/null` in
7319 *GNU* | *'with BFD'*)
7320 lt_cv_prog_gnu_ld=yes
7323 lt_cv_prog_gnu_ld=no
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7328 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7329 with_gnu_ld=$lt_cv_prog_gnu_ld
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7340 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7341 if ${lt_cv_path_NM+:} false; then :
7342 $as_echo_n "(cached) " >&6
7344 if test -n "$NM"; then
7345 # Let the user override the test.
7348 lt_nm_to_check=${ac_tool_prefix}nm
7349 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7350 lt_nm_to_check="$lt_nm_to_check nm"
7352 for lt_tmp_nm in $lt_nm_to_check; do
7353 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7354 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7356 test -z "$ac_dir" && ac_dir=.
7357 tmp_nm=$ac_dir/$lt_tmp_nm
7358 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7359 # Check to see if the nm accepts a BSD-compat flag.
7360 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7361 # nm: unknown option "B" ignored
7362 # Tru64's nm complains that /dev/null is an invalid object file
7363 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7365 mingw*) lt_bad_file=conftest.nm/nofile ;;
7366 *) lt_bad_file=/dev/null ;;
7368 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7369 *$lt_bad_file* | *'Invalid file or object type'*)
7370 lt_cv_path_NM="$tmp_nm -B"
7374 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7376 lt_cv_path_NM="$tmp_nm -p"
7380 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7381 continue # so that we can try to find one that supports BSD flags
7390 : ${lt_cv_path_NM=no}
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7394 $as_echo "$lt_cv_path_NM" >&6; }
7395 if test no != "$lt_cv_path_NM"; then
7398 # Didn't find any BSD compatible name lister, look for dumpbin.
7399 if test -n "$DUMPBIN"; then :
7400 # Let the user override the test.
7402 if test -n "$ac_tool_prefix"; then
7403 for ac_prog in dumpbin "link -dump"
7405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if ${ac_cv_prog_DUMPBIN+:} false; then :
7410 $as_echo_n "(cached) " >&6
7412 if test -n "$DUMPBIN"; then
7413 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7422 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 DUMPBIN=$ac_cv_prog_DUMPBIN
7433 if test -n "$DUMPBIN"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7435 $as_echo "$DUMPBIN" >&6; }
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7442 test -n "$DUMPBIN" && break
7445 if test -z "$DUMPBIN"; then
7446 ac_ct_DUMPBIN=$DUMPBIN
7447 for ac_prog in dumpbin "link -dump"
7449 # Extract the first word of "$ac_prog", so it can be a program name with args.
7450 set dummy $ac_prog; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7454 $as_echo_n "(cached) " >&6
7456 if test -n "$ac_ct_DUMPBIN"; then
7457 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7466 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7477 if test -n "$ac_ct_DUMPBIN"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7479 $as_echo "$ac_ct_DUMPBIN" >&6; }
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7486 test -n "$ac_ct_DUMPBIN" && break
7489 if test "x$ac_ct_DUMPBIN" = x; then
7492 case $cross_compiling:$ac_tool_warned in
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7496 ac_tool_warned=yes ;;
7498 DUMPBIN=$ac_ct_DUMPBIN
7502 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7504 DUMPBIN="$DUMPBIN -symbols -headers"
7512 if test : != "$DUMPBIN"; then
7516 test -z "$NM" && NM=nm
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7524 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7525 if ${lt_cv_nm_interface+:} false; then :
7526 $as_echo_n "(cached) " >&6
7528 lt_cv_nm_interface="BSD nm"
7529 echo "int some_variable = 0;" > conftest.$ac_ext
7530 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7531 (eval "$ac_compile" 2>conftest.err)
7532 cat conftest.err >&5
7533 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7534 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7535 cat conftest.err >&5
7536 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7537 cat conftest.out >&5
7538 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7539 lt_cv_nm_interface="MS dumpbin"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7544 $as_echo "$lt_cv_nm_interface" >&6; }
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7547 $as_echo_n "checking whether ln -s works... " >&6; }
7549 if test "$LN_S" = "ln -s"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7551 $as_echo "yes" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7554 $as_echo "no, using $LN_S" >&6; }
7557 # find the maximum length of command line arguments
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7559 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7560 if ${lt_cv_sys_max_cmd_len+:} false; then :
7561 $as_echo_n "(cached) " >&6
7568 # On DJGPP, this test can blow up pretty badly due to problems in libc
7569 # (any single argument exceeding 2000 bytes causes a buffer overrun
7570 # during glob expansion). Even if it were fixed, the result of this
7571 # check would be larger than it should be.
7572 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7576 # Under GNU Hurd, this test is not required because there is
7577 # no limit to the length of command line arguments.
7578 # Libtool will interpret -1 as no limit whatsoever
7579 lt_cv_sys_max_cmd_len=-1;
7582 cygwin* | mingw* | cegcc*)
7583 # On Win9x/ME, this test blows up -- it succeeds, but takes
7584 # about 5 minutes as the teststring grows exponentially.
7585 # Worse, since 9x/ME are not pre-emptively multitasking,
7586 # you end up with a "frozen" computer, even though with patience
7587 # the test eventually succeeds (with a max line length of 256k).
7588 # Instead, let's just punt: use the minimum linelength reported by
7589 # all of the supported platforms: 8192 (on NT/2K/XP).
7590 lt_cv_sys_max_cmd_len=8192;
7594 # On MiNT this can take a long time and run out of memory.
7595 lt_cv_sys_max_cmd_len=8192;
7599 # On AmigaOS with pdksh, this test takes hours, literally.
7600 # So we just punt and use a minimum line length of 8192.
7601 lt_cv_sys_max_cmd_len=8192;
7604 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7605 # This has been around since 386BSD, at least. Likely further.
7606 if test -x /sbin/sysctl; then
7607 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7608 elif test -x /usr/sbin/sysctl; then
7609 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7611 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7613 # And add a safety zone
7614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7619 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7620 lt_cv_sys_max_cmd_len=196608
7624 # The test takes a long time on OS/2.
7625 lt_cv_sys_max_cmd_len=8192
7629 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7630 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7631 # nice to cause kernel panics so lets avoid the loop below.
7632 # First set a reasonable default.
7633 lt_cv_sys_max_cmd_len=16384
7635 if test -x /sbin/sysconfig; then
7636 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7637 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7642 lt_cv_sys_max_cmd_len=102400
7644 sysv5* | sco5v6* | sysv4.2uw2*)
7645 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7646 if test -n "$kargmax"; then
7647 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7649 lt_cv_sys_max_cmd_len=32768
7653 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7654 if test -n "$lt_cv_sys_max_cmd_len" && \
7655 test undefined != "$lt_cv_sys_max_cmd_len"; then
7656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7659 # Make teststring a little bigger before we do anything with it.
7660 # a 1K string should be a reasonable start.
7661 for i in 1 2 3 4 5 6 7 8; do
7662 teststring=$teststring$teststring
7664 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7665 # If test is not a shell built-in, we'll probably end up computing a
7666 # maximum length that is only half of the actual maximum length, but
7668 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7669 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7670 test 17 != "$i" # 1/2 MB should be enough
7673 teststring=$teststring$teststring
7675 # Only check the string length outside the loop.
7676 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7678 # Add a significant safety factor because C++ compilers can tack on
7679 # massive amounts of additional arguments before passing them to the
7680 # linker. It appears as though 1/2 is a usable value.
7681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7688 if test -n "$lt_cv_sys_max_cmd_len"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7690 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7693 $as_echo "none" >&6; }
7695 max_cmd_len=$lt_cv_sys_max_cmd_len
7706 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7716 # test EBCDIC or ASCII
7717 case `echo X|tr X '\101'` in
7718 A) # ASCII based system
7719 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7720 lt_SP2NL='tr \040 \012'
7721 lt_NL2SP='tr \015\012 \040\040'
7723 *) # EBCDIC based system
7724 lt_SP2NL='tr \100 \n'
7725 lt_NL2SP='tr \r\n \100\100'
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7738 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7739 if ${lt_cv_to_host_file_cmd+:} false; then :
7740 $as_echo_n "(cached) " >&6
7745 *-*-mingw* ) # actually msys
7746 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7749 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7751 * ) # otherwise, assume *nix
7752 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7758 *-*-mingw* ) # actually msys
7759 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7762 lt_cv_to_host_file_cmd=func_convert_file_noop
7764 * ) # otherwise, assume *nix
7765 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7769 * ) # unhandled hosts (and "normal" native builds)
7770 lt_cv_to_host_file_cmd=func_convert_file_noop
7776 to_host_file_cmd=$lt_cv_to_host_file_cmd
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7778 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7785 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7786 if ${lt_cv_to_tool_file_cmd+:} false; then :
7787 $as_echo_n "(cached) " >&6
7789 #assume ordinary cross tools, or native build.
7790 lt_cv_to_tool_file_cmd=func_convert_file_noop
7794 *-*-mingw* ) # actually msys
7795 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7803 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7805 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7812 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7813 if ${lt_cv_ld_reload_flag+:} false; then :
7814 $as_echo_n "(cached) " >&6
7816 lt_cv_ld_reload_flag='-r'
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7819 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7820 reload_flag=$lt_cv_ld_reload_flag
7821 case $reload_flag in
7823 *) reload_flag=" $reload_flag" ;;
7825 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7827 cygwin* | mingw* | pw32* | cegcc*)
7828 if test yes != "$GCC"; then
7833 if test yes = "$GCC"; then
7834 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7836 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7849 if test -n "$ac_tool_prefix"; then
7850 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7851 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7853 $as_echo_n "checking for $ac_word... " >&6; }
7854 if ${ac_cv_prog_OBJDUMP+:} false; then :
7855 $as_echo_n "(cached) " >&6
7857 if test -n "$OBJDUMP"; then
7858 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7867 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 OBJDUMP=$ac_cv_prog_OBJDUMP
7878 if test -n "$OBJDUMP"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7880 $as_echo "$OBJDUMP" >&6; }
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883 $as_echo "no" >&6; }
7888 if test -z "$ac_cv_prog_OBJDUMP"; then
7889 ac_ct_OBJDUMP=$OBJDUMP
7890 # Extract the first word of "objdump", so it can be a program name with args.
7891 set dummy objdump; ac_word=$2
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893 $as_echo_n "checking for $ac_word... " >&6; }
7894 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7895 $as_echo_n "(cached) " >&6
7897 if test -n "$ac_ct_OBJDUMP"; then
7898 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7907 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7918 if test -n "$ac_ct_OBJDUMP"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7920 $as_echo "$ac_ct_OBJDUMP" >&6; }
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 $as_echo "no" >&6; }
7926 if test "x$ac_ct_OBJDUMP" = x; then
7929 case $cross_compiling:$ac_tool_warned in
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7933 ac_tool_warned=yes ;;
7935 OBJDUMP=$ac_ct_OBJDUMP
7938 OBJDUMP="$ac_cv_prog_OBJDUMP"
7941 test -z "$OBJDUMP" && OBJDUMP=objdump
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7952 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7953 if ${lt_cv_deplibs_check_method+:} false; then :
7954 $as_echo_n "(cached) " >&6
7956 lt_cv_file_magic_cmd='$MAGIC_CMD'
7957 lt_cv_file_magic_test_file=
7958 lt_cv_deplibs_check_method='unknown'
7959 # Need to set the preceding variable on all platforms that support
7960 # interlibrary dependencies.
7961 # 'none' -- dependencies not supported.
7962 # 'unknown' -- same as none, but documents that we really don't know.
7963 # 'pass_all' -- all dependencies passed with no checks.
7964 # 'test_compile' -- check by making test program.
7965 # 'file_magic [[regex]]' -- check by looking for files in library path
7966 # that responds to the $file_magic_cmd with a given extended regex.
7967 # If you have 'file' or equivalent on your system and you're not sure
7968 # whether 'pass_all' will *always* work, you probably want this one.
7972 lt_cv_deplibs_check_method=pass_all
7976 lt_cv_deplibs_check_method=pass_all
7980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7981 lt_cv_file_magic_cmd='/usr/bin/file -L'
7982 lt_cv_file_magic_test_file=/shlib/libc.so
7986 # func_win32_libid is a shell function defined in ltmain.sh
7987 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7988 lt_cv_file_magic_cmd='func_win32_libid'
7992 # Base MSYS/MinGW do not provide the 'file' command needed by
7993 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7994 # unless we find 'file', for example because we are cross-compiling.
7995 if ( file / ) >/dev/null 2>&1; then
7996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7997 lt_cv_file_magic_cmd='func_win32_libid'
7999 # Keep this pattern in sync with the one in func_win32_libid.
8000 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8001 lt_cv_file_magic_cmd='$OBJDUMP -f'
8006 # use the weaker test based on 'objdump'. See mingw*.
8007 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8008 lt_cv_file_magic_cmd='$OBJDUMP -f'
8011 darwin* | rhapsody*)
8012 lt_cv_deplibs_check_method=pass_all
8015 freebsd* | dragonfly*)
8016 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8019 # Not sure whether the presence of OpenBSD here was a mistake.
8020 # Let's accept both of them until this is cleared up.
8021 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8022 lt_cv_file_magic_cmd=/usr/bin/file
8023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8027 lt_cv_deplibs_check_method=pass_all
8032 lt_cv_deplibs_check_method=pass_all
8035 hpux10.20* | hpux11*)
8036 lt_cv_file_magic_cmd=/usr/bin/file
8039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8040 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8043 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]'
8044 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8048 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8054 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8058 irix5* | irix6* | nonstopux*)
8060 *-32|*"-32 ") libmagic=32-bit;;
8061 *-n32|*"-n32 ") libmagic=N32;;
8062 *-64|*"-64 ") libmagic=64-bit;;
8063 *) libmagic=never-match;;
8065 lt_cv_deplibs_check_method=pass_all
8068 # This must be glibc/ELF.
8069 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8070 lt_cv_deplibs_check_method=pass_all
8074 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8083 lt_cv_file_magic_cmd=/usr/bin/file
8084 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8088 lt_cv_deplibs_check_method=pass_all
8092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8099 osf3* | osf4* | osf5*)
8100 lt_cv_deplibs_check_method=pass_all
8104 lt_cv_deplibs_check_method=pass_all
8108 lt_cv_deplibs_check_method=pass_all
8111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8112 lt_cv_deplibs_check_method=pass_all
8116 case $host_vendor in
8118 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]'
8119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8122 lt_cv_deplibs_check_method=pass_all
8125 lt_cv_file_magic_cmd='/bin/file'
8126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8129 lt_cv_file_magic_cmd='/bin/file'
8130 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8131 lt_cv_file_magic_test_file=/lib/libc.so
8134 lt_cv_deplibs_check_method=pass_all
8137 lt_cv_deplibs_check_method=pass_all
8143 lt_cv_deplibs_check_method=pass_all
8146 lt_cv_deplibs_check_method=pass_all
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8152 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8156 if test "$build" = "$host"; then
8159 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8162 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8168 file_magic_cmd=$lt_cv_file_magic_cmd
8169 deplibs_check_method=$lt_cv_deplibs_check_method
8170 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8193 if test -n "$ac_tool_prefix"; then
8194 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8195 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 $as_echo_n "checking for $ac_word... " >&6; }
8198 if ${ac_cv_prog_DLLTOOL+:} false; then :
8199 $as_echo_n "(cached) " >&6
8201 if test -n "$DLLTOOL"; then
8202 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8211 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 DLLTOOL=$ac_cv_prog_DLLTOOL
8222 if test -n "$DLLTOOL"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8224 $as_echo "$DLLTOOL" >&6; }
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8232 if test -z "$ac_cv_prog_DLLTOOL"; then
8233 ac_ct_DLLTOOL=$DLLTOOL
8234 # Extract the first word of "dlltool", so it can be a program name with args.
8235 set dummy dlltool; ac_word=$2
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237 $as_echo_n "checking for $ac_word... " >&6; }
8238 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8239 $as_echo_n "(cached) " >&6
8241 if test -n "$ac_ct_DLLTOOL"; then
8242 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 test -z "$as_dir" && as_dir=.
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8251 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8261 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8262 if test -n "$ac_ct_DLLTOOL"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8264 $as_echo "$ac_ct_DLLTOOL" >&6; }
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 $as_echo "no" >&6; }
8270 if test "x$ac_ct_DLLTOOL" = x; then
8273 case $cross_compiling:$ac_tool_warned in
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8277 ac_tool_warned=yes ;;
8279 DLLTOOL=$ac_ct_DLLTOOL
8282 DLLTOOL="$ac_cv_prog_DLLTOOL"
8285 test -z "$DLLTOOL" && DLLTOOL=dlltool
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8297 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8298 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8299 $as_echo_n "(cached) " >&6
8301 lt_cv_sharedlib_from_linklib_cmd='unknown'
8304 cygwin* | mingw* | pw32* | cegcc*)
8305 # two different shell functions defined in ltmain.sh;
8306 # decide which one to use based on capabilities of $DLLTOOL
8307 case `$DLLTOOL --help 2>&1` in
8308 *--identify-strict*)
8309 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8312 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8317 # fallback: assume linklib IS sharedlib
8318 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8324 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8325 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8326 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8334 if test -n "$ac_tool_prefix"; then
8337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if ${ac_cv_prog_AR+:} false; then :
8342 $as_echo_n "(cached) " >&6
8344 if test -n "$AR"; then
8345 ac_cv_prog_AR="$AR" # Let the user override the test.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8354 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 if test -n "$AR"; then
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8367 $as_echo "$AR" >&6; }
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8374 test -n "$AR" && break
8377 if test -z "$AR"; then
8381 # Extract the first word of "$ac_prog", so it can be a program name with args.
8382 set dummy $ac_prog; ac_word=$2
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8386 $as_echo_n "(cached) " >&6
8388 if test -n "$ac_ct_AR"; then
8389 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8398 ac_cv_prog_ac_ct_AR="$ac_prog"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8409 if test -n "$ac_ct_AR"; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8411 $as_echo "$ac_ct_AR" >&6; }
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8418 test -n "$ac_ct_AR" && break
8421 if test "x$ac_ct_AR" = x; then
8424 case $cross_compiling:$ac_tool_warned in
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8428 ac_tool_warned=yes ;;
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8448 $as_echo_n "checking for archiver @FILE support... " >&6; }
8449 if ${lt_cv_ar_at_file+:} false; then :
8450 $as_echo_n "(cached) " >&6
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8464 if ac_fn_c_try_compile "$LINENO"; then :
8465 echo conftest.$ac_objext > conftest.lst
8466 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8468 (eval $lt_ar_try) 2>&5
8470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8471 test $ac_status = 0; }
8472 if test 0 -eq "$ac_status"; then
8473 # Ensure the archiver fails upon bogus file names.
8474 rm -f conftest.$ac_objext libconftest.a
8475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8476 (eval $lt_ar_try) 2>&5
8478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8479 test $ac_status = 0; }
8480 if test 0 -ne "$ac_status"; then
8484 rm -f conftest.* libconftest.a
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8491 $as_echo "$lt_cv_ar_at_file" >&6; }
8493 if test no = "$lt_cv_ar_at_file"; then
8496 archiver_list_spec=$lt_cv_ar_at_file
8505 if test -n "$ac_tool_prefix"; then
8506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8507 set dummy ${ac_tool_prefix}strip; ac_word=$2
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 $as_echo_n "checking for $ac_word... " >&6; }
8510 if ${ac_cv_prog_STRIP+:} false; then :
8511 $as_echo_n "(cached) " >&6
8513 if test -n "$STRIP"; then
8514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 test -z "$as_dir" && as_dir=.
8521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8523 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 STRIP=$ac_cv_prog_STRIP
8534 if test -n "$STRIP"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8536 $as_echo "$STRIP" >&6; }
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539 $as_echo "no" >&6; }
8544 if test -z "$ac_cv_prog_STRIP"; then
8546 # Extract the first word of "strip", so it can be a program name with args.
8547 set dummy strip; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8551 $as_echo_n "(cached) " >&6
8553 if test -n "$ac_ct_STRIP"; then
8554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_ac_ct_STRIP="strip"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8574 if test -n "$ac_ct_STRIP"; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8576 $as_echo "$ac_ct_STRIP" >&6; }
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8582 if test "x$ac_ct_STRIP" = x; then
8585 case $cross_compiling:$ac_tool_warned in
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8589 ac_tool_warned=yes ;;
8594 STRIP="$ac_cv_prog_STRIP"
8597 test -z "$STRIP" && STRIP=:
8604 if test -n "$ac_tool_prefix"; then
8605 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8606 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if ${ac_cv_prog_RANLIB+:} false; then :
8610 $as_echo_n "(cached) " >&6
8612 if test -n "$RANLIB"; then
8613 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8622 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632 RANLIB=$ac_cv_prog_RANLIB
8633 if test -n "$RANLIB"; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8635 $as_echo "$RANLIB" >&6; }
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8643 if test -z "$ac_cv_prog_RANLIB"; then
8644 ac_ct_RANLIB=$RANLIB
8645 # Extract the first word of "ranlib", so it can be a program name with args.
8646 set dummy ranlib; ac_word=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8650 $as_echo_n "(cached) " >&6
8652 if test -n "$ac_ct_RANLIB"; then
8653 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662 ac_cv_prog_ac_ct_RANLIB="ranlib"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8673 if test -n "$ac_ct_RANLIB"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8675 $as_echo "$ac_ct_RANLIB" >&6; }
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8681 if test "x$ac_ct_RANLIB" = x; then
8684 case $cross_compiling:$ac_tool_warned in
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8688 ac_tool_warned=yes ;;
8690 RANLIB=$ac_ct_RANLIB
8693 RANLIB="$ac_cv_prog_RANLIB"
8696 test -z "$RANLIB" && RANLIB=:
8703 # Determine commands to create old-style static archives.
8704 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8705 old_postinstall_cmds='chmod 644 $oldlib'
8706 old_postuninstall_cmds=
8708 if test -n "$RANLIB"; then
8711 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8714 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8717 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8722 lock_old_archive_extraction=yes ;;
8724 lock_old_archive_extraction=no ;;
8747 for ac_prog in gawk mawk nawk awk
8749 # Extract the first word of "$ac_prog", so it can be a program name with args.
8750 set dummy $ac_prog; ac_word=$2
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752 $as_echo_n "checking for $ac_word... " >&6; }
8753 if ${ac_cv_prog_AWK+:} false; then :
8754 $as_echo_n "(cached) " >&6
8756 if test -n "$AWK"; then
8757 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8763 test -z "$as_dir" && as_dir=.
8764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8766 ac_cv_prog_AWK="$ac_prog"
8767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8777 if test -n "$AWK"; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8779 $as_echo "$AWK" >&6; }
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782 $as_echo "no" >&6; }
8786 test -n "$AWK" && break
8807 # If no C compiler was specified, use CC.
8810 # If no C compiler flags were specified, use CFLAGS.
8811 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8813 # Allow CC to be a program name with arguments.
8817 # Check for command to grab the raw symbol name followed by C symbol from nm.
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8819 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8820 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8821 $as_echo_n "(cached) " >&6
8824 # These are sane defaults that work on at least a few old systems.
8825 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8827 # Character class describing NM global symbol codes.
8828 symcode='[BCDEGRST]'
8830 # Regexp to match symbols that can be accessed directly from C.
8831 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8833 # Define system-specific variables.
8838 cygwin* | mingw* | pw32* | cegcc*)
8839 symcode='[ABCDGISTW]'
8842 if test ia64 = "$host_cpu"; then
8843 symcode='[ABCDEGRST]'
8847 symcode='[BCDEGRST]'
8850 symcode='[BCDEGQRST]'
8861 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8869 # If we're using GNU nm, then use its standard symbol codes.
8870 case `$NM -V 2>&1` in
8871 *GNU* | *'with BFD'*)
8872 symcode='[ABCDGIRSTW]' ;;
8875 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8876 # Gets list of data symbols to import.
8877 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8878 # Adjust the below global symbol transforms to fixup imported variables.
8879 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8880 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8881 lt_c_name_lib_hook="\
8882 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8883 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8885 # Disable hooks by default.
8886 lt_cv_sys_global_symbol_to_import=
8892 # Transform an extracted symbol line into a proper C declaration.
8893 # Some systems (esp. on ia64) link data and code symbols differently,
8894 # so use this general approach.
8895 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8897 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8898 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8900 # Transform an extracted symbol line into symbol name and symbol address
8901 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8903 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8904 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8906 # Transform an extracted symbol line into symbol name with lib prefix and
8908 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8909 $lt_c_name_lib_hook\
8910 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8911 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8912 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8914 # Handle CRLF in mingw tool chain
8918 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8922 # Try without a prefix underscore, then with it.
8923 for ac_symprfx in "" "_"; do
8925 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8926 symxfrm="\\1 $ac_symprfx\\2 \\2"
8928 # Write the raw and C identifiers.
8929 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8930 # Fake it for dumpbin and say T for any non-static function,
8931 # D for any global variable and I for any imported variable.
8932 # Also find C++ and __fastcall symbols from MSVC++,
8933 # which start with @ or ?.
8934 lt_cv_sys_global_symbol_pipe="$AWK '"\
8935 " {last_section=section; section=\$ 3};"\
8936 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8937 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8938 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8939 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8940 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8941 " \$ 0!~/External *\|/{next};"\
8942 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8943 " {if(hide[section]) next};"\
8944 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8945 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8946 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8947 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8948 " ' prfx=^$ac_symprfx"
8950 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8952 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8954 # Check to see that the pipe works correctly.
8958 cat > conftest.$ac_ext <<_LT_EOF
8963 void nm_test_func(void);
8964 void nm_test_func(void){}
8968 int main(){nm_test_var='a';nm_test_func();return(0);}
8971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8972 (eval $ac_compile) 2>&5
8974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8975 test $ac_status = 0; }; then
8976 # Now try to grab the symbols.
8978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8979 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8982 test $ac_status = 0; } && test -s "$nlist"; then
8983 # Try sorting and uniquifying the output.
8984 if sort "$nlist" | uniq > "$nlist"T; then
8985 mv -f "$nlist"T "$nlist"
8990 # Make sure that we snagged all the symbols we need.
8991 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8992 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8993 cat <<_LT_EOF > conftest.$ac_ext
8994 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8995 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8996 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8997 relocations are performed -- see ld's documentation on pseudo-relocs. */
8998 # define LT_DLSYM_CONST
8999 #elif defined __osf__
9000 /* This system does not cope well with relocations in const data. */
9001 # define LT_DLSYM_CONST
9003 # define LT_DLSYM_CONST const
9011 # Now generate the symbol file.
9012 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9014 cat <<_LT_EOF >> conftest.$ac_ext
9016 /* The mapping between symbol names and symbols. */
9017 LT_DLSYM_CONST struct {
9021 lt__PROGRAM__LTX_preloaded_symbols[] =
9023 { "@PROGRAM@", (void *) 0 },
9025 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9026 cat <<\_LT_EOF >> conftest.$ac_ext
9030 /* This works around a problem in FreeBSD linker */
9031 #ifdef FREEBSD_WORKAROUND
9032 static const void *lt_preloaded_setup() {
9033 return lt__PROGRAM__LTX_preloaded_symbols;
9041 # Now try linking the two files.
9042 mv conftest.$ac_objext conftstm.$ac_objext
9043 lt_globsym_save_LIBS=$LIBS
9044 lt_globsym_save_CFLAGS=$CFLAGS
9045 LIBS=conftstm.$ac_objext
9046 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9048 (eval $ac_link) 2>&5
9050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9051 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9054 LIBS=$lt_globsym_save_LIBS
9055 CFLAGS=$lt_globsym_save_CFLAGS
9057 echo "cannot find nm_test_func in $nlist" >&5
9060 echo "cannot find nm_test_var in $nlist" >&5
9063 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9066 echo "$progname: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9069 rm -rf conftest* conftst*
9071 # Do not use the global_symbol_pipe unless it works.
9072 if test yes = "$pipe_works"; then
9075 lt_cv_sys_global_symbol_pipe=
9081 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9082 lt_cv_sys_global_symbol_to_cdecl=
9084 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9086 $as_echo "failed" >&6; }
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9089 $as_echo "ok" >&6; }
9092 # Response file support.
9093 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9094 nm_file_list_spec='@'
9095 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9096 nm_file_list_spec='@'
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9136 $as_echo_n "checking for sysroot... " >&6; }
9138 # Check whether --with-sysroot was given.
9139 if test "${with_sysroot+set}" = set; then :
9140 withval=$with_sysroot;
9147 case $with_sysroot in #(
9149 if test yes = "$GCC"; then
9150 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9154 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9160 $as_echo "$with_sysroot" >&6; }
9161 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9166 $as_echo "${lt_sysroot:-no}" >&6; }
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9173 $as_echo_n "checking for a working dd... " >&6; }
9174 if ${ac_cv_path_lt_DD+:} false; then :
9175 $as_echo_n "(cached) " >&6
9177 printf 0123456789abcdef0123456789abcdef >conftest.i
9178 cat conftest.i conftest.i >conftest2.i
9180 if test -z "$lt_DD"; then
9181 ac_path_lt_DD_found=false
9182 # Loop through the user's path and test for each of PROGNAME-LIST
9183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187 test -z "$as_dir" && as_dir=.
9188 for ac_prog in dd; do
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9191 as_fn_executable_p "$ac_path_lt_DD" || continue
9192 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9193 cmp -s conftest.i conftest.out \
9194 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9196 $ac_path_lt_DD_found && break 3
9201 if test -z "$ac_cv_path_lt_DD"; then
9205 ac_cv_path_lt_DD=$lt_DD
9208 rm -f conftest.i conftest2.i conftest.out
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9211 $as_echo "$ac_cv_path_lt_DD" >&6; }
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9215 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9216 if ${lt_cv_truncate_bin+:} false; then :
9217 $as_echo_n "(cached) " >&6
9219 printf 0123456789abcdef0123456789abcdef >conftest.i
9220 cat conftest.i conftest.i >conftest2.i
9222 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9223 cmp -s conftest.i conftest.out \
9224 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9226 rm -f conftest.i conftest2.i conftest.out
9227 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9230 $as_echo "$lt_cv_truncate_bin" >&6; }
9238 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9241 for cc_temp in $*""; do
9243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9249 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9252 # Check whether --enable-libtool-lock was given.
9253 if test "${enable_libtool_lock+set}" = set; then :
9254 enableval=$enable_libtool_lock;
9257 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9259 # Some flags need to be propagated to the compiler or linker for good
9263 # Find out what ABI is being produced by ac_compile, and set mode
9264 # options accordingly.
9265 echo 'int i;' > conftest.$ac_ext
9266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9267 (eval $ac_compile) 2>&5
9269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9270 test $ac_status = 0; }; then
9271 case `/usr/bin/file conftest.$ac_objext` in
9283 # Find out what ABI is being produced by ac_compile, and set linker
9284 # options accordingly.
9285 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9287 (eval $ac_compile) 2>&5
9289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9290 test $ac_status = 0; }; then
9291 if test yes = "$lt_cv_prog_gnu_ld"; then
9292 case `/usr/bin/file conftest.$ac_objext` in
9294 LD="${LD-ld} -melf32bsmip"
9297 LD="${LD-ld} -melf32bmipn32"
9300 LD="${LD-ld} -melf64bmip"
9304 case `/usr/bin/file conftest.$ac_objext` in
9321 # Find out what ABI is being produced by ac_compile, and set linker
9322 # options accordingly.
9323 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9325 (eval $ac_compile) 2>&5
9327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9328 test $ac_status = 0; }; then
9330 case `/usr/bin/file conftest.$ac_objext` in
9338 case `/usr/bin/file conftest.$ac_objext` in
9340 emul="${emul}btsmip"
9343 emul="${emul}ltsmip"
9346 case `/usr/bin/file conftest.$ac_objext` in
9351 LD="${LD-ld} -m $emul"
9356 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9357 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9358 # Find out what ABI is being produced by ac_compile, and set linker
9359 # options accordingly. Note that the listed cases only cover the
9360 # situations where additional linker options are needed (such as when
9361 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9362 # vice versa); the common cases where no linker options are needed do
9363 # not appear in the list.
9364 echo 'int i;' > conftest.$ac_ext
9365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9366 (eval $ac_compile) 2>&5
9368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9369 test $ac_status = 0; }; then
9370 case `/usr/bin/file conftest.o` in
9373 x86_64-*kfreebsd*-gnu)
9374 LD="${LD-ld} -m elf_i386_fbsd"
9377 case `/usr/bin/file conftest.o` in
9379 LD="${LD-ld} -m elf32_x86_64"
9382 LD="${LD-ld} -m elf_i386"
9386 powerpc64le-*linux*)
9387 LD="${LD-ld} -m elf32lppclinux"
9390 LD="${LD-ld} -m elf32ppclinux"
9393 LD="${LD-ld} -m elf_s390"
9396 LD="${LD-ld} -m elf32_sparc"
9402 x86_64-*kfreebsd*-gnu)
9403 LD="${LD-ld} -m elf_x86_64_fbsd"
9406 LD="${LD-ld} -m elf_x86_64"
9409 LD="${LD-ld} -m elf64lppc"
9412 LD="${LD-ld} -m elf64ppc"
9414 s390*-*linux*|s390*-*tpf*)
9415 LD="${LD-ld} -m elf64_s390"
9418 LD="${LD-ld} -m elf64_sparc"
9428 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9430 CFLAGS="$CFLAGS -belf"
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9432 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9433 if ${lt_cv_cc_needs_belf+:} false; then :
9434 $as_echo_n "(cached) " >&6
9437 ac_cpp='$CPP $CPPFLAGS'
9438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9453 if ac_fn_c_try_link "$LINENO"; then :
9454 lt_cv_cc_needs_belf=yes
9456 lt_cv_cc_needs_belf=no
9458 rm -f core conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9461 ac_cpp='$CPP $CPPFLAGS'
9462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9468 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9469 if test yes != "$lt_cv_cc_needs_belf"; then
9470 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9475 # Find out what ABI is being produced by ac_compile, and set linker
9476 # options accordingly.
9477 echo 'int i;' > conftest.$ac_ext
9478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9479 (eval $ac_compile) 2>&5
9481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9482 test $ac_status = 0; }; then
9483 case `/usr/bin/file conftest.o` in
9485 case $lt_cv_prog_gnu_ld in
9488 i?86-*-solaris*|x86_64-*-solaris*)
9489 LD="${LD-ld} -m elf_x86_64"
9492 LD="${LD-ld} -m elf64_sparc"
9495 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9496 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9501 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9513 need_locks=$enable_libtool_lock
9515 if test -n "$ac_tool_prefix"; then
9516 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9517 set dummy ${ac_tool_prefix}mt; ac_word=$2
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519 $as_echo_n "checking for $ac_word... " >&6; }
9520 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9521 $as_echo_n "(cached) " >&6
9523 if test -n "$MANIFEST_TOOL"; then
9524 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 test -z "$as_dir" && as_dir=.
9531 for ac_exec_ext in '' $ac_executable_extensions; do
9532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9533 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9544 if test -n "$MANIFEST_TOOL"; then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9546 $as_echo "$MANIFEST_TOOL" >&6; }
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 $as_echo "no" >&6; }
9554 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9555 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9556 # Extract the first word of "mt", so it can be a program name with args.
9557 set dummy mt; ac_word=$2
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559 $as_echo_n "checking for $ac_word... " >&6; }
9560 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9561 $as_echo_n "(cached) " >&6
9563 if test -n "$ac_ct_MANIFEST_TOOL"; then
9564 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570 test -z "$as_dir" && as_dir=.
9571 for ac_exec_ext in '' $ac_executable_extensions; do
9572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9573 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9583 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9584 if test -n "$ac_ct_MANIFEST_TOOL"; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9586 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9589 $as_echo "no" >&6; }
9592 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9595 case $cross_compiling:$ac_tool_warned in
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9599 ac_tool_warned=yes ;;
9601 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9604 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9607 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9609 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9610 if ${lt_cv_path_mainfest_tool+:} false; then :
9611 $as_echo_n "(cached) " >&6
9613 lt_cv_path_mainfest_tool=no
9614 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9615 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9616 cat conftest.err >&5
9617 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9618 lt_cv_path_mainfest_tool=yes
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9623 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9624 if test yes != "$lt_cv_path_mainfest_tool"; then
9634 rhapsody* | darwin*)
9635 if test -n "$ac_tool_prefix"; then
9636 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9637 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9639 $as_echo_n "checking for $ac_word... " >&6; }
9640 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9641 $as_echo_n "(cached) " >&6
9643 if test -n "$DSYMUTIL"; then
9644 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 test -z "$as_dir" && as_dir=.
9651 for ac_exec_ext in '' $ac_executable_extensions; do
9652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9653 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9663 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9664 if test -n "$DSYMUTIL"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9666 $as_echo "$DSYMUTIL" >&6; }
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9674 if test -z "$ac_cv_prog_DSYMUTIL"; then
9675 ac_ct_DSYMUTIL=$DSYMUTIL
9676 # Extract the first word of "dsymutil", so it can be a program name with args.
9677 set dummy dsymutil; ac_word=$2
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9681 $as_echo_n "(cached) " >&6
9683 if test -n "$ac_ct_DSYMUTIL"; then
9684 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9693 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9704 if test -n "$ac_ct_DSYMUTIL"; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9706 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709 $as_echo "no" >&6; }
9712 if test "x$ac_ct_DSYMUTIL" = x; then
9715 case $cross_compiling:$ac_tool_warned in
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9719 ac_tool_warned=yes ;;
9721 DSYMUTIL=$ac_ct_DSYMUTIL
9724 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9727 if test -n "$ac_tool_prefix"; then
9728 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9729 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if ${ac_cv_prog_NMEDIT+:} false; then :
9733 $as_echo_n "(cached) " >&6
9735 if test -n "$NMEDIT"; then
9736 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9745 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 NMEDIT=$ac_cv_prog_NMEDIT
9756 if test -n "$NMEDIT"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9758 $as_echo "$NMEDIT" >&6; }
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9766 if test -z "$ac_cv_prog_NMEDIT"; then
9767 ac_ct_NMEDIT=$NMEDIT
9768 # Extract the first word of "nmedit", so it can be a program name with args.
9769 set dummy nmedit; ac_word=$2
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9771 $as_echo_n "checking for $ac_word... " >&6; }
9772 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9773 $as_echo_n "(cached) " >&6
9775 if test -n "$ac_ct_NMEDIT"; then
9776 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782 test -z "$as_dir" && as_dir=.
9783 for ac_exec_ext in '' $ac_executable_extensions; do
9784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9785 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9795 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9796 if test -n "$ac_ct_NMEDIT"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9798 $as_echo "$ac_ct_NMEDIT" >&6; }
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801 $as_echo "no" >&6; }
9804 if test "x$ac_ct_NMEDIT" = x; then
9807 case $cross_compiling:$ac_tool_warned in
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9811 ac_tool_warned=yes ;;
9813 NMEDIT=$ac_ct_NMEDIT
9816 NMEDIT="$ac_cv_prog_NMEDIT"
9819 if test -n "$ac_tool_prefix"; then
9820 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9821 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9823 $as_echo_n "checking for $ac_word... " >&6; }
9824 if ${ac_cv_prog_LIPO+:} false; then :
9825 $as_echo_n "(cached) " >&6
9827 if test -n "$LIPO"; then
9828 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834 test -z "$as_dir" && as_dir=.
9835 for ac_exec_ext in '' $ac_executable_extensions; do
9836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9837 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9847 LIPO=$ac_cv_prog_LIPO
9848 if test -n "$LIPO"; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9850 $as_echo "$LIPO" >&6; }
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853 $as_echo "no" >&6; }
9858 if test -z "$ac_cv_prog_LIPO"; then
9860 # Extract the first word of "lipo", so it can be a program name with args.
9861 set dummy lipo; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9865 $as_echo_n "(cached) " >&6
9867 if test -n "$ac_ct_LIPO"; then
9868 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877 ac_cv_prog_ac_ct_LIPO="lipo"
9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9887 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9888 if test -n "$ac_ct_LIPO"; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9890 $as_echo "$ac_ct_LIPO" >&6; }
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9896 if test "x$ac_ct_LIPO" = x; then
9899 case $cross_compiling:$ac_tool_warned in
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9903 ac_tool_warned=yes ;;
9908 LIPO="$ac_cv_prog_LIPO"
9911 if test -n "$ac_tool_prefix"; then
9912 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9913 set dummy ${ac_tool_prefix}otool; ac_word=$2
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9915 $as_echo_n "checking for $ac_word... " >&6; }
9916 if ${ac_cv_prog_OTOOL+:} false; then :
9917 $as_echo_n "(cached) " >&6
9919 if test -n "$OTOOL"; then
9920 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9929 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9939 OTOOL=$ac_cv_prog_OTOOL
9940 if test -n "$OTOOL"; then
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9942 $as_echo "$OTOOL" >&6; }
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 $as_echo "no" >&6; }
9950 if test -z "$ac_cv_prog_OTOOL"; then
9952 # Extract the first word of "otool", so it can be a program name with args.
9953 set dummy otool; ac_word=$2
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9955 $as_echo_n "checking for $ac_word... " >&6; }
9956 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9957 $as_echo_n "(cached) " >&6
9959 if test -n "$ac_ct_OTOOL"; then
9960 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 test -z "$as_dir" && as_dir=.
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9969 ac_cv_prog_ac_ct_OTOOL="otool"
9970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9979 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9980 if test -n "$ac_ct_OTOOL"; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9982 $as_echo "$ac_ct_OTOOL" >&6; }
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9988 if test "x$ac_ct_OTOOL" = x; then
9991 case $cross_compiling:$ac_tool_warned in
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9995 ac_tool_warned=yes ;;
10000 OTOOL="$ac_cv_prog_OTOOL"
10003 if test -n "$ac_tool_prefix"; then
10004 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10005 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10007 $as_echo_n "checking for $ac_word... " >&6; }
10008 if ${ac_cv_prog_OTOOL64+:} false; then :
10009 $as_echo_n "(cached) " >&6
10011 if test -n "$OTOOL64"; then
10012 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10015 for as_dir in $PATH
10018 test -z "$as_dir" && as_dir=.
10019 for ac_exec_ext in '' $ac_executable_extensions; do
10020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10021 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10031 OTOOL64=$ac_cv_prog_OTOOL64
10032 if test -n "$OTOOL64"; then
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10034 $as_echo "$OTOOL64" >&6; }
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10037 $as_echo "no" >&6; }
10042 if test -z "$ac_cv_prog_OTOOL64"; then
10043 ac_ct_OTOOL64=$OTOOL64
10044 # Extract the first word of "otool64", so it can be a program name with args.
10045 set dummy otool64; ac_word=$2
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10047 $as_echo_n "checking for $ac_word... " >&6; }
10048 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10049 $as_echo_n "(cached) " >&6
10051 if test -n "$ac_ct_OTOOL64"; then
10052 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10055 for as_dir in $PATH
10058 test -z "$as_dir" && as_dir=.
10059 for ac_exec_ext in '' $ac_executable_extensions; do
10060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10061 ac_cv_prog_ac_ct_OTOOL64="otool64"
10062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10072 if test -n "$ac_ct_OTOOL64"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10074 $as_echo "$ac_ct_OTOOL64" >&6; }
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10080 if test "x$ac_ct_OTOOL64" = x; then
10083 case $cross_compiling:$ac_tool_warned in
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10087 ac_tool_warned=yes ;;
10089 OTOOL64=$ac_ct_OTOOL64
10092 OTOOL64="$ac_cv_prog_OTOOL64"
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10122 $as_echo_n "checking for -single_module linker flag... " >&6; }
10123 if ${lt_cv_apple_cc_single_mod+:} false; then :
10124 $as_echo_n "(cached) " >&6
10126 lt_cv_apple_cc_single_mod=no
10127 if test -z "$LT_MULTI_MODULE"; then
10128 # By default we will add the -single_module flag. You can override
10129 # by either setting the environment variable LT_MULTI_MODULE
10130 # non-empty at configure time, or by adding -multi_module to the
10132 rm -rf libconftest.dylib*
10133 echo "int foo(void){return 1;}" > conftest.c
10134 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10135 -dynamiclib -Wl,-single_module conftest.c" >&5
10136 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10137 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10139 # If there is a non-empty error log, and "single_module"
10140 # appears in it, assume the flag caused a linker warning
10141 if test -s conftest.err && $GREP single_module conftest.err; then
10142 cat conftest.err >&5
10143 # Otherwise, if the output was created with a 0 exit code from
10144 # the compiler, it worked.
10145 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10146 lt_cv_apple_cc_single_mod=yes
10148 cat conftest.err >&5
10150 rm -rf libconftest.dylib*
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10155 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10158 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10159 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10160 $as_echo_n "(cached) " >&6
10162 lt_cv_ld_exported_symbols_list=no
10163 save_LDFLAGS=$LDFLAGS
10164 echo "_main" > conftest.sym
10165 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167 /* end confdefs.h. */
10177 if ac_fn_c_try_link "$LINENO"; then :
10178 lt_cv_ld_exported_symbols_list=yes
10180 lt_cv_ld_exported_symbols_list=no
10182 rm -f core conftest.err conftest.$ac_objext \
10183 conftest$ac_exeext conftest.$ac_ext
10184 LDFLAGS=$save_LDFLAGS
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10188 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10191 $as_echo_n "checking for -force_load linker flag... " >&6; }
10192 if ${lt_cv_ld_force_load+:} false; then :
10193 $as_echo_n "(cached) " >&6
10195 lt_cv_ld_force_load=no
10196 cat > conftest.c << _LT_EOF
10197 int forced_loaded() { return 2;}
10199 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10200 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10201 echo "$AR cru libconftest.a conftest.o" >&5
10202 $AR cru libconftest.a conftest.o 2>&5
10203 echo "$RANLIB libconftest.a" >&5
10204 $RANLIB libconftest.a 2>&5
10205 cat > conftest.c << _LT_EOF
10206 int main() { return 0;}
10208 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10209 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10211 if test -s conftest.err && $GREP force_load conftest.err; then
10212 cat conftest.err >&5
10213 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10214 lt_cv_ld_force_load=yes
10216 cat conftest.err >&5
10218 rm -f conftest.err libconftest.a conftest conftest.c
10219 rm -rf conftest.dSYM
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10223 $as_echo "$lt_cv_ld_force_load" >&6; }
10225 rhapsody* | darwin1.[012])
10226 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10228 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10229 darwin*) # darwin 5.x on
10230 # if running on 10.5 or later, the deployment target defaults
10231 # to the OS version, if on x86, and 10.4, the deployment
10232 # target defaults to 10.4. Don't you love it?
10233 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10234 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10235 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10237 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10239 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10243 if test yes = "$lt_cv_apple_cc_single_mod"; then
10244 _lt_dar_single_mod='$single_module'
10246 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10247 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10249 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10251 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10252 _lt_dsymutil='~$DSYMUTIL $lib || :'
10259 # func_munge_path_list VARIABLE PATH
10260 # -----------------------------------
10261 # VARIABLE is name of variable containing _space_ separated list of
10262 # directories to be munged by the contents of PATH, which is string
10265 # string "DIR[ DIR]" will be prepended to VARIABLE
10267 # string "DIR[ DIR]" will be appended to VARIABLE
10268 # "DIRP[:DIRP]::[DIRA:]DIRA"
10269 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10270 # "DIRA[ DIRA]" will be appended to VARIABLE
10272 # VARIABLE will be replaced by "DIR[ DIR]"
10273 func_munge_path_list ()
10279 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10282 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10285 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10286 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10289 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10294 for ac_header in dlfcn.h
10296 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10298 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10299 cat >>confdefs.h <<_ACEOF
10300 #define HAVE_DLFCN_H 1
10320 enable_win32_dll=no
10323 # Check whether --enable-shared was given.
10324 if test "${enable_shared+set}" = set; then :
10325 enableval=$enable_shared; p=${PACKAGE-default}
10327 yes) enable_shared=yes ;;
10328 no) enable_shared=no ;;
10331 # Look at the argument we got. We use all the common list separators.
10332 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10333 for pkg in $enableval; do
10335 if test "X$pkg" = "X$p"; then
10354 # Check whether --enable-static was given.
10355 if test "${enable_static+set}" = set; then :
10356 enableval=$enable_static; p=${PACKAGE-default}
10358 yes) enable_static=yes ;;
10359 no) enable_static=no ;;
10362 # Look at the argument we got. We use all the common list separators.
10363 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10364 for pkg in $enableval; do
10366 if test "X$pkg" = "X$p"; then
10386 # Check whether --with-pic was given.
10387 if test "${with_pic+set}" = set; then :
10388 withval=$with_pic; lt_p=${PACKAGE-default}
10390 yes|no) pic_mode=$withval ;;
10393 # Look at the argument we got. We use all the common list separators.
10394 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10395 for lt_pkg in $withval; do
10397 if test "X$lt_pkg" = "X$lt_p"; then
10415 # Check whether --enable-fast-install was given.
10416 if test "${enable_fast_install+set}" = set; then :
10417 enableval=$enable_fast_install; p=${PACKAGE-default}
10419 yes) enable_fast_install=yes ;;
10420 no) enable_fast_install=no ;;
10422 enable_fast_install=no
10423 # Look at the argument we got. We use all the common list separators.
10424 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10425 for pkg in $enableval; do
10427 if test "X$pkg" = "X$p"; then
10428 enable_fast_install=yes
10435 enable_fast_install=yes
10445 shared_archive_member_spec=
10446 case $host,$enable_shared in
10447 power*-*-aix[5-9]*,yes)
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10449 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10451 # Check whether --with-aix-soname was given.
10452 if test "${with_aix_soname+set}" = set; then :
10453 withval=$with_aix_soname; case $withval in
10457 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10460 lt_cv_with_aix_soname=$with_aix_soname
10462 if ${lt_cv_with_aix_soname+:} false; then :
10463 $as_echo_n "(cached) " >&6
10465 lt_cv_with_aix_soname=aix
10468 with_aix_soname=$lt_cv_with_aix_soname
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10472 $as_echo "$with_aix_soname" >&6; }
10473 if test aix != "$with_aix_soname"; then
10474 # For the AIX way of multilib, we name the shared archive member
10475 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10476 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10477 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10478 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10479 if test 64 = "${OBJECT_MODE-32}"; then
10480 shared_archive_member_spec=shr_64
10482 shared_archive_member_spec=shr
10487 with_aix_soname=aix
10500 # This can be used to rebuild libtool when needed
10501 LIBTOOL_DEPS=$ltmain
10503 # Always use our own libtool.
10504 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10535 test -z "$LN_S" && LN_S="ln -s"
10550 if test -n "${ZSH_VERSION+set}"; then
10551 setopt NO_GLOB_SUBST
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10555 $as_echo_n "checking for objdir... " >&6; }
10556 if ${lt_cv_objdir+:} false; then :
10557 $as_echo_n "(cached) " >&6
10559 rm -f .libs 2>/dev/null
10560 mkdir .libs 2>/dev/null
10561 if test -d .libs; then
10564 # MS-DOS does not allow filenames that begin with a dot.
10567 rmdir .libs 2>/dev/null
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10570 $as_echo "$lt_cv_objdir" >&6; }
10571 objdir=$lt_cv_objdir
10577 cat >>confdefs.h <<_ACEOF
10578 #define LT_OBJDIR "$lt_cv_objdir/"
10586 # AIX sometimes has problems with the GCC collect2 program. For some
10587 # reason, if we set the COLLECT_NAMES environment variable, the problems
10588 # vanish in a puff of smoke.
10589 if test set != "${COLLECT_NAMES+set}"; then
10591 export COLLECT_NAMES
10596 # Global variables:
10598 can_build_shared=yes
10600 # All known linkers require a '.a' archive for static linking (except MSVC,
10601 # which needs '.lib').
10604 with_gnu_ld=$lt_cv_prog_gnu_ld
10609 # Set sane defaults for various variables
10610 test -z "$CC" && CC=cc
10611 test -z "$LTCC" && LTCC=$CC
10612 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10613 test -z "$LD" && LD=ld
10614 test -z "$ac_objext" && ac_objext=o
10616 func_cc_basename $compiler
10617 cc_basename=$func_cc_basename_result
10620 # Only perform the check for file, if the check method requires it
10621 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10622 case $deplibs_check_method in
10624 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10626 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10627 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10628 $as_echo_n "(cached) " >&6
10632 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10635 lt_save_MAGIC_CMD=$MAGIC_CMD
10636 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10637 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10638 for ac_dir in $ac_dummy; do
10640 test -z "$ac_dir" && ac_dir=.
10641 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10642 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10643 if test -n "$file_magic_test_file"; then
10644 case $deplibs_check_method in
10646 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10647 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10648 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10649 $EGREP "$file_magic_regex" > /dev/null; then
10654 *** Warning: the command libtool uses to detect shared libraries,
10655 *** $file_magic_cmd, produces output that libtool cannot recognize.
10656 *** The result is that libtool may fail to recognize shared libraries
10657 *** as such. This will affect the creation of libtool libraries that
10658 *** depend on shared libraries, but programs linked with such libtool
10659 *** libraries will work regardless of this problem. Nevertheless, you
10660 *** may want to report the problem to your system manager and/or to
10661 *** bug-libtool@gnu.org
10671 MAGIC_CMD=$lt_save_MAGIC_CMD
10676 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10677 if test -n "$MAGIC_CMD"; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10679 $as_echo "$MAGIC_CMD" >&6; }
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10689 if test -z "$lt_cv_path_MAGIC_CMD"; then
10690 if test -n "$ac_tool_prefix"; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10692 $as_echo_n "checking for file... " >&6; }
10693 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10694 $as_echo_n "(cached) " >&6
10698 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10701 lt_save_MAGIC_CMD=$MAGIC_CMD
10702 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10703 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10704 for ac_dir in $ac_dummy; do
10706 test -z "$ac_dir" && ac_dir=.
10707 if test -f "$ac_dir/file"; then
10708 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10709 if test -n "$file_magic_test_file"; then
10710 case $deplibs_check_method in
10712 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10713 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10714 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10715 $EGREP "$file_magic_regex" > /dev/null; then
10720 *** Warning: the command libtool uses to detect shared libraries,
10721 *** $file_magic_cmd, produces output that libtool cannot recognize.
10722 *** The result is that libtool may fail to recognize shared libraries
10723 *** as such. This will affect the creation of libtool libraries that
10724 *** depend on shared libraries, but programs linked with such libtool
10725 *** libraries will work regardless of this problem. Nevertheless, you
10726 *** may want to report the problem to your system manager and/or to
10727 *** bug-libtool@gnu.org
10737 MAGIC_CMD=$lt_save_MAGIC_CMD
10742 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10743 if test -n "$MAGIC_CMD"; then
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10745 $as_echo "$MAGIC_CMD" >&6; }
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748 $as_echo "no" >&6; }
10761 # Use C for the default configuration in the libtool script
10765 ac_cpp='$CPP $CPPFLAGS'
10766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10771 # Source file extension for C test sources.
10774 # Object file extension for compiled C test sources.
10778 # Code to be used in simple compile tests
10779 lt_simple_compile_test_code="int some_variable = 0;"
10781 # Code to be used in simple link tests
10782 lt_simple_link_test_code='int main(){return(0);}'
10790 # If no C compiler was specified, use CC.
10793 # If no C compiler flags were specified, use CFLAGS.
10794 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10796 # Allow CC to be a program name with arguments.
10799 # Save the default compiler, since it gets overwritten when the other
10800 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10801 compiler_DEFAULT=$CC
10803 # save warnings/boilerplate of simple test code
10804 ac_outfile=conftest.$ac_objext
10805 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10806 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10807 _lt_compiler_boilerplate=`cat conftest.err`
10810 ac_outfile=conftest.$ac_objext
10811 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10812 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10813 _lt_linker_boilerplate=`cat conftest.err`
10817 if test -n "$compiler"; then
10819 lt_prog_compiler_no_builtin_flag=
10821 if test yes = "$GCC"; then
10822 case $cc_basename in
10824 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10826 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10830 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10831 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10832 $as_echo_n "(cached) " >&6
10834 lt_cv_prog_compiler_rtti_exceptions=no
10835 ac_outfile=conftest.$ac_objext
10836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10837 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10838 # Insert the option either (1) after the last *FLAGS variable, or
10839 # (2) before a word containing "conftest.", or (3) at the end.
10840 # Note that $ac_compile itself does not contain backslashes and begins
10841 # with a dollar sign (not a hyphen), so the echo should work correctly.
10842 # The option is referenced via a variable to avoid confusing sed.
10843 lt_compile=`echo "$ac_compile" | $SED \
10844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10846 -e 's:$: $lt_compiler_flag:'`
10847 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10848 (eval "$lt_compile" 2>conftest.err)
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 if (exit $ac_status) && test -s "$ac_outfile"; then
10853 # The compiler can only warn and ignore the option if not recognized
10854 # So say no if there are warnings other than the usual output.
10855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10858 lt_cv_prog_compiler_rtti_exceptions=yes
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10865 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10867 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10868 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10880 lt_prog_compiler_wl=
10881 lt_prog_compiler_pic=
10882 lt_prog_compiler_static=
10885 if test yes = "$GCC"; then
10886 lt_prog_compiler_wl='-Wl,'
10887 lt_prog_compiler_static='-static'
10891 # All AIX code is PIC.
10892 if test ia64 = "$host_cpu"; then
10893 # AIX 5 now supports IA64 processor
10894 lt_prog_compiler_static='-Bstatic'
10896 lt_prog_compiler_pic='-fPIC'
10902 # see comment about AmigaOS4 .so support
10903 lt_prog_compiler_pic='-fPIC'
10906 # FIXME: we need at least 68020 code to build shared libraries, but
10907 # adding the '-m68020' flag to GCC prevents building anything better,
10909 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10914 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10915 # PIC is the default for these OSes.
10918 mingw* | cygwin* | pw32* | os2* | cegcc*)
10919 # This hack is so that the source file can tell whether it is being
10920 # built for inclusion in a dll (and should export symbols for example).
10921 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10922 # (--disable-auto-import) libraries
10923 lt_prog_compiler_pic='-DDLL_EXPORT'
10926 lt_prog_compiler_static='$wl-static'
10931 darwin* | rhapsody*)
10932 # PIC is the default on this platform
10933 # Common symbols not allowed in MH_DYLIB files
10934 lt_prog_compiler_pic='-fno-common'
10938 # PIC is the default for Haiku.
10939 # The "-static" flag exists, but is broken.
10940 lt_prog_compiler_static=
10944 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10945 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10946 # sets the default TLS model and affects inlining.
10952 lt_prog_compiler_pic='-fPIC'
10958 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10959 # Instead, we relocate shared libraries at runtime.
10963 # Just because we use GCC doesn't mean we suddenly get shared libraries
10964 # on systems that don't support them.
10965 lt_prog_compiler_can_build_shared=no
10970 # QNX uses GNU C++, but need to define -shared option too, otherwise
10971 # it will coredump.
10972 lt_prog_compiler_pic='-fPIC -shared'
10976 if test -d /usr/nec; then
10977 lt_prog_compiler_pic=-Kconform_pic
10982 lt_prog_compiler_pic='-fPIC'
10986 case $cc_basename in
10987 nvcc*) # Cuda Compiler Driver 2.2
10988 lt_prog_compiler_wl='-Xlinker '
10989 if test -n "$lt_prog_compiler_pic"; then
10990 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10995 # PORTME Check for flag to pass linker flags through the system compiler.
10998 lt_prog_compiler_wl='-Wl,'
10999 if test ia64 = "$host_cpu"; then
11000 # AIX 5 now supports IA64 processor
11001 lt_prog_compiler_static='-Bstatic'
11003 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11007 darwin* | rhapsody*)
11008 # PIC is the default on this platform
11009 # Common symbols not allowed in MH_DYLIB files
11010 lt_prog_compiler_pic='-fno-common'
11011 case $cc_basename in
11013 # NAG Fortran compiler
11014 lt_prog_compiler_wl='-Wl,-Wl,,'
11015 lt_prog_compiler_pic='-PIC'
11016 lt_prog_compiler_static='-Bstatic'
11021 mingw* | cygwin* | pw32* | os2* | cegcc*)
11022 # This hack is so that the source file can tell whether it is being
11023 # built for inclusion in a dll (and should export symbols for example).
11024 lt_prog_compiler_pic='-DDLL_EXPORT'
11027 lt_prog_compiler_static='$wl-static'
11032 hpux9* | hpux10* | hpux11*)
11033 lt_prog_compiler_wl='-Wl,'
11034 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11035 # not for PA HP-UX.
11041 lt_prog_compiler_pic='+Z'
11044 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11045 lt_prog_compiler_static='$wl-a ${wl}archive'
11048 irix5* | irix6* | nonstopux*)
11049 lt_prog_compiler_wl='-Wl,'
11050 # PIC (with -KPIC) is the default.
11051 lt_prog_compiler_static='-non_shared'
11054 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11055 case $cc_basename in
11056 # old Intel for x86_64, which still supported -KPIC.
11058 lt_prog_compiler_wl='-Wl,'
11059 lt_prog_compiler_pic='-KPIC'
11060 lt_prog_compiler_static='-static'
11062 # icc used to be incompatible with GCC.
11063 # ICC 10 doesn't accept -KPIC any more.
11065 lt_prog_compiler_wl='-Wl,'
11066 lt_prog_compiler_pic='-fPIC'
11067 lt_prog_compiler_static='-static'
11069 # Lahey Fortran 8.1.
11071 lt_prog_compiler_wl='-Wl,'
11072 lt_prog_compiler_pic='--shared'
11073 lt_prog_compiler_static='--static'
11076 # NAG Fortran compiler
11077 lt_prog_compiler_wl='-Wl,-Wl,,'
11078 lt_prog_compiler_pic='-PIC'
11079 lt_prog_compiler_static='-Bstatic'
11082 # Fabrice Bellard et al's Tiny C Compiler
11083 lt_prog_compiler_wl='-Wl,'
11084 lt_prog_compiler_pic='-fPIC'
11085 lt_prog_compiler_static='-static'
11087 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11088 # Portland Group compilers (*not* the Pentium gcc compiler,
11089 # which looks to be a dead project)
11090 lt_prog_compiler_wl='-Wl,'
11091 lt_prog_compiler_pic='-fpic'
11092 lt_prog_compiler_static='-Bstatic'
11095 lt_prog_compiler_wl='-Wl,'
11096 # All Alpha code is PIC.
11097 lt_prog_compiler_static='-non_shared'
11099 xl* | bgxl* | bgf* | mpixl*)
11100 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11101 lt_prog_compiler_wl='-Wl,'
11102 lt_prog_compiler_pic='-qpic'
11103 lt_prog_compiler_static='-qstaticlink'
11106 case `$CC -V 2>&1 | sed 5q` in
11107 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11108 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11109 lt_prog_compiler_pic='-KPIC'
11110 lt_prog_compiler_static='-Bstatic'
11111 lt_prog_compiler_wl=''
11113 *Sun\ F* | *Sun*Fortran*)
11114 lt_prog_compiler_pic='-KPIC'
11115 lt_prog_compiler_static='-Bstatic'
11116 lt_prog_compiler_wl='-Qoption ld '
11120 lt_prog_compiler_pic='-KPIC'
11121 lt_prog_compiler_static='-Bstatic'
11122 lt_prog_compiler_wl='-Wl,'
11124 *Intel*\ [CF]*Compiler*)
11125 lt_prog_compiler_wl='-Wl,'
11126 lt_prog_compiler_pic='-fPIC'
11127 lt_prog_compiler_static='-static'
11130 lt_prog_compiler_wl='-Wl,'
11131 lt_prog_compiler_pic='-fpic'
11132 lt_prog_compiler_static='-Bstatic'
11140 lt_prog_compiler_pic='-KPIC'
11141 lt_prog_compiler_static='-Bstatic'
11145 # QNX uses GNU C++, but need to define -shared option too, otherwise
11146 # it will coredump.
11147 lt_prog_compiler_pic='-fPIC -shared'
11150 osf3* | osf4* | osf5*)
11151 lt_prog_compiler_wl='-Wl,'
11152 # All OSF/1 code is PIC.
11153 lt_prog_compiler_static='-non_shared'
11157 lt_prog_compiler_static='-non_shared'
11161 lt_prog_compiler_pic='-KPIC'
11162 lt_prog_compiler_static='-Bstatic'
11163 case $cc_basename in
11164 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11165 lt_prog_compiler_wl='-Qoption ld ';;
11167 lt_prog_compiler_wl='-Wl,';;
11172 lt_prog_compiler_wl='-Qoption ld '
11173 lt_prog_compiler_pic='-PIC'
11174 lt_prog_compiler_static='-Bstatic'
11177 sysv4 | sysv4.2uw2* | sysv4.3*)
11178 lt_prog_compiler_wl='-Wl,'
11179 lt_prog_compiler_pic='-KPIC'
11180 lt_prog_compiler_static='-Bstatic'
11184 if test -d /usr/nec; then
11185 lt_prog_compiler_pic='-Kconform_pic'
11186 lt_prog_compiler_static='-Bstatic'
11190 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11191 lt_prog_compiler_wl='-Wl,'
11192 lt_prog_compiler_pic='-KPIC'
11193 lt_prog_compiler_static='-Bstatic'
11197 lt_prog_compiler_wl='-Wl,'
11198 lt_prog_compiler_can_build_shared=no
11202 lt_prog_compiler_pic='-pic'
11203 lt_prog_compiler_static='-Bstatic'
11207 lt_prog_compiler_can_build_shared=no
11213 # For platforms that do not support PIC, -DPIC is meaningless:
11215 lt_prog_compiler_pic=
11218 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11223 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11224 if ${lt_cv_prog_compiler_pic+:} false; then :
11225 $as_echo_n "(cached) " >&6
11227 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11230 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11231 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11234 # Check to make sure the PIC flag actually works.
11236 if test -n "$lt_prog_compiler_pic"; then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11238 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11239 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11240 $as_echo_n "(cached) " >&6
11242 lt_cv_prog_compiler_pic_works=no
11243 ac_outfile=conftest.$ac_objext
11244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11245 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11246 # Insert the option either (1) after the last *FLAGS variable, or
11247 # (2) before a word containing "conftest.", or (3) at the end.
11248 # Note that $ac_compile itself does not contain backslashes and begins
11249 # with a dollar sign (not a hyphen), so the echo should work correctly.
11250 # The option is referenced via a variable to avoid confusing sed.
11251 lt_compile=`echo "$ac_compile" | $SED \
11252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11254 -e 's:$: $lt_compiler_flag:'`
11255 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11256 (eval "$lt_compile" 2>conftest.err)
11258 cat conftest.err >&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 if (exit $ac_status) && test -s "$ac_outfile"; then
11261 # The compiler can only warn and ignore the option if not recognized
11262 # So say no if there are warnings other than the usual output.
11263 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11265 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11266 lt_cv_prog_compiler_pic_works=yes
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11273 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11275 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11276 case $lt_prog_compiler_pic in
11278 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11281 lt_prog_compiler_pic=
11282 lt_prog_compiler_can_build_shared=no
11298 # Check to make sure the static flag actually works.
11300 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11302 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11303 if ${lt_cv_prog_compiler_static_works+:} false; then :
11304 $as_echo_n "(cached) " >&6
11306 lt_cv_prog_compiler_static_works=no
11307 save_LDFLAGS=$LDFLAGS
11308 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11309 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11311 # The linker can only warn and ignore the option if not recognized
11312 # So say no if there are warnings
11313 if test -s conftest.err; then
11314 # Append any errors to the config.log.
11315 cat conftest.err 1>&5
11316 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11318 if diff conftest.exp conftest.er2 >/dev/null; then
11319 lt_cv_prog_compiler_static_works=yes
11322 lt_cv_prog_compiler_static_works=yes
11326 LDFLAGS=$save_LDFLAGS
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11330 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11332 if test yes = "$lt_cv_prog_compiler_static_works"; then
11335 lt_prog_compiler_static=
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11345 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11346 if ${lt_cv_prog_compiler_c_o+:} false; then :
11347 $as_echo_n "(cached) " >&6
11349 lt_cv_prog_compiler_c_o=no
11350 $RM -r conftest 2>/dev/null
11354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11356 lt_compiler_flag="-o out/conftest2.$ac_objext"
11357 # Insert the option either (1) after the last *FLAGS variable, or
11358 # (2) before a word containing "conftest.", or (3) at the end.
11359 # Note that $ac_compile itself does not contain backslashes and begins
11360 # with a dollar sign (not a hyphen), so the echo should work correctly.
11361 lt_compile=`echo "$ac_compile" | $SED \
11362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11364 -e 's:$: $lt_compiler_flag:'`
11365 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11366 (eval "$lt_compile" 2>out/conftest.err)
11368 cat out/conftest.err >&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11372 # The compiler can only warn and ignore the option if not recognized
11373 # So say no if there are warnings
11374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11377 lt_cv_prog_compiler_c_o=yes
11382 # SGI C++ compiler will create directory out/ii_files/ for
11383 # template instantiation
11384 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11385 $RM out/* && rmdir out
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11392 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11400 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11401 if ${lt_cv_prog_compiler_c_o+:} false; then :
11402 $as_echo_n "(cached) " >&6
11404 lt_cv_prog_compiler_c_o=no
11405 $RM -r conftest 2>/dev/null
11409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11411 lt_compiler_flag="-o out/conftest2.$ac_objext"
11412 # Insert the option either (1) after the last *FLAGS variable, or
11413 # (2) before a word containing "conftest.", or (3) at the end.
11414 # Note that $ac_compile itself does not contain backslashes and begins
11415 # with a dollar sign (not a hyphen), so the echo should work correctly.
11416 lt_compile=`echo "$ac_compile" | $SED \
11417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11419 -e 's:$: $lt_compiler_flag:'`
11420 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11421 (eval "$lt_compile" 2>out/conftest.err)
11423 cat out/conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11427 # The compiler can only warn and ignore the option if not recognized
11428 # So say no if there are warnings
11429 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11430 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11431 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11432 lt_cv_prog_compiler_c_o=yes
11437 # SGI C++ compiler will create directory out/ii_files/ for
11438 # template instantiation
11439 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11440 $RM out/* && rmdir out
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11447 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11452 hard_links=nottested
11453 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11454 # do not overwrite the value of need_locks provided by the user
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11456 $as_echo_n "checking if we can lock with hard links... " >&6; }
11459 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11461 ln conftest.a conftest.b 2>&5 || hard_links=no
11462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11464 $as_echo "$hard_links" >&6; }
11465 if test no = "$hard_links"; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11467 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11480 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11483 allow_undefined_flag=
11484 always_export_symbols=no
11486 archive_expsym_cmds=
11487 compiler_needs_object=no
11488 enable_shared_with_static_runtimes=no
11489 export_dynamic_flag_spec=
11490 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11491 hardcode_automatic=no
11493 hardcode_direct_absolute=no
11494 hardcode_libdir_flag_spec=
11495 hardcode_libdir_separator=
11496 hardcode_minus_L=no
11497 hardcode_shlibpath_var=unsupported
11499 link_all_deplibs=unknown
11501 module_expsym_cmds=
11502 old_archive_from_new_cmds=
11503 old_archive_from_expsyms_cmds=
11504 thread_safe_flag_spec=
11505 whole_archive_flag_spec=
11506 # include_expsyms should be a list of space-separated symbols to be *always*
11507 # included in the symbol list
11509 # exclude_expsyms can be an extended regexp of symbols to exclude
11510 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11511 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11512 # as well as any symbol that contains 'd'.
11513 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11514 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11515 # platforms (ab)use it in PIC code, but their linkers get confused if
11516 # the symbol is explicitly referenced. Since portable code cannot
11517 # rely on this symbol name, it's probably fine to never include it in
11518 # preloaded symbol tables.
11519 # Exclude shared library initialization/finalization symbols.
11520 extract_expsyms_cmds=
11523 cygwin* | mingw* | pw32* | cegcc*)
11524 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11525 # When not using gcc, we currently assume that we are using
11526 # Microsoft Visual C++.
11527 if test yes != "$GCC"; then
11532 # we just hope/assume this is gcc and not c89 (= MSVC++)
11535 openbsd* | bitrig*)
11542 # On some targets, GNU ld is compatible enough with the native linker
11543 # that we're better off using the native interface for both.
11544 lt_use_gnu_ld_interface=no
11545 if test yes = "$with_gnu_ld"; then
11548 # The AIX port of GNU ld has always aspired to compatibility
11549 # with the native linker. However, as the warning in the GNU ld
11550 # block says, versions before 2.19.5* couldn't really create working
11551 # shared libraries, regardless of the interface used.
11552 case `$LD -v 2>&1` in
11553 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11554 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11555 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11557 lt_use_gnu_ld_interface=yes
11562 lt_use_gnu_ld_interface=yes
11567 if test yes = "$lt_use_gnu_ld_interface"; then
11568 # If archive_cmds runs LD, not CC, wlarc should be empty
11571 # Set some defaults for GNU ld with shared library support. These
11572 # are reset later if shared libraries are not supported. Putting them
11573 # here allows them to be overridden if necessary.
11574 runpath_var=LD_RUN_PATH
11575 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11576 export_dynamic_flag_spec='$wl--export-dynamic'
11577 # ancient GNU ld didn't support --whole-archive et. al.
11578 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11579 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11581 whole_archive_flag_spec=
11583 supports_anon_versioning=no
11584 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11585 *GNU\ gold*) supports_anon_versioning=yes ;;
11586 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11587 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11588 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11589 *\ 2.11.*) ;; # other 2.11 versions
11590 *) supports_anon_versioning=yes ;;
11593 # See if GNU ld supports shared libraries.
11596 # On AIX/PPC, the GNU linker is very broken
11597 if test ia64 != "$host_cpu"; then
11601 *** Warning: the GNU linker, at least up to release 2.19, is reported
11602 *** to be unable to reliably create shared libraries on AIX.
11603 *** Therefore, libtool is disabling shared libraries support. If you
11604 *** really care for shared libraries, you may want to install binutils
11605 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11606 *** You will then need to restart the configuration process.
11615 # see comment about AmigaOS4 .so support
11616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11617 archive_expsym_cmds=''
11620 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)'
11621 hardcode_libdir_flag_spec='-L$libdir'
11622 hardcode_minus_L=yes
11628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11629 allow_undefined_flag=unsupported
11630 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11631 # support --undefined. This deserves some investigation. FIXME
11632 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11638 cygwin* | mingw* | pw32* | cegcc*)
11639 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11640 # as there is no search path for DLLs.
11641 hardcode_libdir_flag_spec='-L$libdir'
11642 export_dynamic_flag_spec='$wl--export-all-symbols'
11643 allow_undefined_flag=unsupported
11644 always_export_symbols=no
11645 enable_shared_with_static_runtimes=yes
11646 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'
11647 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11649 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11651 # If the export-symbols file already is a .def file, use it as
11652 # is; otherwise, prepend EXPORTS...
11653 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11654 cp $export_symbols $output_objdir/$soname.def;
11656 echo EXPORTS > $output_objdir/$soname.def;
11657 cat $export_symbols >> $output_objdir/$soname.def;
11659 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11667 link_all_deplibs=yes
11671 hardcode_libdir_flag_spec='-L$libdir'
11672 hardcode_minus_L=yes
11673 allow_undefined_flag=unsupported
11675 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11676 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11677 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11678 $ECHO EXPORTS >> $output_objdir/$libname.def~
11679 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11680 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11681 emximp -o $lib $output_objdir/$libname.def'
11682 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11683 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11684 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11685 $ECHO EXPORTS >> $output_objdir/$libname.def~
11686 prefix_cmds="$SED"~
11687 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11688 prefix_cmds="$prefix_cmds -e 1d";
11690 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11691 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11692 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11693 emximp -o $lib $output_objdir/$libname.def'
11694 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11695 enable_shared_with_static_runtimes=yes
11700 hardcode_shlibpath_var=no
11701 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11702 export_dynamic_flag_spec='$wl-E'
11703 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11704 # Instead, shared libraries are loaded at an image base (0x10000000 by
11705 # default) and relocated if they conflict, which is a slow very memory
11706 # consuming and fragmenting process. To avoid this, we pick a random,
11707 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11708 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11709 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11710 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'
11713 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11715 if test linux-dietlibc = "$host_os"; then
11716 case $cc_basename in
11717 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11720 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11721 && test no = "$tmp_diet"
11723 tmp_addflag=' $pic_flag'
11724 tmp_sharedflag='-shared'
11725 case $cc_basename,$host_cpu in
11726 pgcc*) # Portland Group C compiler
11727 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'
11728 tmp_addflag=' $pic_flag'
11730 pgf77* | pgf90* | pgf95* | pgfortran*)
11731 # Portland Group f77 and f90 compilers
11732 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'
11733 tmp_addflag=' $pic_flag -Mnomain' ;;
11734 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11735 tmp_addflag=' -i_dynamic' ;;
11736 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11737 tmp_addflag=' -i_dynamic -nofor_main' ;;
11738 ifc* | ifort*) # Intel Fortran compiler
11739 tmp_addflag=' -nofor_main' ;;
11740 lf95*) # Lahey Fortran 8.1
11741 whole_archive_flag_spec=
11742 tmp_sharedflag='--shared' ;;
11743 nagfor*) # NAGFOR 5.3
11744 tmp_sharedflag='-Wl,-shared' ;;
11745 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11746 tmp_sharedflag='-qmkshrobj'
11748 nvcc*) # Cuda Compiler Driver 2.2
11749 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'
11750 compiler_needs_object=yes
11753 case `$CC -V 2>&1 | sed 5q` in
11754 *Sun\ C*) # Sun C 5.9
11755 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'
11756 compiler_needs_object=yes
11757 tmp_sharedflag='-G' ;;
11758 *Sun\ F*) # Sun Fortran 8.3
11759 tmp_sharedflag='-G' ;;
11761 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11763 if test yes = "$supports_anon_versioning"; then
11764 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11766 echo "local: *; };" >> $output_objdir/$libname.ver~
11767 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11770 case $cc_basename in
11772 export_dynamic_flag_spec='-rdynamic'
11774 xlf* | bgf* | bgxlf* | mpixlf*)
11775 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11776 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11777 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11778 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11779 if test yes = "$supports_anon_versioning"; then
11780 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11782 echo "local: *; };" >> $output_objdir/$libname.ver~
11783 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11793 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11794 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11797 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11798 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11803 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11807 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11808 *** create shared libraries on Solaris systems. Therefore, libtool
11809 *** is disabling shared libraries support. We urge you to upgrade GNU
11810 *** binutils to release 2.9.1 or newer. Another option is to modify
11811 *** your PATH or compiler configuration so that the native linker is
11812 *** used, and then restart.
11815 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11816 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11817 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11823 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11824 case `$LD -v 2>&1` in
11825 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11829 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11830 *** reliably create shared libraries on SCO systems. Therefore, libtool
11831 *** is disabling shared libraries support. We urge you to upgrade GNU
11832 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11833 *** your PATH or compiler configuration so that the native linker is
11834 *** used, and then restart.
11839 # For security reasons, it is highly recommended that you always
11840 # use absolute paths for naming shared libraries, and exclude the
11841 # DT_RUNPATH tag from executables and libraries. But doing so
11842 # requires that you compile everything twice, which is a pain.
11843 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11844 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11855 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11857 hardcode_direct=yes
11858 hardcode_shlibpath_var=no
11862 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11863 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11864 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11871 if test no = "$ld_shlibs"; then
11873 hardcode_libdir_flag_spec=
11874 export_dynamic_flag_spec=
11875 whole_archive_flag_spec=
11878 # PORTME fill in a description of your system's linker (not GNU ld)
11881 allow_undefined_flag=unsupported
11882 always_export_symbols=yes
11883 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'
11884 # Note: this linker hardcodes the directories in LIBPATH if there
11885 # are no directories specified by -L.
11886 hardcode_minus_L=yes
11887 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11888 # Neither direct hardcoding nor static linking is supported with a
11890 hardcode_direct=unsupported
11895 if test ia64 = "$host_cpu"; then
11896 # On IA64, the linker does run time linking by default, so we don't
11897 # have to do anything special.
11898 aix_use_runtimelinking=no
11899 exp_sym_flag='-Bexport'
11902 # If we're using GNU nm, then we don't want the "-C" option.
11903 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11904 # Without the "-l" option, or with the "-B" option, AIX nm treats
11905 # weak defined symbols like other global defined symbols, whereas
11906 # GNU nm marks them as "W".
11907 # While the 'weak' keyword is ignored in the Export File, we need
11908 # it in the Import File for the 'aix-soname' feature, so we have
11909 # to replace the "-B" option with "-P" for AIX nm.
11910 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11911 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11913 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11915 aix_use_runtimelinking=no
11917 # Test if we are trying to use run time linking or normal
11918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11919 # have runtime linking enabled, and use it for executables.
11920 # For shared libraries, we enable/disable runtime linking
11921 # depending on the kind of the shared library created -
11922 # when "with_aix_soname,aix_use_runtimelinking" is:
11923 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11924 # "aix,yes" lib.so shared, rtl:yes, for executables
11925 # lib.a static archive
11926 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11927 # lib.a(lib.so.V) shared, rtl:no, for executables
11928 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11929 # lib.a(lib.so.V) shared, rtl:no
11930 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11931 # lib.a static archive
11932 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11933 for ld_flag in $LDFLAGS; do
11934 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11935 aix_use_runtimelinking=yes
11939 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11940 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11941 # so we don't have lib.a shared libs to link our executables.
11942 # We have to force runtime linking in this case.
11943 aix_use_runtimelinking=yes
11944 LDFLAGS="$LDFLAGS -Wl,-brtl"
11949 exp_sym_flag='-bexport'
11950 no_entry_flag='-bnoentry'
11953 # When large executables or shared objects are built, AIX ld can
11954 # have problems creating the table of contents. If linking a library
11955 # or program results in "error TOC overflow" add -mminimal-toc to
11956 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11957 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11960 hardcode_direct=yes
11961 hardcode_direct_absolute=yes
11962 hardcode_libdir_separator=':'
11963 link_all_deplibs=yes
11964 file_list_spec='$wl-f,'
11965 case $with_aix_soname,$aix_use_runtimelinking in
11966 aix,*) ;; # traditional, no import file
11967 svr4,* | *,yes) # use import file
11968 # The Import File defines what to hardcode.
11970 hardcode_direct_absolute=no
11974 if test yes = "$GCC"; then
11975 case $host_os in aix4.[012]|aix4.[012].*)
11976 # We only want to do this on AIX 4.2 and lower, the check
11977 # below for broken collect2 doesn't work under 4.3+
11978 collect2name=`$CC -print-prog-name=collect2`
11979 if test -f "$collect2name" &&
11980 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11982 # We have reworked collect2
11985 # We have old collect2
11986 hardcode_direct=unsupported
11987 # It fails to find uninstalled libraries when the uninstalled
11988 # path is not listed in the libpath. Setting hardcode_minus_L
11989 # to unsupported forces relinking
11990 hardcode_minus_L=yes
11991 hardcode_libdir_flag_spec='-L$libdir'
11992 hardcode_libdir_separator=
11996 shared_flag='-shared'
11997 if test yes = "$aix_use_runtimelinking"; then
11998 shared_flag="$shared_flag "'$wl-G'
12000 # Need to ensure runtime linking is disabled for the traditional
12001 # shared library, or the linker may eventually find shared libraries
12002 # /with/ Import File - we do not want to mix them.
12003 shared_flag_aix='-shared'
12004 shared_flag_svr4='-shared $wl-G'
12007 if test ia64 = "$host_cpu"; then
12008 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12009 # chokes on -Wl,-G. The following line is correct:
12012 if test yes = "$aix_use_runtimelinking"; then
12013 shared_flag='$wl-G'
12015 shared_flag='$wl-bM:SRE'
12017 shared_flag_aix='$wl-bM:SRE'
12018 shared_flag_svr4='$wl-G'
12022 export_dynamic_flag_spec='$wl-bexpall'
12023 # It seems that -bexpall does not export symbols beginning with
12024 # underscore (_), so it is better to generate a list of symbols to export.
12025 always_export_symbols=yes
12026 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12027 # Warning - without using the other runtime loading flags (-brtl),
12028 # -berok will link without error, but may produce a broken library.
12029 allow_undefined_flag='-berok'
12030 # Determine the default libpath from the value encoded in an
12031 # empty executable.
12032 if test set = "${lt_cv_aix_libpath+set}"; then
12033 aix_libpath=$lt_cv_aix_libpath
12035 if ${lt_cv_aix_libpath_+:} false; then :
12036 $as_echo_n "(cached) " >&6
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12049 if ac_fn_c_try_link "$LINENO"; then :
12051 lt_aix_libpath_sed='
12052 /Import File Strings/,/^$/ {
12054 s/^0 *\([^ ]*\) *$/\1/
12058 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12059 # Check for a 64-bit object if we didn't find anything.
12060 if test -z "$lt_cv_aix_libpath_"; then
12061 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12064 rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12066 if test -z "$lt_cv_aix_libpath_"; then
12067 lt_cv_aix_libpath_=/usr/lib:/lib
12072 aix_libpath=$lt_cv_aix_libpath_
12075 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12076 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12078 if test ia64 = "$host_cpu"; then
12079 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12080 allow_undefined_flag="-z nodefs"
12081 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"
12083 # Determine the default libpath from the value encoded in an
12084 # empty executable.
12085 if test set = "${lt_cv_aix_libpath+set}"; then
12086 aix_libpath=$lt_cv_aix_libpath
12088 if ${lt_cv_aix_libpath_+:} false; then :
12089 $as_echo_n "(cached) " >&6
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12102 if ac_fn_c_try_link "$LINENO"; then :
12104 lt_aix_libpath_sed='
12105 /Import File Strings/,/^$/ {
12107 s/^0 *\([^ ]*\) *$/\1/
12111 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12112 # Check for a 64-bit object if we didn't find anything.
12113 if test -z "$lt_cv_aix_libpath_"; then
12114 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12117 rm -f core conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119 if test -z "$lt_cv_aix_libpath_"; then
12120 lt_cv_aix_libpath_=/usr/lib:/lib
12125 aix_libpath=$lt_cv_aix_libpath_
12128 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12129 # Warning - without using the other run time loading flags,
12130 # -berok will link without error, but may produce a broken library.
12131 no_undefined_flag=' $wl-bernotok'
12132 allow_undefined_flag=' $wl-berok'
12133 if test yes = "$with_gnu_ld"; then
12134 # We only use this code for GNU lds that support --whole-archive.
12135 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12137 # Exported symbols can be pulled into shared objects from archives
12138 whole_archive_flag_spec='$convenience'
12140 archive_cmds_need_lc=yes
12141 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12142 # -brtl affects multiple linker settings, -berok does not and is overridden later
12143 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12144 if test svr4 != "$with_aix_soname"; then
12145 # This is similar to how AIX traditionally builds its shared libraries.
12146 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12148 if test aix != "$with_aix_soname"; then
12149 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12151 # used by -dlpreopen to get the symbols
12152 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12154 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12162 # see comment about AmigaOS4 .so support
12163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12164 archive_expsym_cmds=''
12167 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)'
12168 hardcode_libdir_flag_spec='-L$libdir'
12169 hardcode_minus_L=yes
12175 export_dynamic_flag_spec=-rdynamic
12178 cygwin* | mingw* | pw32* | cegcc*)
12179 # When not using gcc, we currently assume that we are using
12180 # Microsoft Visual C++.
12181 # hardcode_libdir_flag_spec is actually meaningless, as there is
12182 # no search path for DLLs.
12183 case $cc_basename in
12186 hardcode_libdir_flag_spec=' '
12187 allow_undefined_flag=unsupported
12188 always_export_symbols=yes
12190 # Tell ltmain to make .lib files, not .a files.
12192 # Tell ltmain to make .dll files, not .so files.
12194 # FIXME: Setting linknames here is a bad hack.
12195 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12196 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12197 cp "$export_symbols" "$output_objdir/$soname.def";
12198 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12200 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12202 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12204 # The linker will not automatically build a static lib if we build a DLL.
12205 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12206 enable_shared_with_static_runtimes=yes
12207 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12208 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12210 old_postinstall_cmds='chmod 644 $oldlib'
12211 postlink_cmds='lt_outputfile="@OUTPUT@"~
12212 lt_tool_outputfile="@TOOL_OUTPUT@"~
12213 case $lt_outputfile in
12216 lt_outputfile=$lt_outputfile.exe
12217 lt_tool_outputfile=$lt_tool_outputfile.exe
12220 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12221 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12222 $RM "$lt_outputfile.manifest";
12226 # Assume MSVC wrapper
12227 hardcode_libdir_flag_spec=' '
12228 allow_undefined_flag=unsupported
12229 # Tell ltmain to make .lib files, not .a files.
12231 # Tell ltmain to make .dll files, not .so files.
12233 # FIXME: Setting linknames here is a bad hack.
12234 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12235 # The linker will automatically build a .lib file if we build a DLL.
12236 old_archive_from_new_cmds='true'
12237 # FIXME: Should let the user specify the lib program.
12238 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12239 enable_shared_with_static_runtimes=yes
12244 darwin* | rhapsody*)
12247 archive_cmds_need_lc=no
12249 hardcode_automatic=yes
12250 hardcode_shlibpath_var=unsupported
12251 if test yes = "$lt_cv_ld_force_load"; then
12252 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\"`'
12255 whole_archive_flag_spec=''
12257 link_all_deplibs=yes
12258 allow_undefined_flag=$_lt_dar_allow_undefined
12259 case $cc_basename in
12260 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12261 *) _lt_dar_can_shared=$GCC ;;
12263 if test yes = "$_lt_dar_can_shared"; then
12264 output_verbose_link_cmd=func_echo_all
12265 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12266 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12267 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"
12268 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"
12277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12278 hardcode_libdir_flag_spec='-L$libdir'
12279 hardcode_shlibpath_var=no
12282 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12283 # support. Future versions do this automatically, but an explicit c++rt0.o
12284 # does not break anything, and helps significantly (at the cost of a little
12287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12288 hardcode_libdir_flag_spec='-R$libdir'
12289 hardcode_direct=yes
12290 hardcode_shlibpath_var=no
12293 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12295 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12296 hardcode_direct=yes
12297 hardcode_minus_L=yes
12298 hardcode_shlibpath_var=no
12301 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12302 freebsd* | dragonfly*)
12303 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12304 hardcode_libdir_flag_spec='-R$libdir'
12305 hardcode_direct=yes
12306 hardcode_shlibpath_var=no
12310 if test yes = "$GCC"; then
12311 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12313 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12315 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12316 hardcode_libdir_separator=:
12317 hardcode_direct=yes
12319 # hardcode_minus_L: Not really in the search PATH,
12320 # but as the default location of the library.
12321 hardcode_minus_L=yes
12322 export_dynamic_flag_spec='$wl-E'
12326 if test yes,no = "$GCC,$with_gnu_ld"; then
12327 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12329 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12331 if test no = "$with_gnu_ld"; then
12332 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12333 hardcode_libdir_separator=:
12334 hardcode_direct=yes
12335 hardcode_direct_absolute=yes
12336 export_dynamic_flag_spec='$wl-E'
12337 # hardcode_minus_L: Not really in the search PATH,
12338 # but as the default location of the library.
12339 hardcode_minus_L=yes
12344 if test yes,no = "$GCC,$with_gnu_ld"; then
12347 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12350 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12353 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12359 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12362 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12366 # Older versions of the 11.00 compiler do not understand -b yet
12367 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12369 $as_echo_n "checking if $CC understands -b... " >&6; }
12370 if ${lt_cv_prog_compiler__b+:} false; then :
12371 $as_echo_n "(cached) " >&6
12373 lt_cv_prog_compiler__b=no
12374 save_LDFLAGS=$LDFLAGS
12375 LDFLAGS="$LDFLAGS -b"
12376 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12378 # The linker can only warn and ignore the option if not recognized
12379 # So say no if there are warnings
12380 if test -s conftest.err; then
12381 # Append any errors to the config.log.
12382 cat conftest.err 1>&5
12383 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12385 if diff conftest.exp conftest.er2 >/dev/null; then
12386 lt_cv_prog_compiler__b=yes
12389 lt_cv_prog_compiler__b=yes
12393 LDFLAGS=$save_LDFLAGS
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12397 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12399 if test yes = "$lt_cv_prog_compiler__b"; then
12400 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12402 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12408 if test no = "$with_gnu_ld"; then
12409 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12410 hardcode_libdir_separator=:
12415 hardcode_shlibpath_var=no
12418 hardcode_direct=yes
12419 hardcode_direct_absolute=yes
12420 export_dynamic_flag_spec='$wl-E'
12422 # hardcode_minus_L: Not really in the search PATH,
12423 # but as the default location of the library.
12424 hardcode_minus_L=yes
12430 irix5* | irix6* | nonstopux*)
12431 if test yes = "$GCC"; then
12432 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'
12433 # Try to use the -exported_symbol ld option, if it does not
12434 # work, assume that -exports_file does not work either and
12435 # implicitly export all symbols.
12436 # This should be the same for all languages, so no per-tag cache variable.
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12438 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12439 if ${lt_cv_irix_exported_symbol+:} false; then :
12440 $as_echo_n "(cached) " >&6
12442 save_LDFLAGS=$LDFLAGS
12443 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12446 int foo (void) { return 0; }
12448 if ac_fn_c_try_link "$LINENO"; then :
12449 lt_cv_irix_exported_symbol=yes
12451 lt_cv_irix_exported_symbol=no
12453 rm -f core conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12455 LDFLAGS=$save_LDFLAGS
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12458 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12459 if test yes = "$lt_cv_irix_exported_symbol"; then
12460 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'
12463 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'
12464 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'
12466 archive_cmds_need_lc='no'
12467 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12468 hardcode_libdir_separator=:
12470 link_all_deplibs=yes
12474 case $cc_basename in
12476 # Fabrice Bellard et al's Tiny C Compiler
12478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12484 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12487 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12489 hardcode_libdir_flag_spec='-R$libdir'
12490 hardcode_direct=yes
12491 hardcode_shlibpath_var=no
12495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12496 hardcode_direct=yes
12497 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12498 hardcode_libdir_separator=:
12499 hardcode_shlibpath_var=no
12505 openbsd* | bitrig*)
12506 if test -f /usr/libexec/ld.so; then
12507 hardcode_direct=yes
12508 hardcode_shlibpath_var=no
12509 hardcode_direct_absolute=yes
12510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12512 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12513 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12514 export_dynamic_flag_spec='$wl-E'
12516 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12517 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12525 hardcode_libdir_flag_spec='-L$libdir'
12526 hardcode_minus_L=yes
12527 allow_undefined_flag=unsupported
12529 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12530 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12531 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12532 $ECHO EXPORTS >> $output_objdir/$libname.def~
12533 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12534 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12535 emximp -o $lib $output_objdir/$libname.def'
12536 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12537 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12538 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12539 $ECHO EXPORTS >> $output_objdir/$libname.def~
12540 prefix_cmds="$SED"~
12541 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12542 prefix_cmds="$prefix_cmds -e 1d";
12544 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12545 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12546 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12547 emximp -o $lib $output_objdir/$libname.def'
12548 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12549 enable_shared_with_static_runtimes=yes
12553 if test yes = "$GCC"; then
12554 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12555 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'
12557 allow_undefined_flag=' -expect_unresolved \*'
12558 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'
12560 archive_cmds_need_lc='no'
12561 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12562 hardcode_libdir_separator=:
12565 osf4* | osf5*) # as osf3* with the addition of -msym flag
12566 if test yes = "$GCC"; then
12567 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12568 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'
12569 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12571 allow_undefined_flag=' -expect_unresolved \*'
12572 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'
12573 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~
12574 $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'
12576 # Both c and cxx compiler support -rpath directly
12577 hardcode_libdir_flag_spec='-rpath $libdir'
12579 archive_cmds_need_lc='no'
12580 hardcode_libdir_separator=:
12584 no_undefined_flag=' -z defs'
12585 if test yes = "$GCC"; then
12587 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12588 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12589 $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'
12591 case `$CC -V 2>&1` in
12594 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12595 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12596 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12600 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12601 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12602 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12606 hardcode_libdir_flag_spec='-R$libdir'
12607 hardcode_shlibpath_var=no
12609 solaris2.[0-5] | solaris2.[0-5].*) ;;
12611 # The compiler driver will combine and reorder linker options,
12612 # but understands '-z linker_flag'. GCC discards it without '$wl',
12613 # but is careful enough not to reorder.
12614 # Supported since Solaris 2.6 (maybe 2.5.1?)
12615 if test yes = "$GCC"; then
12616 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12618 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12622 link_all_deplibs=yes
12626 if test sequent = "$host_vendor"; then
12627 # Use $CC to link under sequent, because it throws in some extra .o
12628 # files that make .init and .fini sections work.
12629 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12631 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12633 hardcode_libdir_flag_spec='-L$libdir'
12634 hardcode_direct=yes
12635 hardcode_minus_L=yes
12636 hardcode_shlibpath_var=no
12640 case $host_vendor in
12642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12643 hardcode_direct=yes # is this really true???
12646 ## LD is ld it makes a PLAMLIB
12647 ## CC just makes a GrossModule.
12648 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12649 reload_cmds='$CC -r -o $output$reload_objs'
12653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12654 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12657 runpath_var='LD_RUN_PATH'
12658 hardcode_shlibpath_var=no
12662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12663 hardcode_shlibpath_var=no
12664 export_dynamic_flag_spec='-Bexport'
12668 if test -d /usr/nec; then
12669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12670 hardcode_shlibpath_var=no
12671 runpath_var=LD_RUN_PATH
12672 hardcode_runpath_var=yes
12677 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12678 no_undefined_flag='$wl-z,text'
12679 archive_cmds_need_lc=no
12680 hardcode_shlibpath_var=no
12681 runpath_var='LD_RUN_PATH'
12683 if test yes = "$GCC"; then
12684 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12685 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12687 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12688 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12692 sysv5* | sco3.2v5* | sco5v6*)
12693 # Note: We CANNOT use -z defs as we might desire, because we do not
12694 # link with -lc, and that would cause any symbols used from libc to
12695 # always be unresolved, which means just about no library would
12696 # ever link correctly. If we're not using GNU ld we use -z text
12697 # though, which does catch some bad symbols but isn't as heavy-handed
12699 no_undefined_flag='$wl-z,text'
12700 allow_undefined_flag='$wl-z,nodefs'
12701 archive_cmds_need_lc=no
12702 hardcode_shlibpath_var=no
12703 hardcode_libdir_flag_spec='$wl-R,$libdir'
12704 hardcode_libdir_separator=':'
12705 link_all_deplibs=yes
12706 export_dynamic_flag_spec='$wl-Bexport'
12707 runpath_var='LD_RUN_PATH'
12709 if test yes = "$GCC"; then
12710 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12711 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12713 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12714 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12720 hardcode_libdir_flag_spec='-L$libdir'
12721 hardcode_shlibpath_var=no
12729 if test sni = "$host_vendor"; then
12731 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12732 export_dynamic_flag_spec='$wl-Blargedynsym'
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12739 $as_echo "$ld_shlibs" >&6; }
12740 test no = "$ld_shlibs" && can_build_shared=no
12742 with_gnu_ld=$with_gnu_ld
12759 # Do we need to explicitly link libc?
12761 case "x$archive_cmds_need_lc" in
12763 # Assume -lc should be added
12764 archive_cmds_need_lc=yes
12766 if test yes,yes = "$GCC,$enable_shared"; then
12767 case $archive_cmds in
12769 # FIXME: we may have to deal with multi-command sequences.
12772 # Test whether the compiler implicitly links with -lc since on some
12773 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12774 # to ld, don't add -lc before -lgcc.
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12776 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12777 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12778 $as_echo_n "(cached) " >&6
12781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12784 (eval $ac_compile) 2>&5
12786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12787 test $ac_status = 0; } 2>conftest.err; then
12790 libobjs=conftest.$ac_objext
12792 wl=$lt_prog_compiler_wl
12793 pic_flag=$lt_prog_compiler_pic
12799 lt_save_allow_undefined_flag=$allow_undefined_flag
12800 allow_undefined_flag=
12801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12802 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12805 test $ac_status = 0; }
12807 lt_cv_archive_cmds_need_lc=no
12809 lt_cv_archive_cmds_need_lc=yes
12811 allow_undefined_flag=$lt_save_allow_undefined_flag
12813 cat conftest.err 1>&5
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12819 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12820 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12979 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12981 if test yes = "$GCC"; then
12983 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12984 *) lt_awk_arg='/^libraries:/' ;;
12987 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12988 *) lt_sed_strip_eq='s|=/|/|g' ;;
12990 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12991 case $lt_search_path_spec in
12993 # if the path contains ";" then we assume it to be the separator
12994 # otherwise default to the standard path separator (i.e. ":") - it is
12995 # assumed that no part of a normal pathname contains ";" but that should
12996 # okay in the real world where ";" in dirpaths is itself problematic.
12997 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13000 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13003 # Ok, now we have the path, separated by spaces, we can step through it
13004 # and add multilib dir if necessary...
13005 lt_tmp_lt_search_path_spec=
13006 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13007 # ...but if some path component already ends with the multilib dir we assume
13008 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13009 case "$lt_multi_os_dir; $lt_search_path_spec " in
13010 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13014 for lt_sys_path in $lt_search_path_spec; do
13015 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13016 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13017 elif test -n "$lt_multi_os_dir"; then
13018 test -d "$lt_sys_path" && \
13019 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13022 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13023 BEGIN {RS = " "; FS = "/|\n";} {
13026 for (lt_i = NF; lt_i > 0; lt_i--) {
13027 if ($lt_i != "" && $lt_i != ".") {
13028 if ($lt_i == "..") {
13031 if (lt_count == 0) {
13032 lt_foo = "/" $lt_i lt_foo;
13039 if (lt_foo != "") { lt_freq[lt_foo]++; }
13040 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13042 # AWK program above erroneously prepends '/' to C:/dos/paths
13045 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13046 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13048 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13050 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13052 library_names_spec=
13053 libname_spec='lib$name'
13057 postuninstall_cmds=
13061 shlibpath_overrides_runpath=unknown
13063 dynamic_linker="$host_os ld.so"
13064 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13065 need_lib_prefix=unknown
13066 hardcode_into_libs=no
13068 # when you set need_version to no, make sure it does not cause -set_version
13069 # flags to be left without arguments
13070 need_version=unknown
13076 version_type=linux # correct to gnu/linux during the next big refactor
13077 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13078 shlibpath_var=LIBPATH
13080 # AIX 3 has no versioning support, so we append a major version to the name.
13081 soname_spec='$libname$release$shared_ext$major'
13085 version_type=linux # correct to gnu/linux during the next big refactor
13088 hardcode_into_libs=yes
13089 if test ia64 = "$host_cpu"; then
13090 # AIX 5 supports IA64
13091 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13092 shlibpath_var=LD_LIBRARY_PATH
13094 # With GCC up to 2.95.x, collect2 would create an import file
13095 # for dependence libraries. The import file would start with
13096 # the line '#! .'. This would cause the generated library to
13097 # depend on '.', always an invalid library. This was fixed in
13098 # development snapshots of GCC prior to 3.0.
13100 aix4 | aix4.[01] | aix4.[01].*)
13101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13103 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13106 can_build_shared=no
13110 # Using Import Files as archive members, it is possible to support
13111 # filename-based versioning of shared library archives on AIX. While
13112 # this would work for both with and without runtime linking, it will
13113 # prevent static linking of such archives. So we do filename-based
13114 # shared library versioning with .so extension only, which is used
13115 # when both runtime linking and shared linking is enabled.
13116 # Unfortunately, runtime linking may impact performance, so we do
13117 # not want this to be the default eventually. Also, we use the
13118 # versioned .so libs for executables only if there is the -brtl
13119 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13120 # To allow for filename-based versioning support, we need to create
13121 # libNAME.so.V as an archive file, containing:
13122 # *) an Import File, referring to the versioned filename of the
13123 # archive as well as the shared archive member, telling the
13124 # bitwidth (32 or 64) of that shared object, and providing the
13125 # list of exported symbols of that shared object, eventually
13126 # decorated with the 'weak' keyword
13127 # *) the shared object with the F_LOADONLY flag set, to really avoid
13128 # it being seen by the linker.
13129 # At run time we better use the real file rather than another symlink,
13130 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13132 case $with_aix_soname,$aix_use_runtimelinking in
13133 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13134 # soname into executable. Probably we can add versioning support to
13135 # collect2, so additional links can be useful in future.
13136 aix,yes) # traditional libtool
13137 dynamic_linker='AIX unversionable lib.so'
13138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13139 # instead of lib<name>.a to let people know that these are not
13140 # typical AIX shared libraries.
13141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13143 aix,no) # traditional AIX only
13144 dynamic_linker='AIX lib.a(lib.so.V)'
13145 # We preserve .a as extension for shared libraries through AIX4.2
13146 # and later when we are not doing run time linking.
13147 library_names_spec='$libname$release.a $libname.a'
13148 soname_spec='$libname$release$shared_ext$major'
13150 svr4,*) # full svr4 only
13151 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13152 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13153 # We do not specify a path in Import Files, so LIBPATH fires.
13154 shlibpath_overrides_runpath=yes
13156 *,yes) # both, prefer svr4
13157 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13158 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13159 # unpreferred sharedlib libNAME.a needs extra handling
13160 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13161 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13162 # We do not specify a path in Import Files, so LIBPATH fires.
13163 shlibpath_overrides_runpath=yes
13165 *,no) # both, prefer aix
13166 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13167 library_names_spec='$libname$release.a $libname.a'
13168 soname_spec='$libname$release$shared_ext$major'
13169 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13170 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13171 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13174 shlibpath_var=LIBPATH
13181 # Since July 2007 AmigaOS4 officially supports .so libraries.
13182 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13186 library_names_spec='$libname.ixlibrary $libname.a'
13187 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13188 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13194 library_names_spec='$libname$shared_ext'
13195 dynamic_linker="$host_os ld.so"
13196 shlibpath_var=LIBRARY_PATH
13200 version_type=linux # correct to gnu/linux during the next big refactor
13202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13203 soname_spec='$libname$release$shared_ext$major'
13204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13205 shlibpath_var=LD_LIBRARY_PATH
13206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13208 # the default ld.so.conf also contains /usr/contrib/lib and
13209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13210 # libtool to hard-code these into programs
13213 cygwin* | mingw* | pw32* | cegcc*)
13214 version_type=windows
13219 case $GCC,$cc_basename in
13222 library_names_spec='$libname.dll.a'
13223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13224 postinstall_cmds='base_file=`basename \$file`~
13225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13226 dldir=$destdir/`dirname \$dlpath`~
13227 test -d \$dldir || mkdir -p \$dldir~
13228 $install_prog $dir/$dlname \$dldir/$dlname~
13229 chmod a+x \$dldir/$dlname~
13230 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13231 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13234 dlpath=$dir/\$dldll~
13236 shlibpath_overrides_runpath=yes
13240 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13241 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13243 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13246 # MinGW DLLs use traditional 'lib' prefix
13247 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13250 # pw32 DLLs use 'pw' prefix rather than 'lib'
13251 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13254 dynamic_linker='Win32 ld.exe'
13259 libname_spec='$name'
13260 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13261 library_names_spec='$libname.dll.lib'
13265 sys_lib_search_path_spec=
13268 for lt_path in $LIB
13271 # Let DOS variable expansion print the short 8.3 style file name.
13272 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13273 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13276 # Convert to MSYS style.
13277 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13280 # Convert to unix form, then to dos form, then back to unix form
13281 # but this time dos style (no spaces!) so that the unix form looks
13282 # like /cygdrive/c/PROGRA~1:/cygdr...
13283 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13284 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13285 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13288 sys_lib_search_path_spec=$LIB
13289 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13290 # It is most probably a Windows format PATH.
13291 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13293 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13295 # FIXME: find the short name or the path components, as spaces are
13296 # common. (e.g. "Program Files" -> "PROGRA~1")
13300 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13301 postinstall_cmds='base_file=`basename \$file`~
13302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13303 dldir=$destdir/`dirname \$dlpath`~
13304 test -d \$dldir || mkdir -p \$dldir~
13305 $install_prog $dir/$dlname \$dldir/$dlname'
13306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13307 dlpath=$dir/\$dldll~
13309 shlibpath_overrides_runpath=yes
13310 dynamic_linker='Win32 link.exe'
13314 # Assume MSVC wrapper
13315 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13316 dynamic_linker='Win32 ld.exe'
13319 # FIXME: first we should search . and the directory the executable is in
13323 darwin* | rhapsody*)
13324 dynamic_linker="$host_os dyld"
13325 version_type=darwin
13328 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13329 soname_spec='$libname$release$major$shared_ext'
13330 shlibpath_overrides_runpath=yes
13331 shlibpath_var=DYLD_LIBRARY_PATH
13332 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13334 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13335 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13339 version_type=linux # correct to gnu/linux during the next big refactor
13342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13343 soname_spec='$libname$release$shared_ext$major'
13344 shlibpath_var=LD_LIBRARY_PATH
13347 freebsd* | dragonfly*)
13348 # DragonFly does not have aout. When/if they implement a new
13349 # versioning mechanism, adjust this.
13350 if test -x /usr/bin/objformat; then
13351 objformat=`/usr/bin/objformat`
13354 freebsd[23].*) objformat=aout ;;
13355 *) objformat=elf ;;
13358 version_type=freebsd-$objformat
13359 case $version_type in
13361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13362 soname_spec='$libname$release$shared_ext$major'
13367 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13371 shlibpath_var=LD_LIBRARY_PATH
13374 shlibpath_overrides_runpath=yes
13376 freebsd3.[01]* | freebsdelf3.[01]*)
13377 shlibpath_overrides_runpath=yes
13378 hardcode_into_libs=yes
13380 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13381 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13382 shlibpath_overrides_runpath=no
13383 hardcode_into_libs=yes
13385 *) # from 4.6 on, and DragonFly
13386 shlibpath_overrides_runpath=yes
13387 hardcode_into_libs=yes
13393 version_type=linux # correct to gnu/linux during the next big refactor
13396 dynamic_linker="$host_os runtime_loader"
13397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13398 soname_spec='$libname$release$shared_ext$major'
13399 shlibpath_var=LIBRARY_PATH
13400 shlibpath_overrides_runpath=no
13401 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13402 hardcode_into_libs=yes
13405 hpux9* | hpux10* | hpux11*)
13406 # Give a soname corresponding to the major version so that dld.sl refuses to
13407 # link against other versions.
13414 hardcode_into_libs=yes
13415 dynamic_linker="$host_os dld.so"
13416 shlibpath_var=LD_LIBRARY_PATH
13417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13419 soname_spec='$libname$release$shared_ext$major'
13420 if test 32 = "$HPUX_IA64_MODE"; then
13421 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13422 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13424 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13425 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13430 hardcode_into_libs=yes
13431 dynamic_linker="$host_os dld.sl"
13432 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13435 soname_spec='$libname$release$shared_ext$major'
13436 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13441 dynamic_linker="$host_os dld.sl"
13442 shlibpath_var=SHLIB_PATH
13443 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13445 soname_spec='$libname$release$shared_ext$major'
13448 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13449 postinstall_cmds='chmod 555 $lib'
13450 # or fails outright, so override atomically:
13451 install_override_mode=555
13455 version_type=linux # correct to gnu/linux during the next big refactor
13458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13459 soname_spec='$libname$release$shared_ext$major'
13460 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13461 shlibpath_var=LD_LIBRARY_PATH
13462 shlibpath_overrides_runpath=no
13463 hardcode_into_libs=yes
13466 irix5* | irix6* | nonstopux*)
13468 nonstopux*) version_type=nonstopux ;;
13470 if test yes = "$lt_cv_prog_gnu_ld"; then
13471 version_type=linux # correct to gnu/linux during the next big refactor
13478 soname_spec='$libname$release$shared_ext$major'
13479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13481 irix5* | nonstopux*)
13482 libsuff= shlibsuff=
13485 case $LD in # libtool.m4 will add one of these switches to LD
13486 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13487 libsuff= shlibsuff= libmagic=32-bit;;
13488 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13489 libsuff=32 shlibsuff=N32 libmagic=N32;;
13490 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13491 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13492 *) libsuff= shlibsuff= libmagic=never-match;;
13496 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13497 shlibpath_overrides_runpath=no
13498 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13499 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13500 hardcode_into_libs=yes
13503 # No shared lib support for Linux oldld, aout, or coff.
13504 linux*oldld* | linux*aout* | linux*coff*)
13509 version_type=none # Android doesn't support versioned libraries.
13512 library_names_spec='$libname$release$shared_ext'
13513 soname_spec='$libname$release$shared_ext'
13515 shlibpath_var=LD_LIBRARY_PATH
13516 shlibpath_overrides_runpath=yes
13518 # This implies no fast_install, which is unacceptable.
13519 # Some rework will be needed to allow for fast_install
13520 # before this can be enabled.
13521 hardcode_into_libs=yes
13523 dynamic_linker='Android linker'
13524 # Don't embed -rpath directories since the linker doesn't support them.
13525 hardcode_libdir_flag_spec='-L$libdir'
13528 # This must be glibc/ELF.
13529 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13530 version_type=linux # correct to gnu/linux during the next big refactor
13533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13534 soname_spec='$libname$release$shared_ext$major'
13535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13536 shlibpath_var=LD_LIBRARY_PATH
13537 shlibpath_overrides_runpath=no
13539 # Some binutils ld are patched to set DT_RUNPATH
13540 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13541 $as_echo_n "(cached) " >&6
13543 lt_cv_shlibpath_overrides_runpath=no
13544 save_LDFLAGS=$LDFLAGS
13545 save_libdir=$libdir
13546 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13547 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13559 if ac_fn_c_try_link "$LINENO"; then :
13560 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13561 lt_cv_shlibpath_overrides_runpath=yes
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 LDFLAGS=$save_LDFLAGS
13567 libdir=$save_libdir
13571 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13573 # This implies no fast_install, which is unacceptable.
13574 # Some rework will be needed to allow for fast_install
13575 # before this can be enabled.
13576 hardcode_into_libs=yes
13578 # Add ABI-specific directories to the system library path.
13579 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13581 # Ideally, we could use ldconfig to report *all* directores which are
13582 # searched for libraries, however this is still not possible. Aside from not
13583 # being certain /sbin/ldconfig is available, command
13584 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13585 # even though it is searched at run-time. Try to do the best guess by
13586 # appending ld.so.conf contents (and includes) to the search path.
13587 if test -f /etc/ld.so.conf; then
13588 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' ' '`
13589 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13592 # We used to test for /lib/ld.so.1 and disable shared libraries on
13593 # powerpc, because MkLinux only supported shared libraries with the
13594 # GNU dynamic linker. Since this was broken with cross compilers,
13595 # most powerpc-linux boxes support dynamic linking these days and
13596 # people can always --disable-shared, the test was removed, and we
13597 # assume the GNU/Linux dynamic linker is in use.
13598 dynamic_linker='GNU/Linux ld.so'
13605 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13606 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13608 dynamic_linker='NetBSD (a.out) ld.so'
13610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13611 soname_spec='$libname$release$shared_ext$major'
13612 dynamic_linker='NetBSD ld.elf_so'
13614 shlibpath_var=LD_LIBRARY_PATH
13615 shlibpath_overrides_runpath=yes
13616 hardcode_into_libs=yes
13620 version_type=linux # correct to gnu/linux during the next big refactor
13621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13622 shlibpath_var=LD_LIBRARY_PATH
13623 shlibpath_overrides_runpath=yes
13630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13631 soname_spec='$libname$release$shared_ext$major'
13632 shlibpath_var=LD_LIBRARY_PATH
13633 shlibpath_overrides_runpath=no
13634 hardcode_into_libs=yes
13635 dynamic_linker='ldqnx.so'
13638 openbsd* | bitrig*)
13640 sys_lib_dlsearch_path_spec=/usr/lib
13642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13647 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13649 shlibpath_var=LD_LIBRARY_PATH
13650 shlibpath_overrides_runpath=yes
13654 libname_spec='$name'
13655 version_type=windows
13659 # OS/2 can only load a DLL with a base name of 8 characters or less.
13660 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13661 v=$($ECHO $release$versuffix | tr -d .-);
13662 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13663 $ECHO $n$v`$shared_ext'
13664 library_names_spec='${libname}_dll.$libext'
13665 dynamic_linker='OS/2 ld.exe'
13666 shlibpath_var=BEGINLIBPATH
13667 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13669 postinstall_cmds='base_file=`basename \$file`~
13670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13671 dldir=$destdir/`dirname \$dlpath`~
13672 test -d \$dldir || mkdir -p \$dldir~
13673 $install_prog $dir/$dlname \$dldir/$dlname~
13674 chmod a+x \$dldir/$dlname~
13675 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13676 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13679 dlpath=$dir/\$dldll~
13683 osf3* | osf4* | osf5*)
13687 soname_spec='$libname$release$shared_ext$major'
13688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13689 shlibpath_var=LD_LIBRARY_PATH
13690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13699 version_type=linux # correct to gnu/linux during the next big refactor
13702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13703 soname_spec='$libname$release$shared_ext$major'
13704 shlibpath_var=LD_LIBRARY_PATH
13705 shlibpath_overrides_runpath=yes
13706 hardcode_into_libs=yes
13707 # ldd complains unless libraries are executable
13708 postinstall_cmds='chmod +x $lib'
13713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13715 shlibpath_var=LD_LIBRARY_PATH
13716 shlibpath_overrides_runpath=yes
13717 if test yes = "$with_gnu_ld"; then
13724 version_type=linux # correct to gnu/linux during the next big refactor
13725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13726 soname_spec='$libname$release$shared_ext$major'
13727 shlibpath_var=LD_LIBRARY_PATH
13728 case $host_vendor in
13730 shlibpath_overrides_runpath=no
13732 runpath_var=LD_RUN_PATH
13740 shlibpath_overrides_runpath=no
13741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13747 if test -d /usr/nec; then
13748 version_type=linux # correct to gnu/linux during the next big refactor
13749 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13750 soname_spec='$libname$shared_ext.$major'
13751 shlibpath_var=LD_LIBRARY_PATH
13755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13760 soname_spec='$libname$release$shared_ext$major'
13761 shlibpath_var=LD_LIBRARY_PATH
13762 shlibpath_overrides_runpath=yes
13763 hardcode_into_libs=yes
13764 if test yes = "$with_gnu_ld"; then
13765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13774 sys_lib_dlsearch_path_spec='/usr/lib'
13778 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13779 version_type=linux # correct to gnu/linux during the next big refactor
13782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13783 shlibpath_var=LD_LIBRARY_PATH
13784 shlibpath_overrides_runpath=no
13785 hardcode_into_libs=yes
13789 version_type=linux # correct to gnu/linux during the next big refactor
13790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13791 soname_spec='$libname$release$shared_ext$major'
13792 shlibpath_var=LD_LIBRARY_PATH
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13800 $as_echo "$dynamic_linker" >&6; }
13801 test no = "$dynamic_linker" && can_build_shared=no
13803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13804 if test yes = "$GCC"; then
13805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13808 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13809 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13812 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13813 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13816 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13817 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13819 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13820 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13822 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13823 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13922 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13924 if test -n "$hardcode_libdir_flag_spec" ||
13925 test -n "$runpath_var" ||
13926 test yes = "$hardcode_automatic"; then
13928 # We can hardcode non-existent directories.
13929 if test no != "$hardcode_direct" &&
13930 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13931 # have to relink, otherwise we might link with an installed library
13932 # when we should be linking with a yet-to-be-installed one
13933 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13934 test no != "$hardcode_minus_L"; then
13935 # Linking always hardcodes the temporary library directory.
13936 hardcode_action=relink
13938 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13939 hardcode_action=immediate
13942 # We cannot hardcode anything, or else we can only hardcode existing
13944 hardcode_action=unsupported
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13947 $as_echo "$hardcode_action" >&6; }
13949 if test relink = "$hardcode_action" ||
13950 test yes = "$inherit_rpath"; then
13951 # Fast installation is not supported
13952 enable_fast_install=no
13953 elif test yes = "$shlibpath_overrides_runpath" ||
13954 test no = "$enable_shared"; then
13955 # Fast installation is not necessary
13956 enable_fast_install=needless
13964 if test yes != "$enable_dlopen"; then
13965 enable_dlopen=unknown
13966 enable_dlopen_self=unknown
13967 enable_dlopen_self_static=unknown
13974 lt_cv_dlopen=load_add_on
13976 lt_cv_dlopen_self=yes
13979 mingw* | pw32* | cegcc*)
13980 lt_cv_dlopen=LoadLibrary
13985 lt_cv_dlopen=dlopen
13990 # if libdl is installed we need to link against it
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13992 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13993 if ${ac_cv_lib_dl_dlopen+:} false; then :
13994 $as_echo_n "(cached) " >&6
13996 ac_check_lib_save_LIBS=$LIBS
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14001 /* Override any GCC internal prototype to avoid an error.
14002 Use char because int might match the return type of a GCC
14003 builtin and then its argument prototype would still apply. */
14016 if ac_fn_c_try_link "$LINENO"; then :
14017 ac_cv_lib_dl_dlopen=yes
14019 ac_cv_lib_dl_dlopen=no
14021 rm -f core conftest.err conftest.$ac_objext \
14022 conftest$ac_exeext conftest.$ac_ext
14023 LIBS=$ac_check_lib_save_LIBS
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14026 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14027 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14028 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14033 lt_cv_dlopen_self=yes
14040 # Don't try to run any link tests for TPF. We know it's impossible
14041 # because TPF is a cross-compiler, and we know how we open DSOs.
14042 lt_cv_dlopen=dlopen
14044 lt_cv_dlopen_self=no
14048 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14049 if test "x$ac_cv_func_shl_load" = xyes; then :
14050 lt_cv_dlopen=shl_load
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14053 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14054 if ${ac_cv_lib_dld_shl_load+:} false; then :
14055 $as_echo_n "(cached) " >&6
14057 ac_check_lib_save_LIBS=$LIBS
14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060 /* end confdefs.h. */
14062 /* Override any GCC internal prototype to avoid an error.
14063 Use char because int might match the return type of a GCC
14064 builtin and then its argument prototype would still apply. */
14072 return shl_load ();
14077 if ac_fn_c_try_link "$LINENO"; then :
14078 ac_cv_lib_dld_shl_load=yes
14080 ac_cv_lib_dld_shl_load=no
14082 rm -f core conftest.err conftest.$ac_objext \
14083 conftest$ac_exeext conftest.$ac_ext
14084 LIBS=$ac_check_lib_save_LIBS
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14087 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14088 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14089 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14091 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14092 if test "x$ac_cv_func_dlopen" = xyes; then :
14093 lt_cv_dlopen=dlopen
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14096 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14097 if ${ac_cv_lib_dl_dlopen+:} false; then :
14098 $as_echo_n "(cached) " >&6
14100 ac_check_lib_save_LIBS=$LIBS
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14105 /* Override any GCC internal prototype to avoid an error.
14106 Use char because int might match the return type of a GCC
14107 builtin and then its argument prototype would still apply. */
14120 if ac_fn_c_try_link "$LINENO"; then :
14121 ac_cv_lib_dl_dlopen=yes
14123 ac_cv_lib_dl_dlopen=no
14125 rm -f core conftest.err conftest.$ac_objext \
14126 conftest$ac_exeext conftest.$ac_ext
14127 LIBS=$ac_check_lib_save_LIBS
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14130 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14131 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14132 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14135 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14136 if ${ac_cv_lib_svld_dlopen+:} false; then :
14137 $as_echo_n "(cached) " >&6
14139 ac_check_lib_save_LIBS=$LIBS
14140 LIBS="-lsvld $LIBS"
14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14144 /* Override any GCC internal prototype to avoid an error.
14145 Use char because int might match the return type of a GCC
14146 builtin and then its argument prototype would still apply. */
14159 if ac_fn_c_try_link "$LINENO"; then :
14160 ac_cv_lib_svld_dlopen=yes
14162 ac_cv_lib_svld_dlopen=no
14164 rm -f core conftest.err conftest.$ac_objext \
14165 conftest$ac_exeext conftest.$ac_ext
14166 LIBS=$ac_check_lib_save_LIBS
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14169 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14170 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14171 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14174 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14175 if ${ac_cv_lib_dld_dld_link+:} false; then :
14176 $as_echo_n "(cached) " >&6
14178 ac_check_lib_save_LIBS=$LIBS
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14183 /* Override any GCC internal prototype to avoid an error.
14184 Use char because int might match the return type of a GCC
14185 builtin and then its argument prototype would still apply. */
14193 return dld_link ();
14198 if ac_fn_c_try_link "$LINENO"; then :
14199 ac_cv_lib_dld_dld_link=yes
14201 ac_cv_lib_dld_dld_link=no
14203 rm -f core conftest.err conftest.$ac_objext \
14204 conftest$ac_exeext conftest.$ac_ext
14205 LIBS=$ac_check_lib_save_LIBS
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14208 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14209 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14210 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14231 if test no = "$lt_cv_dlopen"; then
14237 case $lt_cv_dlopen in
14239 save_CPPFLAGS=$CPPFLAGS
14240 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14242 save_LDFLAGS=$LDFLAGS
14243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14246 LIBS="$lt_cv_dlopen_libs $LIBS"
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14249 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14250 if ${lt_cv_dlopen_self+:} false; then :
14251 $as_echo_n "(cached) " >&6
14253 if test yes = "$cross_compiling"; then :
14254 lt_cv_dlopen_self=cross
14256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14257 lt_status=$lt_dlunknown
14258 cat > conftest.$ac_ext <<_LT_EOF
14259 #line $LINENO "configure"
14260 #include "confdefs.h"
14269 # define LT_DLGLOBAL RTLD_GLOBAL
14272 # define LT_DLGLOBAL DL_GLOBAL
14274 # define LT_DLGLOBAL 0
14278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14279 find out it does not work in some platform. */
14280 #ifndef LT_DLLAZY_OR_NOW
14282 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14285 # define LT_DLLAZY_OR_NOW DL_LAZY
14288 # define LT_DLLAZY_OR_NOW RTLD_NOW
14291 # define LT_DLLAZY_OR_NOW DL_NOW
14293 # define LT_DLLAZY_OR_NOW 0
14300 /* When -fvisibility=hidden is used, assume the code has been annotated
14301 correspondingly for the symbols needed. */
14302 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14303 int fnord () __attribute__((visibility("default")));
14306 int fnord () { return 42; }
14309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14310 int status = $lt_dlunknown;
14314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14317 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14318 else puts (dlerror ());
14320 /* dlclose (self); */
14328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14329 (eval $ac_link) 2>&5
14331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14332 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14333 (./conftest; exit; ) >&5 2>/dev/null
14335 case x$lt_status in
14336 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14337 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14338 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14341 # compilation failed
14342 lt_cv_dlopen_self=no
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14350 $as_echo "$lt_cv_dlopen_self" >&6; }
14352 if test yes = "$lt_cv_dlopen_self"; then
14353 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14355 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14356 if ${lt_cv_dlopen_self_static+:} false; then :
14357 $as_echo_n "(cached) " >&6
14359 if test yes = "$cross_compiling"; then :
14360 lt_cv_dlopen_self_static=cross
14362 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14363 lt_status=$lt_dlunknown
14364 cat > conftest.$ac_ext <<_LT_EOF
14365 #line $LINENO "configure"
14366 #include "confdefs.h"
14375 # define LT_DLGLOBAL RTLD_GLOBAL
14378 # define LT_DLGLOBAL DL_GLOBAL
14380 # define LT_DLGLOBAL 0
14384 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14385 find out it does not work in some platform. */
14386 #ifndef LT_DLLAZY_OR_NOW
14388 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14391 # define LT_DLLAZY_OR_NOW DL_LAZY
14394 # define LT_DLLAZY_OR_NOW RTLD_NOW
14397 # define LT_DLLAZY_OR_NOW DL_NOW
14399 # define LT_DLLAZY_OR_NOW 0
14406 /* When -fvisibility=hidden is used, assume the code has been annotated
14407 correspondingly for the symbols needed. */
14408 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14409 int fnord () __attribute__((visibility("default")));
14412 int fnord () { return 42; }
14415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14416 int status = $lt_dlunknown;
14420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14423 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14424 else puts (dlerror ());
14426 /* dlclose (self); */
14434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14435 (eval $ac_link) 2>&5
14437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14438 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14439 (./conftest; exit; ) >&5 2>/dev/null
14441 case x$lt_status in
14442 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14443 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14444 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14447 # compilation failed
14448 lt_cv_dlopen_self_static=no
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14456 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14459 CPPFLAGS=$save_CPPFLAGS
14460 LDFLAGS=$save_LDFLAGS
14465 case $lt_cv_dlopen_self in
14466 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14467 *) enable_dlopen_self=unknown ;;
14470 case $lt_cv_dlopen_self_static in
14471 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14472 *) enable_dlopen_self_static=unknown ;;
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14495 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14496 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14497 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14498 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14500 $as_echo "yes" >&6; }
14502 # FIXME - insert some real tests, host_os isn't really good enough
14505 if test -n "$STRIP"; then
14506 striplib="$STRIP -x"
14507 old_striplib="$STRIP -S"
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14509 $as_echo "yes" >&6; }
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14512 $as_echo "no" >&6; }
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14517 $as_echo "no" >&6; }
14533 # Report what library types will actually be built
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14535 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14537 $as_echo "$can_build_shared" >&6; }
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14540 $as_echo_n "checking whether to build shared libraries... " >&6; }
14541 test no = "$can_build_shared" && enable_shared=no
14543 # On AIX, shared libraries and static libraries use the same namespace, and
14544 # are all built from PIC.
14547 test yes = "$enable_shared" && enable_static=no
14548 if test -n "$RANLIB"; then
14549 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14550 postinstall_cmds='$RANLIB $lib'
14555 if test ia64 != "$host_cpu"; then
14556 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14557 yes,aix,yes) ;; # shared object as lib.so file only
14558 yes,svr4,*) ;; # shared object as lib.so archive member only
14559 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14565 $as_echo "$enable_shared" >&6; }
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14568 $as_echo_n "checking whether to build static libraries... " >&6; }
14569 # Make sure either enable_shared or enable_static is yes.
14570 test yes = "$enable_shared" || enable_static=yes
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14572 $as_echo "$enable_static" >&6; }
14579 ac_cpp='$CPP $CPPFLAGS'
14580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14600 ac_config_commands="$ac_config_commands libtool"
14605 # Only expand once:
14617 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14618 if test -n "$ac_tool_prefix"; then
14619 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14620 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14622 $as_echo_n "checking for $ac_word... " >&6; }
14623 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14624 $as_echo_n "(cached) " >&6
14626 case $PKG_CONFIG in
14628 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14632 for as_dir in $PATH
14635 test -z "$as_dir" && as_dir=.
14636 for ac_exec_ext in '' $ac_executable_extensions; do
14637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14638 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14649 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14650 if test -n "$PKG_CONFIG"; then
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14652 $as_echo "$PKG_CONFIG" >&6; }
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14655 $as_echo "no" >&6; }
14660 if test -z "$ac_cv_path_PKG_CONFIG"; then
14661 ac_pt_PKG_CONFIG=$PKG_CONFIG
14662 # Extract the first word of "pkg-config", so it can be a program name with args.
14663 set dummy pkg-config; ac_word=$2
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14665 $as_echo_n "checking for $ac_word... " >&6; }
14666 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14667 $as_echo_n "(cached) " >&6
14669 case $ac_pt_PKG_CONFIG in
14671 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14675 for as_dir in $PATH
14678 test -z "$as_dir" && as_dir=.
14679 for ac_exec_ext in '' $ac_executable_extensions; do
14680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14681 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14692 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14693 if test -n "$ac_pt_PKG_CONFIG"; then
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14695 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14698 $as_echo "no" >&6; }
14701 if test "x$ac_pt_PKG_CONFIG" = x; then
14704 case $cross_compiling:$ac_tool_warned in
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14708 ac_tool_warned=yes ;;
14710 PKG_CONFIG=$ac_pt_PKG_CONFIG
14713 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14717 if test -n "$PKG_CONFIG"; then
14718 _pkg_min_version=0.9.0
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14720 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14721 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14723 $as_echo "yes" >&6; }
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14726 $as_echo "no" >&6; }
14731 # Checks for header files.
14732 for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/select.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h sys/endian.h libkern/OSByteOrder.h sys/ipc.h sys/shm.h ifaddrs.h
14734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14735 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14738 cat >>confdefs.h <<_ACEOF
14739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14746 # net/if.h portability for Darwin see:
14747 # https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html
14748 for ac_header in net/if.h
14750 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
14752 #ifdef STDC_HEADERS
14753 # include <stdlib.h>
14754 # include <stddef.h>
14756 # ifdef HAVE_STDLIB_H
14757 # include <stdlib.h>
14760 #ifdef HAVE_SYS_SOCKET_H
14761 # include <sys/socket.h>
14765 if test "x$ac_cv_header_net_if_h" = xyes; then :
14766 cat >>confdefs.h <<_ACEOF
14767 #define HAVE_NET_IF_H 1
14775 # Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
14776 for ac_header in TargetConditionals.h
14778 ac_fn_c_check_header_mongrel "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default"
14779 if test "x$ac_cv_header_TargetConditionals_h" = xyes; then :
14780 cat >>confdefs.h <<_ACEOF
14781 #define HAVE_TARGETCONDITIONALS_H 1
14790 # Using own tests for int64* because autoconf builtin only give 32bit.
14791 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14792 if test "x$ac_cv_type_int8_t" = xyes; then :
14796 cat >>confdefs.h <<_ACEOF
14797 #define int8_t signed char
14802 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14803 if test "x$ac_cv_type_int16_t" = xyes; then :
14807 cat >>confdefs.h <<_ACEOF
14808 #define int16_t short
14813 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14814 if test "x$ac_cv_type_int32_t" = xyes; then :
14818 cat >>confdefs.h <<_ACEOF
14819 #define int32_t int
14824 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14825 if test "x$ac_cv_type_int64_t" = xyes; then :
14829 cat >>confdefs.h <<_ACEOF
14830 #define int64_t long long
14835 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14836 if test "x$ac_cv_type_uint8_t" = xyes; then :
14840 cat >>confdefs.h <<_ACEOF
14841 #define uint8_t unsigned char
14846 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14847 if test "x$ac_cv_type_uint16_t" = xyes; then :
14851 cat >>confdefs.h <<_ACEOF
14852 #define uint16_t unsigned short
14857 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14858 if test "x$ac_cv_type_uint32_t" = xyes; then :
14862 cat >>confdefs.h <<_ACEOF
14863 #define uint32_t unsigned int
14868 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14869 if test "x$ac_cv_type_uint64_t" = xyes; then :
14873 cat >>confdefs.h <<_ACEOF
14874 #define uint64_t unsigned long long
14879 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14880 if test "x$ac_cv_type_size_t" = xyes; then :
14884 cat >>confdefs.h <<_ACEOF
14885 #define size_t unsigned int
14890 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14891 if test "x$ac_cv_type_ssize_t" = xyes; then :
14895 cat >>confdefs.h <<_ACEOF
14896 #define ssize_t int
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14902 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14903 if ${ac_cv_type_uid_t+:} false; then :
14904 $as_echo_n "(cached) " >&6
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 #include <sys/types.h>
14911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14912 $EGREP "uid_t" >/dev/null 2>&1; then :
14913 ac_cv_type_uid_t=yes
14915 ac_cv_type_uid_t=no
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14921 $as_echo "$ac_cv_type_uid_t" >&6; }
14922 if test $ac_cv_type_uid_t = no; then
14924 $as_echo "#define uid_t int" >>confdefs.h
14927 $as_echo "#define gid_t int" >>confdefs.h
14931 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14932 if test "x$ac_cv_type_pid_t" = xyes; then :
14936 cat >>confdefs.h <<_ACEOF
14942 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14943 if test "x$ac_cv_type_off_t" = xyes; then :
14947 cat >>confdefs.h <<_ACEOF
14948 #define off_t long int
14953 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14954 $ac_includes_default
14955 #ifdef HAVE_WINSOCK2_H
14956 # include <winsock2.h>
14960 if test "x$ac_cv_type_u_char" = xyes; then :
14964 $as_echo "#define u_char unsigned char" >>confdefs.h
14968 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14969 $ac_includes_default
14970 #ifdef HAVE_SYS_RESOURCE_H
14971 # include <sys/resource.h>
14975 if test "x$ac_cv_type_rlim_t" = xyes; then :
14979 $as_echo "#define rlim_t unsigned long" >>confdefs.h
14984 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14985 $ac_includes_default
14986 #ifdef HAVE_SYS_SOCKET_H
14987 # include <sys/socket.h>
14989 #ifdef HAVE_WS2TCPIP_H
14990 # include <ws2tcpip.h>
14994 if test "x$ac_cv_type_socklen_t" = xyes; then :
14998 $as_echo "#define socklen_t int" >>confdefs.h
15002 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
15003 $ac_includes_default
15004 #ifdef HAVE_SYS_TYPES_H
15005 # include <sys/types.h>
15007 #ifdef HAVE_NETINET_IN_H
15008 # include <netinet/in.h>
15012 if test "x$ac_cv_type_in_addr_t" = xyes; then :
15016 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
15020 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
15021 $ac_includes_default
15022 #ifdef HAVE_SYS_TYPES_H
15023 # include <sys/types.h>
15025 #ifdef HAVE_NETINET_IN_H
15026 # include <netinet/in.h>
15030 if test "x$ac_cv_type_in_port_t" = xyes; then :
15034 $as_echo "#define in_port_t uint16_t" >>confdefs.h
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
15039 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
15040 if test "$cross_compiling" = yes; then :
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
15042 $as_echo "cross-compile no" >&6; }
15044 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15046 case " $LIBOBJS " in
15047 *" memcmp.$ac_objext "* ) ;;
15048 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15058 #include <stdlib.h>
15059 #include <string.h>
15062 char a = 255, b = 0;
15063 if(memcmp(&a, &b, 1) < 0)
15069 if ac_fn_c_try_run "$LINENO"; then :
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15071 $as_echo "yes" >&6; }
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15074 $as_echo "no" >&6; }
15076 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15078 case " $LIBOBJS " in
15079 *" memcmp.$ac_objext "* ) ;;
15080 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15087 conftest.$ac_objext conftest.beam conftest.$ac_ext
15091 # The cast to long int works around a bug in the HP C Compiler
15092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15094 # This bug is HP SR number 8606223364.
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15096 $as_echo_n "checking size of time_t... " >&6; }
15097 if ${ac_cv_sizeof_time_t+:} false; then :
15098 $as_echo_n "(cached) " >&6
15100 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
15101 $ac_includes_default
15102 #ifdef TIME_WITH_SYS_TIME
15103 # include <sys/time.h>
15106 # ifdef HAVE_SYS_TIME_H
15107 # include <sys/time.h>
15116 if test "$ac_cv_type_time_t" = yes; then
15117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15119 as_fn_error 77 "cannot compute sizeof (time_t)
15120 See \`config.log' for more details" "$LINENO" 5; }
15122 ac_cv_sizeof_time_t=0
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15128 $as_echo "$ac_cv_sizeof_time_t" >&6; }
15132 cat >>confdefs.h <<_ACEOF
15133 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15137 # The cast to long int works around a bug in the HP C Compiler
15138 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15139 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15140 # This bug is HP SR number 8606223364.
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15142 $as_echo_n "checking size of size_t... " >&6; }
15143 if ${ac_cv_sizeof_size_t+:} false; then :
15144 $as_echo_n "(cached) " >&6
15146 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15149 if test "$ac_cv_type_size_t" = yes; then
15150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15152 as_fn_error 77 "cannot compute sizeof (size_t)
15153 See \`config.log' for more details" "$LINENO" 5; }
15155 ac_cv_sizeof_size_t=0
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15161 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15165 cat >>confdefs.h <<_ACEOF
15166 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15171 # add option to disable the evil rpath
15173 # Check whether --enable-rpath was given.
15174 if test "${enable_rpath+set}" = set; then :
15175 enableval=$enable_rpath; enable_rpath=$enableval
15180 if test "x$enable_rpath" = xno; then
15181 ac_config_commands="$ac_config_commands disable-rpath"
15187 # check to see if libraries are needed for these functions.
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15189 $as_echo_n "checking for library containing inet_pton... " >&6; }
15190 if ${ac_cv_search_inet_pton+:} false; then :
15191 $as_echo_n "(cached) " >&6
15193 ac_func_search_save_LIBS=$LIBS
15194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15195 /* end confdefs.h. */
15197 /* Override any GCC internal prototype to avoid an error.
15198 Use char because int might match the return type of a GCC
15199 builtin and then its argument prototype would still apply. */
15207 return inet_pton ();
15212 for ac_lib in '' nsl; do
15213 if test -z "$ac_lib"; then
15214 ac_res="none required"
15217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15219 if ac_fn_c_try_link "$LINENO"; then :
15220 ac_cv_search_inet_pton=$ac_res
15222 rm -f core conftest.err conftest.$ac_objext \
15224 if ${ac_cv_search_inet_pton+:} false; then :
15228 if ${ac_cv_search_inet_pton+:} false; then :
15231 ac_cv_search_inet_pton=no
15233 rm conftest.$ac_ext
15234 LIBS=$ac_func_search_save_LIBS
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15237 $as_echo "$ac_cv_search_inet_pton" >&6; }
15238 ac_res=$ac_cv_search_inet_pton
15239 if test "$ac_res" != no; then :
15240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15245 $as_echo_n "checking for library containing socket... " >&6; }
15246 if ${ac_cv_search_socket+:} false; then :
15247 $as_echo_n "(cached) " >&6
15249 ac_func_search_save_LIBS=$LIBS
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h. */
15253 /* Override any GCC internal prototype to avoid an error.
15254 Use char because int might match the return type of a GCC
15255 builtin and then its argument prototype would still apply. */
15268 for ac_lib in '' socket; do
15269 if test -z "$ac_lib"; then
15270 ac_res="none required"
15273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15275 if ac_fn_c_try_link "$LINENO"; then :
15276 ac_cv_search_socket=$ac_res
15278 rm -f core conftest.err conftest.$ac_objext \
15280 if ${ac_cv_search_socket+:} false; then :
15284 if ${ac_cv_search_socket+:} false; then :
15287 ac_cv_search_socket=no
15289 rm conftest.$ac_ext
15290 LIBS=$ac_func_search_save_LIBS
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15293 $as_echo "$ac_cv_search_socket" >&6; }
15294 ac_res=$ac_cv_search_socket
15295 if test "$ac_res" != no; then :
15296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15301 # check wether strptime also works
15303 # check some functions of the OS before linking libs (while still runnable).
15304 for ac_header in unistd.h
15306 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15307 if test "x$ac_cv_header_unistd_h" = xyes; then :
15308 cat >>confdefs.h <<_ACEOF
15309 #define HAVE_UNISTD_H 1
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15317 $as_echo_n "checking for working chown... " >&6; }
15318 if ${ac_cv_func_chown_works+:} false; then :
15319 $as_echo_n "(cached) " >&6
15321 if test "$cross_compiling" = yes; then :
15322 ac_cv_func_chown_works=no
15324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15325 /* end confdefs.h. */
15326 $ac_includes_default
15332 char *f = "conftest.chown";
15333 struct stat before, after;
15335 if (creat (f, 0600) < 0)
15337 if (stat (f, &before) < 0)
15339 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15341 if (stat (f, &after) < 0)
15343 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15349 if ac_fn_c_try_run "$LINENO"; then :
15350 ac_cv_func_chown_works=yes
15352 ac_cv_func_chown_works=no
15354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15355 conftest.$ac_objext conftest.beam conftest.$ac_ext
15358 rm -f conftest.chown
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15362 $as_echo "$ac_cv_func_chown_works" >&6; }
15363 if test $ac_cv_func_chown_works = yes; then
15365 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15369 for ac_header in vfork.h
15371 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15372 if test "x$ac_cv_header_vfork_h" = xyes; then :
15373 cat >>confdefs.h <<_ACEOF
15374 #define HAVE_VFORK_H 1
15381 for ac_func in fork vfork
15383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15384 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15385 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15386 cat >>confdefs.h <<_ACEOF
15387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15393 if test "x$ac_cv_func_fork" = xyes; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15395 $as_echo_n "checking for working fork... " >&6; }
15396 if ${ac_cv_func_fork_works+:} false; then :
15397 $as_echo_n "(cached) " >&6
15399 if test "$cross_compiling" = yes; then :
15400 ac_cv_func_fork_works=cross
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15404 $ac_includes_default
15409 /* By Ruediger Kuhlmann. */
15410 return fork () < 0;
15416 if ac_fn_c_try_run "$LINENO"; then :
15417 ac_cv_func_fork_works=yes
15419 ac_cv_func_fork_works=no
15421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15422 conftest.$ac_objext conftest.beam conftest.$ac_ext
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15427 $as_echo "$ac_cv_func_fork_works" >&6; }
15430 ac_cv_func_fork_works=$ac_cv_func_fork
15432 if test "x$ac_cv_func_fork_works" = xcross; then
15434 *-*-amigaos* | *-*-msdosdjgpp*)
15435 # Override, as these systems have only a dummy fork() stub
15436 ac_cv_func_fork_works=no
15439 ac_cv_func_fork_works=yes
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15443 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15445 ac_cv_func_vfork_works=$ac_cv_func_vfork
15446 if test "x$ac_cv_func_vfork" = xyes; then
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15448 $as_echo_n "checking for working vfork... " >&6; }
15449 if ${ac_cv_func_vfork_works+:} false; then :
15450 $as_echo_n "(cached) " >&6
15452 if test "$cross_compiling" = yes; then :
15453 ac_cv_func_vfork_works=cross
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15457 /* Thanks to Paul Eggert for this test. */
15458 $ac_includes_default
15459 #include <sys/wait.h>
15460 #ifdef HAVE_VFORK_H
15461 # include <vfork.h>
15463 /* On some sparc systems, changes by the child to local and incoming
15464 argument registers are propagated back to the parent. The compiler
15465 is told about this with #include <vfork.h>, but some compilers
15466 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15467 static variable whose address is put into a register that is
15468 clobbered by the vfork. */
15471 sparc_address_test (int arg)
15473 sparc_address_test (arg) int arg;
15476 static pid_t child;
15494 pid_t parent = getpid ();
15497 sparc_address_test (0);
15502 /* Here is another test for sparc vfork register problems. This
15503 test uses lots of local variables, at least as many local
15504 variables as main has allocated so far including compiler
15505 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15506 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15507 reuse the register of parent for one of the local variables,
15508 since it will think that parent can't possibly be used any more
15509 in this routine. Assigning to the local variable will thus
15510 munge parent in the parent process. */
15512 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15513 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15514 /* Convince the compiler that p..p7 are live; otherwise, it might
15515 use the same hardware register for all 8 local variables. */
15516 if (p != p1 || p != p2 || p != p3 || p != p4
15517 || p != p5 || p != p6 || p != p7)
15520 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15521 from child file descriptors. If the child closes a descriptor
15522 before it execs or exits, this munges the parent's descriptor
15523 as well. Test for this by closing stdout in the child. */
15524 _exit(close(fileno(stdout)) != 0);
15529 while (wait(&status) != child)
15532 /* Was there some problem with vforking? */
15535 /* Did the child fail? (This shouldn't happen.) */
15538 /* Did the vfork/compiler bug occur? */
15539 || parent != getpid()
15541 /* Did the file descriptor bug occur? */
15542 || fstat(fileno(stdout), &st) != 0
15547 if ac_fn_c_try_run "$LINENO"; then :
15548 ac_cv_func_vfork_works=yes
15550 ac_cv_func_vfork_works=no
15552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15553 conftest.$ac_objext conftest.beam conftest.$ac_ext
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15558 $as_echo "$ac_cv_func_vfork_works" >&6; }
15561 if test "x$ac_cv_func_fork_works" = xcross; then
15562 ac_cv_func_vfork_works=$ac_cv_func_vfork
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15564 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15567 if test "x$ac_cv_func_vfork_works" = xyes; then
15569 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15573 $as_echo "#define vfork fork" >>confdefs.h
15576 if test "x$ac_cv_func_fork_works" = xyes; then
15578 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15583 $as_echo_n "checking return type of signal handlers... " >&6; }
15584 if ${ac_cv_type_signal+:} false; then :
15585 $as_echo_n "(cached) " >&6
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588 /* end confdefs.h. */
15589 #include <sys/types.h>
15590 #include <signal.h>
15595 return *(signal (0, 0)) (0) == 1;
15600 if ac_fn_c_try_compile "$LINENO"; then :
15601 ac_cv_type_signal=int
15603 ac_cv_type_signal=void
15605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15608 $as_echo "$ac_cv_type_signal" >&6; }
15610 cat >>confdefs.h <<_ACEOF
15611 #define RETSIGTYPE $ac_cv_type_signal
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15616 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15617 if ${ac_cv_sys_largefile_source+:} false; then :
15618 $as_echo_n "(cached) " >&6
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15623 #include <sys/types.h> /* for off_t */
15628 int (*fp) (FILE *, off_t, int) = fseeko;
15629 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15634 if ac_fn_c_try_link "$LINENO"; then :
15635 ac_cv_sys_largefile_source=no; break
15637 rm -f core conftest.err conftest.$ac_objext \
15638 conftest$ac_exeext conftest.$ac_ext
15639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15640 /* end confdefs.h. */
15641 #define _LARGEFILE_SOURCE 1
15642 #include <sys/types.h> /* for off_t */
15647 int (*fp) (FILE *, off_t, int) = fseeko;
15648 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15653 if ac_fn_c_try_link "$LINENO"; then :
15654 ac_cv_sys_largefile_source=1; break
15656 rm -f core conftest.err conftest.$ac_objext \
15657 conftest$ac_exeext conftest.$ac_ext
15658 ac_cv_sys_largefile_source=unknown
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15663 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15664 case $ac_cv_sys_largefile_source in #(
15667 cat >>confdefs.h <<_ACEOF
15668 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15674 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15675 # in glibc 2.1.3, but that breaks too many other things.
15676 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15677 if test $ac_cv_sys_largefile_source != unknown; then
15679 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15684 # Check whether --enable-largefile was given.
15685 if test "${enable_largefile+set}" = set; then :
15686 enableval=$enable_largefile;
15689 if test "$enable_largefile" != no; then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15692 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15693 if ${ac_cv_sys_largefile_CC+:} false; then :
15694 $as_echo_n "(cached) " >&6
15696 ac_cv_sys_largefile_CC=no
15697 if test "$GCC" != yes; then
15700 # IRIX 6.2 and later do not support large files by default,
15701 # so use the C compiler's -n32 option if that helps.
15702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703 /* end confdefs.h. */
15704 #include <sys/types.h>
15705 /* Check that off_t can represent 2**63 - 1 correctly.
15706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15707 since some C++ compilers masquerading as C compilers
15708 incorrectly reject 9223372036854775807. */
15709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15711 && LARGE_OFF_T % 2147483647 == 1)
15721 if ac_fn_c_try_compile "$LINENO"; then :
15724 rm -f core conftest.err conftest.$ac_objext
15726 if ac_fn_c_try_compile "$LINENO"; then :
15727 ac_cv_sys_largefile_CC=' -n32'; break
15729 rm -f core conftest.err conftest.$ac_objext
15733 rm -f conftest.$ac_ext
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15737 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15738 if test "$ac_cv_sys_largefile_CC" != no; then
15739 CC=$CC$ac_cv_sys_largefile_CC
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15743 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15744 if ${ac_cv_sys_file_offset_bits+:} false; then :
15745 $as_echo_n "(cached) " >&6
15748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15750 #include <sys/types.h>
15751 /* Check that off_t can represent 2**63 - 1 correctly.
15752 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15753 since some C++ compilers masquerading as C compilers
15754 incorrectly reject 9223372036854775807. */
15755 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15756 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15757 && LARGE_OFF_T % 2147483647 == 1)
15767 if ac_fn_c_try_compile "$LINENO"; then :
15768 ac_cv_sys_file_offset_bits=no; break
15770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h. */
15773 #define _FILE_OFFSET_BITS 64
15774 #include <sys/types.h>
15775 /* Check that off_t can represent 2**63 - 1 correctly.
15776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15777 since some C++ compilers masquerading as C compilers
15778 incorrectly reject 9223372036854775807. */
15779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15781 && LARGE_OFF_T % 2147483647 == 1)
15791 if ac_fn_c_try_compile "$LINENO"; then :
15792 ac_cv_sys_file_offset_bits=64; break
15794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15795 ac_cv_sys_file_offset_bits=unknown
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15800 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15801 case $ac_cv_sys_file_offset_bits in #(
15804 cat >>confdefs.h <<_ACEOF
15805 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15810 if test $ac_cv_sys_file_offset_bits = unknown; then
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15812 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15813 if ${ac_cv_sys_large_files+:} false; then :
15814 $as_echo_n "(cached) " >&6
15817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15818 /* end confdefs.h. */
15819 #include <sys/types.h>
15820 /* Check that off_t can represent 2**63 - 1 correctly.
15821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15822 since some C++ compilers masquerading as C compilers
15823 incorrectly reject 9223372036854775807. */
15824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15826 && LARGE_OFF_T % 2147483647 == 1)
15836 if ac_fn_c_try_compile "$LINENO"; then :
15837 ac_cv_sys_large_files=no; break
15839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15842 #define _LARGE_FILES 1
15843 #include <sys/types.h>
15844 /* Check that off_t can represent 2**63 - 1 correctly.
15845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15846 since some C++ compilers masquerading as C compilers
15847 incorrectly reject 9223372036854775807. */
15848 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15850 && LARGE_OFF_T % 2147483647 == 1)
15860 if ac_fn_c_try_compile "$LINENO"; then :
15861 ac_cv_sys_large_files=1; break
15863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864 ac_cv_sys_large_files=unknown
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15869 $as_echo "$ac_cv_sys_large_files" >&6; }
15870 case $ac_cv_sys_large_files in #(
15873 cat >>confdefs.h <<_ACEOF
15874 #define _LARGE_FILES $ac_cv_sys_large_files
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15888 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15889 cache=_D_LARGEFILE_SOURCE_1
15890 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15891 $as_echo_n "(cached) " >&6
15897 int a = fseeko(stdin, 0, 0);
15901 echo 'void f(){}' >>conftest.c
15902 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15903 eval "cv_prog_cc_flag_needed_$cache=no"
15906 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15907 eval "cv_prog_cc_flag_needed_$cache=yes"
15909 eval "cv_prog_cc_flag_needed_$cache=fail"
15910 #echo 'Test with flag fails too!'
15912 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15913 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15918 rm -f conftest conftest.c conftest.o
15922 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15924 $as_echo "yes" >&6; }
15926 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15928 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15930 $as_echo "no" >&6; }
15931 #echo 'Test with flag is no!'
15933 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15934 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15940 $as_echo "failed" >&6; }
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15949 $as_echo_n "checking if nonblocking sockets work... " >&6; }
15950 if echo $target | grep mingw32 >/dev/null; then
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15952 $as_echo "no (windows)" >&6; }
15954 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15957 if test "$cross_compiling" = yes; then :
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15960 $as_echo "crosscompile(yes)" >&6; }
15963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15964 /* end confdefs.h. */
15968 #include <string.h>
15969 #include <stdlib.h>
15972 #ifdef HAVE_SYS_TYPES_H
15973 #include <sys/types.h>
15975 #ifdef HAVE_SYS_SOCKET_H
15976 #include <sys/socket.h>
15978 #ifdef HAVE_NETINET_IN_H
15979 #include <netinet/in.h>
15981 #ifdef HAVE_ARPA_INET_H
15982 #include <arpa/inet.h>
15984 #ifdef HAVE_UNISTD_H
15985 #include <unistd.h>
15997 struct sockaddr_in a;
15998 /* test if select and nonblocking reads work well together */
16000 fork child to send 10 messages.
16002 then try to nonblocking read the 10 messages
16003 then, nonblocking read must give EAGAIN
16006 port = 12345 + (time(0)%32);
16007 sfd = socket(PF_INET, SOCK_DGRAM, 0);
16012 memset(&a, 0, sizeof(a));
16013 a.sin_family = AF_INET;
16014 a.sin_port = htons(port);
16015 a.sin_addr.s_addr = inet_addr("127.0.0.1");
16016 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
16020 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
16025 cfd = socket(PF_INET, SOCK_DGRAM, 0);
16027 perror("client socket");
16031 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
16032 perror("client bind");
16035 a.sin_port = htons(port);
16037 /* no handler, causes exit in 10 seconds */
16040 /* send and receive on the socket */
16041 if((p=fork()) == 0) {
16042 for(i=0; i<num; i++) {
16043 if(sendto(cfd, &i, sizeof(i), 0,
16044 (struct sockaddr*)&a, sizeof(a)) < 0) {
16058 FD_SET(sfd, &rset);
16059 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
16065 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
16066 if(errno == EAGAIN)
16073 /* now we want to get EAGAIN: nonblocking goodness */
16075 recv(sfd, &x, sizeof(x), 0);
16076 if(errno != EAGAIN) {
16077 perror("trying to recv again");
16080 /* EAGAIN encountered */
16089 if ac_fn_c_try_run "$LINENO"; then :
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16092 $as_echo "yes" >&6; }
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16097 $as_echo "no" >&6; }
16099 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
16103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16104 conftest.$ac_objext conftest.beam conftest.$ac_ext
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
16111 $as_echo_n "checking whether mkdir has one arg... " >&6; }
16112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16113 /* end confdefs.h. */
16116 #include <unistd.h>
16117 #ifdef HAVE_WINSOCK2_H
16118 #include <winsock2.h>
16120 #ifdef HAVE_SYS_STAT_H
16121 #include <sys/stat.h>
16128 (void)mkdir("directory");
16134 if ac_fn_c_try_compile "$LINENO"; then :
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16136 $as_echo "yes" >&6; }
16138 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16143 $as_echo "no" >&6; }
16146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16148 for ac_func in strptime
16150 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
16151 if test "x$ac_cv_func_strptime" = xyes; then :
16152 cat >>confdefs.h <<_ACEOF
16153 #define HAVE_STRPTIME 1
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
16157 $as_echo_n "checking whether strptime works... " >&6; }
16158 if test c${cross_compiling} = cno; then
16159 if test "$cross_compiling" = yes; then :
16160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16162 as_fn_error $? "cannot run test program while cross compiling
16163 See \`config.log' for more details" "$LINENO" 5; }
16165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16168 #define _XOPEN_SOURCE 600
16170 int main(void) { struct tm tm; char *res;
16171 res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
16172 if (!res) return 2;
16173 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
16174 if (!res) return 1; return 0; }
16177 if ac_fn_c_try_run "$LINENO"; then :
16178 eval "ac_cv_c_strptime_works=yes"
16180 eval "ac_cv_c_strptime_works=no"
16182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16183 conftest.$ac_objext conftest.beam conftest.$ac_ext
16187 eval "ac_cv_c_strptime_works=maybe"
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
16190 $as_echo "$ac_cv_c_strptime_works" >&6; }
16191 if test $ac_cv_c_strptime_works = no; then
16192 case " $LIBOBJS " in
16193 *" strptime.$ac_objext "* ) ;;
16194 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16200 cat >>confdefs.h <<_ACEOF
16201 #define STRPTIME_WORKS 1
16207 case " $LIBOBJS " in
16208 *" strptime.$ac_objext "* ) ;;
16209 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16217 # check if we can use SO_REUSEPORT
16218 if echo "$host" | $GREP -i -e linux -e dragonfly >/dev/null; then
16220 $as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
16224 $as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
16228 # Include systemd.m4 - begin
16229 # macros for configuring systemd
16230 # Copyright 2015, Sami Kerola, CloudFlare.
16232 # Check whether --enable-systemd was given.
16233 if test "${enable_systemd+set}" = set; then :
16234 enableval=$enable_systemd;
16240 if test "x$enable_systemd" != xno; then :
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
16246 $as_echo_n "checking for SYSTEMD... " >&6; }
16248 if test -n "$SYSTEMD_CFLAGS"; then
16249 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
16250 elif test -n "$PKG_CONFIG"; then
16251 if test -n "$PKG_CONFIG" && \
16252 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16253 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16256 test $ac_status = 0; }; then
16257 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
16258 test "x$?" != "x0" && pkg_failed=yes
16265 if test -n "$SYSTEMD_LIBS"; then
16266 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
16267 elif test -n "$PKG_CONFIG"; then
16268 if test -n "$PKG_CONFIG" && \
16269 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16270 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16273 test $ac_status = 0; }; then
16274 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
16275 test "x$?" != "x0" && pkg_failed=yes
16285 if test $pkg_failed = yes; then
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16287 $as_echo "no" >&6; }
16289 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16290 _pkg_short_errors_supported=yes
16292 _pkg_short_errors_supported=no
16294 if test $_pkg_short_errors_supported = yes; then
16295 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
16297 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
16299 # Put the nasty error message in config.log where it belongs
16300 echo "$SYSTEMD_PKG_ERRORS" >&5
16303 elif test $pkg_failed = untried; then
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16305 $as_echo "no" >&6; }
16308 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
16309 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16311 $as_echo "yes" >&6; }
16314 if test "x$have_systemd" != "xyes"; then :
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
16319 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
16321 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
16322 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
16323 elif test -n "$PKG_CONFIG"; then
16324 if test -n "$PKG_CONFIG" && \
16325 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16326 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16329 test $ac_status = 0; }; then
16330 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16331 test "x$?" != "x0" && pkg_failed=yes
16338 if test -n "$SYSTEMD_DAEMON_LIBS"; then
16339 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
16340 elif test -n "$PKG_CONFIG"; then
16341 if test -n "$PKG_CONFIG" && \
16342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16343 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16346 test $ac_status = 0; }; then
16347 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16348 test "x$?" != "x0" && pkg_failed=yes
16358 if test $pkg_failed = yes; then
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16360 $as_echo "no" >&6; }
16362 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16363 _pkg_short_errors_supported=yes
16365 _pkg_short_errors_supported=no
16367 if test $_pkg_short_errors_supported = yes; then
16368 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16370 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16372 # Put the nasty error message in config.log where it belongs
16373 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
16375 have_systemd_daemon=no
16376 elif test $pkg_failed = untried; then
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16378 $as_echo "no" >&6; }
16379 have_systemd_daemon=no
16381 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
16382 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16384 $as_echo "yes" >&6; }
16385 have_systemd_daemon=yes
16387 if test "x$have_systemd_daemon" = "xyes"; then :
16392 case $enable_systemd:$have_systemd in #(
16394 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
16397 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
16399 LIBS="$LIBS $SYSTEMD_LIBS"
16408 if test "x$have_systemd" = xyes; then
16410 USE_SYSTEMD_FALSE='#'
16412 USE_SYSTEMD_TRUE='#'
16417 # Include systemd.m4 - end
16419 # set memory allocation checking if requested
16420 # Check whether --enable-alloc-checks was given.
16421 if test "${enable_alloc_checks+set}" = set; then :
16422 enableval=$enable_alloc_checks;
16425 # Check whether --enable-alloc-lite was given.
16426 if test "${enable_alloc_lite+set}" = set; then :
16427 enableval=$enable_alloc_lite;
16430 # Check whether --enable-alloc-nonregional was given.
16431 if test "${enable_alloc_nonregional+set}" = set; then :
16432 enableval=$enable_alloc_nonregional;
16435 if test x_$enable_alloc_nonregional = x_yes; then
16437 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
16440 if test x_$enable_alloc_checks = x_yes; then
16442 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
16444 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
16446 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
16449 if test x_$enable_alloc_lite = x_yes; then
16451 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16456 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16457 if test "$cross_compiling" = yes; then :
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
16459 $as_echo "no (crosscompile)" >&6; }
16460 case " $LIBOBJS " in
16461 *" malloc.$ac_objext "* ) ;;
16462 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16467 cat >>confdefs.h <<_ACEOF
16468 #define malloc rpl_malloc_unbound
16472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h. */
16474 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16475 #include <stdlib.h>
16483 if(malloc(0) != 0) return 1;
16489 if ac_fn_c_try_run "$LINENO"; then :
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16491 $as_echo "no" >&6; }
16492 case " $LIBOBJS " in
16493 *" malloc.$ac_objext "* ) ;;
16494 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16499 cat >>confdefs.h <<_ACEOF
16500 #define malloc rpl_malloc_unbound
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16505 $as_echo "yes" >&6; }
16507 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16511 conftest.$ac_objext conftest.beam conftest.$ac_ext
16518 # check windows threads (we use them, not pthreads, on windows).
16519 if test "$on_mingw" = "yes"; then
16520 # check windows threads
16521 for ac_header in windows.h
16523 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16525 if test "x$ac_cv_header_windows_h" = xyes; then :
16526 cat >>confdefs.h <<_ACEOF
16527 #define HAVE_WINDOWS_H 1
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
16535 $as_echo_n "checking for CreateThread... " >&6; }
16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h. */
16539 #ifdef HAVE_WINDOWS_H
16540 #include <windows.h>
16547 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16553 if ac_fn_c_try_compile "$LINENO"; then :
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16555 $as_echo "yes" >&6; }
16557 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16562 $as_echo "no" >&6; }
16565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16568 # not on mingw, check thread libraries.
16570 # check for thread library.
16571 # check this first, so that the pthread lib does not get linked in via
16572 # libssl or libpython, and thus distorts the tests, and we end up using
16573 # the non-threadsafe C libraries.
16575 # Check whether --with-pthreads was given.
16576 if test "${with_pthreads+set}" = set; then :
16577 withval=$with_pthreads;
16582 ub_have_pthreads=no
16583 if test x_$withval != x_no; then
16587 ac_cpp='$CPP $CPPFLAGS'
16588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16594 # We used to check for pthread.h first, but this fails if pthread.h
16595 # requires special compiler flags (e.g. on True64 or Sequent).
16596 # It gets checked for in the link test anyway.
16598 # First of all, check if the user has set any of the PTHREAD_LIBS,
16599 # etcetera environment variables, and if threads linking works using
16601 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16602 save_CFLAGS="$CFLAGS"
16603 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16605 LIBS="$PTHREAD_LIBS $LIBS"
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16607 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16609 /* end confdefs.h. */
16611 /* Override any GCC internal prototype to avoid an error.
16612 Use char because int might match the return type of a GCC
16613 builtin and then its argument prototype would still apply. */
16617 char pthread_join ();
16621 return pthread_join ();
16626 if ac_fn_c_try_link "$LINENO"; then :
16629 rm -f core conftest.err conftest.$ac_objext \
16630 conftest$ac_exeext conftest.$ac_ext
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16632 $as_echo "$ax_pthread_ok" >&6; }
16633 if test x"$ax_pthread_ok" = xno; then
16638 CFLAGS="$save_CFLAGS"
16641 # We must check for the threads library under a number of different
16642 # names; the ordering is very important because some systems
16643 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16644 # libraries is broken (non-POSIX).
16646 # Create a list of thread flags to try. Items starting with a "-" are
16647 # C compiler flags, and other items are library names, except for "none"
16648 # which indicates that we try without any flags at all, and "pthread-config"
16649 # which is a program returning the flags for the Pth emulation library.
16651 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16653 # The ordering *is* (sometimes) important. Some notes on the
16654 # individual items follow:
16656 # pthreads: AIX (must check this before -lpthread)
16657 # none: in case threads are in libc; should be tried before -Kthread and
16658 # other compiler flags to prevent continual compiler warnings
16659 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16660 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16661 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16662 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16663 # -pthreads: Solaris/gcc
16664 # -mthreads: Mingw32/gcc, Lynx/gcc
16665 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16666 # doesn't hurt to check since this sometimes defines pthreads too;
16667 # also defines -D_REENTRANT)
16668 # ... -mt is also the pthreads flag for HP/aCC
16669 # pthread: Linux, etcetera
16670 # --thread-safe: KAI C++
16671 # pthread-config: use pthread-config program (for GNU Pth library)
16676 # On Solaris (at least, for some versions), libc contains stubbed
16677 # (non-functional) versions of the pthreads routines, so link-based
16678 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16679 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16680 # a function called by this macro, so we could check for that, but
16681 # who knows whether they'll stub that too in a future libc.) So,
16682 # we'll just look for -pthreads and -lpthread first:
16684 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16688 ax_pthread_flags="-pthread $ax_pthread_flags"
16692 # Clang doesn't consider unrecognized options an error unless we specify
16693 # -Werror. We throw in some extra Clang-specific options to ensure that
16694 # this doesn't happen for GCC, which also accepts -Werror.
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16697 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16698 save_CFLAGS="$CFLAGS"
16699 ax_pthread_extra_flags="-Werror"
16700 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702 /* end confdefs.h. */
16712 if ac_fn_c_try_compile "$LINENO"; then :
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16714 $as_echo "yes" >&6; }
16716 ax_pthread_extra_flags=
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16718 $as_echo "no" >&6; }
16720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16721 CFLAGS="$save_CFLAGS"
16723 if test x"$ax_pthread_ok" = xno; then
16724 for flag in $ax_pthread_flags; do
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16729 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16734 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16735 PTHREAD_CFLAGS="$flag"
16739 # Extract the first word of "pthread-config", so it can be a program name with args.
16740 set dummy pthread-config; ac_word=$2
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16742 $as_echo_n "checking for $ac_word... " >&6; }
16743 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16744 $as_echo_n "(cached) " >&6
16746 if test -n "$ax_pthread_config"; then
16747 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16750 for as_dir in $PATH
16753 test -z "$as_dir" && as_dir=.
16754 for ac_exec_ext in '' $ac_executable_extensions; do
16755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16756 ac_cv_prog_ax_pthread_config="yes"
16757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16764 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16767 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16768 if test -n "$ax_pthread_config"; then
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16770 $as_echo "$ax_pthread_config" >&6; }
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16773 $as_echo "no" >&6; }
16777 if test x"$ax_pthread_config" = xno; then continue; fi
16778 PTHREAD_CFLAGS="`pthread-config --cflags`"
16779 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16784 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16785 PTHREAD_LIBS="-l$flag"
16790 save_CFLAGS="$CFLAGS"
16791 LIBS="$PTHREAD_LIBS $LIBS"
16792 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16794 # Check for various functions. We must include pthread.h,
16795 # since some functions may be macros. (On the Sequent, we
16796 # need a special flag -Kthread to make this header compile.)
16797 # We check for pthread_join because it is in -lpthread on IRIX
16798 # while pthread_create is in libc. We check for pthread_attr_init
16799 # due to DEC craziness with -lpthreads. We check for
16800 # pthread_cleanup_push because it is one of the few pthread
16801 # functions on Solaris that doesn't have a non-functional libc stub.
16802 # We try pthread_create on general principles.
16803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16804 /* end confdefs.h. */
16805 #include <pthread.h>
16806 static void routine(void *a) { *((int*)a) = 0; }
16807 static void *start_routine(void *a) { return a; }
16811 pthread_t th; pthread_attr_t attr;
16812 pthread_create(&th, 0, start_routine, 0);
16813 pthread_join(th, 0);
16814 pthread_attr_init(&attr);
16815 pthread_cleanup_push(routine, 0);
16816 pthread_cleanup_pop(0) /* ; */
16821 if ac_fn_c_try_link "$LINENO"; then :
16824 rm -f core conftest.err conftest.$ac_objext \
16825 conftest$ac_exeext conftest.$ac_ext
16828 CFLAGS="$save_CFLAGS"
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16831 $as_echo "$ax_pthread_ok" >&6; }
16832 if test "x$ax_pthread_ok" = xyes; then
16841 # Various other checks:
16842 if test "x$ax_pthread_ok" = xyes; then
16844 LIBS="$PTHREAD_LIBS $LIBS"
16845 save_CFLAGS="$CFLAGS"
16846 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16848 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16850 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16852 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854 /* end confdefs.h. */
16855 #include <pthread.h>
16859 int attr = $attr; return attr /* ; */
16864 if ac_fn_c_try_link "$LINENO"; then :
16865 attr_name=$attr; break
16867 rm -f core conftest.err conftest.$ac_objext \
16868 conftest$ac_exeext conftest.$ac_ext
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16871 $as_echo "$attr_name" >&6; }
16872 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16874 cat >>confdefs.h <<_ACEOF
16875 #define PTHREAD_CREATE_JOINABLE $attr_name
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16881 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16884 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16885 osf* | hpux*) flag="-D_REENTRANT";;
16887 if test "$GCC" = "yes"; then
16888 flag="-D_REENTRANT"
16890 # TODO: What about Clang on Solaris?
16891 flag="-mt -D_REENTRANT"
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16896 $as_echo "$flag" >&6; }
16897 if test "x$flag" != xno; then
16898 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16902 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16903 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16904 $as_echo_n "(cached) " >&6
16907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16908 /* end confdefs.h. */
16909 #include <pthread.h>
16913 int i = PTHREAD_PRIO_INHERIT;
16918 if ac_fn_c_try_link "$LINENO"; then :
16919 ax_cv_PTHREAD_PRIO_INHERIT=yes
16921 ax_cv_PTHREAD_PRIO_INHERIT=no
16923 rm -f core conftest.err conftest.$ac_objext \
16924 conftest$ac_exeext conftest.$ac_ext
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16928 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16929 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16931 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16936 CFLAGS="$save_CFLAGS"
16938 # More AIX lossage: compile with *_r variant
16939 if test "x$GCC" != xyes; then
16943 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16944 #handle absolute path differently from PATH based program lookup
16947 if as_fn_executable_p ${CC}_r; then :
16948 PTHREAD_CC="${CC}_r"
16951 for ac_prog in ${CC}_r
16953 # Extract the first word of "$ac_prog", so it can be a program name with args.
16954 set dummy $ac_prog; ac_word=$2
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16956 $as_echo_n "checking for $ac_word... " >&6; }
16957 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16958 $as_echo_n "(cached) " >&6
16960 if test -n "$PTHREAD_CC"; then
16961 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16964 for as_dir in $PATH
16967 test -z "$as_dir" && as_dir=.
16968 for ac_exec_ext in '' $ac_executable_extensions; do
16969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16970 ac_cv_prog_PTHREAD_CC="$ac_prog"
16971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16980 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16981 if test -n "$PTHREAD_CC"; then
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16983 $as_echo "$PTHREAD_CC" >&6; }
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16986 $as_echo "no" >&6; }
16990 test -n "$PTHREAD_CC" && break
16992 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17003 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17009 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17010 if test x"$ax_pthread_ok" = xyes; then
17013 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17015 if test -n "$PTHREAD_LIBS"; then
17016 LIBS="$PTHREAD_LIBS $LIBS"
17018 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17020 ub_have_pthreads=yes
17021 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
17023 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
17025 cat >>confdefs.h <<_ACEOF
17026 #define HAVE_PTHREAD_SPINLOCK_T 1
17031 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
17033 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_PTHREAD_RWLOCK_T 1
17043 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
17045 $as_echo_n "checking if -pthread unused during linking... " >&6; }
17046 # catch clang warning 'argument unused during compilation'
17047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17048 /* end confdefs.h. */
17049 $ac_includes_default
17051 int main(void) {return 0;}
17054 pthread_unused="yes"
17056 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
17057 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
17058 if test $? = 0; then
17060 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
17061 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
17062 if test $? -ne 0; then
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17064 $as_echo "yes" >&6; }
17065 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
17066 PTHREAD_CFLAGS_ONLY="-pthread"
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17070 $as_echo "no" >&6; }
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17074 $as_echo "no" >&6; }
17075 fi # endif cc successful
17076 rm -f conftest conftest.c conftest.o
17077 fi # endif -pthread in CFLAGS
17086 ac_cpp='$CPP $CPPFLAGS'
17087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17094 # check solaris thread library
17096 # Check whether --with-solaris-threads was given.
17097 if test "${with_solaris_threads+set}" = set; then :
17098 withval=$with_solaris_threads;
17103 ub_have_sol_threads=no
17104 if test x_$withval != x_no; then
17105 if test x_$ub_have_pthreads != x_no; then
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
17107 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
17110 $as_echo_n "checking for library containing thr_create... " >&6; }
17111 if ${ac_cv_search_thr_create+:} false; then :
17112 $as_echo_n "(cached) " >&6
17114 ac_func_search_save_LIBS=$LIBS
17115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116 /* end confdefs.h. */
17118 /* Override any GCC internal prototype to avoid an error.
17119 Use char because int might match the return type of a GCC
17120 builtin and then its argument prototype would still apply. */
17124 char thr_create ();
17128 return thr_create ();
17133 for ac_lib in '' thread; do
17134 if test -z "$ac_lib"; then
17135 ac_res="none required"
17138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17140 if ac_fn_c_try_link "$LINENO"; then :
17141 ac_cv_search_thr_create=$ac_res
17143 rm -f core conftest.err conftest.$ac_objext \
17145 if ${ac_cv_search_thr_create+:} false; then :
17149 if ${ac_cv_search_thr_create+:} false; then :
17152 ac_cv_search_thr_create=no
17154 rm conftest.$ac_ext
17155 LIBS=$ac_func_search_save_LIBS
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
17158 $as_echo "$ac_cv_search_thr_create" >&6; }
17159 ac_res=$ac_cv_search_thr_create
17160 if test "$ac_res" != no; then :
17161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17164 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
17170 $as_echo_n "checking whether $CC supports -mt... " >&6; }
17171 cache=`echo mt | sed 'y%.=/+-%___p_%'`
17172 if eval \${cv_prog_cc_flag_$cache+:} false; then :
17173 $as_echo_n "(cached) " >&6
17176 echo 'void f(void){}' >conftest.c
17177 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
17178 eval "cv_prog_cc_flag_$cache=yes"
17180 eval "cv_prog_cc_flag_$cache=no"
17182 rm -f conftest conftest.o conftest.c
17186 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17188 $as_echo "yes" >&6; }
17190 CFLAGS="$CFLAGS -mt"
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17193 $as_echo "no" >&6; }
17195 CFLAGS="$CFLAGS -D_REENTRANT"
17198 ub_have_sol_threads=yes
17202 as_fn_error $? "no solaris threads found." "$LINENO" 5
17209 fi # end of non-mingw check of thread libraries
17211 # Check for SYSLOG_FACILITY
17213 # Check whether --with-syslog-facility was given.
17214 if test "${with_syslog_facility+set}" = set; then :
17215 withval=$with_syslog_facility; UNBOUND_SYSLOG_FACILITY="$withval"
17218 case "${UNBOUND_SYSLOG_FACILITY}" in
17220 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
17222 *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
17226 cat >>confdefs.h <<_ACEOF
17227 #define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}
17231 # Check for dynamic library module
17233 # Check whether --with-dynlibmodule was given.
17234 if test "${with_dynlibmodule+set}" = set; then :
17235 withval=$with_dynlibmodule;
17241 if test x_$withval != x_no; then
17243 $as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h
17245 WITH_DYNLIBMODULE=yes
17247 DYNLIBMOD_OBJ="dynlibmod.lo"
17249 DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h'
17251 if test $on_mingw = "no"; then
17252 DYNLIBMOD_EXTRALIBS="-ldl -export-dynamic"
17254 DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.a"
17259 # Check for PyUnbound
17261 # Check whether --with-pyunbound was given.
17262 if test "${with_pyunbound+set}" = set; then :
17263 withval=$with_pyunbound;
17270 ub_with_pyunbound=no
17271 if test x_$withval != x_no; then
17272 ub_with_pyunbound=yes
17276 # Check for Python module
17278 # Check whether --with-pythonmodule was given.
17279 if test "${with_pythonmodule+set}" = set; then :
17280 withval=$with_pythonmodule;
17286 ub_with_pythonmod=no
17287 if test x_$withval != x_no; then
17288 ub_with_pythonmod=yes
17292 # Check for Python & SWIG only on PyUnbound or PyModule
17293 if test x_$ub_test_python != x_no; then
17297 ac_save_LIBS="$LIBS"
17299 # Allow the use of a (user set) custom python version
17303 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17304 set dummy python$PYTHON_VERSION; ac_word=$2
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17306 $as_echo_n "checking for $ac_word... " >&6; }
17307 if ${ac_cv_path_PYTHON+:} false; then :
17308 $as_echo_n "(cached) " >&6
17312 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17316 for as_dir in $PATH
17319 test -z "$as_dir" && as_dir=.
17320 for ac_exec_ext in '' $ac_executable_extensions; do
17321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17322 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17333 PYTHON=$ac_cv_path_PYTHON
17334 if test -n "$PYTHON"; then
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17336 $as_echo "$PYTHON" >&6; }
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17339 $as_echo "no" >&6; }
17343 if test -z "$PYTHON"; then
17344 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
17348 if test -z "$PYTHON_VERSION"; then
17349 PYTHON_VERSION=`$PYTHON -c "import sys; \
17350 print(sys.version.split()[0])"`
17354 # Check if you have distutils, else fail
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
17357 $as_echo_n "checking for the distutils Python package... " >&6; }
17358 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17360 $as_echo "yes" >&6; }
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17363 $as_echo "no" >&6; }
17364 as_fn_error $? "cannot import Python module \"distutils\".
17365 Please check your Python installation. The error was:
17366 $ac_distutils_result" "$LINENO" 5
17371 # Check for Python include path
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17374 $as_echo_n "checking for Python include path... " >&6; }
17375 if test -z "$PYTHON_CPPFLAGS"; then
17376 python_path=`$PYTHON -c "import distutils.sysconfig; \
17377 print(distutils.sysconfig.get_python_inc());"`
17378 if test -n "${python_path}"; then
17379 python_path="-I$python_path"
17381 PYTHON_CPPFLAGS=$python_path
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17384 $as_echo "$PYTHON_CPPFLAGS" >&6; }
17388 # Check for Python library path
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17391 $as_echo_n "checking for Python library path... " >&6; }
17392 if test -z "$PYTHON_LDFLAGS"; then
17393 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
17394 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17397 $as_echo "$PYTHON_LDFLAGS" >&6; }
17400 if test -z "$PYTHON_LIBDIR"; then
17401 PYTHON_LIBDIR=`$PYTHON -c "from distutils.sysconfig import *; \
17402 print(get_config_var('LIBDIR'));"`
17406 # Check for site packages
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17409 $as_echo_n "checking for Python site-packages path... " >&6; }
17410 if test -z "$PYTHON_SITE_PKG"; then
17411 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17412 print(distutils.sysconfig.get_python_lib(1,0));"`
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17415 $as_echo "$PYTHON_SITE_PKG" >&6; }
17419 # final check to see if everything compiles alright
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17422 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
17424 ac_cpp='$CPP $CPPFLAGS'
17425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17429 # save current global flags
17430 ac_save_LIBS="$LIBS"
17431 ac_save_CPPFLAGS="$CPPFLAGS"
17433 LIBS="$LIBS $PYTHON_LDFLAGS"
17434 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17436 /* end confdefs.h. */
17438 #include <Python.h>
17450 if ac_fn_c_try_link "$LINENO"; then :
17455 rm -f core conftest.err conftest.$ac_objext \
17456 conftest$ac_exeext conftest.$ac_ext
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17459 $as_echo "$pythonexists" >&6; }
17461 if test ! "$pythonexists" = "yes"; then
17463 Could not link test program to Python. Maybe the main Python library has been
17464 installed in some non-standard library path. If so, pass it to configure,
17465 via the LDFLAGS environment variable.
17466 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17467 ============================================================================
17469 You probably have to install the development version of the Python package
17470 for your distribution. The exact name of this package varies among them.
17471 ============================================================================
17476 ac_cpp='$CPP $CPPFLAGS'
17477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17481 # turn back to default flags
17482 CPPFLAGS="$ac_save_CPPFLAGS"
17483 LIBS="$ac_save_LIBS"
17489 if test ! -z "$PYTHON_VERSION"; then
17490 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
17491 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
17494 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
17498 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
17500 if test -n "$LIBS"; then
17501 LIBS="$PYTHON_LDFLAGS $LIBS"
17503 LIBS="$PYTHON_LDFLAGS"
17505 if test -n "$CPPFLAGS"; then
17506 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17508 CPPFLAGS="$PYTHON_CPPFLAGS"
17510 if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then
17512 if test "x$enable_rpath" = xyes; then
17513 if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then
17514 RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR"
17520 if test -n "$PKG_CONFIG" && \
17521 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
17522 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
17524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17525 test $ac_status = 0; }; then
17526 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
17528 PC_PY_DEPENDENCY="python"
17534 # Check whether --enable-swig-version-check was given.
17535 if test "${enable_swig_version_check+set}" = set; then :
17536 enableval=$enable_swig_version_check;
17539 if test "$enable_swig_version_check" = "yes"; then
17541 # Extract the first word of "swig", so it can be a program name with args.
17542 set dummy swig; ac_word=$2
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17544 $as_echo_n "checking for $ac_word... " >&6; }
17545 if ${ac_cv_path_SWIG+:} false; then :
17546 $as_echo_n "(cached) " >&6
17550 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17554 for as_dir in $PATH
17557 test -z "$as_dir" && as_dir=.
17558 for ac_exec_ext in '' $ac_executable_extensions; do
17559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17560 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17571 SWIG=$ac_cv_path_SWIG
17572 if test -n "$SWIG"; then
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17574 $as_echo "$SWIG" >&6; }
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17577 $as_echo "no" >&6; }
17581 if test -z "$SWIG" ; then
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17583 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17584 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17585 elif test -n "2.0.1" ; then
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17587 $as_echo_n "checking for SWIG version... " >&6; }
17588 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17590 $as_echo "$swig_version" >&6; }
17591 if test -n "$swig_version" ; then
17592 # Calculate the required version number components
17594 required_major=`echo $required | sed 's/[^0-9].*//'`
17595 if test -z "$required_major" ; then
17598 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17599 required_minor=`echo $required | sed 's/[^0-9].*//'`
17600 if test -z "$required_minor" ; then
17603 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17604 required_patch=`echo $required | sed 's/[^0-9].*//'`
17605 if test -z "$required_patch" ; then
17608 # Calculate the available version number components
17609 available=$swig_version
17610 available_major=`echo $available | sed 's/[^0-9].*//'`
17611 if test -z "$available_major" ; then
17614 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17615 available_minor=`echo $available | sed 's/[^0-9].*//'`
17616 if test -z "$available_minor" ; then
17619 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17620 available_patch=`echo $available | sed 's/[^0-9].*//'`
17621 if test -z "$available_patch" ; then
17625 if test $available_major -lt $required_major ; then
17628 if test $available_major -eq $required_major \
17629 -a $available_minor -lt $required_minor ; then
17632 if test $available_major -eq $required_major \
17633 -a $available_minor -eq $required_minor \
17634 -a $available_patch -lt $required_patch ; then
17637 if test $badversion -eq 1 ; then
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version. You should look at http://www.swig.org" >&5
17639 $as_echo "$as_me: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
17640 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17643 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17644 SWIG_LIB=`$SWIG -swiglib`
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17646 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17650 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17651 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17658 # Extract the first word of "swig", so it can be a program name with args.
17659 set dummy swig; ac_word=$2
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17661 $as_echo_n "checking for $ac_word... " >&6; }
17662 if ${ac_cv_path_SWIG+:} false; then :
17663 $as_echo_n "(cached) " >&6
17667 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17671 for as_dir in $PATH
17674 test -z "$as_dir" && as_dir=.
17675 for ac_exec_ext in '' $ac_executable_extensions; do
17676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17677 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17688 SWIG=$ac_cv_path_SWIG
17689 if test -n "$SWIG"; then
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17691 $as_echo "$SWIG" >&6; }
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17694 $as_echo "no" >&6; }
17698 if test -z "$SWIG" ; then
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17700 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17701 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17702 elif test -n "" ; then
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17704 $as_echo_n "checking for SWIG version... " >&6; }
17705 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17707 $as_echo "$swig_version" >&6; }
17708 if test -n "$swig_version" ; then
17709 # Calculate the required version number components
17711 required_major=`echo $required | sed 's/[^0-9].*//'`
17712 if test -z "$required_major" ; then
17715 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17716 required_minor=`echo $required | sed 's/[^0-9].*//'`
17717 if test -z "$required_minor" ; then
17720 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17721 required_patch=`echo $required | sed 's/[^0-9].*//'`
17722 if test -z "$required_patch" ; then
17725 # Calculate the available version number components
17726 available=$swig_version
17727 available_major=`echo $available | sed 's/[^0-9].*//'`
17728 if test -z "$available_major" ; then
17731 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17732 available_minor=`echo $available | sed 's/[^0-9].*//'`
17733 if test -z "$available_minor" ; then
17736 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17737 available_patch=`echo $available | sed 's/[^0-9].*//'`
17738 if test -z "$available_patch" ; then
17742 if test $available_major -lt $required_major ; then
17745 if test $available_major -eq $required_major \
17746 -a $available_minor -lt $required_minor ; then
17749 if test $available_major -eq $required_major \
17750 -a $available_minor -eq $required_minor \
17751 -a $available_patch -lt $required_patch ; then
17754 if test $badversion -eq 1 ; then
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&5
17756 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
17757 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17760 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17761 SWIG_LIB=`$SWIG -swiglib`
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17763 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17767 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17768 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17775 $as_echo_n "checking SWIG... " >&6; }
17776 if test ! -x "$SWIG"; then
17777 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17780 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
17785 $as_echo "present" >&6; }
17787 # If have Python & SWIG
17788 # Declare PythonMod
17789 if test x_$ub_with_pythonmod != x_no; then
17791 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
17793 WITH_PYTHONMODULE=yes
17795 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
17797 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
17799 PYTHONMOD_INSTALL=pythonmod-install
17801 PYTHONMOD_UNINSTALL=pythonmod-uninstall
17805 # Declare PyUnbound
17806 if test x_$ub_with_pyunbound != x_no; then
17808 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
17812 PYUNBOUND_OBJ="libunbound_wrap.lo"
17814 PYUNBOUND_TARGET="_unbound.la"
17816 PYUNBOUND_INSTALL=pyunbound-install
17818 PYUNBOUND_UNINSTALL=pyunbound-uninstall
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
17824 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
17825 ub_with_pyunbound=no
17826 ub_with_pythonmod=no
17830 if test "`uname`" = "NetBSD"; then
17831 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
17834 CONFIG_DATE=`date +%Y%m%d`
17837 # Checks for libraries.
17842 # Check whether --with-nss was given.
17843 if test "${with_nss+set}" = set; then :
17847 $as_echo "#define HAVE_NSS 1" >>confdefs.h
17849 if test "$withval" != "" -a "$withval" != "yes"; then
17850 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17851 LDFLAGS="$LDFLAGS -L$withval/lib"
17853 if test "x$enable_rpath" = xyes; then
17854 if echo "$withval/lib" | grep "^/" >/dev/null; then
17855 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17859 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17861 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17862 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17864 LIBS="$LIBS -lnss3 -lnspr4"
17866 PC_CRYPTO_DEPENDENCY="nss nspr"
17876 # Check whether --with-nettle was given.
17877 if test "${with_nettle+set}" = set; then :
17878 withval=$with_nettle;
17881 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17883 for ac_header in nettle/dsa-compat.h
17885 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17887 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17888 cat >>confdefs.h <<_ACEOF
17889 #define HAVE_NETTLE_DSA_COMPAT_H 1
17896 if test "$withval" != "" -a "$withval" != "yes"; then
17897 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17898 LDFLAGS="$LDFLAGS -L$withval/lib"
17900 if test "x$enable_rpath" = xyes; then
17901 if echo "$withval/lib" | grep "^/" >/dev/null; then
17902 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17907 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17909 LIBS="$LIBS -lhogweed -lnettle -lgmp"
17911 PC_CRYPTO_DEPENDENCY="hogweed nettle"
17919 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17922 # Check whether --with-ssl was given.
17923 if test "${with_ssl+set}" = set; then :
17932 if test x_$withval = x_no; then
17933 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17937 if test x_$withval != x_no; then
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17939 $as_echo_n "checking for SSL... " >&6; }
17940 if test x_$withval = x_ -o x_$withval = x_yes; then
17941 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
17943 for dir in $withval; do
17945 if test -f "$dir/include/openssl/ssl.h"; then
17948 cat >>confdefs.h <<_ACEOF
17949 #define HAVE_SSL /**/
17952 if test "$ssldir" != "/usr"; then
17953 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
17954 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
17959 if test x_$found_ssl != x_yes; then
17960 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
17963 $as_echo "found in $ssldir" >&6; }
17965 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
17966 LDFLAGS="$LDFLAGS -L$ssldir/lib"
17967 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
17969 if test "x$enable_rpath" = xyes; then
17970 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
17971 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
17978 $as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; }
17979 LIBS="$LIBS -lcrypto"
17980 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
17981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17982 /* end confdefs.h. */
17988 int EVP_sha256(void);
17989 (void)EVP_sha256();
17995 if ac_fn_c_try_link "$LINENO"; then :
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17998 $as_echo "yes" >&6; }
18000 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18006 $as_echo "no" >&6; }
18007 # check if -lwsock32 or -lgdi32 are needed.
18009 BAKSSLLIBS="$LIBSSL_LIBS"
18010 LIBS="$LIBS -lgdi32 -lws2_32"
18011 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
18013 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
18014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18015 /* end confdefs.h. */
18021 int EVP_sha256(void);
18022 (void)EVP_sha256();
18028 if ac_fn_c_try_link "$LINENO"; then :
18031 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18034 $as_echo "yes" >&6; }
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18039 $as_echo "no" >&6; }
18041 LIBSSL_LIBS="$BAKSSLLIBS"
18043 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
18045 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
18046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18047 /* end confdefs.h. */
18053 int EVP_sha256(void);
18054 (void)EVP_sha256();
18060 if ac_fn_c_try_link "$LINENO"; then :
18063 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18066 $as_echo "yes" >&6; }
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18071 $as_echo "no" >&6; }
18073 LIBSSL_LIBS="$BAKSSLLIBS"
18074 LIBS="$LIBS -ldl -pthread"
18075 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
18077 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h. */
18085 int EVP_sha256(void);
18086 (void)EVP_sha256();
18092 if ac_fn_c_try_link "$LINENO"; then :
18095 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18098 $as_echo "yes" >&6; }
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18103 $as_echo "no" >&6; }
18104 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
18107 rm -f core conftest.err conftest.$ac_objext \
18108 conftest$ac_exeext conftest.$ac_ext
18111 rm -f core conftest.err conftest.$ac_objext \
18112 conftest$ac_exeext conftest.$ac_ext
18115 rm -f core conftest.err conftest.$ac_objext \
18116 conftest$ac_exeext conftest.$ac_ext
18119 rm -f core conftest.err conftest.$ac_objext \
18120 conftest$ac_exeext conftest.$ac_ext
18125 for ac_header in openssl/ssl.h
18127 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
18129 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
18130 cat >>confdefs.h <<_ACEOF
18131 #define HAVE_OPENSSL_SSL_H 1
18138 for ac_header in openssl/err.h
18140 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
18142 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
18143 cat >>confdefs.h <<_ACEOF
18144 #define HAVE_OPENSSL_ERR_H 1
18151 for ac_header in openssl/rand.h
18153 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
18155 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
18156 cat >>confdefs.h <<_ACEOF
18157 #define HAVE_OPENSSL_RAND_H 1
18167 # check if libssl needs libdl
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
18171 $as_echo_n "checking if libssl needs libdl... " >&6; }
18172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18173 /* end confdefs.h. */
18175 /* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18181 char SSL_CTX_new ();
18185 return SSL_CTX_new ();
18190 if ac_fn_c_try_link "$LINENO"; then :
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193 $as_echo "no" >&6; }
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18199 $as_echo "yes" >&6; }
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18202 $as_echo_n "checking for library containing dlopen... " >&6; }
18203 if ${ac_cv_search_dlopen+:} false; then :
18204 $as_echo_n "(cached) " >&6
18206 ac_func_search_save_LIBS=$LIBS
18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h. */
18210 /* Override any GCC internal prototype to avoid an error.
18211 Use char because int might match the return type of a GCC
18212 builtin and then its argument prototype would still apply. */
18225 for ac_lib in '' dl; do
18226 if test -z "$ac_lib"; then
18227 ac_res="none required"
18230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18232 if ac_fn_c_try_link "$LINENO"; then :
18233 ac_cv_search_dlopen=$ac_res
18235 rm -f core conftest.err conftest.$ac_objext \
18237 if ${ac_cv_search_dlopen+:} false; then :
18241 if ${ac_cv_search_dlopen+:} false; then :
18244 ac_cv_search_dlopen=no
18246 rm conftest.$ac_ext
18247 LIBS=$ac_func_search_save_LIBS
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18250 $as_echo "$ac_cv_search_dlopen" >&6; }
18251 ac_res=$ac_cv_search_dlopen
18252 if test "$ac_res" != no; then :
18253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18259 rm -f core conftest.err conftest.$ac_objext \
18260 conftest$ac_exeext conftest.$ac_ext
18263 PC_CRYPTO_DEPENDENCY="libcrypto libssl"
18266 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
18270 $as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
18271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18272 /* end confdefs.h. */
18274 /* Override any GCC internal prototype to avoid an error.
18275 Use char because int might match the return type of a GCC
18276 builtin and then its argument prototype would still apply. */
18280 char EVP_sha256 ();
18284 return EVP_sha256 ();
18289 if ac_fn_c_try_link "$LINENO"; then :
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18292 $as_echo "no" >&6; }
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18298 $as_echo "yes" >&6; }
18300 LIBS="$LIBS -lcrypt32"
18303 rm -f core conftest.err conftest.$ac_objext \
18304 conftest$ac_exeext conftest.$ac_ext
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
18307 $as_echo_n "checking for LibreSSL... " >&6; }
18308 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18310 $as_echo "yes" >&6; }
18312 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
18314 # libressl provides these compat functions, but they may also be
18315 # declared by the OS in libc. See if they have been declared.
18316 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
18317 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
18323 cat >>confdefs.h <<_ACEOF
18324 #define HAVE_DECL_STRLCPY $ac_have_decl
18326 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
18327 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
18333 cat >>confdefs.h <<_ACEOF
18334 #define HAVE_DECL_STRLCAT $ac_have_decl
18336 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
18337 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
18343 cat >>confdefs.h <<_ACEOF
18344 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
18346 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
18347 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
18353 cat >>confdefs.h <<_ACEOF
18354 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18359 $as_echo "no" >&6; }
18361 for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h openssl/core_names.h
18363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18364 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18367 cat >>confdefs.h <<_ACEOF
18368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18375 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ENGINE_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify EVP_aes_256_cbc EVP_EncryptInit_ex HMAC_Init_ex CRYPTO_THREADID_set_callback EVP_MAC_CTX_set_params
18377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18378 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18379 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18380 cat >>confdefs.h <<_ACEOF
18381 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18388 # these check_funcs need -lssl
18391 for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level SSL_set1_host SSL_get0_peername X509_VERIFY_PARAM_set1_host SSL_CTX_set_ciphersuites SSL_CTX_set_tlsext_ticket_key_evp_cb SSL_CTX_set_alpn_select_cb
18393 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18394 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18395 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18396 cat >>confdefs.h <<_ACEOF
18397 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18405 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
18406 $ac_includes_default
18407 #ifdef HAVE_OPENSSL_ERR_H
18408 #include <openssl/err.h>
18411 #ifdef HAVE_OPENSSL_RAND_H
18412 #include <openssl/rand.h>
18415 #ifdef HAVE_OPENSSL_CONF_H
18416 #include <openssl/conf.h>
18419 #ifdef HAVE_OPENSSL_ENGINE_H
18420 #include <openssl/engine.h>
18422 #include <openssl/ssl.h>
18423 #include <openssl/evp.h>
18426 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
18432 cat >>confdefs.h <<_ACEOF
18433 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
18435 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
18436 $ac_includes_default
18437 #ifdef HAVE_OPENSSL_ERR_H
18438 #include <openssl/err.h>
18441 #ifdef HAVE_OPENSSL_RAND_H
18442 #include <openssl/rand.h>
18445 #ifdef HAVE_OPENSSL_CONF_H
18446 #include <openssl/conf.h>
18449 #ifdef HAVE_OPENSSL_ENGINE_H
18450 #include <openssl/engine.h>
18452 #include <openssl/ssl.h>
18453 #include <openssl/evp.h>
18456 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
18462 cat >>confdefs.h <<_ACEOF
18463 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
18465 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
18466 $ac_includes_default
18467 #ifdef HAVE_OPENSSL_ERR_H
18468 #include <openssl/err.h>
18471 #ifdef HAVE_OPENSSL_RAND_H
18472 #include <openssl/rand.h>
18475 #ifdef HAVE_OPENSSL_CONF_H
18476 #include <openssl/conf.h>
18479 #ifdef HAVE_OPENSSL_ENGINE_H
18480 #include <openssl/engine.h>
18482 #include <openssl/ssl.h>
18483 #include <openssl/evp.h>
18486 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
18492 cat >>confdefs.h <<_ACEOF
18493 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
18497 if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
18498 # check function return type.
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
18500 $as_echo_n "checking the return type of HMAC_Init_ex... " >&6; }
18501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h. */
18504 #ifdef HAVE_OPENSSL_ERR_H
18505 #include <openssl/err.h>
18508 #ifdef HAVE_OPENSSL_RAND_H
18509 #include <openssl/rand.h>
18512 #ifdef HAVE_OPENSSL_CONF_H
18513 #include <openssl/conf.h>
18516 #ifdef HAVE_OPENSSL_ENGINE_H
18517 #include <openssl/engine.h>
18519 #include <openssl/ssl.h>
18520 #include <openssl/evp.h>
18526 HMAC_CTX* hmac_ctx = NULL;
18527 void* hmac_key = NULL;
18528 const EVP_MD* digest = NULL;
18529 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
18536 if ac_fn_c_try_compile "$LINENO"; then :
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18539 $as_echo "int" >&6; }
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
18544 $as_echo "void" >&6; }
18546 $as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
18550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18558 # Check whether --with-libbsd was given.
18559 if test "${with_libbsd+set}" = set; then :
18560 withval=$with_libbsd;
18561 for ac_header in bsd/string.h bsd/stdlib.h
18563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18564 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18567 cat >>confdefs.h <<_ACEOF
18568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18575 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
18576 for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do
18577 as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh`
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
18579 $as_echo_n "checking for library containing $func... " >&6; }
18580 if eval \${$as_ac_Search+:} false; then :
18581 $as_echo_n "(cached) " >&6
18583 ac_func_search_save_LIBS=$LIBS
18584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18585 /* end confdefs.h. */
18587 /* Override any GCC internal prototype to avoid an error.
18588 Use char because int might match the return type of a GCC
18589 builtin and then its argument prototype would still apply. */
18602 for ac_lib in '' bsd; do
18603 if test -z "$ac_lib"; then
18604 ac_res="none required"
18607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18609 if ac_fn_c_try_link "$LINENO"; then :
18610 eval "$as_ac_Search=\$ac_res"
18612 rm -f core conftest.err conftest.$ac_objext \
18614 if eval \${$as_ac_Search+:} false; then :
18618 if eval \${$as_ac_Search+:} false; then :
18621 eval "$as_ac_Search=no"
18623 rm conftest.$ac_ext
18624 LIBS=$ac_func_search_save_LIBS
18626 eval ac_res=\$$as_ac_Search
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18628 $as_echo "$ac_res" >&6; }
18629 eval ac_res=\$$as_ac_Search
18630 if test "$ac_res" != no; then :
18631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18634 $as_echo "#define HAVE_LIBBSD 1" >>confdefs.h
18636 PC_LIBBSD_DEPENDENCY=libbsd
18647 # Check whether --enable-sha1 was given.
18648 if test "${enable_sha1+set}" = set; then :
18649 enableval=$enable_sha1;
18652 case "$enable_sha1" in
18657 $as_echo "#define USE_SHA1 1" >>confdefs.h
18663 # Check whether --enable-sha2 was given.
18664 if test "${enable_sha2+set}" = set; then :
18665 enableval=$enable_sha2;
18668 case "$enable_sha2" in
18673 $as_echo "#define USE_SHA2 1" >>confdefs.h
18678 # Check whether --enable-subnet was given.
18679 if test "${enable_subnet+set}" = set; then :
18680 enableval=$enable_subnet;
18683 case "$enable_subnet" in
18686 $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
18688 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
18690 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
18697 # check wether gost also works
18699 # Check whether --enable-gost was given.
18700 if test "${enable_gost+set}" = set; then :
18701 enableval=$enable_gost;
18705 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18706 case "$enable_gost" in
18710 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
18711 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
18714 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
18717 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
18718 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
18721 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
18726 $as_echo_n "checking if GOST works... " >&6; }
18727 if test c${cross_compiling} = cno; then
18728 BAKCFLAGS="$CFLAGS"
18729 if test -n "$ssldir"; then
18730 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
18732 if test "$cross_compiling" = yes; then :
18733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18735 as_fn_error $? "cannot run test program while cross compiling
18736 See \`config.log' for more details" "$LINENO" 5; }
18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h. */
18741 #include <string.h>
18742 #include <openssl/ssl.h>
18743 #include <openssl/evp.h>
18744 #include <openssl/engine.h>
18745 #include <openssl/conf.h>
18746 /* routine to load gost (from sldns) */
18747 int load_gost_id(void)
18749 static int gost_id = 0;
18750 const EVP_PKEY_ASN1_METHOD* meth;
18753 if(gost_id) return gost_id;
18755 /* see if configuration loaded gost implementation from other engine*/
18756 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
18758 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18762 /* see if engine can be loaded already */
18763 e = ENGINE_by_id("gost");
18765 /* load it ourself, in case statically linked */
18766 ENGINE_load_builtin_engines();
18767 ENGINE_load_dynamic();
18768 e = ENGINE_by_id("gost");
18771 /* no gost engine in openssl */
18774 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
18780 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
18782 /* algo not found */
18787 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18793 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
18794 const char* str = "Hello world";
18795 const unsigned char check[] = {
18796 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
18797 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
18798 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
18799 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
18801 OPENSSL_config(NULL);
18802 (void)load_gost_id();
18803 md = EVP_get_digestbyname("md_gost94");
18805 memset(digest, 0, sizeof(digest));
18806 ctx = EVP_MD_CTX_create();
18808 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
18809 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
18810 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
18811 /* uncomment to see the hash calculated.
18813 for(i=0; i<32; i++)
18814 printf(" %2.2x", (int)digest[i]);
18817 if(memcmp(digest, check, sizeof(check)) != 0)
18823 if ac_fn_c_try_run "$LINENO"; then :
18824 eval "ac_cv_c_gost_works=yes"
18826 eval "ac_cv_c_gost_works=no"
18828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18829 conftest.$ac_objext conftest.beam conftest.$ac_ext
18832 CFLAGS="$BAKCFLAGS"
18834 eval "ac_cv_c_gost_works=maybe"
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
18837 $as_echo "$ac_cv_c_gost_works" >&6; }
18839 if test "$ac_cv_c_gost_works" != no; then
18842 $as_echo "#define USE_GOST 1" >>confdefs.h
18848 # Check whether --enable-ecdsa was given.
18849 if test "${enable_ecdsa+set}" = set; then :
18850 enableval=$enable_ecdsa;
18854 case "$enable_ecdsa" in
18858 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18859 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
18860 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
18863 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18866 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
18867 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
18870 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18873 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
18874 #include <openssl/evp.h>
18877 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
18883 cat >>confdefs.h <<_ACEOF
18884 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
18886 if test $ac_have_decl = 1; then :
18889 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18891 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
18892 #include <openssl/evp.h>
18895 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
18901 cat >>confdefs.h <<_ACEOF
18902 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
18904 if test $ac_have_decl = 1; then :
18907 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18910 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
18912 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
18913 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
18914 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18916 $as_echo "no" >&6; }
18918 cat >>confdefs.h <<_ACEOF
18919 #define USE_ECDSA_EVP_WORKAROUND 1
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18924 $as_echo "yes" >&6; }
18927 # not OpenSSL, thus likely LibreSSL, which supports it
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18929 $as_echo "yes" >&6; }
18932 # we now know we have ECDSA and the required curves.
18934 cat >>confdefs.h <<_ACEOF
18935 #define USE_ECDSA 1
18942 # Check whether --enable-dsa was given.
18943 if test "${enable_dsa+set}" = set; then :
18944 enableval=$enable_dsa;
18948 case "$enable_dsa" in
18950 # detect if DSA is supported, and turn it off if not.
18951 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18952 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
18953 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
18955 as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
18956 ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
18957 $ac_includes_default
18958 #ifdef HAVE_OPENSSL_ERR_H
18959 #include <openssl/err.h>
18962 #ifdef HAVE_OPENSSL_RAND_H
18963 #include <openssl/rand.h>
18966 #ifdef HAVE_OPENSSL_CONF_H
18967 #include <openssl/conf.h>
18970 #ifdef HAVE_OPENSSL_ENGINE_H
18971 #include <openssl/engine.h>
18975 if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
18978 cat >>confdefs.h <<_ACEOF
18984 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18990 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18996 cat >>confdefs.h <<_ACEOF
19003 # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT
19004 # support DSA for DNSSEC Validation.
19008 # Check whether --enable-ed25519 was given.
19009 if test "${enable_ed25519+set}" = set; then :
19010 enableval=$enable_ed25519;
19014 case "$enable_ed25519" in
19018 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19019 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
19020 #include <openssl/evp.h>
19023 if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
19029 cat >>confdefs.h <<_ACEOF
19030 #define HAVE_DECL_NID_ED25519 $ac_have_decl
19032 if test $ac_have_decl = 1; then :
19037 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
19042 if test $USE_NETTLE = "yes"; then
19043 for ac_header in nettle/eddsa.h
19045 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
19047 if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
19048 cat >>confdefs.h <<_ACEOF
19049 #define HAVE_NETTLE_EDDSA_H 1
19057 if test $use_ed25519 = "yes"; then
19059 cat >>confdefs.h <<_ACEOF
19060 #define USE_ED25519 1
19067 # Check whether --enable-ed448 was given.
19068 if test "${enable_ed448+set}" = set; then :
19069 enableval=$enable_ed448;
19073 case "$enable_ed448" in
19077 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19078 ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
19079 #include <openssl/evp.h>
19082 if test "x$ac_cv_have_decl_NID_ED448" = xyes; then :
19088 cat >>confdefs.h <<_ACEOF
19089 #define HAVE_DECL_NID_ED448 $ac_have_decl
19091 if test $ac_have_decl = 1; then :
19096 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
19101 if test $use_ed448 = "yes"; then
19103 cat >>confdefs.h <<_ACEOF
19104 #define USE_ED448 1
19111 # Check whether --enable-event-api was given.
19112 if test "${enable_event_api+set}" = set; then :
19113 enableval=$enable_event_api;
19116 case "$enable_event_api" in
19118 UNBOUND_EVENT_INSTALL=unbound-event-install
19120 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
19127 # Check whether --enable-tfo-client was given.
19128 if test "${enable_tfo_client+set}" = set; then :
19129 enableval=$enable_tfo_client;
19132 case "$enable_tfo_client" in
19135 Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
19136 #include <netinet/tcp.h>
19139 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19141 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19143 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19147 cat >>confdefs.h <<_ACEOF
19148 #define USE_MSG_FASTOPEN 1
19152 Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
19153 #include <sys/socket.h>
19156 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19158 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19160 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19164 cat >>confdefs.h <<_ACEOF
19165 #define USE_OSX_MSG_FASTOPEN 1
19175 # Check whether --enable-tfo-server was given.
19176 if test "${enable_tfo_server+set}" = set; then :
19177 enableval=$enable_tfo_server;
19180 case "$enable_tfo_server" in
19182 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
19183 #include <netinet/tcp.h>
19186 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
19188 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
19190 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
19194 cat >>confdefs.h <<_ACEOF
19195 #define USE_TCP_FASTOPEN 1
19203 # check for libevent
19205 # Check whether --with-libevent was given.
19206 if test "${with_libevent+set}" = set; then :
19207 withval=$with_libevent;
19212 if test "x_$with_libevent" != x_no; then
19214 $as_echo "#define USE_LIBEVENT 1" >>confdefs.h
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
19217 $as_echo_n "checking for libevent... " >&6; }
19218 if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then
19219 with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19221 for dir in $with_libevent; do
19223 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
19224 found_libevent="yes"
19225 if test "$thedir" != "/usr"; then
19226 CPPFLAGS="$CPPFLAGS -I$thedir/include"
19231 if test x_$found_libevent != x_yes; then
19232 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
19233 # libevent source directory
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19235 $as_echo "found in $thedir" >&6; }
19236 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
19237 BAK_LDFLAGS_SET="1"
19238 BAK_LDFLAGS="$LDFLAGS"
19239 # remove evdns from linking
19240 mkdir build >/dev/null 2>&1
19241 mkdir build/libevent >/dev/null 2>&1
19242 mkdir build/libevent/.libs >/dev/null 2>&1
19243 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19244 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
19245 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19246 cp $ev_files_o build/libevent
19247 cp $ev_files_lo build/libevent
19248 cp $ev_files_libso build/libevent/.libs
19249 LATE_LDFLAGS="build/libevent/*.lo -lm"
19250 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
19252 as_fn_error $? "Cannot find the libevent library in $with_libevent
19253 You can restart ./configure --with-libevent=no to use a builtin alternative.
19254 Please note that this alternative is not as capable as libevent when using
19255 large outgoing port ranges. " "$LINENO" 5
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19259 $as_echo "found in $thedir" >&6; }
19260 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
19261 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
19263 if test "x$enable_rpath" = xyes; then
19264 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
19265 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
19270 if test "$thedir" != "/usr" -a "$thedir" != ""; then
19271 LDFLAGS="$LDFLAGS -L$thedir/lib"
19273 if test "x$enable_rpath" = xyes; then
19274 if echo "$thedir/lib" | grep "^/" >/dev/null; then
19275 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
19282 # check for library used by libevent after 1.3c
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19284 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19285 if ${ac_cv_search_clock_gettime+:} false; then :
19286 $as_echo_n "(cached) " >&6
19288 ac_func_search_save_LIBS=$LIBS
19289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h. */
19292 /* Override any GCC internal prototype to avoid an error.
19293 Use char because int might match the return type of a GCC
19294 builtin and then its argument prototype would still apply. */
19298 char clock_gettime ();
19302 return clock_gettime ();
19307 for ac_lib in '' rt; do
19308 if test -z "$ac_lib"; then
19309 ac_res="none required"
19312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19314 if ac_fn_c_try_link "$LINENO"; then :
19315 ac_cv_search_clock_gettime=$ac_res
19317 rm -f core conftest.err conftest.$ac_objext \
19319 if ${ac_cv_search_clock_gettime+:} false; then :
19323 if ${ac_cv_search_clock_gettime+:} false; then :
19326 ac_cv_search_clock_gettime=no
19328 rm conftest.$ac_ext
19329 LIBS=$ac_func_search_save_LIBS
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19332 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19333 ac_res=$ac_cv_search_clock_gettime
19334 if test "$ac_res" != no; then :
19335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19340 # is the event.h header libev or libevent?
19341 for ac_header in event.h
19343 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
19345 if test "x$ac_cv_header_event_h" = xyes; then :
19346 cat >>confdefs.h <<_ACEOF
19347 #define HAVE_EVENT_H 1
19354 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
19358 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19361 $as_echo_n "checking for library containing event_set... " >&6; }
19362 if ${ac_cv_search_event_set+:} false; then :
19363 $as_echo_n "(cached) " >&6
19365 ac_func_search_save_LIBS=$LIBS
19366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19367 /* end confdefs.h. */
19369 /* Override any GCC internal prototype to avoid an error.
19370 Use char because int might match the return type of a GCC
19371 builtin and then its argument prototype would still apply. */
19379 return event_set ();
19384 for ac_lib in '' ev; do
19385 if test -z "$ac_lib"; then
19386 ac_res="none required"
19389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19391 if ac_fn_c_try_link "$LINENO"; then :
19392 ac_cv_search_event_set=$ac_res
19394 rm -f core conftest.err conftest.$ac_objext \
19396 if ${ac_cv_search_event_set+:} false; then :
19400 if ${ac_cv_search_event_set+:} false; then :
19403 ac_cv_search_event_set=no
19405 rm conftest.$ac_ext
19406 LIBS=$ac_func_search_save_LIBS
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19409 $as_echo "$ac_cv_search_event_set" >&6; }
19410 ac_res=$ac_cv_search_event_set
19411 if test "$ac_res" != no; then :
19412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19420 $as_echo_n "checking for library containing event_set... " >&6; }
19421 if ${ac_cv_search_event_set+:} false; then :
19422 $as_echo_n "(cached) " >&6
19424 ac_func_search_save_LIBS=$LIBS
19425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19426 /* end confdefs.h. */
19428 /* Override any GCC internal prototype to avoid an error.
19429 Use char because int might match the return type of a GCC
19430 builtin and then its argument prototype would still apply. */
19438 return event_set ();
19443 for ac_lib in '' event; do
19444 if test -z "$ac_lib"; then
19445 ac_res="none required"
19448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19450 if ac_fn_c_try_link "$LINENO"; then :
19451 ac_cv_search_event_set=$ac_res
19453 rm -f core conftest.err conftest.$ac_objext \
19455 if ${ac_cv_search_event_set+:} false; then :
19459 if ${ac_cv_search_event_set+:} false; then :
19462 ac_cv_search_event_set=no
19464 rm conftest.$ac_ext
19465 LIBS=$ac_func_search_save_LIBS
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19468 $as_echo "$ac_cv_search_event_set" >&6; }
19469 ac_res=$ac_cv_search_event_set
19470 if test "$ac_res" != no; then :
19471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19478 for ac_func in event_base_free
19480 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
19481 if test "x$ac_cv_func_event_base_free" = xyes; then :
19482 cat >>confdefs.h <<_ACEOF
19483 #define HAVE_EVENT_BASE_FREE 1
19488 # only in libevent 1.2 and later
19489 for ac_func in event_base_once
19491 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
19492 if test "x$ac_cv_func_event_base_once" = xyes; then :
19493 cat >>confdefs.h <<_ACEOF
19494 #define HAVE_EVENT_BASE_ONCE 1
19499 # only in libevent 1.4.1 and later
19500 for ac_func in event_base_new
19502 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
19503 if test "x$ac_cv_func_event_base_new" = xyes; then :
19504 cat >>confdefs.h <<_ACEOF
19505 #define HAVE_EVENT_BASE_NEW 1
19510 # only in libevent 1.4.1 and later
19511 for ac_func in event_base_get_method
19513 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
19514 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
19515 cat >>confdefs.h <<_ACEOF
19516 #define HAVE_EVENT_BASE_GET_METHOD 1
19521 # only in libevent 1.4.3 and later
19522 for ac_func in ev_loop
19524 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
19525 if test "x$ac_cv_func_ev_loop" = xyes; then :
19526 cat >>confdefs.h <<_ACEOF
19527 #define HAVE_EV_LOOP 1
19532 # only in libev. (tested on 3.51)
19533 for ac_func in ev_default_loop
19535 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
19536 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
19537 cat >>confdefs.h <<_ACEOF
19538 #define HAVE_EV_DEFAULT_LOOP 1
19543 # only in libev. (tested on 4.00)
19544 for ac_func in event_assign
19546 ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
19547 if test "x$ac_cv_func_event_assign" = xyes; then :
19548 cat >>confdefs.h <<_ACEOF
19549 #define HAVE_EVENT_ASSIGN 1
19554 # in libevent, for thread-safety
19555 ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
19556 #ifdef HAVE_EVENT_H
19557 # include <event.h>
19559 # include \"event2/event.h\"
19563 if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then :
19569 cat >>confdefs.h <<_ACEOF
19570 #define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl
19573 PC_LIBEVENT_DEPENDENCY="libevent"
19575 if test -n "$BAK_LDFLAGS_SET"; then
19576 LDFLAGS="$BAK_LDFLAGS"
19580 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
19584 # check for libexpat
19586 # Check whether --with-libexpat was given.
19587 if test "${with_libexpat+set}" = set; then :
19588 withval=$with_libexpat;
19590 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
19594 $as_echo_n "checking for libexpat... " >&6; }
19595 found_libexpat="no"
19596 for dir in $withval ; do
19597 if test -f "$dir/include/expat.h"; then
19598 found_libexpat="yes"
19599 if test "$dir" != "/usr"; then
19600 CPPFLAGS="$CPPFLAGS -I$dir/include"
19601 LDFLAGS="$LDFLAGS -L$dir/lib"
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19604 $as_echo "found in $dir" >&6; }
19608 if test x_$found_libexpat != x_yes; then
19609 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
19611 for ac_header in expat.h
19613 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
19615 if test "x$ac_cv_header_expat_h" = xyes; then :
19616 cat >>confdefs.h <<_ACEOF
19617 #define HAVE_EXPAT_H 1
19624 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
19628 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
19634 cat >>confdefs.h <<_ACEOF
19635 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
19639 # hiredis (redis C client for cachedb)
19641 # Check whether --with-libhiredis was given.
19642 if test "${with_libhiredis+set}" = set; then :
19643 withval=$with_libhiredis;
19648 found_libhiredis="no"
19649 if test x_$withval = x_yes -o x_$withval != x_no; then
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
19651 $as_echo_n "checking for libhiredis... " >&6; }
19652 if test x_$withval = x_ -o x_$withval = x_yes; then
19653 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19655 for dir in $withval ; do
19656 if test -f "$dir/include/hiredis/hiredis.h"; then
19657 found_libhiredis="yes"
19658 if test "$dir" != "/usr"; then
19659 CPPFLAGS="$CPPFLAGS -I$dir/include"
19660 LDFLAGS="$LDFLAGS -L$dir/lib"
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19663 $as_echo "found in $dir" >&6; }
19665 $as_echo "#define USE_REDIS 1" >>confdefs.h
19667 LIBS="$LIBS -lhiredis"
19671 if test x_$found_libhiredis != x_yes; then
19672 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
19674 for ac_header in hiredis/hiredis.h
19676 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
19678 if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
19679 cat >>confdefs.h <<_ACEOF
19680 #define HAVE_HIREDIS_HIREDIS_H 1
19687 ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
19688 #include <hiredis/hiredis.h>
19691 if test "x$ac_cv_have_decl_redisConnect" = xyes; then :
19697 cat >>confdefs.h <<_ACEOF
19698 #define HAVE_DECL_REDISCONNECT $ac_have_decl
19705 # Check whether --with-libnghttp2 was given.
19706 if test "${with_libnghttp2+set}" = set; then :
19707 withval=$with_libnghttp2;
19712 found_libnghttp2="no"
19713 if test x_$withval = x_yes -o x_$withval != x_no; then
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5
19715 $as_echo_n "checking for libnghttp2... " >&6; }
19716 if test x_$withval = x_ -o x_$withval = x_yes; then
19717 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19719 for dir in $withval ; do
19720 if test -f "$dir/include/nghttp2/nghttp2.h"; then
19721 found_libnghttp2="yes"
19722 if test "$dir" != "/usr"; then
19723 CPPFLAGS="$CPPFLAGS -I$dir/include"
19724 LDFLAGS="$LDFLAGS -L$dir/lib"
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19727 $as_echo "found in $dir" >&6; }
19729 $as_echo "#define HAVE_NGHTTP2 1" >>confdefs.h
19731 LIBS="$LIBS -lnghttp2"
19735 if test x_$found_libnghttp2 != x_yes; then
19736 as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5
19738 for ac_header in nghttp2/nghttp2.h
19740 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default
19742 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
19743 cat >>confdefs.h <<_ACEOF
19744 #define HAVE_NGHTTP2_NGHTTP2_H 1
19751 ac_fn_c_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default
19752 #include <nghttp2/nghttp2.h>
19755 if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes; then :
19761 cat >>confdefs.h <<_ACEOF
19762 #define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl
19767 # set static linking for uninstalled libraries if requested
19770 # Check whether --enable-static-exe was given.
19771 if test "${enable_static_exe+set}" = set; then :
19772 enableval=$enable_static_exe;
19775 if test x_$enable_static_exe = x_yes; then
19776 staticexe="-static"
19777 if test "$on_mingw" = yes; then
19778 staticexe="-all-static"
19779 # for static compile, include gdi32 and zlib here.
19780 if echo $LIBS | grep 'lgdi32' >/dev/null; then
19783 LIBS="$LIBS -lgdi32"
19789 # set full static linking if requested
19790 # Check whether --enable-fully-static was given.
19791 if test "${enable_fully_static+set}" = set; then :
19792 enableval=$enable_fully_static;
19795 if test x_$enable_fully_static = x_yes; then
19796 staticexe="-all-static"
19797 if test "$on_mingw" = yes; then
19798 # for static compile, include gdi32 and zlib here.
19799 if echo $LIBS | grep 'lgdi32' >/dev/null; then
19802 LIBS="$LIBS -lgdi32"
19808 # set lock checking if requested
19809 # Check whether --enable-lock_checks was given.
19810 if test "${enable_lock_checks+set}" = set; then :
19811 enableval=$enable_lock_checks;
19814 if test x_$enable_lock_checks = x_yes; then
19816 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
19818 CHECKLOCK_OBJ="checklocks.lo"
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
19824 $as_echo_n "checking for getaddrinfo... " >&6; }
19825 ac_cv_func_getaddrinfo=no
19826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19827 /* end confdefs.h. */
19833 char* getaddrinfo();
19834 char* (*f) () = getaddrinfo;
19844 if ac_fn_c_try_link "$LINENO"; then :
19845 ac_cv_func_getaddrinfo="yes"
19846 if test "$ac_cv_header_windows_h" = "yes"; then
19848 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19851 if echo $LIBS | grep 'lws2_32' >/dev/null; then
19854 LIBS="$LIBS -lws2_32"
19860 LIBS="$LIBS -lws2_32"
19861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862 /* end confdefs.h. */
19864 #ifdef HAVE_WS2TCPIP_H
19865 #include <ws2tcpip.h>
19872 (void)getaddrinfo(NULL, NULL, NULL, NULL);
19879 if ac_fn_c_try_link "$LINENO"; then :
19881 ac_cv_func_getaddrinfo="yes"
19883 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19889 ac_cv_func_getaddrinfo="no"
19893 rm -f core conftest.err conftest.$ac_objext \
19894 conftest$ac_exeext conftest.$ac_ext
19897 rm -f core conftest.err conftest.$ac_objext \
19898 conftest$ac_exeext conftest.$ac_ext
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
19901 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
19902 if test $ac_cv_func_getaddrinfo = yes; then
19904 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19908 if test "$USE_WINSOCK" = 1; then
19910 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
19912 for ac_header in iphlpapi.h
19914 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
19915 #include <windows.h>
19918 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
19919 cat >>confdefs.h <<_ACEOF
19920 #define HAVE_IPHLPAPI_H 1
19927 if test -n "$ac_tool_prefix"; then
19928 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19929 set dummy ${ac_tool_prefix}windres; ac_word=$2
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19931 $as_echo_n "checking for $ac_word... " >&6; }
19932 if ${ac_cv_prog_WINDRES+:} false; then :
19933 $as_echo_n "(cached) " >&6
19935 if test -n "$WINDRES"; then
19936 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19939 for as_dir in $PATH
19942 test -z "$as_dir" && as_dir=.
19943 for ac_exec_ext in '' $ac_executable_extensions; do
19944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19945 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19955 WINDRES=$ac_cv_prog_WINDRES
19956 if test -n "$WINDRES"; then
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19958 $as_echo "$WINDRES" >&6; }
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19961 $as_echo "no" >&6; }
19966 if test -z "$ac_cv_prog_WINDRES"; then
19967 ac_ct_WINDRES=$WINDRES
19968 # Extract the first word of "windres", so it can be a program name with args.
19969 set dummy windres; ac_word=$2
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19971 $as_echo_n "checking for $ac_word... " >&6; }
19972 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19973 $as_echo_n "(cached) " >&6
19975 if test -n "$ac_ct_WINDRES"; then
19976 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19979 for as_dir in $PATH
19982 test -z "$as_dir" && as_dir=.
19983 for ac_exec_ext in '' $ac_executable_extensions; do
19984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19985 ac_cv_prog_ac_ct_WINDRES="windres"
19986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19995 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19996 if test -n "$ac_ct_WINDRES"; then
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19998 $as_echo "$ac_ct_WINDRES" >&6; }
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20001 $as_echo "no" >&6; }
20004 if test "x$ac_ct_WINDRES" = x; then
20007 case $cross_compiling:$ac_tool_warned in
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20011 ac_tool_warned=yes ;;
20013 WINDRES=$ac_ct_WINDRES
20016 WINDRES="$ac_cv_prog_WINDRES"
20019 LIBS="$LIBS -liphlpapi -lcrypt32"
20020 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
20022 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
20024 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
20026 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
20028 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
20030 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
20032 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
20034 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
20037 if test $ac_cv_func_getaddrinfo = no; then
20038 case " $LIBOBJS " in
20039 *" fake-rfc2553.$ac_objext "* ) ;;
20040 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
20045 # check after getaddrinfo for its libraries
20047 # check ioctlsocket
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
20049 $as_echo_n "checking for ioctlsocket... " >&6; }
20050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20051 /* end confdefs.h. */
20053 #ifdef HAVE_WINSOCK2_H
20054 #include <winsock2.h>
20061 (void)ioctlsocket(0, 0, NULL);
20067 if ac_fn_c_try_link "$LINENO"; then :
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20070 $as_echo "yes" >&6; }
20072 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20077 $as_echo "no" >&6; }
20079 rm -f core conftest.err conftest.$ac_objext \
20080 conftest$ac_exeext conftest.$ac_ext
20083 # see if daemon(3) exists, and if it is deprecated.
20084 for ac_func in daemon
20086 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
20087 if test "x$ac_cv_func_daemon" = xyes; then :
20088 cat >>confdefs.h <<_ACEOF
20089 #define HAVE_DAEMON 1
20095 if test $ac_cv_func_daemon = yes; then
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
20099 $as_echo_n "checking if daemon is deprecated... " >&6; }
20100 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
20101 if eval \${cv_cc_deprecated_$cache+:} false; then :
20102 $as_echo_n "(cached) " >&6
20106 #include <stdlib.h>
20108 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
20109 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
20110 eval "cv_cc_deprecated_$cache=no"
20112 eval "cv_cc_deprecated_$cache=yes"
20114 rm -f conftest conftest.o conftest.c
20118 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20120 $as_echo "yes" >&6; }
20122 cat >>confdefs.h <<_ACEOF
20123 #define DEPRECATED_DAEMON 1
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20130 $as_echo "no" >&6; }
20137 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
20138 $ac_includes_default
20139 #ifdef HAVE_SYS_UN_H
20140 #include <sys/un.h>
20144 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
20146 cat >>confdefs.h <<_ACEOF
20147 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
20153 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
20154 $ac_includes_default
20155 #if HAVE_SYS_PARAM_H
20156 #include <sys/param.h>
20159 #ifdef HAVE_SYS_SOCKET_H
20160 #include <sys/socket.h>
20163 #ifdef HAVE_SYS_UIO_H
20164 #include <sys/uio.h>
20167 #ifdef HAVE_NETINET_IN_H
20168 #include <netinet/in.h>
20171 #ifdef HAVE_NETINET_TCP_H
20172 #include <netinet/tcp.h>
20175 #ifdef HAVE_ARPA_INET_H
20176 #include <arpa/inet.h>
20179 #ifdef HAVE_WINSOCK2_H
20180 #include <winsock2.h>
20183 #ifdef HAVE_WS2TCPIP_H
20184 #include <ws2tcpip.h>
20188 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
20190 cat >>confdefs.h <<_ACEOF
20191 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
20199 $as_echo_n "checking for htobe64... " >&6; }
20200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20201 /* end confdefs.h. */
20204 #ifdef HAVE_ENDIAN_H
20205 # include <endian.h>
20207 #ifdef HAVE_SYS_ENDIAN_H
20208 # include <sys/endian.h>
20214 unsigned long long x = htobe64(0); printf("%u", (unsigned)x);
20219 if ac_fn_c_try_link "$LINENO"; then :
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20221 $as_echo "yes" >&6; }
20223 $as_echo "#define HAVE_HTOBE64 1" >>confdefs.h
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20227 $as_echo "no" >&6; }
20229 rm -f core conftest.err conftest.$ac_objext \
20230 conftest$ac_exeext conftest.$ac_ext
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
20233 $as_echo_n "checking for be64toh... " >&6; }
20234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20235 /* end confdefs.h. */
20238 #ifdef HAVE_ENDIAN_H
20239 # include <endian.h>
20241 #ifdef HAVE_SYS_ENDIAN_H
20242 # include <sys/endian.h>
20248 unsigned long long x = be64toh(0); printf("%u", (unsigned)x);
20253 if ac_fn_c_try_link "$LINENO"; then :
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20255 $as_echo "yes" >&6; }
20257 $as_echo "#define HAVE_BE64TOH 1" >>confdefs.h
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20261 $as_echo "no" >&6; }
20263 rm -f core conftest.err conftest.$ac_objext \
20264 conftest$ac_exeext conftest.$ac_ext
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
20267 $as_echo_n "checking for library containing setusercontext... " >&6; }
20268 if ${ac_cv_search_setusercontext+:} false; then :
20269 $as_echo_n "(cached) " >&6
20271 ac_func_search_save_LIBS=$LIBS
20272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20273 /* end confdefs.h. */
20275 /* Override any GCC internal prototype to avoid an error.
20276 Use char because int might match the return type of a GCC
20277 builtin and then its argument prototype would still apply. */
20281 char setusercontext ();
20285 return setusercontext ();
20290 for ac_lib in '' util; do
20291 if test -z "$ac_lib"; then
20292 ac_res="none required"
20295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20297 if ac_fn_c_try_link "$LINENO"; then :
20298 ac_cv_search_setusercontext=$ac_res
20300 rm -f core conftest.err conftest.$ac_objext \
20302 if ${ac_cv_search_setusercontext+:} false; then :
20306 if ${ac_cv_search_setusercontext+:} false; then :
20309 ac_cv_search_setusercontext=no
20311 rm conftest.$ac_ext
20312 LIBS=$ac_func_search_save_LIBS
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20315 $as_echo "$ac_cv_search_setusercontext" >&6; }
20316 ac_res=$ac_cv_search_setusercontext
20317 if test "$ac_res" != no; then :
20318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20322 for ac_func in tzset sigprocmask fcntl getpwnam endpwent getrlimit setrlimit setsid chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent fsync shmget accept4 getifaddrs
20324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20325 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20326 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20327 cat >>confdefs.h <<_ACEOF
20328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20334 for ac_func in setresuid
20336 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
20337 if test "x$ac_cv_func_setresuid" = xyes; then :
20338 cat >>confdefs.h <<_ACEOF
20339 #define HAVE_SETRESUID 1
20343 for ac_func in setreuid
20345 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
20346 if test "x$ac_cv_func_setreuid" = xyes; then :
20347 cat >>confdefs.h <<_ACEOF
20348 #define HAVE_SETREUID 1
20357 for ac_func in setresgid
20359 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
20360 if test "x$ac_cv_func_setresgid" = xyes; then :
20361 cat >>confdefs.h <<_ACEOF
20362 #define HAVE_SETRESGID 1
20366 for ac_func in setregid
20368 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
20369 if test "x$ac_cv_func_setregid" = xyes; then :
20370 cat >>confdefs.h <<_ACEOF
20371 #define HAVE_SETREGID 1
20381 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
20382 if echo $target_os | grep darwin8 > /dev/null; then
20384 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
20387 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
20388 $ac_includes_default
20389 #ifdef HAVE_NETINET_IN_H
20390 #include <netinet/in.h>
20393 #ifdef HAVE_NETINET_TCP_H
20394 #include <netinet/tcp.h>
20397 #ifdef HAVE_ARPA_INET_H
20398 #include <arpa/inet.h>
20401 #ifdef HAVE_WINSOCK2_H
20402 #include <winsock2.h>
20405 #ifdef HAVE_WS2TCPIP_H
20406 #include <ws2tcpip.h>
20410 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
20416 cat >>confdefs.h <<_ACEOF
20417 #define HAVE_DECL_INET_PTON $ac_have_decl
20419 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
20420 $ac_includes_default
20421 #ifdef HAVE_NETINET_IN_H
20422 #include <netinet/in.h>
20425 #ifdef HAVE_NETINET_TCP_H
20426 #include <netinet/tcp.h>
20429 #ifdef HAVE_ARPA_INET_H
20430 #include <arpa/inet.h>
20433 #ifdef HAVE_WINSOCK2_H
20434 #include <winsock2.h>
20437 #ifdef HAVE_WS2TCPIP_H
20438 #include <ws2tcpip.h>
20442 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
20448 cat >>confdefs.h <<_ACEOF
20449 #define HAVE_DECL_INET_NTOP $ac_have_decl
20452 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
20453 if test "x$ac_cv_func_inet_aton" = xyes; then :
20454 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
20457 case " $LIBOBJS " in
20458 *" inet_aton.$ac_objext "* ) ;;
20459 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20466 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
20467 if test "x$ac_cv_func_inet_pton" = xyes; then :
20468 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
20471 case " $LIBOBJS " in
20472 *" inet_pton.$ac_objext "* ) ;;
20473 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
20480 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20481 if test "x$ac_cv_func_inet_ntop" = xyes; then :
20482 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
20485 case " $LIBOBJS " in
20486 *" inet_ntop.$ac_objext "* ) ;;
20487 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20494 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20495 if test "x$ac_cv_func_snprintf" = xyes; then :
20496 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20499 case " $LIBOBJS " in
20500 *" snprintf.$ac_objext "* ) ;;
20501 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20508 # test if snprintf return the proper length
20509 if test "x$ac_cv_func_snprintf" = xyes; then
20510 if test c${cross_compiling} = cno; then
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
20512 $as_echo_n "checking for correct snprintf return value... " >&6; }
20513 if test "$cross_compiling" = yes; then :
20514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20516 as_fn_error $? "cannot run test program while cross compiling
20517 See \`config.log' for more details" "$LINENO" 5; }
20519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20520 /* end confdefs.h. */
20521 $ac_includes_default
20523 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
20526 if ac_fn_c_try_run "$LINENO"; then :
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20528 $as_echo "yes" >&6; }
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20532 $as_echo "no" >&6; }
20534 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
20536 case " $LIBOBJS " in
20537 *" snprintf.$ac_objext "* ) ;;
20538 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20545 conftest.$ac_objext conftest.beam conftest.$ac_ext
20550 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20551 if test "x$ac_cv_func_strlcat" = xyes; then :
20552 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
20555 case " $LIBOBJS " in
20556 *" strlcat.$ac_objext "* ) ;;
20557 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20564 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20565 if test "x$ac_cv_func_strlcpy" = xyes; then :
20566 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
20569 case " $LIBOBJS " in
20570 *" strlcpy.$ac_objext "* ) ;;
20571 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20578 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20579 if test "x$ac_cv_func_memmove" = xyes; then :
20580 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20583 case " $LIBOBJS " in
20584 *" memmove.$ac_objext "* ) ;;
20585 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
20592 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
20593 if test "x$ac_cv_func_gmtime_r" = xyes; then :
20594 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20597 case " $LIBOBJS " in
20598 *" gmtime_r.$ac_objext "* ) ;;
20599 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
20606 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
20607 if test "x$ac_cv_func_isblank" = xyes; then :
20608 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
20611 case " $LIBOBJS " in
20612 *" isblank.$ac_objext "* ) ;;
20613 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
20620 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20621 if test "x$ac_cv_func_explicit_bzero" = xyes; then :
20622 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20625 case " $LIBOBJS " in
20626 *" explicit_bzero.$ac_objext "* ) ;;
20627 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
20634 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
20637 $as_echo_n "checking for reallocarray... " >&6; }
20638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639 /* end confdefs.h. */
20640 $ac_includes_default
20642 #ifndef _OPENBSD_SOURCE
20643 #define _OPENBSD_SOURCE 1
20645 #include <stdlib.h>
20647 void* p = reallocarray(NULL, 10, 100);
20653 if ac_fn_c_try_link "$LINENO"; then :
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20655 $as_echo "yes" >&6; }
20657 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20663 $as_echo "no" >&6; }
20664 case " $LIBOBJS " in
20665 *" reallocarray.$ac_objext "* ) ;;
20666 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20672 rm -f core conftest.err conftest.$ac_objext \
20673 conftest$ac_exeext conftest.$ac_ext
20674 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
20675 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
20681 cat >>confdefs.h <<_ACEOF
20682 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
20685 if test "$USE_NSS" = "no"; then
20686 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
20687 if test "x$ac_cv_func_arc4random" = xyes; then :
20688 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
20691 case " $LIBOBJS " in
20692 *" arc4random.$ac_objext "* ) ;;
20693 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
20700 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
20701 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
20702 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
20705 case " $LIBOBJS " in
20706 *" arc4random_uniform.$ac_objext "* ) ;;
20707 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
20714 if test "$ac_cv_func_arc4random" = "no"; then
20715 case " $LIBOBJS " in
20716 *" arc4_lock.$ac_objext "* ) ;;
20717 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
20721 for ac_func in getentropy
20723 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
20724 if test "x$ac_cv_func_getentropy" = xyes; then :
20725 cat >>confdefs.h <<_ACEOF
20726 #define HAVE_GETENTROPY 1
20731 if test "$USE_WINSOCK" = 1; then
20732 case " $LIBOBJS " in
20733 *" getentropy_win.$ac_objext "* ) ;;
20734 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
20741 case " $LIBOBJS " in
20742 *" getentropy_osx.$ac_objext "* ) ;;
20743 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
20748 *solaris*|*sunos*|SunOS)
20749 case " $LIBOBJS " in
20750 *" getentropy_solaris.$ac_objext "* ) ;;
20751 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
20755 for ac_header in sys/sha2.h
20757 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
20759 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
20760 cat >>confdefs.h <<_ACEOF
20761 #define HAVE_SYS_SHA2_H 1
20766 for ac_func in SHA512_Update
20768 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20769 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20770 cat >>confdefs.h <<_ACEOF
20771 #define HAVE_SHA512_UPDATE 1
20776 case " $LIBOBJS " in
20777 *" sha512.$ac_objext "* ) ;;
20778 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20791 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
20792 # this lib needed for sha2 on solaris
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20796 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20797 if ${ac_cv_search_clock_gettime+:} false; then :
20798 $as_echo_n "(cached) " >&6
20800 ac_func_search_save_LIBS=$LIBS
20801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20802 /* end confdefs.h. */
20804 /* Override any GCC internal prototype to avoid an error.
20805 Use char because int might match the return type of a GCC
20806 builtin and then its argument prototype would still apply. */
20810 char clock_gettime ();
20814 return clock_gettime ();
20819 for ac_lib in '' rt; do
20820 if test -z "$ac_lib"; then
20821 ac_res="none required"
20824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20826 if ac_fn_c_try_link "$LINENO"; then :
20827 ac_cv_search_clock_gettime=$ac_res
20829 rm -f core conftest.err conftest.$ac_objext \
20831 if ${ac_cv_search_clock_gettime+:} false; then :
20835 if ${ac_cv_search_clock_gettime+:} false; then :
20838 ac_cv_search_clock_gettime=no
20840 rm conftest.$ac_ext
20841 LIBS=$ac_func_search_save_LIBS
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20844 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20845 ac_res=$ac_cv_search_clock_gettime
20846 if test "$ac_res" != no; then :
20847 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20852 *freebsd*|*FreeBSD)
20853 case " $LIBOBJS " in
20854 *" getentropy_freebsd.$ac_objext "* ) ;;
20855 *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
20861 case " $LIBOBJS " in
20862 *" getentropy_linux.$ac_objext "* ) ;;
20863 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
20867 for ac_func in SHA512_Update
20869 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20870 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20871 cat >>confdefs.h <<_ACEOF
20872 #define HAVE_SHA512_UPDATE 1
20878 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
20880 case " $LIBOBJS " in
20881 *" sha512.$ac_objext "* ) ;;
20882 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20890 for ac_header in sys/sysctl.h
20892 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
20894 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
20895 cat >>confdefs.h <<_ACEOF
20896 #define HAVE_SYS_SYSCTL_H 1
20903 for ac_func in getauxval
20905 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
20906 if test "x$ac_cv_func_getauxval" = xyes; then :
20907 cat >>confdefs.h <<_ACEOF
20908 #define HAVE_GETAUXVAL 1
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20915 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20916 if ${ac_cv_search_clock_gettime+:} false; then :
20917 $as_echo_n "(cached) " >&6
20919 ac_func_search_save_LIBS=$LIBS
20920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20921 /* end confdefs.h. */
20923 /* Override any GCC internal prototype to avoid an error.
20924 Use char because int might match the return type of a GCC
20925 builtin and then its argument prototype would still apply. */
20929 char clock_gettime ();
20933 return clock_gettime ();
20938 for ac_lib in '' rt; do
20939 if test -z "$ac_lib"; then
20940 ac_res="none required"
20943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20945 if ac_fn_c_try_link "$LINENO"; then :
20946 ac_cv_search_clock_gettime=$ac_res
20948 rm -f core conftest.err conftest.$ac_objext \
20950 if ${ac_cv_search_clock_gettime+:} false; then :
20954 if ${ac_cv_search_clock_gettime+:} false; then :
20957 ac_cv_search_clock_gettime=no
20959 rm conftest.$ac_ext
20960 LIBS=$ac_func_search_save_LIBS
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20963 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20964 ac_res=$ac_cv_search_clock_gettime
20965 if test "$ac_res" != no; then :
20966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20979 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
20981 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
20982 if test "x$ac_cv_func_ctime_r" = xyes; then :
20983 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
20986 case " $LIBOBJS " in
20987 *" ctime_r.$ac_objext "* ) ;;
20988 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
20995 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
20996 if test "x$ac_cv_func_strsep" = xyes; then :
20997 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
21000 case " $LIBOBJS " in
21001 *" strsep.$ac_objext "* ) ;;
21002 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
21010 # Check whether --enable-allsymbols was given.
21011 if test "${enable_allsymbols+set}" = set; then :
21012 enableval=$enable_allsymbols;
21015 case "$enable_allsymbols" in
21017 COMMON_OBJ_ALL_SYMBOLS=""
21019 EXTRALINK="-L. -L.libs -lunbound"
21021 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
21025 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
21026 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
21033 if test x_$enable_lock_checks = x_yes; then
21034 UBSYMS="-export-symbols clubsyms.def"
21035 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
21036 echo lock_protect >> clubsyms.def
21037 echo lock_unprotect >> clubsyms.def
21038 echo lock_get_mem >> clubsyms.def
21039 echo checklock_start >> clubsyms.def
21040 echo checklock_stop >> clubsyms.def
21041 echo checklock_lock >> clubsyms.def
21042 echo checklock_unlock >> clubsyms.def
21043 echo checklock_init >> clubsyms.def
21044 echo checklock_thrcreate >> clubsyms.def
21045 echo checklock_thrjoin >> clubsyms.def
21048 # check for dnstap if requested
21050 # Check whether --enable-dnstap was given.
21051 if test "${enable_dnstap+set}" = set; then :
21052 enableval=$enable_dnstap; opt_dnstap=$enableval
21059 # Check whether --with-dnstap-socket-path was given.
21060 if test "${with_dnstap_socket_path+set}" = set; then :
21061 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
21063 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
21067 if test "x$opt_dnstap" != "xno"; then
21068 # Extract the first word of "protoc-c", so it can be a program name with args.
21069 set dummy protoc-c; ac_word=$2
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21071 $as_echo_n "checking for $ac_word... " >&6; }
21072 if ${ac_cv_path_PROTOC_C+:} false; then :
21073 $as_echo_n "(cached) " >&6
21077 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
21080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21081 for as_dir in $PATH
21084 test -z "$as_dir" && as_dir=.
21085 for ac_exec_ext in '' $ac_executable_extensions; do
21086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21087 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
21088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21098 PROTOC_C=$ac_cv_path_PROTOC_C
21099 if test -n "$PROTOC_C"; then
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
21101 $as_echo "$PROTOC_C" >&6; }
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21104 $as_echo "no" >&6; }
21108 if test -z "$PROTOC_C"; then
21109 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
21112 # Check whether --with-protobuf-c was given.
21113 if test "${with_protobuf_c+set}" = set; then :
21114 withval=$with_protobuf_c;
21115 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21116 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
21117 CFLAGS="$CFLAGS -I$withval/include/google"
21119 CFLAGS="$CFLAGS -I$withval/include"
21121 LDFLAGS="$LDFLAGS -L$withval/lib"
21125 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21126 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
21127 CFLAGS="$CFLAGS -I/usr/include/google"
21129 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
21130 CFLAGS="$CFLAGS -I/usr/local/include/google"
21131 LDFLAGS="$LDFLAGS -L/usr/local/lib"
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
21138 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
21139 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21140 $as_echo_n "(cached) " >&6
21142 ac_func_search_save_LIBS=$LIBS
21143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21144 /* end confdefs.h. */
21146 /* Override any GCC internal prototype to avoid an error.
21147 Use char because int might match the return type of a GCC
21148 builtin and then its argument prototype would still apply. */
21152 char protobuf_c_message_pack ();
21156 return protobuf_c_message_pack ();
21161 for ac_lib in '' protobuf-c; do
21162 if test -z "$ac_lib"; then
21163 ac_res="none required"
21166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21168 if ac_fn_c_try_link "$LINENO"; then :
21169 ac_cv_search_protobuf_c_message_pack=$ac_res
21171 rm -f core conftest.err conftest.$ac_objext \
21173 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21177 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21180 ac_cv_search_protobuf_c_message_pack=no
21182 rm conftest.$ac_ext
21183 LIBS=$ac_func_search_save_LIBS
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
21186 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
21187 ac_res=$ac_cv_search_protobuf_c_message_pack
21188 if test "$ac_res" != no; then :
21189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21192 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
21197 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
21203 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
21206 cat >>confdefs.h <<_ACEOF
21207 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
21210 DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path"
21213 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c"
21215 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo"
21227 # check for dnscrypt if requested
21229 # Check whether --enable-dnscrypt was given.
21230 if test "${enable_dnscrypt+set}" = set; then :
21231 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
21237 if test "x$opt_dnscrypt" != "xno"; then
21239 # Check whether --with-libsodium was given.
21240 if test "${with_libsodium+set}" = set; then :
21241 withval=$with_libsodium;
21242 CFLAGS="$CFLAGS -I$withval/include"
21243 LDFLAGS="$LDFLAGS -L$withval/lib"
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
21248 $as_echo_n "checking for library containing sodium_init... " >&6; }
21249 if ${ac_cv_search_sodium_init+:} false; then :
21250 $as_echo_n "(cached) " >&6
21252 ac_func_search_save_LIBS=$LIBS
21253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21254 /* end confdefs.h. */
21256 /* Override any GCC internal prototype to avoid an error.
21257 Use char because int might match the return type of a GCC
21258 builtin and then its argument prototype would still apply. */
21262 char sodium_init ();
21266 return sodium_init ();
21271 for ac_lib in '' sodium; do
21272 if test -z "$ac_lib"; then
21273 ac_res="none required"
21276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21278 if ac_fn_c_try_link "$LINENO"; then :
21279 ac_cv_search_sodium_init=$ac_res
21281 rm -f core conftest.err conftest.$ac_objext \
21283 if ${ac_cv_search_sodium_init+:} false; then :
21287 if ${ac_cv_search_sodium_init+:} false; then :
21290 ac_cv_search_sodium_init=no
21292 rm conftest.$ac_ext
21293 LIBS=$ac_func_search_save_LIBS
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
21296 $as_echo "$ac_cv_search_sodium_init" >&6; }
21297 ac_res=$ac_cv_search_sodium_init
21298 if test "$ac_res" != no; then :
21299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21302 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21306 $as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
21307 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21308 $as_echo_n "(cached) " >&6
21310 ac_func_search_save_LIBS=$LIBS
21311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21312 /* end confdefs.h. */
21314 /* Override any GCC internal prototype to avoid an error.
21315 Use char because int might match the return type of a GCC
21316 builtin and then its argument prototype would still apply. */
21320 char crypto_box_curve25519xchacha20poly1305_beforenm ();
21324 return crypto_box_curve25519xchacha20poly1305_beforenm ();
21329 for ac_lib in '' sodium; do
21330 if test -z "$ac_lib"; then
21331 ac_res="none required"
21334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21336 if ac_fn_c_try_link "$LINENO"; then :
21337 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
21339 rm -f core conftest.err conftest.$ac_objext \
21341 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21345 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21348 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
21350 rm conftest.$ac_ext
21351 LIBS=$ac_func_search_save_LIBS
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21354 $as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
21355 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
21356 if test "$ac_res" != no; then :
21357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21359 ENABLE_DNSCRYPT_XCHACHA20=1
21362 $as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
21367 ENABLE_DNSCRYPT_XCHACHA20=0
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
21373 $as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
21374 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21375 $as_echo_n "(cached) " >&6
21377 ac_func_search_save_LIBS=$LIBS
21378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21379 /* end confdefs.h. */
21381 /* Override any GCC internal prototype to avoid an error.
21382 Use char because int might match the return type of a GCC
21383 builtin and then its argument prototype would still apply. */
21387 char sodium_set_misuse_handler ();
21391 return sodium_set_misuse_handler ();
21396 for ac_lib in '' sodium; do
21397 if test -z "$ac_lib"; then
21398 ac_res="none required"
21401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21403 if ac_fn_c_try_link "$LINENO"; then :
21404 ac_cv_search_sodium_set_misuse_handler=$ac_res
21406 rm -f core conftest.err conftest.$ac_objext \
21408 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21412 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21415 ac_cv_search_sodium_set_misuse_handler=no
21417 rm conftest.$ac_ext
21418 LIBS=$ac_func_search_save_LIBS
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
21421 $as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
21422 ac_res=$ac_cv_search_sodium_set_misuse_handler
21423 if test "$ac_res" != no; then :
21424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21427 $as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
21434 $as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
21439 DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
21441 DNSCRYPT_OBJ="dnscrypt.lo"
21445 ENABLE_DNSCRYPT_XCHACHA20=0
21455 # check for cachedb if requested
21456 # Check whether --enable-cachedb was given.
21457 if test "${enable_cachedb+set}" = set; then :
21458 enableval=$enable_cachedb;
21461 # turn on cachedb when hiredis support is enabled.
21462 if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
21463 case "$enable_cachedb" in
21466 $as_echo "#define USE_CACHEDB 1" >>confdefs.h
21474 # check for ipsecmod if requested
21475 # Check whether --enable-ipsecmod was given.
21476 if test "${enable_ipsecmod+set}" = set; then :
21477 enableval=$enable_ipsecmod;
21480 case "$enable_ipsecmod" in
21483 $as_echo "#define USE_IPSECMOD 1" >>confdefs.h
21485 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
21487 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
21495 # check for ipset if requested
21496 # Check whether --enable-ipset was given.
21497 if test "${enable_ipset+set}" = set; then :
21498 enableval=$enable_ipset;
21501 case "$enable_ipset" in
21504 $as_echo "#define USE_IPSET 1" >>confdefs.h
21506 IPSET_SRC="ipset/ipset.c"
21508 IPSET_OBJ="ipset.lo"
21513 # Check whether --with-libmnl was given.
21514 if test "${with_libmnl+set}" = set; then :
21515 withval=$with_libmnl;
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
21522 $as_echo_n "checking for libmnl... " >&6; }
21523 if test x_$withval = x_ -o x_$withval = x_yes; then
21524 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21526 for dir in $withval ; do
21527 if test -f "$dir/include/libmnl/libmnl.h"; then
21529 if test "$dir" != "/usr"; then
21530 CPPFLAGS="$CPPFLAGS -I$dir/include"
21531 LDFLAGS="$LDFLAGS -L$dir/lib"
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21534 $as_echo "found in $dir" >&6; }
21539 if test x_$found_libmnl != x_yes; then
21540 as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
21547 # Check whether --enable-explicit-port-randomisation was given.
21548 if test "${enable_explicit_port_randomisation+set}" = set; then :
21549 enableval=$enable_explicit_port_randomisation;
21552 case "$enable_explicit_port_randomisation" in
21555 $as_echo "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
21564 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
21565 # on openBSD, the implicit rule make $< work.
21566 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
21568 cat >conftest.make <<EOF
21571 conftest.lo foo.lo bla.lo:
21572 if test -f "\$<"; then touch \$@; fi
21576 if test -f "\$<"; then touch \$@; fi
21578 conftest.lo: conftest.dir/conftest.c
21581 touch conftest.dir/conftest.c
21582 rm -f conftest.lo conftest.c
21583 ${MAKE:-make} -f conftest.make >/dev/null
21584 rm -f conftest.make conftest.c conftest.dir/conftest.c
21585 rm -rf conftest.dir
21586 if test ! -f conftest.lo; then
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21588 $as_echo "no" >&6; }
21589 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
21590 SOURCEFILE='`cat .source`'
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21593 $as_echo "yes" >&6; }
21594 SOURCEDETERMINE=':'
21601 # see if we want to build the library or everything
21602 ALLTARGET="alltargets"
21603 INSTALLTARGET="install-all"
21605 # Check whether --with-libunbound-only was given.
21606 if test "${with_libunbound_only+set}" = set; then :
21607 withval=$with_libunbound_only;
21608 if test "$withval" = "yes"; then
21610 INSTALLTARGET="install-lib"
21615 if test $ALLTARGET = "alltargets"; then
21616 if test $USE_NSS = "yes"; then
21617 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
21619 if test $USE_NETTLE = "yes"; then
21620 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
21629 $as_echo "$as_me: Stripping extension flags..." >&6;}
21631 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
21632 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
21634 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
21639 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
21640 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
21642 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
21647 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
21648 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
21650 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
21655 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
21656 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
21658 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
21663 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
21664 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
21666 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
21671 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
21672 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
21674 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
21679 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
21680 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
21682 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
21687 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
21688 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
21690 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
21695 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
21696 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
21698 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
21703 if test -n "$LATE_LDFLAGS"; then
21704 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
21706 # remove start spaces
21707 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
21708 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
21711 cat >>confdefs.h <<_ACEOF
21712 #define MAXSYSLOGMSGLEN 10240
21720 date=`date +'%b %e, %Y'`
21723 ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service contrib/unbound_portable.service"
21725 ac_config_headers="$ac_config_headers config.h"
21727 cat >confcache <<\_ACEOF
21728 # This file is a shell script that caches the results of configure
21729 # tests run on this system so they can be shared between configure
21730 # scripts and configure runs, see configure's option --config-cache.
21731 # It is not useful on other systems. If it contains results you don't
21732 # want to keep, you may remove or edit it.
21734 # config.status only pays attention to the cache file if you give it
21735 # the --recheck option to rerun configure.
21737 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21739 # following values.
21743 # The following way of writing the cache mishandles newlines in values,
21744 # but we know of no workaround that is simple, portable, and efficient.
21745 # So, we kill variables containing newlines.
21746 # Ultrix sh set writes to stderr and can't be redirected directly,
21747 # and sets the high bit in the cache file unless we assign to the vars.
21749 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21750 eval ac_val=\$$ac_var
21754 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21755 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21758 _ | IFS | as_nl) ;; #(
21759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21760 *) { eval $ac_var=; unset $ac_var;} ;;
21766 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21767 *${as_nl}ac_space=\ *)
21768 # `set' does not quote correctly, so add quotes: double-quote
21769 # substitution turns \\\\ into \\, and sed turns \\ into \.
21772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21775 # `set' quotes correctly as required by POSIX, so do not add quotes.
21776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21789 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21790 if test -w "$cache_file"; then
21791 if test "x$cache_file" != "x/dev/null"; then
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21793 $as_echo "$as_me: updating cache $cache_file" >&6;}
21794 if test ! -f "$cache_file" || test -h "$cache_file"; then
21795 cat confcache >"$cache_file"
21797 case $cache_file in #(
21799 mv -f confcache "$cache_file"$$ &&
21800 mv -f "$cache_file"$$ "$cache_file" ;; #(
21802 mv -f confcache "$cache_file" ;;
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21808 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21813 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21814 # Let make expand exec_prefix.
21815 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21817 DEFS=-DHAVE_CONFIG_H
21822 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21823 # 1. Remove the extension, and $U if already installed.
21824 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21825 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21826 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21827 # will be set to the directory where LIBOBJS objects are built.
21828 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21829 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21831 LIBOBJS=$ac_libobjs
21833 LTLIBOBJS=$ac_ltlibobjs
21836 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
21837 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
21838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21841 : "${CONFIG_STATUS=./config.status}"
21843 ac_clean_files_save=$ac_clean_files
21844 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21846 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21848 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21850 # Generated by $as_me.
21851 # Run this file to recreate the current configuration.
21852 # Compiler output produced by configure, useful for debugging
21853 # configure, is in config.log if it exists.
21856 ac_cs_recheck=false
21859 SHELL=\${CONFIG_SHELL-$SHELL}
21862 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21863 ## -------------------- ##
21864 ## M4sh Initialization. ##
21865 ## -------------------- ##
21867 # Be more Bourne compatible
21868 DUALCASE=1; export DUALCASE # for MKS sh
21869 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21872 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21873 # is contrary to our usage. Disable this feature.
21874 alias -g '${1+"$@"}'='"$@"'
21875 setopt NO_GLOB_SUBST
21877 case `(set -o) 2>/dev/null` in #(
21889 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21890 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21891 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21892 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21893 # Prefer a ksh shell builtin over an external printf program on Solaris,
21894 # but without wasting forks for bash or zsh.
21895 if test -z "$BASH_VERSION$ZSH_VERSION" \
21896 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21897 as_echo='print -r --'
21898 as_echo_n='print -rn --'
21899 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21900 as_echo='printf %s\n'
21901 as_echo_n='printf %s'
21903 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21904 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21905 as_echo_n='/usr/ucb/echo -n'
21907 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21908 as_echo_n_body='eval
21912 expr "X$arg" : "X\\(.*\\)$as_nl";
21913 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21915 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21917 export as_echo_n_body
21918 as_echo_n='sh -c $as_echo_n_body as_echo'
21920 export as_echo_body
21921 as_echo='sh -c $as_echo_body as_echo'
21924 # The user is always right.
21925 if test "${PATH_SEPARATOR+set}" != set; then
21927 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21928 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21935 # We need space, tab and new line, in precisely that order. Quoting is
21936 # there to prevent editors from complaining about space-tab.
21937 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21938 # splitting by setting IFS to empty value.)
21941 # Find who we are. Look in the path if we contain no directory separator.
21944 *[\\/]* ) as_myself=$0 ;;
21945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21946 for as_dir in $PATH
21949 test -z "$as_dir" && as_dir=.
21950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21956 # We did not find ourselves, most probably we were run as `sh COMMAND'
21957 # in which case we are not to be found in the path.
21958 if test "x$as_myself" = x; then
21961 if test ! -f "$as_myself"; then
21962 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21966 # Unset variables that we do not need and which cause bugs (e.g. in
21967 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21968 # suppresses any "Segmentation fault" message there. '((' could
21969 # trigger a bug in pdksh 5.2.14.
21970 for as_var in BASH_ENV ENV MAIL MAILPATH
21971 do eval test x\${$as_var+set} = xset \
21972 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21985 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21988 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21989 # ----------------------------------------
21990 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21991 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21992 # script with STATUS, using 1 if that was 0.
21995 as_status=$1; test $as_status -eq 0 && as_status=1
21997 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21998 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22000 $as_echo "$as_me: error: $2" >&2
22001 as_fn_exit $as_status
22005 # as_fn_set_status STATUS
22006 # -----------------------
22007 # Set $? to STATUS, without forking.
22008 as_fn_set_status ()
22011 } # as_fn_set_status
22013 # as_fn_exit STATUS
22014 # -----------------
22015 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22019 as_fn_set_status $1
22025 # Portably unset VAR.
22028 { eval $1=; unset $1;}
22030 as_unset=as_fn_unset
22031 # as_fn_append VAR VALUE
22032 # ----------------------
22033 # Append the text in VALUE to the end of the definition contained in VAR. Take
22034 # advantage of any shell optimizations that allow amortized linear growth over
22035 # repeated appends, instead of the typical quadratic growth present in naive
22037 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22038 eval 'as_fn_append ()
22049 # as_fn_arith ARG...
22050 # ------------------
22051 # Perform arithmetic evaluation on the ARGs, and store the result in the
22052 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22053 # must be portable across $(()) and expr.
22054 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22055 eval 'as_fn_arith ()
22062 as_val=`expr "$@" || test $? -eq 1`
22067 if expr a : '\(a\)' >/dev/null 2>&1 &&
22068 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22074 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22075 as_basename=basename
22080 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22086 as_me=`$as_basename -- "$0" ||
22087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22088 X"$0" : 'X\(//\)$' \| \
22089 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22091 sed '/^.*\/\([^/][^/]*\)\/*$/{
22105 # Avoid depending upon Character Ranges.
22106 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22107 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22108 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22109 as_cr_digits='0123456789'
22110 as_cr_alnum=$as_cr_Letters$as_cr_digits
22112 ECHO_C= ECHO_N= ECHO_T=
22113 case `echo -n x` in #(((((
22115 case `echo 'xy\c'` in
22116 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22118 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22125 rm -f conf$$ conf$$.exe conf$$.file
22126 if test -d conf$$.dir; then
22127 rm -f conf$$.dir/conf$$.file
22130 mkdir conf$$.dir 2>/dev/null
22132 if (echo >conf$$.file) 2>/dev/null; then
22133 if ln -s conf$$.file conf$$ 2>/dev/null; then
22135 # ... but there are two gotchas:
22136 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22137 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22138 # In both cases, we have to default to `cp -pR'.
22139 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22141 elif ln conf$$.file conf$$ 2>/dev/null; then
22149 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22150 rmdir conf$$.dir 2>/dev/null
22155 # Create "$as_dir" as a directory, including parents if necessary.
22160 -*) as_dir=./$as_dir;;
22162 test -d "$as_dir" || eval $as_mkdir_p || {
22166 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22167 *) as_qdir=$as_dir;;
22169 as_dirs="'$as_qdir' $as_dirs"
22170 as_dir=`$as_dirname -- "$as_dir" ||
22171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22172 X"$as_dir" : 'X\(//\)[^/]' \| \
22173 X"$as_dir" : 'X\(//\)$' \| \
22174 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22175 $as_echo X"$as_dir" |
22176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22180 /^X\(\/\/\)[^/].*/{
22193 test -d "$as_dir" && break
22195 test -z "$as_dirs" || eval "mkdir $as_dirs"
22196 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22200 if mkdir -p . 2>/dev/null; then
22201 as_mkdir_p='mkdir -p "$as_dir"'
22203 test -d ./-p && rmdir ./-p
22208 # as_fn_executable_p FILE
22209 # -----------------------
22210 # Test if FILE is an executable regular file.
22211 as_fn_executable_p ()
22213 test -f "$1" && test -x "$1"
22214 } # as_fn_executable_p
22215 as_test_x='test -x'
22216 as_executable_p=as_fn_executable_p
22218 # Sed expression to map a string onto a valid CPP name.
22219 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22221 # Sed expression to map a string onto a valid variable name.
22222 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22226 ## ----------------------------------- ##
22227 ## Main body of $CONFIG_STATUS script. ##
22228 ## ----------------------------------- ##
22230 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22233 # Save the log message, to keep $0 and so on meaningful, and to
22234 # report actual input values of CONFIG_FILES etc. instead of their
22235 # values after options handling.
22237 This file was extended by unbound $as_me 1.13.0, which was
22238 generated by GNU Autoconf 2.69. Invocation command line was
22240 CONFIG_FILES = $CONFIG_FILES
22241 CONFIG_HEADERS = $CONFIG_HEADERS
22242 CONFIG_LINKS = $CONFIG_LINKS
22243 CONFIG_COMMANDS = $CONFIG_COMMANDS
22246 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22251 case $ac_config_files in *"
22252 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22255 case $ac_config_headers in *"
22256 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22261 # Files that config.status was made for.
22262 config_files="$ac_config_files"
22263 config_headers="$ac_config_headers"
22264 config_commands="$ac_config_commands"
22268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22270 \`$as_me' instantiates files and other configuration actions
22271 from templates according to the current configuration. Unless the files
22272 and actions are specified as TAGs, all are instantiated by default.
22274 Usage: $0 [OPTION]... [TAG]...
22276 -h, --help print this help, then exit
22277 -V, --version print version number and configuration settings, then exit
22278 --config print configuration, then exit
22279 -q, --quiet, --silent
22280 do not print progress messages
22281 -d, --debug don't remove temporary files
22282 --recheck update $as_me by reconfiguring in the same conditions
22283 --file=FILE[:TEMPLATE]
22284 instantiate the configuration file FILE
22285 --header=FILE[:TEMPLATE]
22286 instantiate the configuration header FILE
22288 Configuration files:
22291 Configuration headers:
22294 Configuration commands:
22297 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
22300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22301 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22303 unbound config.status 1.13.0
22304 configured by $0, generated by GNU Autoconf 2.69,
22305 with options \\"\$ac_cs_config\\"
22307 Copyright (C) 2012 Free Software Foundation, Inc.
22308 This config.status script is free software; the Free Software Foundation
22309 gives unlimited permission to copy, distribute and modify it."
22314 test -n "\$AWK" || AWK=awk
22317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22318 # The default lists apply if the user does not specify any file.
22324 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22325 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22329 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22341 # Handling of the options.
22342 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22344 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22345 $as_echo "$ac_cs_version"; exit ;;
22346 --config | --confi | --conf | --con | --co | --c )
22347 $as_echo "$ac_cs_config"; exit ;;
22348 --debug | --debu | --deb | --de | --d | -d )
22350 --file | --fil | --fi | --f )
22353 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22354 '') as_fn_error $? "missing file argument" ;;
22356 as_fn_append CONFIG_FILES " '$ac_optarg'"
22357 ac_need_defaults=false;;
22358 --header | --heade | --head | --hea )
22361 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22363 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22364 ac_need_defaults=false;;
22366 # Conflict between --help and --header
22367 as_fn_error $? "ambiguous option: \`$1'
22368 Try \`$0 --help' for more information.";;
22369 --help | --hel | -h )
22370 $as_echo "$ac_cs_usage"; exit ;;
22371 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22372 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22375 # This is an error.
22376 -*) as_fn_error $? "unrecognized option: \`$1'
22377 Try \`$0 --help' for more information." ;;
22379 *) as_fn_append ac_config_targets " $1"
22380 ac_need_defaults=false ;;
22386 ac_configure_extra_args=
22388 if $ac_cs_silent; then
22390 ac_configure_extra_args="$ac_configure_extra_args --silent"
22394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22395 if \$ac_cs_recheck; then
22396 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22398 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22399 CONFIG_SHELL='$SHELL'
22400 export CONFIG_SHELL
22405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22409 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22410 ## Running $as_me. ##
22416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22422 # The HP-UX ksh and POSIX shell print the target directory to stdout
22423 # if CDPATH is set.
22424 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22426 sed_quote_subst='$sed_quote_subst'
22427 double_quote_subst='$double_quote_subst'
22428 delay_variable_subst='$delay_variable_subst'
22429 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22430 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22431 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22432 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22433 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22434 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22435 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22436 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22437 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22438 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22439 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22440 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22441 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22442 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22443 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22444 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22445 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22446 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22447 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22448 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22449 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22450 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22451 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22452 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22453 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22454 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22455 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22456 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22457 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22458 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22459 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22460 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22461 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22462 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22463 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22464 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22465 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22466 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22467 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22468 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22469 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22470 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22471 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22472 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22473 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22474 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22475 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22476 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22477 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22478 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22479 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22480 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22481 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22482 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22483 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22484 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22485 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22486 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22487 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"`'
22488 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22489 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22490 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22491 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22492 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22493 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22494 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22495 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22496 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22497 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22498 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22499 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22500 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22501 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22502 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22503 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22504 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22505 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22506 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22507 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22508 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22509 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22510 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22511 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22512 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22513 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22514 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22515 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22516 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22517 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22518 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22519 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22520 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22521 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22522 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22523 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22524 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22525 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22526 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22527 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22528 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22529 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22530 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22531 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22532 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22533 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22534 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22535 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22536 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22537 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22538 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22539 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22540 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22541 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22542 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22543 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22544 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22545 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22546 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22547 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22548 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22549 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22550 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22551 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22552 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22553 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22554 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22555 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22556 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22557 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22558 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22559 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22560 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22561 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22562 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22563 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22566 LTCFLAGS='$LTCFLAGS'
22567 compiler='$compiler_DEFAULT'
22569 # A function that is used when there is no print builtin or printf.
22570 func_fallback_echo ()
22572 eval 'cat <<_LTECHO_EOF
22577 # Quote evaled strings.
22592 deplibs_check_method \
22597 sharedlib_from_linklib_cmd \
22600 archiver_list_spec \
22606 lt_cv_sys_global_symbol_pipe \
22607 lt_cv_sys_global_symbol_to_cdecl \
22608 lt_cv_sys_global_symbol_to_import \
22609 lt_cv_sys_global_symbol_to_c_name_address \
22610 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22611 lt_cv_nm_interface \
22612 nm_file_list_spec \
22613 lt_cv_truncate_bin \
22614 lt_prog_compiler_no_builtin_flag \
22615 lt_prog_compiler_pic \
22616 lt_prog_compiler_wl \
22617 lt_prog_compiler_static \
22618 lt_cv_prog_compiler_c_o \
22627 export_dynamic_flag_spec \
22628 whole_archive_flag_spec \
22629 compiler_needs_object \
22631 allow_undefined_flag \
22632 no_undefined_flag \
22633 hardcode_libdir_flag_spec \
22634 hardcode_libdir_separator \
22638 variables_saved_for_relink \
22640 library_names_spec \
22642 install_override_mode \
22646 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22647 *[\\\\\\\`\\"\\\$]*)
22648 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22651 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22656 # Double-quote double-evaled strings.
22657 for var in reload_cmds \
22658 old_postinstall_cmds \
22659 old_postuninstall_cmds \
22661 extract_expsyms_cmds \
22662 old_archive_from_new_cmds \
22663 old_archive_from_expsyms_cmds \
22665 archive_expsym_cmds \
22667 module_expsym_cmds \
22668 export_symbols_cmds \
22672 postuninstall_cmds \
22674 sys_lib_search_path_spec \
22675 configure_time_dlsearch_path \
22676 configure_time_lt_sys_library_path; do
22677 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22678 *[\\\\\\\`\\"\\\$]*)
22679 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22682 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22687 ac_aux_dir='$ac_aux_dir'
22689 # See if we are running on zsh, and set the options that allow our
22690 # commands through without removal of \ escapes INIT.
22691 if test -n "\${ZSH_VERSION+set}"; then
22692 setopt NO_GLOB_SUBST
22706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22708 # Handling of arguments.
22709 for ac_config_target in $ac_config_targets
22711 case $ac_config_target in
22712 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22713 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
22714 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22715 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
22716 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
22717 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
22718 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
22719 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
22720 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
22721 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
22722 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
22723 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
22724 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
22725 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
22726 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
22727 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
22728 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
22729 "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;;
22730 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22732 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22737 # If the user did not use the arguments to specify the items to instantiate,
22738 # then the envvar interface is used. Set only those that are not.
22739 # We use the long form for the default assignment because of an extremely
22740 # bizarre bug on SunOS 4.1.3.
22741 if $ac_need_defaults; then
22742 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22743 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22744 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22747 # Have a temporary directory for convenience. Make it in the build tree
22748 # simply because there is no reason against having it here, and in addition,
22749 # creating and moving files from /tmp can sometimes cause problems.
22750 # Hook for its removal unless debugging.
22751 # Note that there is a small window in which the directory will not be cleaned:
22752 # after its creation but before its name has been assigned to `$tmp'.
22756 trap 'exit_status=$?
22757 : "${ac_tmp:=$tmp}"
22758 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22760 trap 'as_fn_exit 1' 1 2 13 15
22762 # Create a (secure) tmp directory for tmp files.
22765 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22769 tmp=./conf$$-$RANDOM
22770 (umask 077 && mkdir "$tmp")
22771 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22774 # Set up the scripts for CONFIG_FILES section.
22775 # No need to generate them if there are no CONFIG_FILES.
22776 # This happens for instance with `./config.status config.h'.
22777 if test -n "$CONFIG_FILES"; then
22780 ac_cr=`echo X | tr X '\015'`
22781 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22782 # But we know of no other shell where ac_cr would be empty at this
22783 # point, so we can use a bashism as a fallback.
22784 if test "x$ac_cr" = x; then
22785 eval ac_cr=\$\'\\r\'
22787 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22788 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22791 ac_cs_awk_cr=$ac_cr
22794 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22799 echo "cat >conf$$subs.awk <<_ACEOF" &&
22800 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22802 } >conf$$subs.sh ||
22803 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22804 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22806 for ac_last_try in false false false false false :; do
22807 . ./conf$$subs.sh ||
22808 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22810 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22811 if test $ac_delim_n = $ac_delim_num; then
22813 elif $ac_last_try; then
22814 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22816 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22819 rm -f conf$$subs.sh
22821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22822 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22826 s/^/S["/; s/!.*/"]=/
22836 s/\(.\{148\}\)..*/\1/
22838 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22843 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22850 s/\(.\{148\}\)..*/\1/
22852 s/["\\]/\\&/g; s/^/"/; s/$/"/
22856 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22861 ' <conf$$subs.awk | sed '
22866 ' >>$CONFIG_STATUS || ac_write_fail=1
22867 rm -f conf$$subs.awk
22868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22870 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22871 for (key in S) S_is_set[key] = 1
22877 nfields = split(line, field, "@")
22879 len = length(field[1])
22880 for (i = 2; i < nfields; i++) {
22882 keylen = length(key)
22883 if (S_is_set[key]) {
22885 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22886 len += length(value) + length(field[++i])
22897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22898 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22899 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22902 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22903 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22906 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22907 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22908 # trailing colons and then remove the whole line if VPATH becomes empty
22909 # (actually we leave an empty line to preserve line numbers).
22910 if test "x$srcdir" = x.; then
22911 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22930 fi # test -n "$CONFIG_FILES"
22932 # Set up the scripts for CONFIG_HEADERS section.
22933 # No need to generate them if there are no CONFIG_HEADERS.
22934 # This happens for instance with `./config.status Makefile'.
22935 if test -n "$CONFIG_HEADERS"; then
22936 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22940 # Transform confdefs.h into an awk script `defines.awk', embedded as
22941 # here-document in config.status, that substitutes the proper values into
22942 # config.h.in to produce config.h.
22944 # Create a delimiter string that does not exist in confdefs.h, to ease
22945 # handling of long lines.
22947 for ac_last_try in false false :; do
22948 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22949 if test -z "$ac_tt"; then
22951 elif $ac_last_try; then
22952 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22954 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22958 # For the awk script, D is an array of macro values keyed by name,
22959 # likewise P contains macro parameters if any. Preserve backslash
22960 # newline sequences.
22962 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22964 s/.\{148\}/&'"$ac_delim"'/g
22967 s/^[ ]*#[ ]*define[ ][ ]*/ /
22974 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22976 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22980 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22981 D["\1"]=" \3\\\\\\n"\\/p
22983 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22988 s/.\{148\}/&'"$ac_delim"'/g
22993 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22996 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22998 ' <confdefs.h | sed '
22999 s/'"$ac_delim"'/"\\\
23000 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23003 for (key in D) D_is_set[key] = 1
23006 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23008 split(line, arg, " ")
23009 if (arg[1] == "#") {
23013 defundef = substr(arg[1], 2)
23016 split(mac1, mac2, "(") #)
23018 prefix = substr(line, 1, index(line, defundef) - 1)
23019 if (D_is_set[macro]) {
23020 # Preserve the white space surrounding the "#".
23021 print prefix "define", macro P[macro] D[macro]
23024 # Replace #undef with comments. This is necessary, for example,
23025 # in the case of _POSIX_SOURCE, which is predefined and required
23026 # on some systems where configure will not decide to define it.
23027 if (defundef == "undef") {
23028 print "/*", prefix defundef, macro, "*/"
23036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23037 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23038 fi # test -n "$CONFIG_HEADERS"
23041 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23046 :[FHLC]) ac_mode=$ac_tag; continue;;
23048 case $ac_mode$ac_tag in
23050 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23051 :[FH]-) ac_tag=-:-;;
23052 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23069 -) ac_f="$ac_tmp/stdin";;
23070 *) # Look for the file first in the build tree, then in the source tree
23071 # (if the path is not absolute). The absolute path cannot be DOS-style,
23072 # because $ac_f cannot contain `:'.
23076 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23078 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23080 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23081 as_fn_append ac_file_inputs " '$ac_f'"
23084 # Let's still pretend it is `configure' which instantiates (i.e., don't
23085 # use $as_me), people would be surprised to read:
23086 # /* config.h. Generated by config.status. */
23087 configure_input='Generated from '`
23088 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23090 if test x"$ac_file" != x-; then
23091 configure_input="$ac_file. $configure_input"
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23093 $as_echo "$as_me: creating $ac_file" >&6;}
23095 # Neutralize special characters interpreted by sed in replacement strings.
23096 case $configure_input in #(
23097 *\&* | *\|* | *\\* )
23098 ac_sed_conf_input=`$as_echo "$configure_input" |
23099 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23100 *) ac_sed_conf_input=$configure_input;;
23104 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23110 ac_dir=`$as_dirname -- "$ac_file" ||
23111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23112 X"$ac_file" : 'X\(//\)[^/]' \| \
23113 X"$ac_file" : 'X\(//\)$' \| \
23114 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23115 $as_echo X"$ac_file" |
23116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23120 /^X\(\/\/\)[^/].*/{
23133 as_dir="$ac_dir"; as_fn_mkdir_p
23137 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23139 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23140 # A ".." for each directory in $ac_dir_suffix.
23141 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23142 case $ac_top_builddir_sub in
23143 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23144 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23147 ac_abs_top_builddir=$ac_pwd
23148 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23149 # for backward compatibility:
23150 ac_top_builddir=$ac_top_build_prefix
23153 .) # We are building in place.
23155 ac_top_srcdir=$ac_top_builddir_sub
23156 ac_abs_top_srcdir=$ac_pwd ;;
23157 [\\/]* | ?:[\\/]* ) # Absolute name.
23158 ac_srcdir=$srcdir$ac_dir_suffix;
23159 ac_top_srcdir=$srcdir
23160 ac_abs_top_srcdir=$srcdir ;;
23161 *) # Relative name.
23162 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23163 ac_top_srcdir=$ac_top_build_prefix$srcdir
23164 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23166 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23178 # If the template does not know about datarootdir, expand it.
23179 # FIXME: This hack should be removed a few years after 2.60.
23180 ac_datarootdir_hack=; ac_datarootdir_seen=
23191 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23192 *datarootdir*) ac_datarootdir_seen=yes;;
23193 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23195 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23198 ac_datarootdir_hack='
23199 s&@datadir@&$datadir&g
23200 s&@docdir@&$docdir&g
23201 s&@infodir@&$infodir&g
23202 s&@localedir@&$localedir&g
23203 s&@mandir@&$mandir&g
23204 s&\\\${datarootdir}&$datarootdir&g' ;;
23208 # Neutralize VPATH when `$srcdir' = `.'.
23209 # Shell code in configure.ac might set extrasub.
23210 # FIXME: do we really want to maintain this feature?
23211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23212 ac_sed_extra="$ac_vpsub
23215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23218 s|@configure_input@|$ac_sed_conf_input|;t t
23219 s&@top_builddir@&$ac_top_builddir_sub&;t t
23220 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23221 s&@srcdir@&$ac_srcdir&;t t
23222 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23223 s&@top_srcdir@&$ac_top_srcdir&;t t
23224 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23225 s&@builddir@&$ac_builddir&;t t
23226 s&@abs_builddir@&$ac_abs_builddir&;t t
23227 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23228 $ac_datarootdir_hack
23230 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23231 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23233 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23234 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23235 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23236 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23238 which seems to be undefined. Please make sure it is defined" >&5
23239 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23240 which seems to be undefined. Please make sure it is defined" >&2;}
23242 rm -f "$ac_tmp/stdin"
23244 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23245 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23253 if test x"$ac_file" != x-; then
23255 $as_echo "/* $configure_input */" \
23256 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23257 } >"$ac_tmp/config.h" \
23258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23259 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23260 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23261 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23264 mv "$ac_tmp/config.h" "$ac_file" \
23265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23268 $as_echo "/* $configure_input */" \
23269 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23270 || as_fn_error $? "could not create -" "$LINENO" 5
23274 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23275 $as_echo "$as_me: executing $ac_file commands" >&6;}
23280 case $ac_file$ac_mode in
23283 # See if we are running on zsh, and set the options that allow our
23284 # commands through without removal of \ escapes.
23285 if test -n "${ZSH_VERSION+set}"; then
23286 setopt NO_GLOB_SUBST
23290 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23293 cat <<_LT_EOF >> "$cfgfile"
23295 # Generated automatically by $as_me ($PACKAGE) $VERSION
23296 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23297 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23299 # Provide generalized library-building support services.
23300 # Written by Gordon Matzigkeit, 1996
23302 # Copyright (C) 2014 Free Software Foundation, Inc.
23303 # This is free software; see the source for copying conditions. There is NO
23304 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23306 # GNU Libtool is free software; you can redistribute it and/or modify
23307 # it under the terms of the GNU General Public License as published by
23308 # the Free Software Foundation; either version 2 of of the License, or
23309 # (at your option) any later version.
23311 # As a special exception to the GNU General Public License, if you
23312 # distribute this file as part of a program or library that is built
23313 # using GNU Libtool, you may include this file under the same
23314 # distribution terms that you use for the rest of that program.
23316 # GNU Libtool is distributed in the hope that it will be useful, but
23317 # WITHOUT ANY WARRANTY; without even the implied warranty of
23318 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23319 # GNU General Public License for more details.
23321 # You should have received a copy of the GNU General Public License
23322 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23325 # The names of the tagged configurations supported by this script.
23328 # Configured defaults for sys_lib_dlsearch_path munging.
23329 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23331 # ### BEGIN LIBTOOL CONFIG
23333 # Which release of libtool.m4 was used?
23334 macro_version=$macro_version
23335 macro_revision=$macro_revision
23337 # Whether or not to build shared libraries.
23338 build_libtool_libs=$enable_shared
23340 # Whether or not to build static libraries.
23341 build_old_libs=$enable_static
23343 # What type of objects to build.
23346 # Whether or not to optimize for fast installation.
23347 fast_install=$enable_fast_install
23349 # Shared archive member basename,for filename based shared library versioning on AIX.
23350 shared_archive_member_spec=$shared_archive_member_spec
23352 # Shell to use when invoking shell scripts.
23355 # An echo program that protects backslashes.
23358 # The PATH separator for the build system.
23359 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23362 host_alias=$host_alias
23366 # The build system.
23367 build_alias=$build_alias
23371 # A sed program that does not truncate output.
23374 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23375 Xsed="\$SED -e 1s/^X//"
23377 # A grep program that handles long lines.
23383 # A literal string matcher.
23386 # A BSD- or MS-compatible name lister.
23389 # Whether we need soft or hard links.
23392 # What is the maximum length of a command?
23393 max_cmd_len=$max_cmd_len
23395 # Object file suffix (normally "o").
23398 # Executable file suffix (normally "").
23401 # whether the shell understands "unset".
23404 # turn spaces into newlines.
23407 # turn newlines into spaces.
23410 # convert \$build file names to \$host format.
23411 to_host_file_cmd=$lt_cv_to_host_file_cmd
23413 # convert \$build files to toolchain format.
23414 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23416 # An object symbol dumper.
23417 OBJDUMP=$lt_OBJDUMP
23419 # Method to check whether dependent libraries are shared objects.
23420 deplibs_check_method=$lt_deplibs_check_method
23422 # Command to use when deplibs_check_method = "file_magic".
23423 file_magic_cmd=$lt_file_magic_cmd
23425 # How to find potential files when deplibs_check_method = "file_magic".
23426 file_magic_glob=$lt_file_magic_glob
23428 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23429 want_nocaseglob=$lt_want_nocaseglob
23431 # DLL creation program.
23432 DLLTOOL=$lt_DLLTOOL
23434 # Command to associate shared and link libraries.
23435 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23440 # Flags to create an archive.
23441 AR_FLAGS=$lt_AR_FLAGS
23443 # How to feed a file listing to the archiver.
23444 archiver_list_spec=$lt_archiver_list_spec
23446 # A symbol stripping program.
23449 # Commands used to install an old-style archive.
23451 old_postinstall_cmds=$lt_old_postinstall_cmds
23452 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23454 # Whether to use a lock for old archive extraction.
23455 lock_old_archive_extraction=$lock_old_archive_extraction
23460 # LTCC compiler flags.
23461 LTCFLAGS=$lt_CFLAGS
23463 # Take the output of nm and produce a listing of raw symbols and C names.
23464 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23466 # Transform the output of nm in a proper C declaration.
23467 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23469 # Transform the output of nm into a list of symbols to manually relocate.
23470 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23472 # Transform the output of nm in a C name address pair.
23473 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23475 # Transform the output of nm in a C name address pair when lib prefix is needed.
23476 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23478 # The name lister interface.
23479 nm_interface=$lt_lt_cv_nm_interface
23481 # Specify filename containing input files for \$NM.
23482 nm_file_list_spec=$lt_nm_file_list_spec
23484 # The root where to search for dependent libraries,and where our libraries should be installed.
23485 lt_sysroot=$lt_sysroot
23487 # Command to truncate a binary pipe.
23488 lt_truncate_bin=$lt_lt_cv_truncate_bin
23490 # The name of the directory that contains temporary libtool files.
23493 # Used to examine libraries when file_magic_cmd begins with "file".
23494 MAGIC_CMD=$MAGIC_CMD
23496 # Must we lock files when doing compilation?
23497 need_locks=$lt_need_locks
23500 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23502 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23503 DSYMUTIL=$lt_DSYMUTIL
23505 # Tool to change global to local symbols on Mac OS X.
23508 # Tool to manipulate fat objects and archives on Mac OS X.
23511 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23514 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23515 OTOOL64=$lt_OTOOL64
23517 # Old archive suffix (normally "a").
23520 # Shared library suffix (normally ".so").
23521 shrext_cmds=$lt_shrext_cmds
23523 # The commands to extract the exported symbol list from a shared archive.
23524 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23526 # Variables whose values should be saved in libtool wrapper scripts and
23527 # restored at link time.
23528 variables_saved_for_relink=$lt_variables_saved_for_relink
23530 # Do we need the "lib" prefix for modules?
23531 need_lib_prefix=$need_lib_prefix
23533 # Do we need a version for libraries?
23534 need_version=$need_version
23536 # Library versioning type.
23537 version_type=$version_type
23539 # Shared library runtime path variable.
23540 runpath_var=$runpath_var
23542 # Shared library path variable.
23543 shlibpath_var=$shlibpath_var
23545 # Is shlibpath searched before the hard-coded library search path?
23546 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23548 # Format of library name prefix.
23549 libname_spec=$lt_libname_spec
23551 # List of archive names. First name is the real one, the rest are links.
23552 # The last name is the one that the linker finds with -lNAME
23553 library_names_spec=$lt_library_names_spec
23555 # The coded name of the library, if different from the real name.
23556 soname_spec=$lt_soname_spec
23558 # Permission mode override for installation of shared libraries.
23559 install_override_mode=$lt_install_override_mode
23561 # Command to use after installation of a shared archive.
23562 postinstall_cmds=$lt_postinstall_cmds
23564 # Command to use after uninstallation of a shared archive.
23565 postuninstall_cmds=$lt_postuninstall_cmds
23567 # Commands used to finish a libtool library installation in a directory.
23568 finish_cmds=$lt_finish_cmds
23570 # As "finish_cmds", except a single script fragment to be evaled but
23572 finish_eval=$lt_finish_eval
23574 # Whether we should hardcode library paths into libraries.
23575 hardcode_into_libs=$hardcode_into_libs
23577 # Compile-time system search path for libraries.
23578 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23580 # Detected run-time system search path for libraries.
23581 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23583 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23584 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23586 # Whether dlopen is supported.
23587 dlopen_support=$enable_dlopen
23589 # Whether dlopen of programs is supported.
23590 dlopen_self=$enable_dlopen_self
23592 # Whether dlopen of statically linked programs is supported.
23593 dlopen_self_static=$enable_dlopen_self_static
23595 # Commands to strip libraries.
23596 old_striplib=$lt_old_striplib
23597 striplib=$lt_striplib
23600 # The linker used to build libraries.
23603 # How to create reloadable object files.
23604 reload_flag=$lt_reload_flag
23605 reload_cmds=$lt_reload_cmds
23607 # Commands used to build an old-style archive.
23608 old_archive_cmds=$lt_old_archive_cmds
23610 # A language specific compiler.
23613 # Is the compiler the GNU compiler?
23616 # Compiler flag to turn off builtin functions.
23617 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23619 # Additional compiler flags for building library objects.
23620 pic_flag=$lt_lt_prog_compiler_pic
23622 # How to pass a linker flag through the compiler.
23623 wl=$lt_lt_prog_compiler_wl
23625 # Compiler flag to prevent dynamic linking.
23626 link_static_flag=$lt_lt_prog_compiler_static
23628 # Does compiler simultaneously support -c and -o options?
23629 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23631 # Whether or not to add -lc for building shared libraries.
23632 build_libtool_need_lc=$archive_cmds_need_lc
23634 # Whether or not to disallow shared libs when runtime libs are static.
23635 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23637 # Compiler flag to allow reflexive dlopens.
23638 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23640 # Compiler flag to generate shared objects directly from archives.
23641 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23643 # Whether the compiler copes with passing no objects directly.
23644 compiler_needs_object=$lt_compiler_needs_object
23646 # Create an old-style archive from a shared archive.
23647 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23649 # Create a temporary old-style archive to link instead of a shared archive.
23650 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23652 # Commands used to build a shared archive.
23653 archive_cmds=$lt_archive_cmds
23654 archive_expsym_cmds=$lt_archive_expsym_cmds
23656 # Commands used to build a loadable module if different from building
23657 # a shared archive.
23658 module_cmds=$lt_module_cmds
23659 module_expsym_cmds=$lt_module_expsym_cmds
23661 # Whether we are building with GNU ld or not.
23662 with_gnu_ld=$lt_with_gnu_ld
23664 # Flag that allows shared libraries with undefined symbols to be built.
23665 allow_undefined_flag=$lt_allow_undefined_flag
23667 # Flag that enforces no undefined symbols.
23668 no_undefined_flag=$lt_no_undefined_flag
23670 # Flag to hardcode \$libdir into a binary during linking.
23671 # This must work even if \$libdir does not exist
23672 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23674 # Whether we need a single "-rpath" flag with a separated argument.
23675 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23677 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23678 # DIR into the resulting binary.
23679 hardcode_direct=$hardcode_direct
23681 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23682 # DIR into the resulting binary and the resulting library dependency is
23683 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23684 # library is relocated.
23685 hardcode_direct_absolute=$hardcode_direct_absolute
23687 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23688 # into the resulting binary.
23689 hardcode_minus_L=$hardcode_minus_L
23691 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23692 # into the resulting binary.
23693 hardcode_shlibpath_var=$hardcode_shlibpath_var
23695 # Set to "yes" if building a shared library automatically hardcodes DIR
23696 # into the library and all subsequent libraries and executables linked
23698 hardcode_automatic=$hardcode_automatic
23700 # Set to yes if linker adds runtime paths of dependent libraries
23701 # to runtime path list.
23702 inherit_rpath=$inherit_rpath
23704 # Whether libtool must link a program against all its dependency libraries.
23705 link_all_deplibs=$link_all_deplibs
23707 # Set to "yes" if exported symbols are required.
23708 always_export_symbols=$always_export_symbols
23710 # The commands to list exported symbols.
23711 export_symbols_cmds=$lt_export_symbols_cmds
23713 # Symbols that should not be listed in the preloaded symbols.
23714 exclude_expsyms=$lt_exclude_expsyms
23716 # Symbols that must always be exported.
23717 include_expsyms=$lt_include_expsyms
23719 # Commands necessary for linking programs (against libraries) with templates.
23720 prelink_cmds=$lt_prelink_cmds
23722 # Commands necessary for finishing linking programs.
23723 postlink_cmds=$lt_postlink_cmds
23725 # Specify filename containing input files.
23726 file_list_spec=$lt_file_list_spec
23728 # How to hardcode a shared library path into an executable.
23729 hardcode_action=$hardcode_action
23731 # ### END LIBTOOL CONFIG
23735 cat <<'_LT_EOF' >> "$cfgfile"
23737 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23739 # func_munge_path_list VARIABLE PATH
23740 # -----------------------------------
23741 # VARIABLE is name of variable containing _space_ separated list of
23742 # directories to be munged by the contents of PATH, which is string
23745 # string "DIR[ DIR]" will be prepended to VARIABLE
23747 # string "DIR[ DIR]" will be appended to VARIABLE
23748 # "DIRP[:DIRP]::[DIRA:]DIRA"
23749 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23750 # "DIRA[ DIRA]" will be appended to VARIABLE
23752 # VARIABLE will be replaced by "DIR[ DIR]"
23753 func_munge_path_list ()
23759 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23762 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23765 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23766 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23769 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23775 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23776 func_cc_basename ()
23778 for cc_temp in $*""; do
23780 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23781 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23786 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23790 # ### END FUNCTIONS SHARED WITH CONFIGURE
23796 cat <<\_LT_EOF >> "$cfgfile"
23797 # AIX sometimes has problems with the GCC collect2 program. For some
23798 # reason, if we set the COLLECT_NAMES environment variable, the problems
23799 # vanish in a puff of smoke.
23800 if test set != "${COLLECT_NAMES+set}"; then
23802 export COLLECT_NAMES
23809 ltmain=$ac_aux_dir/ltmain.sh
23812 # We use sed instead of cat because bash on DJGPP gets confused if
23813 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23814 # text mode, it properly converts lines to CR/LF. This bash problem
23815 # is reportedly fixed, but why not run on old versions too?
23816 sed '$q' "$ltmain" >> "$cfgfile" \
23817 || (rm -f "$cfgfile"; exit 1)
23819 mv -f "$cfgfile" "$ofile" ||
23820 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23825 sed < libtool > libtool-2 \
23826 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
23827 mv libtool-2 libtool
23829 libtool="./libtool"
23838 ac_clean_files=$ac_clean_files_save
23840 test $ac_write_fail = 0 ||
23841 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23844 # configure is writing to config.log, and then calls config.status.
23845 # config.status does its own redirection, appending to config.log.
23846 # Unfortunately, on DOS this fails, as config.log is still kept open
23847 # by configure, so config.status won't be able to write to it; its
23848 # output is simply discarded. So we exec the FD to /dev/null,
23849 # effectively closing config.log, so it can be properly (re)opened and
23850 # appended to by config.status. When coming back to configure, we
23851 # need to make the FD available again.
23852 if test "$no_create" != yes; then
23854 ac_config_status_args=
23855 test "$silent" = yes &&
23856 ac_config_status_args="$ac_config_status_args --quiet"
23858 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23860 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23861 # would make configure fail if this is the last instruction.
23862 $ac_cs_success || as_fn_exit 1
23864 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23866 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}