2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.17.1.
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.17.1'
595 PACKAGE_STRING='unbound 1.17.1'
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
651 ENABLE_DNSCRYPT_XCHACHA20
654 DNSTAP_SOCKET_TESTBIN
656 opt_dnstap_socket_path
661 COMMON_OBJ_ALL_SYMBOLS
663 LIBOBJ_WITHOUT_CTIMEARC4
664 WIN_CHECKCONF_OBJ_LINK
666 WIN_UBANCHOR_OBJ_LINK
675 PC_LIBEVENT_DEPENDENCY
676 UNBOUND_EVENT_UNINSTALL
677 UNBOUND_EVENT_INSTALL
717 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ
718 SLDNS_ALLOCCHECK_EXTRA_OBJ
722 SYSTEMD_DAEMON_CFLAGS
770 UNBOUND_ROOTCERT_FILE
778 UNBOUND_LOCALSTATE_DIR
794 UNBOUND_VERSION_MICRO
795 UNBOUND_VERSION_MINOR
796 UNBOUND_VERSION_MAJOR
825 program_transform_name
838 enable_option_checking
865 enable_alloc_nonregional
872 enable_swig_version_check
883 with_deprecate_rsa_1024
898 with_dnstap_socket_path
906 enable_explicit_port_randomisation
907 enable_linux_ip_local_port_range
910 ac_precious_vars='build_alias
927 SYSTEMD_DAEMON_CFLAGS
932 # Initialize some variables set by options.
934 ac_init_version=false
935 ac_unrecognized_opts=
937 # The variables have the same names as the options, with
938 # dashes changed to underlines.
946 program_transform_name=s,x,x,
954 # Installation directory options.
955 # These are left unexpanded so users can "make install exec_prefix=/foo"
956 # and all the variables that are supposed to be based on exec_prefix
957 # by default will actually change.
958 # Use braces instead of parens because sh, perl, etc. also accept them.
959 # (The list follows the same order as the GNU Coding Standards.)
960 bindir='${exec_prefix}/bin'
961 sbindir='${exec_prefix}/sbin'
962 libexecdir='${exec_prefix}/libexec'
963 datarootdir='${prefix}/share'
964 datadir='${datarootdir}'
965 sysconfdir='${prefix}/etc'
966 sharedstatedir='${prefix}/com'
967 localstatedir='${prefix}/var'
968 runstatedir='${localstatedir}/run'
969 includedir='${prefix}/include'
970 oldincludedir='/usr/include'
971 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972 infodir='${datarootdir}/info'
977 libdir='${exec_prefix}/lib'
978 localedir='${datarootdir}/locale'
979 mandir='${datarootdir}/man'
985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
987 eval $ac_prev=\$ac_option
993 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 # Accept the important Cygnus configure options, so we can diagnose typos.
1000 case $ac_dashdash$ac_option in
1004 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007 bindir=$ac_optarg ;;
1009 -build | --build | --buil | --bui | --bu)
1010 ac_prev=build_alias ;;
1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012 build_alias=$ac_optarg ;;
1014 -cache-file | --cache-file | --cache-fil | --cache-fi \
1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016 ac_prev=cache_file ;;
1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019 cache_file=$ac_optarg ;;
1021 --config-cache | -C)
1022 cache_file=config.cache ;;
1024 -datadir | --datadir | --datadi | --datad)
1026 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027 datadir=$ac_optarg ;;
1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030 | --dataroo | --dataro | --datar)
1031 ac_prev=datarootdir ;;
1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034 datarootdir=$ac_optarg ;;
1036 -disable-* | --disable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error $? "invalid feature name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1045 "enable_$ac_useropt"
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1050 eval enable_$ac_useropt=no ;;
1052 -docdir | --docdir | --docdi | --doc | --do)
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
1062 -enable-* | --enable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_$ac_useropt"
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1076 eval enable_$ac_useropt=\$ac_optarg ;;
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
1085 exec_prefix=$ac_optarg ;;
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
1098 -host | --host | --hos | --ho)
1099 ac_prev=host_alias ;;
1100 -host=* | --host=* | --hos=* | --ho=*)
1101 host_alias=$ac_optarg ;;
1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 htmldir=$ac_optarg ;;
1109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
1114 includedir=$ac_optarg ;;
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119 infodir=$ac_optarg ;;
1121 -libdir | --libdir | --libdi | --libd)
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124 libdir=$ac_optarg ;;
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
1131 libexecdir=$ac_optarg ;;
1133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1138 -localstatedir | --localstatedir | --localstatedi | --localstated \
1139 | --localstate | --localstat | --localsta | --localst | --locals)
1140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143 localstatedir=$ac_optarg ;;
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148 mandir=$ac_optarg ;;
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155 | --no-cr | --no-c | -n)
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169 oldincludedir=$ac_optarg ;;
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174 prefix=$ac_optarg ;;
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181 program_prefix=$ac_optarg ;;
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188 program_suffix=$ac_optarg ;;
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
1205 program_transform_name=$ac_optarg ;;
1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1212 -psdir | --psdir | --psdi | --psd | --ps)
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1221 -runstatedir | --runstatedir | --runstatedi | --runstated \
1222 | --runstate | --runstat | --runsta | --runst | --runs \
1223 | --run | --ru | --r)
1224 ac_prev=runstatedir ;;
1225 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1226 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1227 | --run=* | --ru=* | --r=*)
1228 runstatedir=$ac_optarg ;;
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 sbindir=$ac_optarg ;;
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 sharedstatedir=$ac_optarg ;;
1247 -site | --site | --sit)
1249 -site=* | --site=* | --sit=*)
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error $? "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1289 eval with_$ac_useropt=\$ac_optarg ;;
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error $? "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1305 eval with_$ac_useropt=no ;;
1308 # Obsolete; use --with-x.
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1325 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information"
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error $? "missing argument to $ac_option"
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1358 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 # Check all directory arguments for consistency.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir runstatedir
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1376 # Be sure to have absolute directory names.
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1389 target=$target_alias
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 elif test "x$build_alias" != "x$host_alias"; then
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403 test "$silent" = yes && exec 6>/dev/null
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error $? "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error $? "pwd does not report name of working directory"
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1446 ac_srcdir_defaulted=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 # Report the --help message.
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1480 \`configure' configures unbound 1.17.1 to adapt to many kinds of systems.
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1487 Defaults for the options are specified in brackets.
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking ...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1511 For better control, use the options below.
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1539 --build=BUILD configure for building on BUILD [guessed]
1540 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1544 if test -n "$ac_init_help"; then
1545 case $ac_init_help in
1546 short | recursive ) echo "Configuration of unbound 1.17.1:";;
1551 --disable-option-checking ignore unrecognized --enable/--with options
1552 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1553 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1554 --enable-checking Enable warnings, asserts, makefile-dependencies
1555 --enable-debug same as enable-checking
1556 --disable-flto Disable link-time optimization (gcc specific option)
1557 --enable-pie Enable Position-Independent Executable (eg. to fully
1558 benefit from ASLR, small performance penalty)
1559 --enable-relro-now Enable full relocation binding at load-time (RELRO
1560 NOW, to protect GOT and .dtor areas)
1561 --enable-shared[=PKGS] build shared libraries [default=yes]
1562 --enable-static[=PKGS] build static libraries [default=yes]
1563 --enable-fast-install[=PKGS]
1564 optimize for fast installation [default=yes]
1565 --disable-libtool-lock avoid locking (might break parallel builds)
1566 --disable-rpath disable hardcoded rpath (default=enabled)
1567 --disable-largefile omit support for large files
1568 --enable-systemd compile with systemd support
1569 --enable-alloc-checks enable to memory allocation statistics, for debug
1571 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1573 --enable-alloc-nonregional
1574 enable nonregional allocs, slow but exposes regional
1575 allocations to other memory purifiers, for debug
1577 --disable-swig-version-check
1578 Disable swig version check to build python modules
1579 with older swig even though that is unreliable
1580 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3
1582 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1583 --enable-subnet Enable client subnet
1584 --disable-gost Disable GOST support
1585 --disable-ecdsa Disable ECDSA support
1586 --disable-dsa Disable DSA support
1587 --disable-ed25519 Disable ED25519 support
1588 --disable-ed448 Disable ED448 support
1589 --enable-event-api Enable (experimental) pluggable event base
1590 libunbound API installed to unbound-event.h
1591 --enable-tfo-client Enable TCP Fast Open for client mode
1592 --enable-tfo-server Enable TCP Fast Open for server mode
1593 --enable-static-exe enable to compile executables statically against
1594 (event) uninstalled libs, for debug purposes
1595 --enable-fully-static enable to compile fully static
1596 --enable-lock-checks enable to check lock and unlock calls, for debug
1598 --enable-allsymbols export all symbols from libunbound and link binaries
1599 to it, smaller install size but libunbound export
1600 table is polluted by internal symbols
1601 --enable-dnstap Enable dnstap support (requires protobuf-c)
1602 --enable-dnscrypt Enable dnscrypt support (requires libsodium)
1603 --enable-cachedb enable cachedb module that can use external cache
1605 --enable-ipsecmod Enable ipsecmod module that facilitates
1607 --enable-ipset enable ipset module
1608 --disable-explicit-port-randomisation
1609 disable explicit source port randomisation and rely
1610 on the kernel to provide random source ports
1611 --enable-linux-ip-local-port-range
1612 Define this to enable use of
1613 /proc/sys/net/ipv4/ip_local_port_range as a default
1614 outgoing port range. This is only for the libunbound
1615 on Linux and does not affect unbound resolving
1616 daemon itself. This may severely limit the number of
1617 available outgoing ports and thus decrease
1618 randomness. Define this only when the target system
1619 restricts (e.g. some of SELinux enabled
1620 distributions) the use of non-ephemeral ports.
1623 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1624 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1625 --with-conf-file=path Pathname to the Unbound configuration file
1626 --with-run-dir=path set default directory to chdir to (by default dir
1628 --with-chroot-dir=path set default directory to chroot to (by default same
1630 --with-share-dir=path set default directory with shared data (by default
1631 same as share/unbound)
1632 --with-pidfile=filename set default pathname to unbound pidfile (default
1633 run-dir/unbound.pid)
1634 --with-rootkey-file=filename
1635 set default pathname to root key file (default
1636 run-dir/root.key). This file is read and written.
1637 --with-rootcert-file=filename
1638 set default pathname to root update certificate file
1639 (default run-dir/icannbundle.pem). This file need
1640 not exist if you are content with the builtin.
1641 --with-username=user set default user that unbound changes to (default
1643 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1645 --with-aix-soname=aix|svr4|both
1646 shared library versioning (aka "SONAME") variant to
1647 provide on AIX, [default=aix].
1648 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1649 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1650 compiler's sysroot if not specified).
1651 --with-pthreads use pthreads library, or --without-pthreads to
1652 disable threading support.
1653 --with-solaris-threads use solaris native thread library.
1654 --with-syslog-facility=LOCAL0 - LOCAL7
1655 set SYSLOG_FACILITY, default DAEMON
1656 --with-dynlibmodule build dynamic library module, or
1657 --without-dynlibmodule to disable it. (default=no)
1658 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1660 --with-pythonmodule build Python module, or --without-pythonmodule to
1661 disable script engine. (default=no)
1662 --with-nss=path use libnss instead of openssl, installed at path.
1663 --with-nettle=path use libnettle as crypto library, installed at path.
1664 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1665 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1666 /usr or specify like /usr/include/openssl11)
1667 --with-libbsd Use portable libbsd functions
1668 --with-deprecate-rsa-1024
1669 Deprecate RSA 1024 bit length, makes that an
1670 unsupported key, for use when OpenSSL FIPS refuses
1671 1024 bit verification
1672 --with-libevent=pathname
1673 use libevent (will check /usr/local /opt/local
1674 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1675 an explicit path). Slower, but allows use of large
1676 outgoing port ranges.
1677 --with-libexpat=path specify explicit path for libexpat.
1678 --with-libhiredis=path specify explicit path for libhiredis.
1679 --with-libnghttp2=path specify explicit path for libnghttp2.
1680 --with-dnstap-socket-path=pathname
1681 set default dnstap socket path
1682 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1683 --with-libsodium=path Path where libsodium is installed, for dnscrypt
1684 --with-libmnl=path specify explicit path for libmnl.
1685 --with-libunbound-only do not build daemon and tool programs
1687 Some influential environment variables:
1688 CC C compiler command
1689 CFLAGS C compiler flags
1690 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1691 nonstandard directory <lib dir>
1692 LIBS libraries to pass to the linker, e.g. -l<library>
1693 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1694 you have headers in a nonstandard directory <include dir>
1696 YACC The `Yet Another Compiler Compiler' implementation to use.
1697 Defaults to the first program found out of: `bison -y', `byacc',
1699 YFLAGS The list of arguments that will be passed by default to $YACC.
1700 This script will default YFLAGS to the empty string to avoid a
1701 default value of `-d' given by some make applications.
1703 User-defined run-time library search path.
1704 PKG_CONFIG path to pkg-config utility
1706 directories to add to pkg-config's search path
1708 path overriding pkg-config's built-in search path
1710 C compiler flags for SYSTEMD, overriding pkg-config
1712 linker flags for SYSTEMD, overriding pkg-config
1713 SYSTEMD_DAEMON_CFLAGS
1714 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1716 linker flags for SYSTEMD_DAEMON, overriding pkg-config
1718 The installed Python version to use, for example '2.3'. This
1719 string will be appended to the Python interpreter canonical
1722 Use these variables to override the choices made by `configure' or to help
1723 it to find libraries and programs with nonstandard names/locations.
1725 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
1730 if test "$ac_init_help" = "recursive"; then
1731 # If there are subdirs, report their specific --help.
1732 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1733 test -d "$ac_dir" ||
1734 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1741 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1742 # A ".." for each directory in $ac_dir_suffix.
1743 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1744 case $ac_top_builddir_sub in
1745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1749 ac_abs_top_builddir=$ac_pwd
1750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1751 # for backward compatibility:
1752 ac_top_builddir=$ac_top_build_prefix
1755 .) # We are building in place.
1757 ac_top_srcdir=$ac_top_builddir_sub
1758 ac_abs_top_srcdir=$ac_pwd ;;
1759 [\\/]* | ?:[\\/]* ) # Absolute name.
1760 ac_srcdir=$srcdir$ac_dir_suffix;
1761 ac_top_srcdir=$srcdir
1762 ac_abs_top_srcdir=$srcdir ;;
1764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1765 ac_top_srcdir=$ac_top_build_prefix$srcdir
1766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1770 cd "$ac_dir" || { ac_status=$?; continue; }
1771 # Check for guested configure.
1772 if test -f "$ac_srcdir/configure.gnu"; then
1774 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1775 elif test -f "$ac_srcdir/configure"; then
1777 $SHELL "$ac_srcdir/configure" --help=recursive
1779 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1781 cd "$ac_pwd" || { ac_status=$?; break; }
1785 test -n "$ac_init_help" && exit $ac_status
1786 if $ac_init_version; then
1788 unbound configure 1.17.1
1789 generated by GNU Autoconf 2.69
1791 Copyright (C) 2012 Free Software Foundation, Inc.
1792 This configure script is free software; the Free Software Foundation
1793 gives unlimited permission to copy, distribute and modify it.
1798 ## ------------------------ ##
1799 ## Autoconf initialization. ##
1800 ## ------------------------ ##
1802 # ac_fn_c_try_compile LINENO
1803 # --------------------------
1804 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_compile ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext
1809 if { { ac_try="$ac_compile"
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_compile") 2>conftest.err
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest.$ac_objext; then :
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1838 } # ac_fn_c_try_compile
1840 # ac_fn_c_try_cpp LINENO
1841 # ----------------------
1842 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { { ac_try="$ac_cpp conftest.$ac_ext"
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } > conftest.i && {
1862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1877 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1878 # -------------------------------------------------------
1879 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1880 # the include files in INCLUDES and setting the cache variable VAR
1882 ac_fn_c_check_header_mongrel ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if eval \${$3+:} false; then :
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1895 # Is the header compilable?
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1897 $as_echo_n "checking $2 usability... " >&6; }
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 ac_header_compiler=yes
1906 ac_header_compiler=no
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1910 $as_echo "$ac_header_compiler" >&6; }
1912 # Is the header present?
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1914 $as_echo_n "checking $2 presence... " >&6; }
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1919 if ac_fn_c_try_cpp "$LINENO"; then :
1920 ac_header_preproc=yes
1922 ac_header_preproc=no
1924 rm -f conftest.err conftest.i conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1926 $as_echo "$ac_header_preproc" >&6; }
1928 # So? What about this header?
1929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1932 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1938 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1940 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1942 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1944 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 ( $as_echo "## --------------------------------------------------------------------------------------- ##
1948 ## Report this to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ##
1949 ## --------------------------------------------------------------------------------------- ##"
1950 ) | sed "s/^/$as_me: WARNING: /" >&2
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1958 eval "$3=\$ac_header_compiler"
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 } # ac_fn_c_check_header_mongrel
1968 # ac_fn_c_try_run LINENO
1969 # ----------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1971 # that executables *can* be run.
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if { { ac_try="$ac_link"
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_link") 2>&5
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1986 { { case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_try") 2>&5
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; }; }; then :
1998 $as_echo "$as_me: program exited with status $ac_status" >&5
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2002 ac_retval=$ac_status
2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 as_fn_set_status $ac_retval
2010 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2011 # -------------------------------------------------------
2012 # Tests whether HEADER exists and can be compiled using the include files in
2013 # INCLUDES, setting the cache variable VAR accordingly.
2014 ac_fn_c_check_header_compile ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if eval \${$3+:} false; then :
2020 $as_echo_n "(cached) " >&6
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2027 if ac_fn_c_try_compile "$LINENO"; then :
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 } # ac_fn_c_check_header_compile
2041 # ac_fn_c_try_link LINENO
2042 # -----------------------
2043 # Try to link conftest.$ac_ext, and return whether this succeeded.
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 rm -f conftest.$ac_objext conftest$ac_exeext
2048 if { { ac_try="$ac_link"
2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051 *) ac_try_echo=$ac_try;;
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055 (eval "$ac_link") 2>conftest.err
2057 if test -s conftest.err; then
2058 grep -v '^ *+' conftest.err >conftest.er1
2059 cat conftest.er1 >&5
2060 mv -f conftest.er1 conftest.err
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; } && {
2064 test -z "$ac_c_werror_flag" ||
2065 test ! -s conftest.err
2066 } && test -s conftest$ac_exeext && {
2067 test "$cross_compiling" = yes ||
2068 test -x conftest$ac_exeext
2072 $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2077 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2078 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2079 # interfere with the next link command; also delete a directory that is
2080 # left behind by Apple's compiler. We do this before executing the actions.
2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2085 } # ac_fn_c_try_link
2087 # ac_fn_c_check_func LINENO FUNC VAR
2088 # ----------------------------------
2089 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2090 ac_fn_c_check_func ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if eval \${$3+:} false; then :
2096 $as_echo_n "(cached) " >&6
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2102 #define $2 innocuous_$2
2104 /* System header to define __stub macros and hopefully few prototypes,
2105 which can conflict with char $2 (); below.
2106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2107 <limits.h> exists even on freestanding compilers. */
2110 # include <limits.h>
2112 # include <assert.h>
2117 /* Override any GCC internal prototype to avoid an error.
2118 Use char because int might match the return type of a GCC
2119 builtin and then its argument prototype would still apply. */
2124 /* The GNU C library defines this for functions which it implements
2125 to always fail with ENOSYS. Some functions are actually named
2126 something starting with __ and the normal name is an alias. */
2127 #if defined __stub_$2 || defined __stub___$2
2139 if ac_fn_c_try_link "$LINENO"; then :
2144 rm -f core conftest.err conftest.$ac_objext \
2145 conftest$ac_exeext conftest.$ac_ext
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 } # ac_fn_c_check_func
2154 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2155 # -------------------------------------------
2156 # Tests whether TYPE exists after having included INCLUDES, setting cache
2157 # variable VAR accordingly.
2158 ac_fn_c_check_type ()
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162 $as_echo_n "checking for $2... " >&6; }
2163 if eval \${$3+:} false; then :
2164 $as_echo_n "(cached) " >&6
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2192 if ac_fn_c_try_compile "$LINENO"; then :
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 $as_echo "$ac_res" >&6; }
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 } # ac_fn_c_check_type
2208 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2209 # --------------------------------------------
2210 # Tries to find the compile-time value of EXPR in a program that includes
2211 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2213 ac_fn_c_compute_int ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 if test "$cross_compiling" = yes; then
2217 # Depending upon the size, compute the lo and hi bounds.
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) >= 0)];
2226 return test_array [0];
2232 if ac_fn_c_try_compile "$LINENO"; then :
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2241 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2243 return test_array [0];
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 ac_hi=$ac_mid; break
2252 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2253 if test $ac_lo -le $ac_mid; then
2257 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2268 static int test_array [1 - 2 * !(($2) < 0)];
2270 return test_array [0];
2276 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2285 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2287 return test_array [0];
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 ac_lo=$ac_mid; break
2296 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2297 if test $ac_mid -le $ac_hi; then
2301 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 # Binary search between lo and hi bounds.
2312 while test "x$ac_lo" != "x$ac_hi"; do
2313 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2320 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2322 return test_array [0];
2328 if ac_fn_c_try_compile "$LINENO"; then :
2331 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2343 static long int longval () { return $2; }
2344 static unsigned long int ulongval () { return $2; }
2351 FILE *f = fopen ("conftest.val", "w");
2356 long int i = longval ();
2359 fprintf (f, "%ld", i);
2363 unsigned long int i = ulongval ();
2366 fprintf (f, "%lu", i);
2368 /* Do not output a trailing newline, as this causes \r\n confusion
2369 on some platforms. */
2370 return ferror (f) || fclose (f) != 0;
2376 if ac_fn_c_try_run "$LINENO"; then :
2377 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2382 conftest.$ac_objext conftest.beam conftest.$ac_ext
2386 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387 as_fn_set_status $ac_retval
2389 } # ac_fn_c_compute_int
2391 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2392 # ---------------------------------------------
2393 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2395 ac_fn_c_check_decl ()
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 as_decl_name=`echo $2|sed 's/ *(.*//'`
2399 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2401 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2402 if eval \${$3+:} false; then :
2403 $as_echo_n "(cached) " >&6
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2411 #ifndef $as_decl_name
2413 (void) $as_decl_use;
2415 (void) $as_decl_name;
2423 if ac_fn_c_try_compile "$LINENO"; then :
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432 $as_echo "$ac_res" >&6; }
2433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435 } # ac_fn_c_check_decl
2437 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2438 # ----------------------------------------------------
2439 # Tries to find if the field MEMBER exists in type AGGR, after including
2440 # INCLUDES, setting cache variable VAR accordingly.
2441 ac_fn_c_check_member ()
2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2445 $as_echo_n "checking for $2.$3... " >&6; }
2446 if eval \${$4+:} false; then :
2447 $as_echo_n "(cached) " >&6
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2462 if ac_fn_c_try_compile "$LINENO"; then :
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2472 if (sizeof ac_aggr.$3)
2478 if ac_fn_c_try_compile "$LINENO"; then :
2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 $as_echo "$ac_res" >&6; }
2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2492 } # ac_fn_c_check_member
2493 cat >config.log <<_ACEOF
2494 This file contains any messages produced by compilers while
2495 running configure, to aid debugging if configure makes a mistake.
2497 It was created by unbound $as_me 1.17.1, which was
2498 generated by GNU Autoconf 2.69. Invocation command line was
2510 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2511 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2512 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2513 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2514 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2516 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2517 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2519 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2520 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2521 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2522 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2523 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2524 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2525 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir=.
2534 $as_echo "PATH: $as_dir"
2550 # Keep a trace of the command line.
2551 # Strip out --no-create and --no-recursion so they do not pile up.
2552 # Strip out --silent because we don't want to record it for future runs.
2553 # Also quote any args containing shell meta-characters.
2554 # Make two passes to allow for proper duplicate-argument suppression.
2558 ac_must_keep_next=false
2564 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2566 | -silent | --silent | --silen | --sile | --sil)
2569 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2572 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2574 as_fn_append ac_configure_args1 " '$ac_arg'"
2575 if test $ac_must_keep_next = true; then
2576 ac_must_keep_next=false # Got value, back to normal.
2579 *=* | --config-cache | -C | -disable-* | --disable-* \
2580 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2581 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2582 | -with-* | --with-* | -without-* | --without-* | --x)
2583 case "$ac_configure_args0 " in
2584 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2587 -* ) ac_must_keep_next=true ;;
2590 as_fn_append ac_configure_args " '$ac_arg'"
2595 { ac_configure_args0=; unset ac_configure_args0;}
2596 { ac_configure_args1=; unset ac_configure_args1;}
2598 # When interrupted or exit'd, cleanup temporary files, and complete
2599 # config.log. We remove comments because anyway the quotes in there
2600 # would cause problems or look ugly.
2601 # WARNING: Use '\'' to represent an apostrophe within the trap.
2602 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2603 trap 'exit_status=$?
2604 # Save into config.log some information that might help in debugging.
2608 $as_echo "## ---------------- ##
2609 ## Cache variables. ##
2610 ## ---------------- ##"
2612 # The following way of writing the cache mishandles newlines in values,
2614 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2615 eval ac_val=\$$ac_var
2619 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2620 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2623 _ | IFS | as_nl) ;; #(
2624 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2625 *) { eval $ac_var=; unset $ac_var;} ;;
2630 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2631 *${as_nl}ac_space=\ *)
2633 "s/'\''/'\''\\\\'\'''\''/g;
2634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2637 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2644 $as_echo "## ----------------- ##
2645 ## Output variables. ##
2646 ## ----------------- ##"
2648 for ac_var in $ac_subst_vars
2650 eval ac_val=\$$ac_var
2652 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2654 $as_echo "$ac_var='\''$ac_val'\''"
2658 if test -n "$ac_subst_files"; then
2659 $as_echo "## ------------------- ##
2660 ## File substitutions. ##
2661 ## ------------------- ##"
2663 for ac_var in $ac_subst_files
2665 eval ac_val=\$$ac_var
2667 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2669 $as_echo "$ac_var='\''$ac_val'\''"
2674 if test -s confdefs.h; then
2675 $as_echo "## ----------- ##
2682 test "$ac_signal" != 0 &&
2683 $as_echo "$as_me: caught signal $ac_signal"
2684 $as_echo "$as_me: exit $exit_status"
2686 rm -f core *.core core.conftest.* &&
2687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2690 for ac_signal in 1 2 13 15; do
2691 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2696 rm -f -r conftest* confdefs.h
2698 $as_echo "/* confdefs.h */" > confdefs.h
2700 # Predefined preprocessor variables.
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE_NAME "$PACKAGE_NAME"
2706 cat >>confdefs.h <<_ACEOF
2707 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2710 cat >>confdefs.h <<_ACEOF
2711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2714 cat >>confdefs.h <<_ACEOF
2715 #define PACKAGE_STRING "$PACKAGE_STRING"
2718 cat >>confdefs.h <<_ACEOF
2719 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2722 cat >>confdefs.h <<_ACEOF
2723 #define PACKAGE_URL "$PACKAGE_URL"
2727 # Let the site file select an alternate cache file if it wants to.
2728 # Prefer an explicitly selected file to automatically selected ones.
2731 if test -n "$CONFIG_SITE"; then
2732 # We do not want a PATH search for config.site.
2733 case $CONFIG_SITE in #((
2734 -*) ac_site_file1=./$CONFIG_SITE;;
2735 */*) ac_site_file1=$CONFIG_SITE;;
2736 *) ac_site_file1=./$CONFIG_SITE;;
2738 elif test "x$prefix" != xNONE; then
2739 ac_site_file1=$prefix/share/config.site
2740 ac_site_file2=$prefix/etc/config.site
2742 ac_site_file1=$ac_default_prefix/share/config.site
2743 ac_site_file2=$ac_default_prefix/etc/config.site
2745 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2747 test "x$ac_site_file" = xNONE && continue
2748 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2750 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2751 sed 's/^/| /' "$ac_site_file" >&5
2753 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755 as_fn_error $? "failed to load site script $ac_site_file
2756 See \`config.log' for more details" "$LINENO" 5; }
2760 if test -r "$cache_file"; then
2761 # Some versions of bash will fail to source /dev/null (special files
2762 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2763 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2765 $as_echo "$as_me: loading cache $cache_file" >&6;}
2767 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2768 *) . "./$cache_file";;
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2773 $as_echo "$as_me: creating cache $cache_file" >&6;}
2777 # Check that the precious variables saved in the cache have kept the same
2779 ac_cache_corrupted=false
2780 for ac_var in $ac_precious_vars; do
2781 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2782 eval ac_new_set=\$ac_env_${ac_var}_set
2783 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2784 eval ac_new_val=\$ac_env_${ac_var}_value
2785 case $ac_old_set,$ac_new_set in
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2788 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2789 ac_cache_corrupted=: ;;
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2792 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2793 ac_cache_corrupted=: ;;
2796 if test "x$ac_old_val" != "x$ac_new_val"; then
2797 # differences in whitespace do not lead to failure.
2798 ac_old_val_w=`echo x $ac_old_val`
2799 ac_new_val_w=`echo x $ac_new_val`
2800 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2802 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2803 ac_cache_corrupted=:
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2806 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2807 eval $ac_var=\$ac_old_val
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2810 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2812 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2815 # Pass precious variables to config.status.
2816 if test "$ac_new_set" = set; then
2818 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2819 *) ac_arg=$ac_var=$ac_new_val ;;
2821 case " $ac_configure_args " in
2822 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2823 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2827 if $ac_cache_corrupted; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2831 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2832 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2834 ## -------------------- ##
2835 ## Main body of script. ##
2836 ## -------------------- ##
2839 ac_cpp='$CPP $CPPFLAGS'
2840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2845 UNBOUND_VERSION_MAJOR=1
2847 UNBOUND_VERSION_MINOR=17
2849 UNBOUND_VERSION_MICRO=1
2852 LIBUNBOUND_CURRENT=9
2853 LIBUNBOUND_REVISION=21
2862 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2867 # 1.4.0-snapshots had 1:5:0
2868 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2882 # and 1.4.13p1 and 1.4.13.p2
2884 # 1.4.15 had 3:0:1 # adds ub_version()
2889 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2892 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2900 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2904 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2916 # 1.8.0 had 8:0:0 # changes the event callback function signature
2920 # 1.9.0 had 9:0:1 # add ub_ctx_set_tls
2943 # Current -- the number of the binary API that we're implementing
2944 # Revision -- which iteration of the implementation of the binary
2945 # API are we supplying?
2946 # Age -- How many previous binary API versions do we also
2949 # If we release a new version that does not change the binary API,
2950 # increment Revision.
2952 # If we release a new version that changes the binary API, but does
2953 # not break programs compiled against the old binary API, increment
2954 # Current and Age. Set Revision to 0, since this is the first
2955 # implementation of the new API.
2957 # Otherwise, we're changing the binary API and breaking backward
2958 # compatibility with old binaries. Increment Current. Set Age to 0,
2959 # since we're backward compatible with no previous APIs. Set Revision
2966 cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
2968 cat >>confdefs.h <<_ACEOF
2969 #define CONFCMDLINE "$cmdln"
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2981 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_CC+:} false; then :
2985 $as_echo_n "(cached) " >&6
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3018 if test -z "$ac_cv_prog_CC"; then
3020 # Extract the first word of "gcc", so it can be a program name with args.
3021 set dummy gcc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3027 if test -n "$ac_ct_CC"; then
3028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_ac_ct_CC="gcc"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048 if test -n "$ac_ct_CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3050 $as_echo "$ac_ct_CC" >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3056 if test "x$ac_ct_CC" = x; then
3059 case $cross_compiling:$ac_tool_warned in
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3063 ac_tool_warned=yes ;;
3071 if test -z "$CC"; then
3072 if test -n "$ac_tool_prefix"; then
3073 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3074 set dummy ${ac_tool_prefix}cc; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_CC+:} false; then :
3078 $as_echo_n "(cached) " >&6
3080 if test -n "$CC"; then
3081 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090 ac_cv_prog_CC="${ac_tool_prefix}cc"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 if test -n "$CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3112 if test -z "$CC"; then
3113 # Extract the first word of "cc", so it can be a program name with args.
3114 set dummy cc; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if ${ac_cv_prog_CC+:} false; then :
3118 $as_echo_n "(cached) " >&6
3120 if test -n "$CC"; then
3121 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3132 ac_prog_rejected=yes
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 if test $ac_prog_rejected = yes; then
3144 # We found a bogon in the path, so make sure we never use it.
3145 set dummy $ac_cv_prog_CC
3147 if test $# != 0; then
3148 # We chose a different compiler from the bogus one.
3149 # However, it has the same basename, so the bogon will be chosen
3150 # first if we set CC to just the basename; use the full file name.
3152 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3158 if test -n "$CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3168 if test -z "$CC"; then
3169 if test -n "$ac_tool_prefix"; then
3170 for ac_prog in cl.exe
3172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_CC+:} false; then :
3177 $as_echo_n "(cached) " >&6
3179 if test -n "$CC"; then
3180 ac_cv_prog_CC="$CC" # Let the user override the test.
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3209 test -n "$CC" && break
3212 if test -z "$CC"; then
3214 for ac_prog in cl.exe
3216 # Extract the first word of "$ac_prog", so it can be a program name with args.
3217 set dummy $ac_prog; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3221 $as_echo_n "(cached) " >&6
3223 if test -n "$ac_ct_CC"; then
3224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_prog_ac_ct_CC="$ac_prog"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3244 if test -n "$ac_ct_CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3246 $as_echo "$ac_ct_CC" >&6; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3253 test -n "$ac_ct_CC" && break
3256 if test "x$ac_ct_CC" = x; then
3259 case $cross_compiling:$ac_tool_warned in
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 ac_tool_warned=yes ;;
3272 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 as_fn_error $? "no acceptable C compiler found in \$PATH
3275 See \`config.log' for more details" "$LINENO" 5; }
3277 # Provide some information about the compiler.
3278 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3281 for ac_option in --version -v -V -qversion; do
3282 { { ac_try="$ac_compiler $ac_option >&5"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3291 if test -s conftest.err; then
3293 ... rest of stderr output deleted ...
3294 10q' conftest.err >conftest.er1
3295 cat conftest.er1 >&5
3297 rm -f conftest.er1 conftest.err
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3313 ac_clean_files_save=$ac_clean_files
3314 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3315 # Try to create an executable without -o first, disregard a.out.
3316 # It will help us diagnose broken compilers, and finding out an intuition
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3319 $as_echo_n "checking whether the C compiler works... " >&6; }
3320 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3322 # The possible output files:
3323 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3326 for ac_file in $ac_files
3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3330 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3335 if { { ac_try="$ac_link_default"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342 (eval "$ac_link_default") 2>&5
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }; then :
3346 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3347 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3348 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3349 # so that the user can short-circuit this test for compilers unknown to
3351 for ac_file in $ac_files ''
3353 test -f "$ac_file" || continue
3355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3358 # We found the default executable, but exeext='' is most
3362 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3364 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3366 # We set ac_cv_exeext here because the later test for it is not
3367 # safe: cross compilers may not add the suffix if given an `-o'
3368 # argument, so we may need to know it at that point already.
3369 # Even if this section looks crufty: it has the advantage of
3376 test "$ac_cv_exeext" = no && ac_cv_exeext=
3381 if test -z "$ac_file"; then :
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3384 $as_echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
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 77 "C compiler cannot create executables
3390 See \`config.log' for more details" "$LINENO" 5; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3393 $as_echo "yes" >&6; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3396 $as_echo_n "checking for C compiler default output file name... " >&6; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3398 $as_echo "$ac_file" >&6; }
3399 ac_exeext=$ac_cv_exeext
3401 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3402 ac_clean_files=$ac_clean_files_save
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3404 $as_echo_n "checking for suffix of executables... " >&6; }
3405 if { { ac_try="$ac_link"
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_link") 2>&5
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }; then :
3416 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3417 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3418 # work properly (i.e., refer to `conftest.exe'), while it won't with
3420 for ac_file in conftest.exe conftest conftest.*; do
3421 test -f "$ac_file" || continue
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3433 See \`config.log' for more details" "$LINENO" 5; }
3435 rm -f conftest conftest$ac_cv_exeext
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3437 $as_echo "$ac_cv_exeext" >&6; }
3439 rm -f conftest.$ac_ext
3440 EXEEXT=$ac_cv_exeext
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3448 FILE *f = fopen ("conftest.out", "w");
3449 return ferror (f) || fclose (f) != 0;
3455 ac_clean_files="$ac_clean_files conftest.out"
3456 # Check that the compiler produces executables we can run. If not, either
3457 # the compiler is broken, or we cross compile.
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3459 $as_echo_n "checking whether we are cross compiling... " >&6; }
3460 if test "$cross_compiling" != yes; then
3461 { { ac_try="$ac_link"
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_link") 2>&5
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3472 if { ac_try='./conftest$ac_cv_exeext'
3473 { { case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_try") 2>&5
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }; }; then
3485 if test "$cross_compiling" = maybe; then
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $? "cannot run C compiled programs.
3491 If you meant to cross compile, use \`--host'.
3492 See \`config.log' for more details" "$LINENO" 5; }
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3497 $as_echo "$cross_compiling" >&6; }
3499 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3500 ac_clean_files=$ac_clean_files_save
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3502 $as_echo_n "checking for suffix of object files... " >&6; }
3503 if ${ac_cv_objext+:} false; then :
3504 $as_echo_n "(cached) " >&6
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3517 rm -f conftest.o conftest.obj
3518 if { { ac_try="$ac_compile"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_compile") 2>&5
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; then :
3529 for ac_file in conftest.o conftest.obj conftest.*; do
3530 test -f "$ac_file" || continue;
3532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3533 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3538 $as_echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 as_fn_error $? "cannot compute suffix of object files: cannot compile
3544 See \`config.log' for more details" "$LINENO" 5; }
3546 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3549 $as_echo "$ac_cv_objext" >&6; }
3550 OBJEXT=$ac_cv_objext
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3553 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3554 if ${ac_cv_c_compiler_gnu+:} false; then :
3555 $as_echo_n "(cached) " >&6
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3571 if ac_fn_c_try_compile "$LINENO"; then :
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582 if test $ac_compiler_gnu = yes; then
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3591 if ${ac_cv_prog_cc_g+:} false; then :
3592 $as_echo_n "(cached) " >&6
3594 ac_save_c_werror_flag=$ac_c_werror_flag
3595 ac_c_werror_flag=yes
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3609 if ac_fn_c_try_compile "$LINENO"; then :
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3624 if ac_fn_c_try_compile "$LINENO"; then :
3627 ac_c_werror_flag=$ac_save_c_werror_flag
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3640 if ac_fn_c_try_compile "$LINENO"; then :
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 ac_c_werror_flag=$ac_save_c_werror_flag
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3651 $as_echo "$ac_cv_prog_cc_g" >&6; }
3652 if test "$ac_test_CFLAGS" = set; then
3653 CFLAGS=$ac_save_CFLAGS
3654 elif test $ac_cv_prog_cc_g = yes; then
3655 if test "$GCC" = yes; then
3661 if test "$GCC" = yes; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3668 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3669 if ${ac_cv_prog_cc_c89+:} false; then :
3670 $as_echo_n "(cached) " >&6
3672 ac_cv_prog_cc_c89=no
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3679 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3680 struct buf { int x; };
3681 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3682 static char *e (p, i)
3688 static char *f (char * (*g) (char **, int), char **p, ...)
3693 s = g (p, va_arg (v,int));
3698 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3699 function prototypes and stuff, but not '\xHH' hex character constants.
3700 These don't provoke an error unfortunately, instead are silently treated
3701 as 'x'. The following induces an error, until -std is added to get
3702 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3703 array size at least. It's necessary to write '\x00'==0 to get something
3704 that's true only with -std. */
3705 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3707 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3708 inside strings and character constants. */
3710 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3712 int test (int i, double x);
3713 struct s1 {int (*f) (int a);};
3714 struct s2 {int (*f) (double a);};
3715 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3721 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3726 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3727 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3729 CC="$ac_save_CC $ac_arg"
3730 if ac_fn_c_try_compile "$LINENO"; then :
3731 ac_cv_prog_cc_c89=$ac_arg
3733 rm -f core conftest.err conftest.$ac_objext
3734 test "x$ac_cv_prog_cc_c89" != "xno" && break
3736 rm -f conftest.$ac_ext
3741 case "x$ac_cv_prog_cc_c89" in
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3744 $as_echo "none needed" >&6; } ;;
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3747 $as_echo "unsupported" >&6; } ;;
3749 CC="$CC $ac_cv_prog_cc_c89"
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3751 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3753 if test "x$ac_cv_prog_cc_c89" != xno; then :
3758 ac_cpp='$CPP $CPPFLAGS'
3759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3770 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3771 # On Suns, sometimes $CPP names a directory.
3772 if test -n "$CPP" && test -d "$CPP"; then
3775 if test -z "$CPP"; then
3776 if ${ac_cv_prog_CPP+:} false; then :
3777 $as_echo_n "(cached) " >&6
3779 # Double quotes because CPP needs to be expanded
3780 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3783 for ac_c_preproc_warn_flag in '' yes
3785 # Use a header file that comes with gcc, so configuring glibc
3786 # with a fresh cross-compiler works.
3787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3788 # <limits.h> exists even on freestanding compilers.
3789 # On the NeXT, cc -E runs the code through the compiler's parser,
3790 # not just through cpp. "Syntax error" is here to catch this case.
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3794 # include <limits.h>
3796 # include <assert.h>
3800 if ac_fn_c_try_cpp "$LINENO"; then :
3803 # Broken: fails on valid input.
3806 rm -f conftest.err conftest.i conftest.$ac_ext
3808 # OK, works on sane cases. Now check whether nonexistent headers
3809 # can be detected and how.
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812 #include <ac_nonexistent.h>
3814 if ac_fn_c_try_cpp "$LINENO"; then :
3815 # Broken: success on invalid input.
3818 # Passes both tests.
3822 rm -f conftest.err conftest.i conftest.$ac_ext
3825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3826 rm -f conftest.i conftest.err conftest.$ac_ext
3827 if $ac_preproc_ok; then :
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3840 $as_echo "$CPP" >&6; }
3842 for ac_c_preproc_warn_flag in '' yes
3844 # Use a header file that comes with gcc, so configuring glibc
3845 # with a fresh cross-compiler works.
3846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3847 # <limits.h> exists even on freestanding compilers.
3848 # On the NeXT, cc -E runs the code through the compiler's parser,
3849 # not just through cpp. "Syntax error" is here to catch this case.
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3853 # include <limits.h>
3855 # include <assert.h>
3859 if ac_fn_c_try_cpp "$LINENO"; then :
3862 # Broken: fails on valid input.
3865 rm -f conftest.err conftest.i conftest.$ac_ext
3867 # OK, works on sane cases. Now check whether nonexistent headers
3868 # can be detected and how.
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3871 #include <ac_nonexistent.h>
3873 if ac_fn_c_try_cpp "$LINENO"; then :
3874 # Broken: success on invalid input.
3877 # Passes both tests.
3881 rm -f conftest.err conftest.i conftest.$ac_ext
3884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3885 rm -f conftest.i conftest.err conftest.$ac_ext
3886 if $ac_preproc_ok; then :
3889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3892 See \`config.log' for more details" "$LINENO" 5; }
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3903 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3904 if ${ac_cv_path_GREP+:} false; then :
3905 $as_echo_n "(cached) " >&6
3907 if test -z "$GREP"; then
3908 ac_path_GREP_found=false
3909 # Loop through the user's path and test for each of PROGNAME-LIST
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3914 test -z "$as_dir" && as_dir=.
3915 for ac_prog in grep ggrep; do
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3918 as_fn_executable_p "$ac_path_GREP" || continue
3919 # Check for GNU ac_path_GREP and select it if it is found.
3920 # Check for GNU $ac_path_GREP
3921 case `"$ac_path_GREP" --version 2>&1` in
3923 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3926 $as_echo_n 0123456789 >"conftest.in"
3929 cat "conftest.in" "conftest.in" >"conftest.tmp"
3930 mv "conftest.tmp" "conftest.in"
3931 cp "conftest.in" "conftest.nl"
3932 $as_echo 'GREP' >> "conftest.nl"
3933 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3935 as_fn_arith $ac_count + 1 && ac_count=$as_val
3936 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3937 # Best one so far, save it but keep looking for a better one
3938 ac_cv_path_GREP="$ac_path_GREP"
3939 ac_path_GREP_max=$ac_count
3941 # 10*(2^10) chars as input seems more than enough
3942 test $ac_count -gt 10 && break
3944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3947 $ac_path_GREP_found && break 3
3952 if test -z "$ac_cv_path_GREP"; then
3953 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3956 ac_cv_path_GREP=$GREP
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3961 $as_echo "$ac_cv_path_GREP" >&6; }
3962 GREP="$ac_cv_path_GREP"
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3966 $as_echo_n "checking for egrep... " >&6; }
3967 if ${ac_cv_path_EGREP+:} false; then :
3968 $as_echo_n "(cached) " >&6
3970 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3971 then ac_cv_path_EGREP="$GREP -E"
3973 if test -z "$EGREP"; then
3974 ac_path_EGREP_found=false
3975 # Loop through the user's path and test for each of PROGNAME-LIST
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3980 test -z "$as_dir" && as_dir=.
3981 for ac_prog in egrep; do
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3984 as_fn_executable_p "$ac_path_EGREP" || continue
3985 # Check for GNU ac_path_EGREP and select it if it is found.
3986 # Check for GNU $ac_path_EGREP
3987 case `"$ac_path_EGREP" --version 2>&1` in
3989 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3992 $as_echo_n 0123456789 >"conftest.in"
3995 cat "conftest.in" "conftest.in" >"conftest.tmp"
3996 mv "conftest.tmp" "conftest.in"
3997 cp "conftest.in" "conftest.nl"
3998 $as_echo 'EGREP' >> "conftest.nl"
3999 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4000 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4001 as_fn_arith $ac_count + 1 && ac_count=$as_val
4002 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4003 # Best one so far, save it but keep looking for a better one
4004 ac_cv_path_EGREP="$ac_path_EGREP"
4005 ac_path_EGREP_max=$ac_count
4007 # 10*(2^10) chars as input seems more than enough
4008 test $ac_count -gt 10 && break
4010 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013 $ac_path_EGREP_found && break 3
4018 if test -z "$ac_cv_path_EGREP"; then
4019 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4022 ac_cv_path_EGREP=$EGREP
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4028 $as_echo "$ac_cv_path_EGREP" >&6; }
4029 EGREP="$ac_cv_path_EGREP"
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4033 $as_echo_n "checking for ANSI C header files... " >&6; }
4034 if ${ac_cv_header_stdc+:} false; then :
4035 $as_echo_n "(cached) " >&6
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4052 if ac_fn_c_try_compile "$LINENO"; then :
4053 ac_cv_header_stdc=yes
4055 ac_cv_header_stdc=no
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 if test $ac_cv_header_stdc = yes; then
4060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4067 $EGREP "memchr" >/dev/null 2>&1; then :
4070 ac_cv_header_stdc=no
4076 if test $ac_cv_header_stdc = yes; then
4077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4084 $EGREP "free" >/dev/null 2>&1; then :
4087 ac_cv_header_stdc=no
4093 if test $ac_cv_header_stdc = yes; then
4094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4095 if test "$cross_compiling" = yes; then :
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4102 #if ((' ' & 0x0FF) == 0x020)
4103 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4104 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4106 # define ISLOWER(c) \
4107 (('a' <= (c) && (c) <= 'i') \
4108 || ('j' <= (c) && (c) <= 'r') \
4109 || ('s' <= (c) && (c) <= 'z'))
4110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4118 for (i = 0; i < 256; i++)
4119 if (XOR (islower (i), ISLOWER (i))
4120 || toupper (i) != TOUPPER (i))
4125 if ac_fn_c_try_run "$LINENO"; then :
4128 ac_cv_header_stdc=no
4130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4131 conftest.$ac_objext conftest.beam conftest.$ac_ext
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4137 $as_echo "$ac_cv_header_stdc" >&6; }
4138 if test $ac_cv_header_stdc = yes; then
4140 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4144 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4145 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4146 inttypes.h stdint.h unistd.h
4148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4149 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4151 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4152 cat >>confdefs.h <<_ACEOF
4153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4162 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4163 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4170 if test "$MINIX" = yes; then
4172 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4175 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4178 $as_echo "#define _MINIX 1" >>confdefs.h
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4184 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4185 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4186 $as_echo_n "(cached) " >&6
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4191 # define __EXTENSIONS__ 1
4192 $ac_includes_default
4201 if ac_fn_c_try_compile "$LINENO"; then :
4202 ac_cv_safe_to_define___extensions__=yes
4204 ac_cv_safe_to_define___extensions__=no
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4209 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4210 test $ac_cv_safe_to_define___extensions__ = yes &&
4211 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4213 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4215 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4217 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4219 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4222 if test "$ac_cv_header_minix_config_h" = "yes"; then
4224 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4233 case "$exec_prefix" in
4235 exec_prefix="$prefix"
4240 if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes"
4242 if echo $host | grep mingw >/dev/null; then on_mingw="yes"
4243 else on_mingw="no"; fi
4247 # Determine configuration file
4248 # the eval is to evaluate shell expansion twice
4249 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4251 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4253 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4255 if test $on_mingw = "no"; then
4256 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4258 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4261 # Check whether --with-conf_file was given.
4262 if test "${with_conf_file+set}" = set; then :
4263 withval=$with_conf_file; ub_conf_file="$withval"
4267 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4270 cat >>confdefs.h <<_ACEOF
4271 #define CONFIGFILE "$hdr_config"
4274 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4275 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4276 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4277 X"$ub_conf_file" : 'X\(//\)$' \| \
4278 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4279 $as_echo X"$ub_conf_file" |
4280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4299 # Determine run, chroot directory and pidfile locations
4301 # Check whether --with-run-dir was given.
4302 if test "${with_run_dir+set}" = set; then :
4303 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4305 if test $on_mingw = no; then
4306 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4314 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4317 cat >>confdefs.h <<_ACEOF
4318 #define RUN_DIR "$hdr_run"
4323 # Check whether --with-chroot-dir was given.
4324 if test "${with_chroot_dir+set}" = set; then :
4325 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4327 if test $on_mingw = no; then
4328 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4330 UNBOUND_CHROOT_DIR=""
4336 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4339 cat >>confdefs.h <<_ACEOF
4340 #define CHROOT_DIR "$hdr_chroot"
4345 # Check whether --with-share-dir was given.
4346 if test "${with_share_dir+set}" = set; then :
4347 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4349 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4354 cat >>confdefs.h <<_ACEOF
4355 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4360 # Check whether --with-pidfile was given.
4361 if test "${with_pidfile+set}" = set; then :
4362 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4364 if test $on_mingw = no; then
4365 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4373 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4376 cat >>confdefs.h <<_ACEOF
4377 #define PIDFILE "$hdr_pid"
4382 # Check whether --with-rootkey-file was given.
4383 if test "${with_rootkey_file+set}" = set; then :
4384 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4386 if test $on_mingw = no; then
4387 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4389 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4395 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4398 cat >>confdefs.h <<_ACEOF
4399 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4404 # Check whether --with-rootcert-file was given.
4405 if test "${with_rootcert_file+set}" = set; then :
4406 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4408 if test $on_mingw = no; then
4409 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4411 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4417 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4420 cat >>confdefs.h <<_ACEOF
4421 #define ROOT_CERT_FILE "$hdr_rpem"
4426 # Check whether --with-username was given.
4427 if test "${with_username+set}" = set; then :
4428 withval=$with_username; UNBOUND_USERNAME="$withval"
4430 UNBOUND_USERNAME="unbound"
4435 cat >>confdefs.h <<_ACEOF
4436 #define UB_USERNAME "$UNBOUND_USERNAME"
4441 $as_echo "#define WINVER 0x0502" >>confdefs.h
4443 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/' `
4446 cat >>confdefs.h <<_ACEOF
4447 #define RSRC_PACKAGE_VERSION $wnvs
4451 # Checks for typedefs, structures, and compiler characteristics.
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4453 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4454 if ${ac_cv_c_const+:} false; then :
4455 $as_echo_n "(cached) " >&6
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4465 /* Ultrix mips cc rejects this sort of thing. */
4466 typedef int charset[2];
4467 const charset cs = { 0, 0 };
4468 /* SunOS 4.1.1 cc rejects this. */
4469 char const *const *pcpcc;
4471 /* NEC SVR4.0.2 mips cc rejects this. */
4472 struct point {int x, y;};
4473 static struct point const zero = {0,0};
4474 /* AIX XL C 1.02.0.0 rejects this.
4475 It does not let you subtract one const X* pointer from another in
4476 an arm of an if-expression whose if-part is not a constant
4478 const char *g = "string";
4479 pcpcc = &g + (g ? g-g : 0);
4480 /* HPUX 7.0 cc rejects these. */
4482 ppc = (char**) pcpcc;
4483 pcpcc = (char const *const *) ppc;
4484 { /* SCO 3.2v4 cc rejects this sort of thing. */
4487 char const *s = 0 ? (char *) 0 : (char const *) 0;
4492 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4494 const int *foo = &x[0];
4497 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4498 typedef const int *iptr;
4502 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4503 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4504 struct s { int j; const int *ap[3]; } bx;
4505 struct s *b = &bx; b->j = 5;
4507 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4511 return !cs[0] && !zero.x;
4518 if ac_fn_c_try_compile "$LINENO"; then :
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4526 $as_echo "$ac_cv_c_const" >&6; }
4527 if test $ac_cv_c_const = no; then
4529 $as_echo "#define const /**/" >>confdefs.h
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539 # allow user to override the -g -O2 flags.
4541 if test "x$CFLAGS" = "x" ; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4545 $as_echo_n "checking whether $CC supports -g... " >&6; }
4546 cache=`echo g | sed 'y%.=/+-%___p_%'`
4547 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4548 $as_echo_n "(cached) " >&6
4551 echo 'void f(void){}' >conftest.c
4552 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4553 eval "cv_prog_cc_flag_$cache=yes"
4555 eval "cv_prog_cc_flag_$cache=no"
4557 rm -f conftest conftest.o conftest.c
4561 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4563 $as_echo "yes" >&6; }
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4576 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4577 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4578 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4579 $as_echo_n "(cached) " >&6
4582 echo 'void f(void){}' >conftest.c
4583 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4584 eval "cv_prog_cc_flag_$cache=yes"
4586 eval "cv_prog_cc_flag_$cache=no"
4588 rm -f conftest conftest.o conftest.c
4592 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4594 $as_echo "yes" >&6; }
4596 CFLAGS="$CFLAGS -O2"
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611 if test -n "$ac_tool_prefix"; then
4612 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4613 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615 $as_echo_n "checking for $ac_word... " >&6; }
4616 if ${ac_cv_prog_CC+:} false; then :
4617 $as_echo_n "(cached) " >&6
4619 if test -n "$CC"; then
4620 ac_cv_prog_CC="$CC" # Let the user override the test.
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 if test -n "$CC"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4642 $as_echo "$CC" >&6; }
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4650 if test -z "$ac_cv_prog_CC"; then
4652 # Extract the first word of "gcc", so it can be a program name with args.
4653 set dummy gcc; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4657 $as_echo_n "(cached) " >&6
4659 if test -n "$ac_ct_CC"; then
4660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669 ac_cv_prog_ac_ct_CC="gcc"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4680 if test -n "$ac_ct_CC"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4682 $as_echo "$ac_ct_CC" >&6; }
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4688 if test "x$ac_ct_CC" = x; then
4691 case $cross_compiling:$ac_tool_warned in
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695 ac_tool_warned=yes ;;
4703 if test -z "$CC"; then
4704 if test -n "$ac_tool_prefix"; then
4705 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4706 set dummy ${ac_tool_prefix}cc; ac_word=$2
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if ${ac_cv_prog_CC+:} false; then :
4710 $as_echo_n "(cached) " >&6
4712 if test -n "$CC"; then
4713 ac_cv_prog_CC="$CC" # Let the user override the test.
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4722 ac_cv_prog_CC="${ac_tool_prefix}cc"
4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 if test -n "$CC"; then
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4735 $as_echo "$CC" >&6; }
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4744 if test -z "$CC"; then
4745 # Extract the first word of "cc", so it can be a program name with args.
4746 set dummy cc; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if ${ac_cv_prog_CC+:} false; then :
4750 $as_echo_n "(cached) " >&6
4752 if test -n "$CC"; then
4753 ac_cv_prog_CC="$CC" # Let the user override the test.
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4764 ac_prog_rejected=yes
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 if test $ac_prog_rejected = yes; then
4776 # We found a bogon in the path, so make sure we never use it.
4777 set dummy $ac_cv_prog_CC
4779 if test $# != 0; then
4780 # We chose a different compiler from the bogus one.
4781 # However, it has the same basename, so the bogon will be chosen
4782 # first if we set CC to just the basename; use the full file name.
4784 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
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; }
4800 if test -z "$CC"; then
4801 if test -n "$ac_tool_prefix"; then
4802 for ac_prog in cl.exe
4804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_prog_CC+:} false; then :
4809 $as_echo_n "(cached) " >&6
4811 if test -n "$CC"; then
4812 ac_cv_prog_CC="$CC" # Let the user override the test.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 if test -n "$CC"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4834 $as_echo "$CC" >&6; }
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4841 test -n "$CC" && break
4844 if test -z "$CC"; then
4846 for ac_prog in cl.exe
4848 # Extract the first word of "$ac_prog", so it can be a program name with args.
4849 set dummy $ac_prog; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4853 $as_echo_n "(cached) " >&6
4855 if test -n "$ac_ct_CC"; then
4856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_prog_ac_ct_CC="$ac_prog"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4876 if test -n "$ac_ct_CC"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4878 $as_echo "$ac_ct_CC" >&6; }
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4885 test -n "$ac_ct_CC" && break
4888 if test "x$ac_ct_CC" = x; then
4891 case $cross_compiling:$ac_tool_warned in
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4895 ac_tool_warned=yes ;;
4904 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4906 as_fn_error $? "no acceptable C compiler found in \$PATH
4907 See \`config.log' for more details" "$LINENO" 5; }
4909 # Provide some information about the compiler.
4910 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4913 for ac_option in --version -v -V -qversion; do
4914 { { ac_try="$ac_compiler $ac_option >&5"
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920 $as_echo "$ac_try_echo"; } >&5
4921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4923 if test -s conftest.err; then
4925 ... rest of stderr output deleted ...
4926 10q' conftest.err >conftest.er1
4927 cat conftest.er1 >&5
4929 rm -f conftest.er1 conftest.err
4930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931 test $ac_status = 0; }
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4935 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4936 if ${ac_cv_c_compiler_gnu+:} false; then :
4937 $as_echo_n "(cached) " >&6
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4953 if ac_fn_c_try_compile "$LINENO"; then :
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4963 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4964 if test $ac_compiler_gnu = yes; then
4969 ac_test_CFLAGS=${CFLAGS+set}
4970 ac_save_CFLAGS=$CFLAGS
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4972 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4973 if ${ac_cv_prog_cc_g+:} false; then :
4974 $as_echo_n "(cached) " >&6
4976 ac_save_c_werror_flag=$ac_c_werror_flag
4977 ac_c_werror_flag=yes
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4991 if ac_fn_c_try_compile "$LINENO"; then :
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
5006 if ac_fn_c_try_compile "$LINENO"; then :
5009 ac_c_werror_flag=$ac_save_c_werror_flag
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5022 if ac_fn_c_try_compile "$LINENO"; then :
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 ac_c_werror_flag=$ac_save_c_werror_flag
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5033 $as_echo "$ac_cv_prog_cc_g" >&6; }
5034 if test "$ac_test_CFLAGS" = set; then
5035 CFLAGS=$ac_save_CFLAGS
5036 elif test $ac_cv_prog_cc_g = yes; then
5037 if test "$GCC" = yes; then
5043 if test "$GCC" = yes; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5050 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5051 if ${ac_cv_prog_cc_c89+:} false; then :
5052 $as_echo_n "(cached) " >&6
5054 ac_cv_prog_cc_c89=no
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5061 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5062 struct buf { int x; };
5063 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5064 static char *e (p, i)
5070 static char *f (char * (*g) (char **, int), char **p, ...)
5075 s = g (p, va_arg (v,int));
5080 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5081 function prototypes and stuff, but not '\xHH' hex character constants.
5082 These don't provoke an error unfortunately, instead are silently treated
5083 as 'x'. The following induces an error, until -std is added to get
5084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5085 array size at least. It's necessary to write '\x00'==0 to get something
5086 that's true only with -std. */
5087 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5089 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5090 inside strings and character constants. */
5092 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5094 int test (int i, double x);
5095 struct s1 {int (*f) (int a);};
5096 struct s2 {int (*f) (double a);};
5097 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5103 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5108 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5109 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5111 CC="$ac_save_CC $ac_arg"
5112 if ac_fn_c_try_compile "$LINENO"; then :
5113 ac_cv_prog_cc_c89=$ac_arg
5115 rm -f core conftest.err conftest.$ac_objext
5116 test "x$ac_cv_prog_cc_c89" != "xno" && break
5118 rm -f conftest.$ac_ext
5123 case "x$ac_cv_prog_cc_c89" in
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5126 $as_echo "none needed" >&6; } ;;
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5129 $as_echo "unsupported" >&6; } ;;
5131 CC="$CC $ac_cv_prog_cc_c89"
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5133 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5135 if test "x$ac_cv_prog_cc_c89" != xno; then :
5140 ac_cpp='$CPP $CPPFLAGS'
5141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5147 $as_echo_n "checking $CC dependency flag... " >&6; }
5148 echo 'void f(){}' >conftest.c
5149 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5152 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5155 DEPFLAG="-MM" # dunno do something
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5159 $as_echo "$DEPFLAG" >&6; }
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5167 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
5168 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5169 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5170 $as_echo_n "(cached) " >&6
5173 echo 'void f(void){}' >conftest.c
5174 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5175 eval "cv_prog_cc_flag_$cache=yes"
5177 eval "cv_prog_cc_flag_$cache=no"
5179 rm -f conftest conftest.o conftest.c
5183 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5185 $as_echo "yes" >&6; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5198 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5199 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5200 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5201 $as_echo_n "(cached) " >&6
5204 echo 'void f(void){}' >conftest.c
5205 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5206 eval "cv_prog_cc_flag_$cache=yes"
5208 eval "cv_prog_cc_flag_$cache=no"
5210 rm -f conftest conftest.o conftest.c
5214 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5216 $as_echo "yes" >&6; }
5218 ERRFLAG="$ERRFLAG -Wall"
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5223 ERRFLAG="$ERRFLAG -errfmt"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5231 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5232 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5233 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5234 $as_echo_n "(cached) " >&6
5237 echo 'void f(void){}' >conftest.c
5238 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5239 eval "cv_prog_cc_flag_$cache=yes"
5241 eval "cv_prog_cc_flag_$cache=no"
5243 rm -f conftest conftest.o conftest.c
5247 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5249 $as_echo "yes" >&6; }
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5262 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5263 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5264 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5265 $as_echo_n "(cached) " >&6
5268 echo 'void f(void){}' >conftest.c
5269 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5270 eval "cv_prog_cc_flag_$cache=yes"
5272 eval "cv_prog_cc_flag_$cache=no"
5274 rm -f conftest conftest.o conftest.c
5278 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5280 $as_echo "yes" >&6; }
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5291 for ac_header in getopt.h time.h
5293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5296 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5297 cat >>confdefs.h <<_ACEOF
5298 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5309 { $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
5310 $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; }
5311 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`
5312 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5313 $as_echo_n "(cached) " >&6
5317 #include "confdefs.h"
5320 #include <sys/time.h>
5326 #ifdef HAVE_GETOPT_H
5337 const char* str = NULL;
5339 msg.msg_control = 0;
5340 t = ctime_r(&time, buf);
5343 a = getopt(2, opts, "a");
5345 str = gai_strerror(0);
5346 if(str && t && tv.tv_usec && msg.msg_control)
5351 echo 'void f(){}' >>conftest.c
5352 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5353 eval "cv_prog_cc_flag_needed_$cache=no"
5356 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
5357 eval "cv_prog_cc_flag_needed_$cache=yes"
5359 eval "cv_prog_cc_flag_needed_$cache=fail"
5360 #echo 'Test with flag fails too!'
5362 #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"
5363 #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`
5368 rm -f conftest conftest.c conftest.o
5372 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5374 $as_echo "yes" >&6; }
5376 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"
5378 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5381 #echo 'Test with flag is no!'
5383 #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"
5384 #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`
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5390 $as_echo "failed" >&6; }
5400 { $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
5401 $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; }
5402 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`
5403 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5404 $as_echo_n "(cached) " >&6
5408 #include "confdefs.h"
5411 #include <sys/time.h>
5417 #ifdef HAVE_GETOPT_H
5428 const char* str = NULL;
5430 msg.msg_control = 0;
5431 t = ctime_r(&time, buf);
5434 a = getopt(2, opts, "a");
5436 str = gai_strerror(0);
5437 if(str && t && tv.tv_usec && msg.msg_control)
5442 echo 'void f(){}' >>conftest.c
5443 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5444 eval "cv_prog_cc_flag_needed_$cache=no"
5447 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
5448 eval "cv_prog_cc_flag_needed_$cache=yes"
5450 eval "cv_prog_cc_flag_needed_$cache=fail"
5451 #echo 'Test with flag fails too!'
5453 #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"
5454 #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`
5459 rm -f conftest conftest.c conftest.o
5463 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5465 $as_echo "yes" >&6; }
5467 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5469 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5472 #echo 'Test with flag is no!'
5474 #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"
5475 #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`
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5481 $as_echo "failed" >&6; }
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5492 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5493 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5494 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5495 $as_echo_n "(cached) " >&6
5499 #include <stdbool.h>
5506 echo 'void f(){}' >>conftest.c
5507 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5508 eval "cv_prog_cc_flag_needed_$cache=no"
5511 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5512 eval "cv_prog_cc_flag_needed_$cache=yes"
5514 eval "cv_prog_cc_flag_needed_$cache=fail"
5515 #echo 'Test with flag fails too!'
5517 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5518 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5523 rm -f conftest conftest.c conftest.o
5527 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5529 $as_echo "yes" >&6; }
5531 CFLAGS="$CFLAGS $C99FLAG"
5533 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5536 #echo 'Test with flag is no!'
5538 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5539 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5545 $as_echo "failed" >&6; }
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5556 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5557 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5558 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5559 $as_echo_n "(cached) " >&6
5571 echo 'void f(){}' >>conftest.c
5572 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5573 eval "cv_prog_cc_flag_needed_$cache=no"
5576 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5577 eval "cv_prog_cc_flag_needed_$cache=yes"
5579 eval "cv_prog_cc_flag_needed_$cache=fail"
5580 #echo 'Test with flag fails too!'
5582 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5583 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5588 rm -f conftest conftest.c conftest.o
5592 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5594 $as_echo "yes" >&6; }
5596 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5598 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 #echo 'Test with flag is no!'
5603 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5604 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5610 $as_echo "failed" >&6; }
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5621 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5623 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5624 $as_echo_n "(cached) " >&6
5628 #include <netinet/in.h>
5631 struct in6_pktinfo inf;
5632 int a = (int)sizeof(inf);
5636 echo 'void f(){}' >>conftest.c
5637 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5638 eval "cv_prog_cc_flag_needed_$cache=no"
5641 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5642 eval "cv_prog_cc_flag_needed_$cache=yes"
5644 eval "cv_prog_cc_flag_needed_$cache=fail"
5645 #echo 'Test with flag fails too!'
5647 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5648 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5653 rm -f conftest conftest.c conftest.o
5657 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5659 $as_echo "yes" >&6; }
5661 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5663 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5666 #echo 'Test with flag is no!'
5668 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5669 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5675 $as_echo "failed" >&6; }
5682 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5683 # is not available at all. -D_FRSRESGID is to make this check unique.
5684 # otherwise we would get the previous cached result.
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5689 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5690 cache=_D_GNU_SOURCE__D_FRSRESGID
5691 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5692 $as_echo_n "(cached) " >&6
5699 int a = setresgid(0,0,0);
5700 a = setresuid(0,0,0);
5704 echo 'void f(){}' >>conftest.c
5705 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5706 eval "cv_prog_cc_flag_needed_$cache=no"
5709 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5710 eval "cv_prog_cc_flag_needed_$cache=yes"
5712 eval "cv_prog_cc_flag_needed_$cache=fail"
5713 #echo 'Test with flag fails too!'
5715 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5716 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5721 rm -f conftest conftest.c conftest.o
5725 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5727 $as_echo "yes" >&6; }
5729 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5731 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 #echo 'Test with flag is no!'
5736 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5737 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5743 $as_echo "failed" >&6; }
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5754 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5755 cache=_D_POSIX_C_SOURCE_200112
5756 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5757 $as_echo_n "(cached) " >&6
5761 #include "confdefs.h"
5772 const char* str = NULL;
5773 t = ctime_r(&time, buf);
5774 str = gai_strerror(0);
5780 echo 'void f(){}' >>conftest.c
5781 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5782 eval "cv_prog_cc_flag_needed_$cache=no"
5785 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5786 eval "cv_prog_cc_flag_needed_$cache=yes"
5788 eval "cv_prog_cc_flag_needed_$cache=fail"
5789 #echo 'Test with flag fails too!'
5791 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5792 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5797 rm -f conftest conftest.c conftest.o
5801 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5803 $as_echo "yes" >&6; }
5805 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5807 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5810 #echo 'Test with flag is no!'
5812 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5813 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5819 $as_echo "failed" >&6; }
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5830 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5831 cache=_D__EXTENSIONS__
5832 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5833 $as_echo_n "(cached) " >&6
5837 #include "confdefs.h"
5840 #include <sys/time.h>
5845 #ifdef HAVE_GETOPT_H
5855 a = getopt(2, opts, "a");
5862 echo 'void f(){}' >>conftest.c
5863 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5864 eval "cv_prog_cc_flag_needed_$cache=no"
5867 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5868 eval "cv_prog_cc_flag_needed_$cache=yes"
5870 eval "cv_prog_cc_flag_needed_$cache=fail"
5871 #echo 'Test with flag fails too!'
5873 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5874 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5879 rm -f conftest conftest.c conftest.o
5883 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5885 $as_echo "yes" >&6; }
5887 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5889 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5892 #echo 'Test with flag is no!'
5894 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5895 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5901 $as_echo "failed" >&6; }
5910 # debug mode flags warnings
5911 # Check whether --enable-checking was given.
5912 if test "${enable_checking+set}" = set; then :
5913 enableval=$enable_checking;
5916 # Check whether --enable-debug was given.
5917 if test "${enable_debug+set}" = set; then :
5918 enableval=$enable_debug;
5921 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5922 else debug_enabled="$enable_checking"; fi
5924 case "$debug_enabled" in
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5929 $as_echo_n "checking whether $CC supports -W... " >&6; }
5930 cache=`echo W | sed 'y%.=/+-%___p_%'`
5931 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5932 $as_echo_n "(cached) " >&6
5935 echo 'void f(void){}' >conftest.c
5936 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5937 eval "cv_prog_cc_flag_$cache=yes"
5939 eval "cv_prog_cc_flag_$cache=no"
5941 rm -f conftest conftest.o conftest.c
5945 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5947 $as_echo "yes" >&6; }
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5960 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5961 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5962 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5963 $as_echo_n "(cached) " >&6
5966 echo 'void f(void){}' >conftest.c
5967 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5968 eval "cv_prog_cc_flag_$cache=yes"
5970 eval "cv_prog_cc_flag_$cache=no"
5972 rm -f conftest conftest.o conftest.c
5976 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5978 $as_echo "yes" >&6; }
5980 CFLAGS="$CFLAGS -Wall"
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5991 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5992 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5993 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5994 $as_echo_n "(cached) " >&6
5997 echo 'void f(void){}' >conftest.c
5998 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5999 eval "cv_prog_cc_flag_$cache=yes"
6001 eval "cv_prog_cc_flag_$cache=no"
6003 rm -f conftest conftest.o conftest.c
6007 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6009 $as_echo "yes" >&6; }
6011 CFLAGS="$CFLAGS -Wextra"
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
6022 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
6023 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
6024 if eval \${cv_prog_cc_flag_$cache+:} false; then :
6025 $as_echo_n "(cached) " >&6
6028 echo 'void f(void){}' >conftest.c
6029 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
6030 eval "cv_prog_cc_flag_$cache=yes"
6032 eval "cv_prog_cc_flag_$cache=no"
6034 rm -f conftest conftest.o conftest.c
6038 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6040 $as_echo "yes" >&6; }
6042 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }
6051 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
6058 if test "$default_cflags" = "yes"; then
6059 # only when CFLAGS was "" at the start, if the users wants to
6060 # override we shouldn't add default cflags, because they wouldn't
6061 # be able to turn off these options and set the CFLAGS wanted.
6063 # Check whether --enable-flto was given.
6064 if test "${enable_flto+set}" = set; then :
6065 enableval=$enable_flto;
6068 if test "x$enable_flto" != "xno"; then :
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
6071 $as_echo_n "checking if $CC supports -flto... " >&6; }
6073 CFLAGS="$CFLAGS -flto"
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6085 if ac_fn_c_try_link "$LINENO"; then :
6087 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090 $as_echo "no" >&6; }
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6093 $as_echo "yes" >&6; }
6095 rm -f conftest conftest.c conftest.o
6098 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6101 rm -f core conftest.err conftest.$ac_objext \
6102 conftest$ac_exeext conftest.$ac_ext
6107 # Check whether --enable-pie was given.
6108 if test "${enable_pie+set}" = set; then :
6109 enableval=$enable_pie;
6112 if test "x$enable_pie" = "xyes"; then :
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
6115 $as_echo_n "checking if $CC supports PIE... " >&6; }
6116 BAKLDFLAGS="$LDFLAGS"
6118 LDFLAGS="$LDFLAGS -pie"
6119 CFLAGS="$CFLAGS -fPIE"
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6131 if ac_fn_c_try_link "$LINENO"; then :
6133 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6134 LDFLAGS="$BAKLDFLAGS"
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6139 $as_echo "yes" >&6; }
6141 rm -f conftest conftest.c conftest.o
6144 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6147 rm -f core conftest.err conftest.$ac_objext \
6148 conftest$ac_exeext conftest.$ac_ext
6153 # Check whether --enable-relro_now was given.
6154 if test "${enable_relro_now+set}" = set; then :
6155 enableval=$enable_relro_now;
6158 if test "x$enable_relro_now" = "xyes"; then :
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6161 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6162 BAKLDFLAGS="$LDFLAGS"
6163 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6175 if ac_fn_c_try_link "$LINENO"; then :
6177 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6178 LDFLAGS="$BAKLDFLAGS"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6183 $as_echo "yes" >&6; }
6185 rm -f conftest conftest.c conftest.o
6188 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189 $as_echo "no" >&6; }
6191 rm -f core conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6199 $as_echo_n "checking for inline... " >&6; }
6200 if ${ac_cv_c_inline+:} false; then :
6201 $as_echo_n "(cached) " >&6
6204 for ac_kw in inline __inline__ __inline; do
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6209 static $ac_kw foo_t static_foo () {return 0; }
6210 $ac_kw foo_t foo () {return 0; }
6214 if ac_fn_c_try_compile "$LINENO"; then :
6215 ac_cv_c_inline=$ac_kw
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 test "$ac_cv_c_inline" != no && break
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6223 $as_echo "$ac_cv_c_inline" >&6; }
6225 case $ac_cv_c_inline in
6228 case $ac_cv_c_inline in
6230 *) ac_val=$ac_cv_c_inline;;
6232 cat >>confdefs.h <<_ACEOF
6234 #define inline $ac_val
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6242 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6243 if ${ac_cv_c_format_attribute+:} false; then :
6244 $as_echo_n "(cached) " >&6
6246 ac_cv_c_format_attribute=no
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6250 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6251 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6263 if ac_fn_c_try_compile "$LINENO"; then :
6264 ac_cv_c_format_attribute="yes"
6266 ac_cv_c_format_attribute="no"
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6274 $as_echo "$ac_cv_c_format_attribute" >&6; }
6275 if test $ac_cv_c_format_attribute = yes; then
6277 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6283 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6284 if ${ac_cv_c_unused_attribute+:} false; then :
6285 $as_echo_n "(cached) " >&6
6287 ac_cv_c_unused_attribute=no
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6291 void f (char *u __attribute__((unused)));
6303 if ac_fn_c_try_compile "$LINENO"; then :
6304 ac_cv_c_unused_attribute="yes"
6306 ac_cv_c_unused_attribute="no"
6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6316 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6317 if test $ac_cv_c_unused_attribute = yes; then
6319 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6327 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6328 if ${ac_cv_c_weak_attribute+:} false; then :
6329 $as_echo_n "(cached) " >&6
6331 ac_cv_c_weak_attribute=no
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6335 __attribute__((weak)) void f(int x) { printf("%d", x); }
6347 if ac_fn_c_try_compile "$LINENO"; then :
6348 ac_cv_c_weak_attribute="yes"
6350 ac_cv_c_weak_attribute="no"
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6358 $as_echo "$ac_cv_c_weak_attribute" >&6; }
6359 if test $ac_cv_c_weak_attribute = yes; then
6361 $as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6364 $as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6372 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6373 if ${ac_cv_c_noreturn_attribute+:} false; then :
6374 $as_echo_n "(cached) " >&6
6376 ac_cv_c_noreturn_attribute=no
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6380 __attribute__((noreturn)) void f(int x) { printf("%d", x); }
6392 if ac_fn_c_try_compile "$LINENO"; then :
6393 ac_cv_c_noreturn_attribute="yes"
6395 ac_cv_c_noreturn_attribute="no"
6397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
6403 $as_echo "$ac_cv_c_noreturn_attribute" >&6; }
6404 if test $ac_cv_c_noreturn_attribute = yes; then
6406 $as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
6409 $as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
6414 if test "$srcdir" != "."; then
6415 CPPFLAGS="$CPPFLAGS -I$srcdir"
6422 for ac_prog in flex lex
6424 # Extract the first word of "$ac_prog", so it can be a program name with args.
6425 set dummy $ac_prog; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if ${ac_cv_prog_LEX+:} false; then :
6429 $as_echo_n "(cached) " >&6
6431 if test -n "$LEX"; then
6432 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441 ac_cv_prog_LEX="$ac_prog"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 if test -n "$LEX"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6454 $as_echo "$LEX" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6461 test -n "$LEX" && break
6463 test -n "$LEX" || LEX=":"
6465 if test "x$LEX" != "x:"; then
6466 cat >conftest.l <<_ACEOF
6472 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6473 yyless ((input () != 0)); }
6474 f { unput (yytext[0]); }
6475 . { BEGIN INITIAL; }
6477 #ifdef YYTEXT_POINTER
6478 extern char *yytext;
6483 return ! yylex () + ! yywrap ();
6486 { { ac_try="$LEX conftest.l"
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6492 $as_echo "$ac_try_echo"; } >&5
6493 (eval "$LEX conftest.l") 2>&5
6495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6496 test $ac_status = 0; }
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6498 $as_echo_n "checking lex output file root... " >&6; }
6499 if ${ac_cv_prog_lex_root+:} false; then :
6500 $as_echo_n "(cached) " >&6
6503 if test -f lex.yy.c; then
6504 ac_cv_prog_lex_root=lex.yy
6505 elif test -f lexyy.c; then
6506 ac_cv_prog_lex_root=lexyy
6508 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6512 $as_echo "$ac_cv_prog_lex_root" >&6; }
6513 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6515 if test -z "${LEXLIB+set}"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6517 $as_echo_n "checking lex library... " >&6; }
6518 if ${ac_cv_lib_lex+:} false; then :
6519 $as_echo_n "(cached) " >&6
6523 ac_cv_lib_lex='none needed'
6524 for ac_lib in '' -lfl -ll; do
6525 LIBS="$ac_lib $ac_save_LIBS"
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6528 `cat $LEX_OUTPUT_ROOT.c`
6530 if ac_fn_c_try_link "$LINENO"; then :
6531 ac_cv_lib_lex=$ac_lib
6533 rm -f core conftest.err conftest.$ac_objext \
6534 conftest$ac_exeext conftest.$ac_ext
6535 test "$ac_cv_lib_lex" != 'none needed' && break
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6541 $as_echo "$ac_cv_lib_lex" >&6; }
6542 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6547 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6548 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6549 $as_echo_n "(cached) " >&6
6551 # POSIX says lex can declare yytext either as a pointer or an array; the
6552 # default is implementation-dependent. Figure out which it is, since
6553 # not all implementations provide the %pointer and %array declarations.
6554 ac_cv_prog_lex_yytext_pointer=no
6556 LIBS="$LEXLIB $ac_save_LIBS"
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6560 #define YYTEXT_POINTER 1
6561 `cat $LEX_OUTPUT_ROOT.c`
6563 if ac_fn_c_try_link "$LINENO"; then :
6564 ac_cv_prog_lex_yytext_pointer=yes
6566 rm -f core conftest.err conftest.$ac_objext \
6567 conftest$ac_exeext conftest.$ac_ext
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6572 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6573 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6575 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6578 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6581 if test "$LEX" != "" -a "$LEX" != ":"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6584 $as_echo_n "checking for yylex_destroy... " >&6; }
6585 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6587 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6590 $as_echo "yes" >&6; }
6591 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; };
6597 if test "$LEX" != "" -a "$LEX" != ":"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
6600 $as_echo_n "checking for lex %option... " >&6; }
6601 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6606 $as_echo "yes" >&6; }
6607 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; };
6613 for ac_prog in 'bison -y' byacc
6615 # Extract the first word of "$ac_prog", so it can be a program name with args.
6616 set dummy $ac_prog; ac_word=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if ${ac_cv_prog_YACC+:} false; then :
6620 $as_echo_n "(cached) " >&6
6622 if test -n "$YACC"; then
6623 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632 ac_cv_prog_YACC="$ac_prog"
6633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 YACC=$ac_cv_prog_YACC
6643 if test -n "$YACC"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6645 $as_echo "$YACC" >&6; }
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6652 test -n "$YACC" && break
6654 test -n "$YACC" || YACC="yacc"
6656 # Extract the first word of "doxygen", so it can be a program name with args.
6657 set dummy doxygen; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if ${ac_cv_prog_doxygen+:} false; then :
6661 $as_echo_n "(cached) " >&6
6663 if test -n "$doxygen"; then
6664 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673 ac_cv_prog_doxygen="doxygen"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 doxygen=$ac_cv_prog_doxygen
6684 if test -n "$doxygen"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6686 $as_echo "$doxygen" >&6; }
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6693 if test -n "$ac_tool_prefix"; then
6694 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6695 set dummy ${ac_tool_prefix}strip; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_STRIP+:} false; then :
6699 $as_echo_n "(cached) " >&6
6701 if test -n "$STRIP"; then
6702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 STRIP=$ac_cv_prog_STRIP
6722 if test -n "$STRIP"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6724 $as_echo "$STRIP" >&6; }
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6732 if test -z "$ac_cv_prog_STRIP"; then
6734 # Extract the first word of "strip", so it can be a program name with args.
6735 set dummy strip; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6739 $as_echo_n "(cached) " >&6
6741 if test -n "$ac_ct_STRIP"; then
6742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_ac_ct_STRIP="strip"
6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6762 if test -n "$ac_ct_STRIP"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6764 $as_echo "$ac_ct_STRIP" >&6; }
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6770 if test "x$ac_ct_STRIP" = x; then
6773 case $cross_compiling:$ac_tool_warned in
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6777 ac_tool_warned=yes ;;
6782 STRIP="$ac_cv_prog_STRIP"
6786 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6787 if test -f "$ac_dir/install-sh"; then
6789 ac_install_sh="$ac_aux_dir/install-sh -c"
6791 elif test -f "$ac_dir/install.sh"; then
6793 ac_install_sh="$ac_aux_dir/install.sh -c"
6795 elif test -f "$ac_dir/shtool"; then
6797 ac_install_sh="$ac_aux_dir/shtool install -c"
6801 if test -z "$ac_aux_dir"; then
6802 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6805 # These three variables are undocumented and unsupported,
6806 # and are intended to be withdrawn in a future Autoconf release.
6807 # They can cause serious problems if a builder's source tree is in a directory
6808 # whose full name contains unusual characters.
6809 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6810 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6811 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6814 # Make sure we can run config.sub.
6815 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6816 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6819 $as_echo_n "checking build system type... " >&6; }
6820 if ${ac_cv_build+:} false; then :
6821 $as_echo_n "(cached) " >&6
6823 ac_build_alias=$build_alias
6824 test "x$ac_build_alias" = x &&
6825 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6826 test "x$ac_build_alias" = x &&
6827 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6828 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6829 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6833 $as_echo "$ac_cv_build" >&6; }
6834 case $ac_cv_build in
6836 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6839 ac_save_IFS=$IFS; IFS='-'
6845 # Remember, the first character of IFS is used to create $*,
6846 # except with old shells:
6849 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6853 $as_echo_n "checking host system type... " >&6; }
6854 if ${ac_cv_host+:} false; then :
6855 $as_echo_n "(cached) " >&6
6857 if test "x$host_alias" = x; then
6858 ac_cv_host=$ac_cv_build
6860 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6861 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6866 $as_echo "$ac_cv_host" >&6; }
6869 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6872 ac_save_IFS=$IFS; IFS='-'
6878 # Remember, the first character of IFS is used to create $*,
6879 # except with old shells:
6882 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6886 # skip these tests, we do not need them.
6895 # always use ./libtool unless override from commandline (libtool=mylibtool)
6896 if test -z "$libtool"; then
6900 # avoid libtool max commandline length test on systems that fork slowly.
6902 if echo "$host_os" | grep "sunos4" >/dev/null; then
6903 lt_cv_sys_max_cmd_len=32750;
6905 if test -n "$ac_tool_prefix"; then
6906 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6907 set dummy ${ac_tool_prefix}ar; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_path_AR+:} false; then :
6911 $as_echo_n "(cached) " >&6
6915 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6925 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 if test -n "$AR"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6939 $as_echo "$AR" >&6; }
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6947 if test -z "$ac_cv_path_AR"; then
6949 # Extract the first word of "ar", so it can be a program name with args.
6950 set dummy ar; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_path_ac_pt_AR+:} false; then :
6954 $as_echo_n "(cached) " >&6
6958 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 ac_pt_AR=$ac_cv_path_ac_pt_AR
6980 if test -n "$ac_pt_AR"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6982 $as_echo "$ac_pt_AR" >&6; }
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6988 if test "x$ac_pt_AR" = x; then
6991 case $cross_compiling:$ac_tool_warned in
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995 ac_tool_warned=yes ;;
7003 if test $AR = false; then
7004 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7010 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7015 macro_version='2.4.6'
7016 macro_revision='2.4.6'
7030 ltmain=$ac_aux_dir/ltmain.sh
7032 # Backslashify metacharacters that are still active within
7033 # double-quoted strings.
7034 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7036 # Same as above, but do not quote variable references.
7037 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7039 # Sed substitution to delay expansion of an escaped shell variable in a
7040 # double_quote_subst'ed string.
7041 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7043 # Sed substitution to delay expansion of an escaped single quote.
7044 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7046 # Sed substitution to avoid accidental globbing in evaled expressions
7047 no_glob_subst='s/\*/\\\*/g'
7049 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7050 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7051 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7054 $as_echo_n "checking how to print strings... " >&6; }
7055 # Test print first, because it will be a builtin if present.
7056 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7057 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7059 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7062 # Use this function as a fallback that always works.
7063 func_fallback_echo ()
7065 eval 'cat <<_LTECHO_EOF
7069 ECHO='func_fallback_echo'
7072 # func_echo_all arg...
7073 # Invoke $ECHO with all args, space-separated.
7080 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7081 $as_echo "printf" >&6; } ;;
7082 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7083 $as_echo "print -r" >&6; } ;;
7084 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7085 $as_echo "cat" >&6; } ;;
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7102 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7103 if ${ac_cv_path_SED+:} false; then :
7104 $as_echo_n "(cached) " >&6
7106 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7107 for ac_i in 1 2 3 4 5 6 7; do
7108 ac_script="$ac_script$as_nl$ac_script"
7110 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7111 { ac_script=; unset ac_script;}
7112 if test -z "$SED"; then
7113 ac_path_SED_found=false
7114 # Loop through the user's path and test for each of PROGNAME-LIST
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 test -z "$as_dir" && as_dir=.
7120 for ac_prog in sed gsed; do
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7123 as_fn_executable_p "$ac_path_SED" || continue
7124 # Check for GNU ac_path_SED and select it if it is found.
7125 # Check for GNU $ac_path_SED
7126 case `"$ac_path_SED" --version 2>&1` in
7128 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7131 $as_echo_n 0123456789 >"conftest.in"
7134 cat "conftest.in" "conftest.in" >"conftest.tmp"
7135 mv "conftest.tmp" "conftest.in"
7136 cp "conftest.in" "conftest.nl"
7137 $as_echo '' >> "conftest.nl"
7138 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7140 as_fn_arith $ac_count + 1 && ac_count=$as_val
7141 if test $ac_count -gt ${ac_path_SED_max-0}; then
7142 # Best one so far, save it but keep looking for a better one
7143 ac_cv_path_SED="$ac_path_SED"
7144 ac_path_SED_max=$ac_count
7146 # 10*(2^10) chars as input seems more than enough
7147 test $ac_count -gt 10 && break
7149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7152 $ac_path_SED_found && break 3
7157 if test -z "$ac_cv_path_SED"; then
7158 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7166 $as_echo "$ac_cv_path_SED" >&6; }
7167 SED="$ac_cv_path_SED"
7170 test -z "$SED" && SED=sed
7171 Xsed="$SED -e 1s/^X//"
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7184 $as_echo_n "checking for fgrep... " >&6; }
7185 if ${ac_cv_path_FGREP+:} false; then :
7186 $as_echo_n "(cached) " >&6
7188 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7189 then ac_cv_path_FGREP="$GREP -F"
7191 if test -z "$FGREP"; then
7192 ac_path_FGREP_found=false
7193 # Loop through the user's path and test for each of PROGNAME-LIST
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7198 test -z "$as_dir" && as_dir=.
7199 for ac_prog in fgrep; do
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7202 as_fn_executable_p "$ac_path_FGREP" || continue
7203 # Check for GNU ac_path_FGREP and select it if it is found.
7204 # Check for GNU $ac_path_FGREP
7205 case `"$ac_path_FGREP" --version 2>&1` in
7207 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7210 $as_echo_n 0123456789 >"conftest.in"
7213 cat "conftest.in" "conftest.in" >"conftest.tmp"
7214 mv "conftest.tmp" "conftest.in"
7215 cp "conftest.in" "conftest.nl"
7216 $as_echo 'FGREP' >> "conftest.nl"
7217 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7219 as_fn_arith $ac_count + 1 && ac_count=$as_val
7220 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7221 # Best one so far, save it but keep looking for a better one
7222 ac_cv_path_FGREP="$ac_path_FGREP"
7223 ac_path_FGREP_max=$ac_count
7225 # 10*(2^10) chars as input seems more than enough
7226 test $ac_count -gt 10 && break
7228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7231 $ac_path_FGREP_found && break 3
7236 if test -z "$ac_cv_path_FGREP"; then
7237 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7240 ac_cv_path_FGREP=$FGREP
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7246 $as_echo "$ac_cv_path_FGREP" >&6; }
7247 FGREP="$ac_cv_path_FGREP"
7250 test -z "$GREP" && GREP=grep
7270 # Check whether --with-gnu-ld was given.
7271 if test "${with_gnu_ld+set}" = set; then :
7272 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7278 if test yes = "$GCC"; then
7279 # Check if gcc -print-prog-name=ld gives a path.
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7281 $as_echo_n "checking for ld used by $CC... " >&6; }
7284 # gcc leaves a trailing carriage return, which upsets mingw
7285 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7287 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7290 # Accept absolute paths.
7292 re_direlt='/[^/][^/]*/\.\./'
7293 # Canonicalize the pathname of ld
7294 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7295 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7296 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7298 test -z "$LD" && LD=$ac_prog
7301 # If it fails, then pretend we aren't using GCC.
7305 # If it is relative, then search for the first ld in PATH.
7309 elif test yes = "$with_gnu_ld"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7311 $as_echo_n "checking for GNU ld... " >&6; }
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7314 $as_echo_n "checking for non-GNU ld... " >&6; }
7316 if ${lt_cv_path_LD+:} false; then :
7317 $as_echo_n "(cached) " >&6
7319 if test -z "$LD"; then
7320 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7321 for ac_dir in $PATH; do
7323 test -z "$ac_dir" && ac_dir=.
7324 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7325 lt_cv_path_LD=$ac_dir/$ac_prog
7326 # Check to see if the program is GNU ld. I'd rather use --version,
7327 # but apparently some variants of GNU ld only accept -v.
7328 # Break only if it was the GNU/non-GNU ld that we prefer.
7329 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7330 *GNU* | *'with BFD'*)
7331 test no != "$with_gnu_ld" && break
7334 test yes != "$with_gnu_ld" && break
7341 lt_cv_path_LD=$LD # Let the user override the test with a path.
7346 if test -n "$LD"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7348 $as_echo "$LD" >&6; }
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7353 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7355 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7356 if ${lt_cv_prog_gnu_ld+:} false; then :
7357 $as_echo_n "(cached) " >&6
7359 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7360 case `$LD -v 2>&1 </dev/null` in
7361 *GNU* | *'with BFD'*)
7362 lt_cv_prog_gnu_ld=yes
7365 lt_cv_prog_gnu_ld=no
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7370 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7371 with_gnu_ld=$lt_cv_prog_gnu_ld
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7382 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7383 if ${lt_cv_path_NM+:} false; then :
7384 $as_echo_n "(cached) " >&6
7386 if test -n "$NM"; then
7387 # Let the user override the test.
7390 lt_nm_to_check=${ac_tool_prefix}nm
7391 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7392 lt_nm_to_check="$lt_nm_to_check nm"
7394 for lt_tmp_nm in $lt_nm_to_check; do
7395 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7396 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7398 test -z "$ac_dir" && ac_dir=.
7399 tmp_nm=$ac_dir/$lt_tmp_nm
7400 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7401 # Check to see if the nm accepts a BSD-compat flag.
7402 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7403 # nm: unknown option "B" ignored
7404 # Tru64's nm complains that /dev/null is an invalid object file
7405 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7407 mingw*) lt_bad_file=conftest.nm/nofile ;;
7408 *) lt_bad_file=/dev/null ;;
7410 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7411 *$lt_bad_file* | *'Invalid file or object type'*)
7412 lt_cv_path_NM="$tmp_nm -B"
7416 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7418 lt_cv_path_NM="$tmp_nm -p"
7422 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7423 continue # so that we can try to find one that supports BSD flags
7432 : ${lt_cv_path_NM=no}
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7436 $as_echo "$lt_cv_path_NM" >&6; }
7437 if test no != "$lt_cv_path_NM"; then
7440 # Didn't find any BSD compatible name lister, look for dumpbin.
7441 if test -n "$DUMPBIN"; then :
7442 # Let the user override the test.
7444 if test -n "$ac_tool_prefix"; then
7445 for ac_prog in dumpbin "link -dump"
7447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if ${ac_cv_prog_DUMPBIN+:} false; then :
7452 $as_echo_n "(cached) " >&6
7454 if test -n "$DUMPBIN"; then
7455 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 DUMPBIN=$ac_cv_prog_DUMPBIN
7475 if test -n "$DUMPBIN"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7477 $as_echo "$DUMPBIN" >&6; }
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7484 test -n "$DUMPBIN" && break
7487 if test -z "$DUMPBIN"; then
7488 ac_ct_DUMPBIN=$DUMPBIN
7489 for ac_prog in dumpbin "link -dump"
7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7496 $as_echo_n "(cached) " >&6
7498 if test -n "$ac_ct_DUMPBIN"; then
7499 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7519 if test -n "$ac_ct_DUMPBIN"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7521 $as_echo "$ac_ct_DUMPBIN" >&6; }
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7528 test -n "$ac_ct_DUMPBIN" && break
7531 if test "x$ac_ct_DUMPBIN" = x; then
7534 case $cross_compiling:$ac_tool_warned in
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7538 ac_tool_warned=yes ;;
7540 DUMPBIN=$ac_ct_DUMPBIN
7544 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7546 DUMPBIN="$DUMPBIN -symbols -headers"
7554 if test : != "$DUMPBIN"; then
7558 test -z "$NM" && NM=nm
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7566 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7567 if ${lt_cv_nm_interface+:} false; then :
7568 $as_echo_n "(cached) " >&6
7570 lt_cv_nm_interface="BSD nm"
7571 echo "int some_variable = 0;" > conftest.$ac_ext
7572 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7573 (eval "$ac_compile" 2>conftest.err)
7574 cat conftest.err >&5
7575 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7576 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7577 cat conftest.err >&5
7578 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7579 cat conftest.out >&5
7580 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7581 lt_cv_nm_interface="MS dumpbin"
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7586 $as_echo "$lt_cv_nm_interface" >&6; }
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7589 $as_echo_n "checking whether ln -s works... " >&6; }
7591 if test "$LN_S" = "ln -s"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7593 $as_echo "yes" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7596 $as_echo "no, using $LN_S" >&6; }
7599 # find the maximum length of command line arguments
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7601 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7602 if ${lt_cv_sys_max_cmd_len+:} false; then :
7603 $as_echo_n "(cached) " >&6
7610 # On DJGPP, this test can blow up pretty badly due to problems in libc
7611 # (any single argument exceeding 2000 bytes causes a buffer overrun
7612 # during glob expansion). Even if it were fixed, the result of this
7613 # check would be larger than it should be.
7614 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7618 # Under GNU Hurd, this test is not required because there is
7619 # no limit to the length of command line arguments.
7620 # Libtool will interpret -1 as no limit whatsoever
7621 lt_cv_sys_max_cmd_len=-1;
7624 cygwin* | mingw* | cegcc*)
7625 # On Win9x/ME, this test blows up -- it succeeds, but takes
7626 # about 5 minutes as the teststring grows exponentially.
7627 # Worse, since 9x/ME are not pre-emptively multitasking,
7628 # you end up with a "frozen" computer, even though with patience
7629 # the test eventually succeeds (with a max line length of 256k).
7630 # Instead, let's just punt: use the minimum linelength reported by
7631 # all of the supported platforms: 8192 (on NT/2K/XP).
7632 lt_cv_sys_max_cmd_len=8192;
7636 # On MiNT this can take a long time and run out of memory.
7637 lt_cv_sys_max_cmd_len=8192;
7641 # On AmigaOS with pdksh, this test takes hours, literally.
7642 # So we just punt and use a minimum line length of 8192.
7643 lt_cv_sys_max_cmd_len=8192;
7646 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7647 # This has been around since 386BSD, at least. Likely further.
7648 if test -x /sbin/sysctl; then
7649 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7650 elif test -x /usr/sbin/sysctl; then
7651 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7653 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7655 # And add a safety zone
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`
7661 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7662 lt_cv_sys_max_cmd_len=196608
7666 # The test takes a long time on OS/2.
7667 lt_cv_sys_max_cmd_len=8192
7671 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7672 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7673 # nice to cause kernel panics so lets avoid the loop below.
7674 # First set a reasonable default.
7675 lt_cv_sys_max_cmd_len=16384
7677 if test -x /sbin/sysconfig; then
7678 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7679 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7684 lt_cv_sys_max_cmd_len=102400
7686 sysv5* | sco5v6* | sysv4.2uw2*)
7687 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7688 if test -n "$kargmax"; then
7689 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7691 lt_cv_sys_max_cmd_len=32768
7695 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7696 if test -n "$lt_cv_sys_max_cmd_len" && \
7697 test undefined != "$lt_cv_sys_max_cmd_len"; then
7698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7701 # Make teststring a little bigger before we do anything with it.
7702 # a 1K string should be a reasonable start.
7703 for i in 1 2 3 4 5 6 7 8; do
7704 teststring=$teststring$teststring
7706 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7707 # If test is not a shell built-in, we'll probably end up computing a
7708 # maximum length that is only half of the actual maximum length, but
7710 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7711 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7712 test 17 != "$i" # 1/2 MB should be enough
7715 teststring=$teststring$teststring
7717 # Only check the string length outside the loop.
7718 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7720 # Add a significant safety factor because C++ compilers can tack on
7721 # massive amounts of additional arguments before passing them to the
7722 # linker. It appears as though 1/2 is a usable value.
7723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7730 if test -n "$lt_cv_sys_max_cmd_len"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7732 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7735 $as_echo "none" >&6; }
7737 max_cmd_len=$lt_cv_sys_max_cmd_len
7748 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7758 # test EBCDIC or ASCII
7759 case `echo X|tr X '\101'` in
7760 A) # ASCII based system
7761 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7762 lt_SP2NL='tr \040 \012'
7763 lt_NL2SP='tr \015\012 \040\040'
7765 *) # EBCDIC based system
7766 lt_SP2NL='tr \100 \n'
7767 lt_NL2SP='tr \r\n \100\100'
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7780 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7781 if ${lt_cv_to_host_file_cmd+:} false; then :
7782 $as_echo_n "(cached) " >&6
7787 *-*-mingw* ) # actually msys
7788 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7791 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7793 * ) # otherwise, assume *nix
7794 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7800 *-*-mingw* ) # actually msys
7801 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7804 lt_cv_to_host_file_cmd=func_convert_file_noop
7806 * ) # otherwise, assume *nix
7807 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7811 * ) # unhandled hosts (and "normal" native builds)
7812 lt_cv_to_host_file_cmd=func_convert_file_noop
7818 to_host_file_cmd=$lt_cv_to_host_file_cmd
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7820 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7827 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7828 if ${lt_cv_to_tool_file_cmd+:} false; then :
7829 $as_echo_n "(cached) " >&6
7831 #assume ordinary cross tools, or native build.
7832 lt_cv_to_tool_file_cmd=func_convert_file_noop
7836 *-*-mingw* ) # actually msys
7837 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7845 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7847 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7854 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7855 if ${lt_cv_ld_reload_flag+:} false; then :
7856 $as_echo_n "(cached) " >&6
7858 lt_cv_ld_reload_flag='-r'
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7861 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7862 reload_flag=$lt_cv_ld_reload_flag
7863 case $reload_flag in
7865 *) reload_flag=" $reload_flag" ;;
7867 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7869 cygwin* | mingw* | pw32* | cegcc*)
7870 if test yes != "$GCC"; then
7875 if test yes = "$GCC"; then
7876 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7878 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7891 if test -n "$ac_tool_prefix"; then
7892 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7893 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if ${ac_cv_prog_OBJDUMP+:} false; then :
7897 $as_echo_n "(cached) " >&6
7899 if test -n "$OBJDUMP"; then
7900 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 OBJDUMP=$ac_cv_prog_OBJDUMP
7920 if test -n "$OBJDUMP"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7922 $as_echo "$OBJDUMP" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7930 if test -z "$ac_cv_prog_OBJDUMP"; then
7931 ac_ct_OBJDUMP=$OBJDUMP
7932 # Extract the first word of "objdump", so it can be a program name with args.
7933 set dummy objdump; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7937 $as_echo_n "(cached) " >&6
7939 if test -n "$ac_ct_OBJDUMP"; then
7940 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7949 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7960 if test -n "$ac_ct_OBJDUMP"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7962 $as_echo "$ac_ct_OBJDUMP" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7968 if test "x$ac_ct_OBJDUMP" = x; then
7971 case $cross_compiling:$ac_tool_warned in
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7975 ac_tool_warned=yes ;;
7977 OBJDUMP=$ac_ct_OBJDUMP
7980 OBJDUMP="$ac_cv_prog_OBJDUMP"
7983 test -z "$OBJDUMP" && OBJDUMP=objdump
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7994 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7995 if ${lt_cv_deplibs_check_method+:} false; then :
7996 $as_echo_n "(cached) " >&6
7998 lt_cv_file_magic_cmd='$MAGIC_CMD'
7999 lt_cv_file_magic_test_file=
8000 lt_cv_deplibs_check_method='unknown'
8001 # Need to set the preceding variable on all platforms that support
8002 # interlibrary dependencies.
8003 # 'none' -- dependencies not supported.
8004 # 'unknown' -- same as none, but documents that we really don't know.
8005 # 'pass_all' -- all dependencies passed with no checks.
8006 # 'test_compile' -- check by making test program.
8007 # 'file_magic [[regex]]' -- check by looking for files in library path
8008 # that responds to the $file_magic_cmd with a given extended regex.
8009 # If you have 'file' or equivalent on your system and you're not sure
8010 # whether 'pass_all' will *always* work, you probably want this one.
8014 lt_cv_deplibs_check_method=pass_all
8018 lt_cv_deplibs_check_method=pass_all
8022 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8023 lt_cv_file_magic_cmd='/usr/bin/file -L'
8024 lt_cv_file_magic_test_file=/shlib/libc.so
8028 # func_win32_libid is a shell function defined in ltmain.sh
8029 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8030 lt_cv_file_magic_cmd='func_win32_libid'
8034 # Base MSYS/MinGW do not provide the 'file' command needed by
8035 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8036 # unless we find 'file', for example because we are cross-compiling.
8037 if ( file / ) >/dev/null 2>&1; then
8038 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8039 lt_cv_file_magic_cmd='func_win32_libid'
8041 # Keep this pattern in sync with the one in func_win32_libid.
8042 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8043 lt_cv_file_magic_cmd='$OBJDUMP -f'
8048 # use the weaker test based on 'objdump'. See mingw*.
8049 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8050 lt_cv_file_magic_cmd='$OBJDUMP -f'
8053 darwin* | rhapsody*)
8054 lt_cv_deplibs_check_method=pass_all
8057 freebsd* | dragonfly*)
8058 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8061 # Not sure whether the presence of OpenBSD here was a mistake.
8062 # Let's accept both of them until this is cleared up.
8063 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8064 lt_cv_file_magic_cmd=/usr/bin/file
8065 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8069 lt_cv_deplibs_check_method=pass_all
8074 lt_cv_deplibs_check_method=pass_all
8077 hpux10.20* | hpux11*)
8078 lt_cv_file_magic_cmd=/usr/bin/file
8081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8082 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8085 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]'
8086 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8090 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8096 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8100 irix5* | irix6* | nonstopux*)
8102 *-32|*"-32 ") libmagic=32-bit;;
8103 *-n32|*"-n32 ") libmagic=N32;;
8104 *-64|*"-64 ") libmagic=64-bit;;
8105 *) libmagic=never-match;;
8107 lt_cv_deplibs_check_method=pass_all
8110 # This must be glibc/ELF.
8111 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8112 lt_cv_deplibs_check_method=pass_all
8116 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8119 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8125 lt_cv_file_magic_cmd=/usr/bin/file
8126 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8130 lt_cv_deplibs_check_method=pass_all
8134 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8141 osf3* | osf4* | osf5*)
8142 lt_cv_deplibs_check_method=pass_all
8146 lt_cv_deplibs_check_method=pass_all
8150 lt_cv_deplibs_check_method=pass_all
8153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8154 lt_cv_deplibs_check_method=pass_all
8158 case $host_vendor in
8160 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]'
8161 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8164 lt_cv_deplibs_check_method=pass_all
8167 lt_cv_file_magic_cmd='/bin/file'
8168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8171 lt_cv_file_magic_cmd='/bin/file'
8172 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8173 lt_cv_file_magic_test_file=/lib/libc.so
8176 lt_cv_deplibs_check_method=pass_all
8179 lt_cv_deplibs_check_method=pass_all
8185 lt_cv_deplibs_check_method=pass_all
8188 lt_cv_deplibs_check_method=pass_all
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8194 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8198 if test "$build" = "$host"; then
8201 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8204 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8210 file_magic_cmd=$lt_cv_file_magic_cmd
8211 deplibs_check_method=$lt_cv_deplibs_check_method
8212 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8235 if test -n "$ac_tool_prefix"; then
8236 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8237 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if ${ac_cv_prog_DLLTOOL+:} false; then :
8241 $as_echo_n "(cached) " >&6
8243 if test -n "$DLLTOOL"; then
8244 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8253 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 DLLTOOL=$ac_cv_prog_DLLTOOL
8264 if test -n "$DLLTOOL"; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8266 $as_echo "$DLLTOOL" >&6; }
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 $as_echo "no" >&6; }
8274 if test -z "$ac_cv_prog_DLLTOOL"; then
8275 ac_ct_DLLTOOL=$DLLTOOL
8276 # Extract the first word of "dlltool", so it can be a program name with args.
8277 set dummy dlltool; ac_word=$2
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 $as_echo_n "checking for $ac_word... " >&6; }
8280 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8281 $as_echo_n "(cached) " >&6
8283 if test -n "$ac_ct_DLLTOOL"; then
8284 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8303 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8304 if test -n "$ac_ct_DLLTOOL"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8306 $as_echo "$ac_ct_DLLTOOL" >&6; }
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8312 if test "x$ac_ct_DLLTOOL" = x; then
8315 case $cross_compiling:$ac_tool_warned in
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8319 ac_tool_warned=yes ;;
8321 DLLTOOL=$ac_ct_DLLTOOL
8324 DLLTOOL="$ac_cv_prog_DLLTOOL"
8327 test -z "$DLLTOOL" && DLLTOOL=dlltool
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8339 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8340 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8341 $as_echo_n "(cached) " >&6
8343 lt_cv_sharedlib_from_linklib_cmd='unknown'
8346 cygwin* | mingw* | pw32* | cegcc*)
8347 # two different shell functions defined in ltmain.sh;
8348 # decide which one to use based on capabilities of $DLLTOOL
8349 case `$DLLTOOL --help 2>&1` in
8350 *--identify-strict*)
8351 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8354 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8359 # fallback: assume linklib IS sharedlib
8360 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8366 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8367 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8368 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8376 if test -n "$ac_tool_prefix"; then
8379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if ${ac_cv_prog_AR+:} false; then :
8384 $as_echo_n "(cached) " >&6
8386 if test -n "$AR"; then
8387 ac_cv_prog_AR="$AR" # Let the user override the test.
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8396 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 if test -n "$AR"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8409 $as_echo "$AR" >&6; }
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8416 test -n "$AR" && break
8419 if test -z "$AR"; then
8423 # Extract the first word of "$ac_prog", so it can be a program name with args.
8424 set dummy $ac_prog; ac_word=$2
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 $as_echo_n "checking for $ac_word... " >&6; }
8427 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8428 $as_echo_n "(cached) " >&6
8430 if test -n "$ac_ct_AR"; then
8431 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8440 ac_cv_prog_ac_ct_AR="$ac_prog"
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8451 if test -n "$ac_ct_AR"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8453 $as_echo "$ac_ct_AR" >&6; }
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 $as_echo "no" >&6; }
8460 test -n "$ac_ct_AR" && break
8463 if test "x$ac_ct_AR" = x; then
8466 case $cross_compiling:$ac_tool_warned in
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8470 ac_tool_warned=yes ;;
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8490 $as_echo_n "checking for archiver @FILE support... " >&6; }
8491 if ${lt_cv_ar_at_file+:} false; then :
8492 $as_echo_n "(cached) " >&6
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8506 if ac_fn_c_try_compile "$LINENO"; then :
8507 echo conftest.$ac_objext > conftest.lst
8508 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8510 (eval $lt_ar_try) 2>&5
8512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8513 test $ac_status = 0; }
8514 if test 0 -eq "$ac_status"; then
8515 # Ensure the archiver fails upon bogus file names.
8516 rm -f conftest.$ac_objext libconftest.a
8517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8518 (eval $lt_ar_try) 2>&5
8520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8521 test $ac_status = 0; }
8522 if test 0 -ne "$ac_status"; then
8526 rm -f conftest.* libconftest.a
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8533 $as_echo "$lt_cv_ar_at_file" >&6; }
8535 if test no = "$lt_cv_ar_at_file"; then
8538 archiver_list_spec=$lt_cv_ar_at_file
8547 if test -n "$ac_tool_prefix"; then
8548 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8549 set dummy ${ac_tool_prefix}strip; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if ${ac_cv_prog_STRIP+:} false; then :
8553 $as_echo_n "(cached) " >&6
8555 if test -n "$STRIP"; then
8556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 test -z "$as_dir" && as_dir=.
8563 for ac_exec_ext in '' $ac_executable_extensions; do
8564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8565 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575 STRIP=$ac_cv_prog_STRIP
8576 if test -n "$STRIP"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8578 $as_echo "$STRIP" >&6; }
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8586 if test -z "$ac_cv_prog_STRIP"; then
8588 # Extract the first word of "strip", so it can be a program name with args.
8589 set dummy strip; ac_word=$2
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591 $as_echo_n "checking for $ac_word... " >&6; }
8592 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8593 $as_echo_n "(cached) " >&6
8595 if test -n "$ac_ct_STRIP"; then
8596 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 test -z "$as_dir" && as_dir=.
8603 for ac_exec_ext in '' $ac_executable_extensions; do
8604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8605 ac_cv_prog_ac_ct_STRIP="strip"
8606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8616 if test -n "$ac_ct_STRIP"; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8618 $as_echo "$ac_ct_STRIP" >&6; }
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo "no" >&6; }
8624 if test "x$ac_ct_STRIP" = x; then
8627 case $cross_compiling:$ac_tool_warned in
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8631 ac_tool_warned=yes ;;
8636 STRIP="$ac_cv_prog_STRIP"
8639 test -z "$STRIP" && STRIP=:
8646 if test -n "$ac_tool_prefix"; then
8647 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8648 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if ${ac_cv_prog_RANLIB+:} false; then :
8652 $as_echo_n "(cached) " >&6
8654 if test -n "$RANLIB"; then
8655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8664 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 RANLIB=$ac_cv_prog_RANLIB
8675 if test -n "$RANLIB"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8677 $as_echo "$RANLIB" >&6; }
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8685 if test -z "$ac_cv_prog_RANLIB"; then
8686 ac_ct_RANLIB=$RANLIB
8687 # Extract the first word of "ranlib", so it can be a program name with args.
8688 set dummy ranlib; ac_word=$2
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690 $as_echo_n "checking for $ac_word... " >&6; }
8691 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8692 $as_echo_n "(cached) " >&6
8694 if test -n "$ac_ct_RANLIB"; then
8695 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8704 ac_cv_prog_ac_ct_RANLIB="ranlib"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8714 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8715 if test -n "$ac_ct_RANLIB"; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8717 $as_echo "$ac_ct_RANLIB" >&6; }
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8723 if test "x$ac_ct_RANLIB" = x; then
8726 case $cross_compiling:$ac_tool_warned in
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8730 ac_tool_warned=yes ;;
8732 RANLIB=$ac_ct_RANLIB
8735 RANLIB="$ac_cv_prog_RANLIB"
8738 test -z "$RANLIB" && RANLIB=:
8745 # Determine commands to create old-style static archives.
8746 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8747 old_postinstall_cmds='chmod 644 $oldlib'
8748 old_postuninstall_cmds=
8750 if test -n "$RANLIB"; then
8753 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8756 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8759 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8764 lock_old_archive_extraction=yes ;;
8766 lock_old_archive_extraction=no ;;
8789 for ac_prog in gawk mawk nawk awk
8791 # Extract the first word of "$ac_prog", so it can be a program name with args.
8792 set dummy $ac_prog; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_AWK+:} false; then :
8796 $as_echo_n "(cached) " >&6
8798 if test -n "$AWK"; then
8799 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808 ac_cv_prog_AWK="$ac_prog"
8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8819 if test -n "$AWK"; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8821 $as_echo "$AWK" >&6; }
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8828 test -n "$AWK" && break
8849 # If no C compiler was specified, use CC.
8852 # If no C compiler flags were specified, use CFLAGS.
8853 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8855 # Allow CC to be a program name with arguments.
8859 # Check for command to grab the raw symbol name followed by C symbol from nm.
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8861 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8862 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8863 $as_echo_n "(cached) " >&6
8866 # These are sane defaults that work on at least a few old systems.
8867 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8869 # Character class describing NM global symbol codes.
8870 symcode='[BCDEGRST]'
8872 # Regexp to match symbols that can be accessed directly from C.
8873 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8875 # Define system-specific variables.
8880 cygwin* | mingw* | pw32* | cegcc*)
8881 symcode='[ABCDGISTW]'
8884 if test ia64 = "$host_cpu"; then
8885 symcode='[ABCDEGRST]'
8889 symcode='[BCDEGRST]'
8892 symcode='[BCDEGQRST]'
8903 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8911 # If we're using GNU nm, then use its standard symbol codes.
8912 case `$NM -V 2>&1` in
8913 *GNU* | *'with BFD'*)
8914 symcode='[ABCDGIRSTW]' ;;
8917 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8918 # Gets list of data symbols to import.
8919 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8920 # Adjust the below global symbol transforms to fixup imported variables.
8921 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8922 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8923 lt_c_name_lib_hook="\
8924 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8925 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8927 # Disable hooks by default.
8928 lt_cv_sys_global_symbol_to_import=
8934 # Transform an extracted symbol line into a proper C declaration.
8935 # Some systems (esp. on ia64) link data and code symbols differently,
8936 # so use this general approach.
8937 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8939 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8940 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8942 # Transform an extracted symbol line into symbol name and symbol address
8943 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8945 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8946 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8948 # Transform an extracted symbol line into symbol name with lib prefix and
8950 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8951 $lt_c_name_lib_hook\
8952 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8953 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8954 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8956 # Handle CRLF in mingw tool chain
8960 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8964 # Try without a prefix underscore, then with it.
8965 for ac_symprfx in "" "_"; do
8967 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8968 symxfrm="\\1 $ac_symprfx\\2 \\2"
8970 # Write the raw and C identifiers.
8971 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8972 # Fake it for dumpbin and say T for any non-static function,
8973 # D for any global variable and I for any imported variable.
8974 # Also find C++ and __fastcall symbols from MSVC++,
8975 # which start with @ or ?.
8976 lt_cv_sys_global_symbol_pipe="$AWK '"\
8977 " {last_section=section; section=\$ 3};"\
8978 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8979 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8980 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8981 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8982 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8983 " \$ 0!~/External *\|/{next};"\
8984 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8985 " {if(hide[section]) next};"\
8986 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8987 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8988 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8989 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8990 " ' prfx=^$ac_symprfx"
8992 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8994 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8996 # Check to see that the pipe works correctly.
9000 cat > conftest.$ac_ext <<_LT_EOF
9005 void nm_test_func(void);
9006 void nm_test_func(void){}
9010 int main(){nm_test_var='a';nm_test_func();return(0);}
9013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9014 (eval $ac_compile) 2>&5
9016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9017 test $ac_status = 0; }; then
9018 # Now try to grab the symbols.
9020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9021 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9024 test $ac_status = 0; } && test -s "$nlist"; then
9025 # Try sorting and uniquifying the output.
9026 if sort "$nlist" | uniq > "$nlist"T; then
9027 mv -f "$nlist"T "$nlist"
9032 # Make sure that we snagged all the symbols we need.
9033 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9034 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9035 cat <<_LT_EOF > conftest.$ac_ext
9036 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9037 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9038 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9039 relocations are performed -- see ld's documentation on pseudo-relocs. */
9040 # define LT_DLSYM_CONST
9041 #elif defined __osf__
9042 /* This system does not cope well with relocations in const data. */
9043 # define LT_DLSYM_CONST
9045 # define LT_DLSYM_CONST const
9053 # Now generate the symbol file.
9054 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9056 cat <<_LT_EOF >> conftest.$ac_ext
9058 /* The mapping between symbol names and symbols. */
9059 LT_DLSYM_CONST struct {
9063 lt__PROGRAM__LTX_preloaded_symbols[] =
9065 { "@PROGRAM@", (void *) 0 },
9067 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9068 cat <<\_LT_EOF >> conftest.$ac_ext
9072 /* This works around a problem in FreeBSD linker */
9073 #ifdef FREEBSD_WORKAROUND
9074 static const void *lt_preloaded_setup() {
9075 return lt__PROGRAM__LTX_preloaded_symbols;
9083 # Now try linking the two files.
9084 mv conftest.$ac_objext conftstm.$ac_objext
9085 lt_globsym_save_LIBS=$LIBS
9086 lt_globsym_save_CFLAGS=$CFLAGS
9087 LIBS=conftstm.$ac_objext
9088 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9090 (eval $ac_link) 2>&5
9092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9093 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9096 LIBS=$lt_globsym_save_LIBS
9097 CFLAGS=$lt_globsym_save_CFLAGS
9099 echo "cannot find nm_test_func in $nlist" >&5
9102 echo "cannot find nm_test_var in $nlist" >&5
9105 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9108 echo "$progname: failed program was:" >&5
9109 cat conftest.$ac_ext >&5
9111 rm -rf conftest* conftst*
9113 # Do not use the global_symbol_pipe unless it works.
9114 if test yes = "$pipe_works"; then
9117 lt_cv_sys_global_symbol_pipe=
9123 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9124 lt_cv_sys_global_symbol_to_cdecl=
9126 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9128 $as_echo "failed" >&6; }
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9131 $as_echo "ok" >&6; }
9134 # Response file support.
9135 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9136 nm_file_list_spec='@'
9137 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9138 nm_file_list_spec='@'
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9178 $as_echo_n "checking for sysroot... " >&6; }
9180 # Check whether --with-sysroot was given.
9181 if test "${with_sysroot+set}" = set; then :
9182 withval=$with_sysroot;
9189 case $with_sysroot in #(
9191 if test yes = "$GCC"; then
9192 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9196 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9202 $as_echo "$with_sysroot" >&6; }
9203 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9208 $as_echo "${lt_sysroot:-no}" >&6; }
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9215 $as_echo_n "checking for a working dd... " >&6; }
9216 if ${ac_cv_path_lt_DD+:} false; then :
9217 $as_echo_n "(cached) " >&6
9219 printf 0123456789abcdef0123456789abcdef >conftest.i
9220 cat conftest.i conftest.i >conftest2.i
9222 if test -z "$lt_DD"; then
9223 ac_path_lt_DD_found=false
9224 # Loop through the user's path and test for each of PROGNAME-LIST
9225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 test -z "$as_dir" && as_dir=.
9230 for ac_prog in dd; do
9231 for ac_exec_ext in '' $ac_executable_extensions; do
9232 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9233 as_fn_executable_p "$ac_path_lt_DD" || continue
9234 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9235 cmp -s conftest.i conftest.out \
9236 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9238 $ac_path_lt_DD_found && break 3
9243 if test -z "$ac_cv_path_lt_DD"; then
9247 ac_cv_path_lt_DD=$lt_DD
9250 rm -f conftest.i conftest2.i conftest.out
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9253 $as_echo "$ac_cv_path_lt_DD" >&6; }
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9257 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9258 if ${lt_cv_truncate_bin+:} false; then :
9259 $as_echo_n "(cached) " >&6
9261 printf 0123456789abcdef0123456789abcdef >conftest.i
9262 cat conftest.i conftest.i >conftest2.i
9264 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9265 cmp -s conftest.i conftest.out \
9266 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9268 rm -f conftest.i conftest2.i conftest.out
9269 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9272 $as_echo "$lt_cv_truncate_bin" >&6; }
9280 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9283 for cc_temp in $*""; do
9285 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9286 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9291 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9294 # Check whether --enable-libtool-lock was given.
9295 if test "${enable_libtool_lock+set}" = set; then :
9296 enableval=$enable_libtool_lock;
9299 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9301 # Some flags need to be propagated to the compiler or linker for good
9305 # Find out what ABI is being produced by ac_compile, and set mode
9306 # options accordingly.
9307 echo 'int i;' > conftest.$ac_ext
9308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9309 (eval $ac_compile) 2>&5
9311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9312 test $ac_status = 0; }; then
9313 case `/usr/bin/file conftest.$ac_objext` in
9325 # Find out what ABI is being produced by ac_compile, and set linker
9326 # options accordingly.
9327 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9329 (eval $ac_compile) 2>&5
9331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9332 test $ac_status = 0; }; then
9333 if test yes = "$lt_cv_prog_gnu_ld"; then
9334 case `/usr/bin/file conftest.$ac_objext` in
9336 LD="${LD-ld} -melf32bsmip"
9339 LD="${LD-ld} -melf32bmipn32"
9342 LD="${LD-ld} -melf64bmip"
9346 case `/usr/bin/file conftest.$ac_objext` in
9363 # Find out what ABI is being produced by ac_compile, and set linker
9364 # options accordingly.
9365 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9367 (eval $ac_compile) 2>&5
9369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9370 test $ac_status = 0; }; then
9372 case `/usr/bin/file conftest.$ac_objext` in
9380 case `/usr/bin/file conftest.$ac_objext` in
9382 emul="${emul}btsmip"
9385 emul="${emul}ltsmip"
9388 case `/usr/bin/file conftest.$ac_objext` in
9393 LD="${LD-ld} -m $emul"
9398 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9399 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9400 # Find out what ABI is being produced by ac_compile, and set linker
9401 # options accordingly. Note that the listed cases only cover the
9402 # situations where additional linker options are needed (such as when
9403 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9404 # vice versa); the common cases where no linker options are needed do
9405 # not appear in the list.
9406 echo 'int i;' > conftest.$ac_ext
9407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9408 (eval $ac_compile) 2>&5
9410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9411 test $ac_status = 0; }; then
9412 case `/usr/bin/file conftest.o` in
9415 x86_64-*kfreebsd*-gnu)
9416 LD="${LD-ld} -m elf_i386_fbsd"
9419 case `/usr/bin/file conftest.o` in
9421 LD="${LD-ld} -m elf32_x86_64"
9424 LD="${LD-ld} -m elf_i386"
9428 powerpc64le-*linux*)
9429 LD="${LD-ld} -m elf32lppclinux"
9432 LD="${LD-ld} -m elf32ppclinux"
9435 LD="${LD-ld} -m elf_s390"
9438 LD="${LD-ld} -m elf32_sparc"
9444 x86_64-*kfreebsd*-gnu)
9445 LD="${LD-ld} -m elf_x86_64_fbsd"
9448 LD="${LD-ld} -m elf_x86_64"
9451 LD="${LD-ld} -m elf64lppc"
9454 LD="${LD-ld} -m elf64ppc"
9456 s390*-*linux*|s390*-*tpf*)
9457 LD="${LD-ld} -m elf64_s390"
9460 LD="${LD-ld} -m elf64_sparc"
9470 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9472 CFLAGS="$CFLAGS -belf"
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9474 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9475 if ${lt_cv_cc_needs_belf+:} false; then :
9476 $as_echo_n "(cached) " >&6
9479 ac_cpp='$CPP $CPPFLAGS'
9480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9495 if ac_fn_c_try_link "$LINENO"; then :
9496 lt_cv_cc_needs_belf=yes
9498 lt_cv_cc_needs_belf=no
9500 rm -f core conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext conftest.$ac_ext
9503 ac_cpp='$CPP $CPPFLAGS'
9504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9510 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9511 if test yes != "$lt_cv_cc_needs_belf"; then
9512 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9517 # Find out what ABI is being produced by ac_compile, and set linker
9518 # options accordingly.
9519 echo 'int i;' > conftest.$ac_ext
9520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9521 (eval $ac_compile) 2>&5
9523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9524 test $ac_status = 0; }; then
9525 case `/usr/bin/file conftest.o` in
9527 case $lt_cv_prog_gnu_ld in
9530 i?86-*-solaris*|x86_64-*-solaris*)
9531 LD="${LD-ld} -m elf_x86_64"
9534 LD="${LD-ld} -m elf64_sparc"
9537 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9538 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9543 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9555 need_locks=$enable_libtool_lock
9557 if test -n "$ac_tool_prefix"; then
9558 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9559 set dummy ${ac_tool_prefix}mt; ac_word=$2
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561 $as_echo_n "checking for $ac_word... " >&6; }
9562 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9563 $as_echo_n "(cached) " >&6
9565 if test -n "$MANIFEST_TOOL"; then
9566 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9575 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9585 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9586 if test -n "$MANIFEST_TOOL"; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9588 $as_echo "$MANIFEST_TOOL" >&6; }
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9596 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9597 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9598 # Extract the first word of "mt", so it can be a program name with args.
9599 set dummy mt; ac_word=$2
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 $as_echo_n "checking for $ac_word... " >&6; }
9602 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9603 $as_echo_n "(cached) " >&6
9605 if test -n "$ac_ct_MANIFEST_TOOL"; then
9606 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9615 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9625 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9626 if test -n "$ac_ct_MANIFEST_TOOL"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9628 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9634 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9637 case $cross_compiling:$ac_tool_warned in
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9641 ac_tool_warned=yes ;;
9643 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9646 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9649 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9651 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9652 if ${lt_cv_path_mainfest_tool+:} false; then :
9653 $as_echo_n "(cached) " >&6
9655 lt_cv_path_mainfest_tool=no
9656 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9657 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9658 cat conftest.err >&5
9659 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9660 lt_cv_path_mainfest_tool=yes
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9665 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9666 if test yes != "$lt_cv_path_mainfest_tool"; then
9676 rhapsody* | darwin*)
9677 if test -n "$ac_tool_prefix"; then
9678 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9679 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 $as_echo_n "checking for $ac_word... " >&6; }
9682 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9683 $as_echo_n "(cached) " >&6
9685 if test -n "$DSYMUTIL"; then
9686 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692 test -z "$as_dir" && as_dir=.
9693 for ac_exec_ext in '' $ac_executable_extensions; do
9694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9695 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9706 if test -n "$DSYMUTIL"; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9708 $as_echo "$DSYMUTIL" >&6; }
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711 $as_echo "no" >&6; }
9716 if test -z "$ac_cv_prog_DSYMUTIL"; then
9717 ac_ct_DSYMUTIL=$DSYMUTIL
9718 # Extract the first word of "dsymutil", so it can be a program name with args.
9719 set dummy dsymutil; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9723 $as_echo_n "(cached) " >&6
9725 if test -n "$ac_ct_DSYMUTIL"; then
9726 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9735 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9745 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9746 if test -n "$ac_ct_DSYMUTIL"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9748 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751 $as_echo "no" >&6; }
9754 if test "x$ac_ct_DSYMUTIL" = x; then
9757 case $cross_compiling:$ac_tool_warned in
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9761 ac_tool_warned=yes ;;
9763 DSYMUTIL=$ac_ct_DSYMUTIL
9766 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9769 if test -n "$ac_tool_prefix"; then
9770 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9771 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773 $as_echo_n "checking for $ac_word... " >&6; }
9774 if ${ac_cv_prog_NMEDIT+:} false; then :
9775 $as_echo_n "(cached) " >&6
9777 if test -n "$NMEDIT"; then
9778 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 test -z "$as_dir" && as_dir=.
9785 for ac_exec_ext in '' $ac_executable_extensions; do
9786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9787 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 NMEDIT=$ac_cv_prog_NMEDIT
9798 if test -n "$NMEDIT"; then
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9800 $as_echo "$NMEDIT" >&6; }
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803 $as_echo "no" >&6; }
9808 if test -z "$ac_cv_prog_NMEDIT"; then
9809 ac_ct_NMEDIT=$NMEDIT
9810 # Extract the first word of "nmedit", so it can be a program name with args.
9811 set dummy nmedit; ac_word=$2
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813 $as_echo_n "checking for $ac_word... " >&6; }
9814 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9815 $as_echo_n "(cached) " >&6
9817 if test -n "$ac_ct_NMEDIT"; then
9818 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9827 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9837 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9838 if test -n "$ac_ct_NMEDIT"; then
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9840 $as_echo "$ac_ct_NMEDIT" >&6; }
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843 $as_echo "no" >&6; }
9846 if test "x$ac_ct_NMEDIT" = x; then
9849 case $cross_compiling:$ac_tool_warned in
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9853 ac_tool_warned=yes ;;
9855 NMEDIT=$ac_ct_NMEDIT
9858 NMEDIT="$ac_cv_prog_NMEDIT"
9861 if test -n "$ac_tool_prefix"; then
9862 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9863 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9865 $as_echo_n "checking for $ac_word... " >&6; }
9866 if ${ac_cv_prog_LIPO+:} false; then :
9867 $as_echo_n "(cached) " >&6
9869 if test -n "$LIPO"; then
9870 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9879 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9889 LIPO=$ac_cv_prog_LIPO
9890 if test -n "$LIPO"; then
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9892 $as_echo "$LIPO" >&6; }
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895 $as_echo "no" >&6; }
9900 if test -z "$ac_cv_prog_LIPO"; then
9902 # Extract the first word of "lipo", so it can be a program name with args.
9903 set dummy lipo; ac_word=$2
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9905 $as_echo_n "checking for $ac_word... " >&6; }
9906 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9907 $as_echo_n "(cached) " >&6
9909 if test -n "$ac_ct_LIPO"; then
9910 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_prog_ac_ct_LIPO="lipo"
9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9929 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9930 if test -n "$ac_ct_LIPO"; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9932 $as_echo "$ac_ct_LIPO" >&6; }
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9938 if test "x$ac_ct_LIPO" = x; then
9941 case $cross_compiling:$ac_tool_warned in
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9945 ac_tool_warned=yes ;;
9950 LIPO="$ac_cv_prog_LIPO"
9953 if test -n "$ac_tool_prefix"; then
9954 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9955 set dummy ${ac_tool_prefix}otool; ac_word=$2
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9957 $as_echo_n "checking for $ac_word... " >&6; }
9958 if ${ac_cv_prog_OTOOL+:} false; then :
9959 $as_echo_n "(cached) " >&6
9961 if test -n "$OTOOL"; then
9962 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968 test -z "$as_dir" && as_dir=.
9969 for ac_exec_ext in '' $ac_executable_extensions; do
9970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9971 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9981 OTOOL=$ac_cv_prog_OTOOL
9982 if test -n "$OTOOL"; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9984 $as_echo "$OTOOL" >&6; }
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987 $as_echo "no" >&6; }
9992 if test -z "$ac_cv_prog_OTOOL"; then
9994 # Extract the first word of "otool", so it can be a program name with args.
9995 set dummy otool; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9999 $as_echo_n "(cached) " >&6
10001 if test -n "$ac_ct_OTOOL"; then
10002 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10008 test -z "$as_dir" && as_dir=.
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10011 ac_cv_prog_ac_ct_OTOOL="otool"
10012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10021 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10022 if test -n "$ac_ct_OTOOL"; then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10024 $as_echo "$ac_ct_OTOOL" >&6; }
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10030 if test "x$ac_ct_OTOOL" = x; then
10033 case $cross_compiling:$ac_tool_warned in
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10037 ac_tool_warned=yes ;;
10042 OTOOL="$ac_cv_prog_OTOOL"
10045 if test -n "$ac_tool_prefix"; then
10046 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10047 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10049 $as_echo_n "checking for $ac_word... " >&6; }
10050 if ${ac_cv_prog_OTOOL64+:} false; then :
10051 $as_echo_n "(cached) " >&6
10053 if test -n "$OTOOL64"; then
10054 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10057 for as_dir in $PATH
10060 test -z "$as_dir" && as_dir=.
10061 for ac_exec_ext in '' $ac_executable_extensions; do
10062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10063 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 OTOOL64=$ac_cv_prog_OTOOL64
10074 if test -n "$OTOOL64"; then
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10076 $as_echo "$OTOOL64" >&6; }
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079 $as_echo "no" >&6; }
10084 if test -z "$ac_cv_prog_OTOOL64"; then
10085 ac_ct_OTOOL64=$OTOOL64
10086 # Extract the first word of "otool64", so it can be a program name with args.
10087 set dummy otool64; ac_word=$2
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089 $as_echo_n "checking for $ac_word... " >&6; }
10090 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10091 $as_echo_n "(cached) " >&6
10093 if test -n "$ac_ct_OTOOL64"; then
10094 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10100 test -z "$as_dir" && as_dir=.
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10103 ac_cv_prog_ac_ct_OTOOL64="otool64"
10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10113 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10114 if test -n "$ac_ct_OTOOL64"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10116 $as_echo "$ac_ct_OTOOL64" >&6; }
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10122 if test "x$ac_ct_OTOOL64" = x; then
10125 case $cross_compiling:$ac_tool_warned in
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10129 ac_tool_warned=yes ;;
10131 OTOOL64=$ac_ct_OTOOL64
10134 OTOOL64="$ac_cv_prog_OTOOL64"
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10164 $as_echo_n "checking for -single_module linker flag... " >&6; }
10165 if ${lt_cv_apple_cc_single_mod+:} false; then :
10166 $as_echo_n "(cached) " >&6
10168 lt_cv_apple_cc_single_mod=no
10169 if test -z "$LT_MULTI_MODULE"; then
10170 # By default we will add the -single_module flag. You can override
10171 # by either setting the environment variable LT_MULTI_MODULE
10172 # non-empty at configure time, or by adding -multi_module to the
10174 rm -rf libconftest.dylib*
10175 echo "int foo(void){return 1;}" > conftest.c
10176 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10177 -dynamiclib -Wl,-single_module conftest.c" >&5
10178 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10179 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10181 # If there is a non-empty error log, and "single_module"
10182 # appears in it, assume the flag caused a linker warning
10183 if test -s conftest.err && $GREP single_module conftest.err; then
10184 cat conftest.err >&5
10185 # Otherwise, if the output was created with a 0 exit code from
10186 # the compiler, it worked.
10187 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10188 lt_cv_apple_cc_single_mod=yes
10190 cat conftest.err >&5
10192 rm -rf libconftest.dylib*
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10197 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10200 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10201 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10202 $as_echo_n "(cached) " >&6
10204 lt_cv_ld_exported_symbols_list=no
10205 save_LDFLAGS=$LDFLAGS
10206 echo "_main" > conftest.sym
10207 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209 /* end confdefs.h. */
10219 if ac_fn_c_try_link "$LINENO"; then :
10220 lt_cv_ld_exported_symbols_list=yes
10222 lt_cv_ld_exported_symbols_list=no
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LDFLAGS=$save_LDFLAGS
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10230 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10233 $as_echo_n "checking for -force_load linker flag... " >&6; }
10234 if ${lt_cv_ld_force_load+:} false; then :
10235 $as_echo_n "(cached) " >&6
10237 lt_cv_ld_force_load=no
10238 cat > conftest.c << _LT_EOF
10239 int forced_loaded() { return 2;}
10241 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10242 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10243 echo "$AR cru libconftest.a conftest.o" >&5
10244 $AR cru libconftest.a conftest.o 2>&5
10245 echo "$RANLIB libconftest.a" >&5
10246 $RANLIB libconftest.a 2>&5
10247 cat > conftest.c << _LT_EOF
10248 int main() { return 0;}
10250 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10251 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10253 if test -s conftest.err && $GREP force_load conftest.err; then
10254 cat conftest.err >&5
10255 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10256 lt_cv_ld_force_load=yes
10258 cat conftest.err >&5
10260 rm -f conftest.err libconftest.a conftest conftest.c
10261 rm -rf conftest.dSYM
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10265 $as_echo "$lt_cv_ld_force_load" >&6; }
10267 rhapsody* | darwin1.[012])
10268 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10270 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10271 darwin*) # darwin 5.x on
10272 # if running on 10.5 or later, the deployment target defaults
10273 # to the OS version, if on x86, and 10.4, the deployment
10274 # target defaults to 10.4. Don't you love it?
10275 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10276 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10277 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10279 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10281 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10285 if test yes = "$lt_cv_apple_cc_single_mod"; then
10286 _lt_dar_single_mod='$single_module'
10288 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10289 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10291 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10293 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10294 _lt_dsymutil='~$DSYMUTIL $lib || :'
10301 # func_munge_path_list VARIABLE PATH
10302 # -----------------------------------
10303 # VARIABLE is name of variable containing _space_ separated list of
10304 # directories to be munged by the contents of PATH, which is string
10307 # string "DIR[ DIR]" will be prepended to VARIABLE
10309 # string "DIR[ DIR]" will be appended to VARIABLE
10310 # "DIRP[:DIRP]::[DIRA:]DIRA"
10311 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10312 # "DIRA[ DIRA]" will be appended to VARIABLE
10314 # VARIABLE will be replaced by "DIR[ DIR]"
10315 func_munge_path_list ()
10321 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10324 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10327 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10328 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10331 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10336 for ac_header in dlfcn.h
10338 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10340 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10341 cat >>confdefs.h <<_ACEOF
10342 #define HAVE_DLFCN_H 1
10362 enable_win32_dll=no
10365 # Check whether --enable-shared was given.
10366 if test "${enable_shared+set}" = set; then :
10367 enableval=$enable_shared; p=${PACKAGE-default}
10369 yes) enable_shared=yes ;;
10370 no) enable_shared=no ;;
10373 # Look at the argument we got. We use all the common list separators.
10374 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10375 for pkg in $enableval; do
10377 if test "X$pkg" = "X$p"; then
10396 # Check whether --enable-static was given.
10397 if test "${enable_static+set}" = set; then :
10398 enableval=$enable_static; p=${PACKAGE-default}
10400 yes) enable_static=yes ;;
10401 no) enable_static=no ;;
10404 # Look at the argument we got. We use all the common list separators.
10405 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10406 for pkg in $enableval; do
10408 if test "X$pkg" = "X$p"; then
10428 # Check whether --with-pic was given.
10429 if test "${with_pic+set}" = set; then :
10430 withval=$with_pic; lt_p=${PACKAGE-default}
10432 yes|no) pic_mode=$withval ;;
10435 # Look at the argument we got. We use all the common list separators.
10436 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10437 for lt_pkg in $withval; do
10439 if test "X$lt_pkg" = "X$lt_p"; then
10457 # Check whether --enable-fast-install was given.
10458 if test "${enable_fast_install+set}" = set; then :
10459 enableval=$enable_fast_install; p=${PACKAGE-default}
10461 yes) enable_fast_install=yes ;;
10462 no) enable_fast_install=no ;;
10464 enable_fast_install=no
10465 # Look at the argument we got. We use all the common list separators.
10466 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10467 for pkg in $enableval; do
10469 if test "X$pkg" = "X$p"; then
10470 enable_fast_install=yes
10477 enable_fast_install=yes
10487 shared_archive_member_spec=
10488 case $host,$enable_shared in
10489 power*-*-aix[5-9]*,yes)
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10491 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10493 # Check whether --with-aix-soname was given.
10494 if test "${with_aix_soname+set}" = set; then :
10495 withval=$with_aix_soname; case $withval in
10499 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10502 lt_cv_with_aix_soname=$with_aix_soname
10504 if ${lt_cv_with_aix_soname+:} false; then :
10505 $as_echo_n "(cached) " >&6
10507 lt_cv_with_aix_soname=aix
10510 with_aix_soname=$lt_cv_with_aix_soname
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10514 $as_echo "$with_aix_soname" >&6; }
10515 if test aix != "$with_aix_soname"; then
10516 # For the AIX way of multilib, we name the shared archive member
10517 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10518 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10519 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10520 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10521 if test 64 = "${OBJECT_MODE-32}"; then
10522 shared_archive_member_spec=shr_64
10524 shared_archive_member_spec=shr
10529 with_aix_soname=aix
10542 # This can be used to rebuild libtool when needed
10543 LIBTOOL_DEPS=$ltmain
10545 # Always use our own libtool.
10546 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10577 test -z "$LN_S" && LN_S="ln -s"
10592 if test -n "${ZSH_VERSION+set}"; then
10593 setopt NO_GLOB_SUBST
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10597 $as_echo_n "checking for objdir... " >&6; }
10598 if ${lt_cv_objdir+:} false; then :
10599 $as_echo_n "(cached) " >&6
10601 rm -f .libs 2>/dev/null
10602 mkdir .libs 2>/dev/null
10603 if test -d .libs; then
10606 # MS-DOS does not allow filenames that begin with a dot.
10609 rmdir .libs 2>/dev/null
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10612 $as_echo "$lt_cv_objdir" >&6; }
10613 objdir=$lt_cv_objdir
10619 cat >>confdefs.h <<_ACEOF
10620 #define LT_OBJDIR "$lt_cv_objdir/"
10628 # AIX sometimes has problems with the GCC collect2 program. For some
10629 # reason, if we set the COLLECT_NAMES environment variable, the problems
10630 # vanish in a puff of smoke.
10631 if test set != "${COLLECT_NAMES+set}"; then
10633 export COLLECT_NAMES
10638 # Global variables:
10640 can_build_shared=yes
10642 # All known linkers require a '.a' archive for static linking (except MSVC,
10643 # which needs '.lib').
10646 with_gnu_ld=$lt_cv_prog_gnu_ld
10651 # Set sane defaults for various variables
10652 test -z "$CC" && CC=cc
10653 test -z "$LTCC" && LTCC=$CC
10654 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10655 test -z "$LD" && LD=ld
10656 test -z "$ac_objext" && ac_objext=o
10658 func_cc_basename $compiler
10659 cc_basename=$func_cc_basename_result
10662 # Only perform the check for file, if the check method requires it
10663 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10664 case $deplibs_check_method in
10666 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10668 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10669 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10670 $as_echo_n "(cached) " >&6
10674 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10677 lt_save_MAGIC_CMD=$MAGIC_CMD
10678 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10679 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10680 for ac_dir in $ac_dummy; do
10682 test -z "$ac_dir" && ac_dir=.
10683 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10684 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10685 if test -n "$file_magic_test_file"; then
10686 case $deplibs_check_method in
10688 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10689 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10690 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10691 $EGREP "$file_magic_regex" > /dev/null; then
10696 *** Warning: the command libtool uses to detect shared libraries,
10697 *** $file_magic_cmd, produces output that libtool cannot recognize.
10698 *** The result is that libtool may fail to recognize shared libraries
10699 *** as such. This will affect the creation of libtool libraries that
10700 *** depend on shared libraries, but programs linked with such libtool
10701 *** libraries will work regardless of this problem. Nevertheless, you
10702 *** may want to report the problem to your system manager and/or to
10703 *** bug-libtool@gnu.org
10713 MAGIC_CMD=$lt_save_MAGIC_CMD
10718 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10719 if test -n "$MAGIC_CMD"; then
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10721 $as_echo "$MAGIC_CMD" >&6; }
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10731 if test -z "$lt_cv_path_MAGIC_CMD"; then
10732 if test -n "$ac_tool_prefix"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10734 $as_echo_n "checking for file... " >&6; }
10735 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10736 $as_echo_n "(cached) " >&6
10740 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10743 lt_save_MAGIC_CMD=$MAGIC_CMD
10744 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10745 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10746 for ac_dir in $ac_dummy; do
10748 test -z "$ac_dir" && ac_dir=.
10749 if test -f "$ac_dir/file"; then
10750 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10751 if test -n "$file_magic_test_file"; then
10752 case $deplibs_check_method in
10754 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10755 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10756 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10757 $EGREP "$file_magic_regex" > /dev/null; then
10762 *** Warning: the command libtool uses to detect shared libraries,
10763 *** $file_magic_cmd, produces output that libtool cannot recognize.
10764 *** The result is that libtool may fail to recognize shared libraries
10765 *** as such. This will affect the creation of libtool libraries that
10766 *** depend on shared libraries, but programs linked with such libtool
10767 *** libraries will work regardless of this problem. Nevertheless, you
10768 *** may want to report the problem to your system manager and/or to
10769 *** bug-libtool@gnu.org
10779 MAGIC_CMD=$lt_save_MAGIC_CMD
10784 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10785 if test -n "$MAGIC_CMD"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10787 $as_echo "$MAGIC_CMD" >&6; }
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790 $as_echo "no" >&6; }
10803 # Use C for the default configuration in the libtool script
10807 ac_cpp='$CPP $CPPFLAGS'
10808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10813 # Source file extension for C test sources.
10816 # Object file extension for compiled C test sources.
10820 # Code to be used in simple compile tests
10821 lt_simple_compile_test_code="int some_variable = 0;"
10823 # Code to be used in simple link tests
10824 lt_simple_link_test_code='int main(){return(0);}'
10832 # If no C compiler was specified, use CC.
10835 # If no C compiler flags were specified, use CFLAGS.
10836 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10838 # Allow CC to be a program name with arguments.
10841 # Save the default compiler, since it gets overwritten when the other
10842 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10843 compiler_DEFAULT=$CC
10845 # save warnings/boilerplate of simple test code
10846 ac_outfile=conftest.$ac_objext
10847 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10848 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10849 _lt_compiler_boilerplate=`cat conftest.err`
10852 ac_outfile=conftest.$ac_objext
10853 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10854 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10855 _lt_linker_boilerplate=`cat conftest.err`
10859 if test -n "$compiler"; then
10861 lt_prog_compiler_no_builtin_flag=
10863 if test yes = "$GCC"; then
10864 case $cc_basename in
10866 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10868 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10872 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10873 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10874 $as_echo_n "(cached) " >&6
10876 lt_cv_prog_compiler_rtti_exceptions=no
10877 ac_outfile=conftest.$ac_objext
10878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10879 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10880 # Insert the option either (1) after the last *FLAGS variable, or
10881 # (2) before a word containing "conftest.", or (3) at the end.
10882 # Note that $ac_compile itself does not contain backslashes and begins
10883 # with a dollar sign (not a hyphen), so the echo should work correctly.
10884 # The option is referenced via a variable to avoid confusing sed.
10885 lt_compile=`echo "$ac_compile" | $SED \
10886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10888 -e 's:$: $lt_compiler_flag:'`
10889 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10890 (eval "$lt_compile" 2>conftest.err)
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 if (exit $ac_status) && test -s "$ac_outfile"; then
10895 # The compiler can only warn and ignore the option if not recognized
10896 # So say no if there are warnings other than the usual output.
10897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10900 lt_cv_prog_compiler_rtti_exceptions=yes
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10907 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10909 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10910 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10922 lt_prog_compiler_wl=
10923 lt_prog_compiler_pic=
10924 lt_prog_compiler_static=
10927 if test yes = "$GCC"; then
10928 lt_prog_compiler_wl='-Wl,'
10929 lt_prog_compiler_static='-static'
10933 # All AIX code is PIC.
10934 if test ia64 = "$host_cpu"; then
10935 # AIX 5 now supports IA64 processor
10936 lt_prog_compiler_static='-Bstatic'
10938 lt_prog_compiler_pic='-fPIC'
10944 # see comment about AmigaOS4 .so support
10945 lt_prog_compiler_pic='-fPIC'
10948 # FIXME: we need at least 68020 code to build shared libraries, but
10949 # adding the '-m68020' flag to GCC prevents building anything better,
10951 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10956 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10957 # PIC is the default for these OSes.
10960 mingw* | cygwin* | pw32* | os2* | cegcc*)
10961 # This hack is so that the source file can tell whether it is being
10962 # built for inclusion in a dll (and should export symbols for example).
10963 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10964 # (--disable-auto-import) libraries
10965 lt_prog_compiler_pic='-DDLL_EXPORT'
10968 lt_prog_compiler_static='$wl-static'
10973 darwin* | rhapsody*)
10974 # PIC is the default on this platform
10975 # Common symbols not allowed in MH_DYLIB files
10976 lt_prog_compiler_pic='-fno-common'
10980 # PIC is the default for Haiku.
10981 # The "-static" flag exists, but is broken.
10982 lt_prog_compiler_static=
10986 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10987 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10988 # sets the default TLS model and affects inlining.
10994 lt_prog_compiler_pic='-fPIC'
11000 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11001 # Instead, we relocate shared libraries at runtime.
11005 # Just because we use GCC doesn't mean we suddenly get shared libraries
11006 # on systems that don't support them.
11007 lt_prog_compiler_can_build_shared=no
11012 # QNX uses GNU C++, but need to define -shared option too, otherwise
11013 # it will coredump.
11014 lt_prog_compiler_pic='-fPIC -shared'
11018 if test -d /usr/nec; then
11019 lt_prog_compiler_pic=-Kconform_pic
11024 lt_prog_compiler_pic='-fPIC'
11028 case $cc_basename in
11029 nvcc*) # Cuda Compiler Driver 2.2
11030 lt_prog_compiler_wl='-Xlinker '
11031 if test -n "$lt_prog_compiler_pic"; then
11032 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11037 # PORTME Check for flag to pass linker flags through the system compiler.
11040 lt_prog_compiler_wl='-Wl,'
11041 if test ia64 = "$host_cpu"; then
11042 # AIX 5 now supports IA64 processor
11043 lt_prog_compiler_static='-Bstatic'
11045 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11049 darwin* | rhapsody*)
11050 # PIC is the default on this platform
11051 # Common symbols not allowed in MH_DYLIB files
11052 lt_prog_compiler_pic='-fno-common'
11053 case $cc_basename in
11055 # NAG Fortran compiler
11056 lt_prog_compiler_wl='-Wl,-Wl,,'
11057 lt_prog_compiler_pic='-PIC'
11058 lt_prog_compiler_static='-Bstatic'
11063 mingw* | cygwin* | pw32* | os2* | cegcc*)
11064 # This hack is so that the source file can tell whether it is being
11065 # built for inclusion in a dll (and should export symbols for example).
11066 lt_prog_compiler_pic='-DDLL_EXPORT'
11069 lt_prog_compiler_static='$wl-static'
11074 hpux9* | hpux10* | hpux11*)
11075 lt_prog_compiler_wl='-Wl,'
11076 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11077 # not for PA HP-UX.
11083 lt_prog_compiler_pic='+Z'
11086 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11087 lt_prog_compiler_static='$wl-a ${wl}archive'
11090 irix5* | irix6* | nonstopux*)
11091 lt_prog_compiler_wl='-Wl,'
11092 # PIC (with -KPIC) is the default.
11093 lt_prog_compiler_static='-non_shared'
11096 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11097 case $cc_basename in
11098 # old Intel for x86_64, which still supported -KPIC.
11100 lt_prog_compiler_wl='-Wl,'
11101 lt_prog_compiler_pic='-KPIC'
11102 lt_prog_compiler_static='-static'
11104 # icc used to be incompatible with GCC.
11105 # ICC 10 doesn't accept -KPIC any more.
11107 lt_prog_compiler_wl='-Wl,'
11108 lt_prog_compiler_pic='-fPIC'
11109 lt_prog_compiler_static='-static'
11111 # Lahey Fortran 8.1.
11113 lt_prog_compiler_wl='-Wl,'
11114 lt_prog_compiler_pic='--shared'
11115 lt_prog_compiler_static='--static'
11118 # NAG Fortran compiler
11119 lt_prog_compiler_wl='-Wl,-Wl,,'
11120 lt_prog_compiler_pic='-PIC'
11121 lt_prog_compiler_static='-Bstatic'
11124 # Fabrice Bellard et al's Tiny C Compiler
11125 lt_prog_compiler_wl='-Wl,'
11126 lt_prog_compiler_pic='-fPIC'
11127 lt_prog_compiler_static='-static'
11129 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11130 # Portland Group compilers (*not* the Pentium gcc compiler,
11131 # which looks to be a dead project)
11132 lt_prog_compiler_wl='-Wl,'
11133 lt_prog_compiler_pic='-fpic'
11134 lt_prog_compiler_static='-Bstatic'
11137 lt_prog_compiler_wl='-Wl,'
11138 # All Alpha code is PIC.
11139 lt_prog_compiler_static='-non_shared'
11141 xl* | bgxl* | bgf* | mpixl*)
11142 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11143 lt_prog_compiler_wl='-Wl,'
11144 lt_prog_compiler_pic='-qpic'
11145 lt_prog_compiler_static='-qstaticlink'
11148 case `$CC -V 2>&1 | sed 5q` in
11149 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11150 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11151 lt_prog_compiler_pic='-KPIC'
11152 lt_prog_compiler_static='-Bstatic'
11153 lt_prog_compiler_wl=''
11155 *Sun\ F* | *Sun*Fortran*)
11156 lt_prog_compiler_pic='-KPIC'
11157 lt_prog_compiler_static='-Bstatic'
11158 lt_prog_compiler_wl='-Qoption ld '
11162 lt_prog_compiler_pic='-KPIC'
11163 lt_prog_compiler_static='-Bstatic'
11164 lt_prog_compiler_wl='-Wl,'
11166 *Intel*\ [CF]*Compiler*)
11167 lt_prog_compiler_wl='-Wl,'
11168 lt_prog_compiler_pic='-fPIC'
11169 lt_prog_compiler_static='-static'
11172 lt_prog_compiler_wl='-Wl,'
11173 lt_prog_compiler_pic='-fpic'
11174 lt_prog_compiler_static='-Bstatic'
11182 lt_prog_compiler_pic='-KPIC'
11183 lt_prog_compiler_static='-Bstatic'
11187 # QNX uses GNU C++, but need to define -shared option too, otherwise
11188 # it will coredump.
11189 lt_prog_compiler_pic='-fPIC -shared'
11192 osf3* | osf4* | osf5*)
11193 lt_prog_compiler_wl='-Wl,'
11194 # All OSF/1 code is PIC.
11195 lt_prog_compiler_static='-non_shared'
11199 lt_prog_compiler_static='-non_shared'
11203 lt_prog_compiler_pic='-KPIC'
11204 lt_prog_compiler_static='-Bstatic'
11205 case $cc_basename in
11206 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11207 lt_prog_compiler_wl='-Qoption ld ';;
11209 lt_prog_compiler_wl='-Wl,';;
11214 lt_prog_compiler_wl='-Qoption ld '
11215 lt_prog_compiler_pic='-PIC'
11216 lt_prog_compiler_static='-Bstatic'
11219 sysv4 | sysv4.2uw2* | sysv4.3*)
11220 lt_prog_compiler_wl='-Wl,'
11221 lt_prog_compiler_pic='-KPIC'
11222 lt_prog_compiler_static='-Bstatic'
11226 if test -d /usr/nec; then
11227 lt_prog_compiler_pic='-Kconform_pic'
11228 lt_prog_compiler_static='-Bstatic'
11232 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11233 lt_prog_compiler_wl='-Wl,'
11234 lt_prog_compiler_pic='-KPIC'
11235 lt_prog_compiler_static='-Bstatic'
11239 lt_prog_compiler_wl='-Wl,'
11240 lt_prog_compiler_can_build_shared=no
11244 lt_prog_compiler_pic='-pic'
11245 lt_prog_compiler_static='-Bstatic'
11249 lt_prog_compiler_can_build_shared=no
11255 # For platforms that do not support PIC, -DPIC is meaningless:
11257 lt_prog_compiler_pic=
11260 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11265 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11266 if ${lt_cv_prog_compiler_pic+:} false; then :
11267 $as_echo_n "(cached) " >&6
11269 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11272 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11273 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11276 # Check to make sure the PIC flag actually works.
11278 if test -n "$lt_prog_compiler_pic"; then
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11280 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11281 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11282 $as_echo_n "(cached) " >&6
11284 lt_cv_prog_compiler_pic_works=no
11285 ac_outfile=conftest.$ac_objext
11286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11287 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11288 # Insert the option either (1) after the last *FLAGS variable, or
11289 # (2) before a word containing "conftest.", or (3) at the end.
11290 # Note that $ac_compile itself does not contain backslashes and begins
11291 # with a dollar sign (not a hyphen), so the echo should work correctly.
11292 # The option is referenced via a variable to avoid confusing sed.
11293 lt_compile=`echo "$ac_compile" | $SED \
11294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11296 -e 's:$: $lt_compiler_flag:'`
11297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11298 (eval "$lt_compile" 2>conftest.err)
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 if (exit $ac_status) && test -s "$ac_outfile"; then
11303 # The compiler can only warn and ignore the option if not recognized
11304 # So say no if there are warnings other than the usual output.
11305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11307 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11308 lt_cv_prog_compiler_pic_works=yes
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11315 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11317 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11318 case $lt_prog_compiler_pic in
11320 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11323 lt_prog_compiler_pic=
11324 lt_prog_compiler_can_build_shared=no
11340 # Check to make sure the static flag actually works.
11342 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11344 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11345 if ${lt_cv_prog_compiler_static_works+:} false; then :
11346 $as_echo_n "(cached) " >&6
11348 lt_cv_prog_compiler_static_works=no
11349 save_LDFLAGS=$LDFLAGS
11350 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11351 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11352 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11353 # The linker can only warn and ignore the option if not recognized
11354 # So say no if there are warnings
11355 if test -s conftest.err; then
11356 # Append any errors to the config.log.
11357 cat conftest.err 1>&5
11358 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11360 if diff conftest.exp conftest.er2 >/dev/null; then
11361 lt_cv_prog_compiler_static_works=yes
11364 lt_cv_prog_compiler_static_works=yes
11368 LDFLAGS=$save_LDFLAGS
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11372 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11374 if test yes = "$lt_cv_prog_compiler_static_works"; then
11377 lt_prog_compiler_static=
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11387 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11388 if ${lt_cv_prog_compiler_c_o+:} false; then :
11389 $as_echo_n "(cached) " >&6
11391 lt_cv_prog_compiler_c_o=no
11392 $RM -r conftest 2>/dev/null
11396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11398 lt_compiler_flag="-o out/conftest2.$ac_objext"
11399 # Insert the option either (1) after the last *FLAGS variable, or
11400 # (2) before a word containing "conftest.", or (3) at the end.
11401 # Note that $ac_compile itself does not contain backslashes and begins
11402 # with a dollar sign (not a hyphen), so the echo should work correctly.
11403 lt_compile=`echo "$ac_compile" | $SED \
11404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11406 -e 's:$: $lt_compiler_flag:'`
11407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11408 (eval "$lt_compile" 2>out/conftest.err)
11410 cat out/conftest.err >&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11414 # The compiler can only warn and ignore the option if not recognized
11415 # So say no if there are warnings
11416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11417 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11418 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11419 lt_cv_prog_compiler_c_o=yes
11424 # SGI C++ compiler will create directory out/ii_files/ for
11425 # template instantiation
11426 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11427 $RM out/* && rmdir out
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11434 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11442 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11443 if ${lt_cv_prog_compiler_c_o+:} false; then :
11444 $as_echo_n "(cached) " >&6
11446 lt_cv_prog_compiler_c_o=no
11447 $RM -r conftest 2>/dev/null
11451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11453 lt_compiler_flag="-o out/conftest2.$ac_objext"
11454 # Insert the option either (1) after the last *FLAGS variable, or
11455 # (2) before a word containing "conftest.", or (3) at the end.
11456 # Note that $ac_compile itself does not contain backslashes and begins
11457 # with a dollar sign (not a hyphen), so the echo should work correctly.
11458 lt_compile=`echo "$ac_compile" | $SED \
11459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11461 -e 's:$: $lt_compiler_flag:'`
11462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11463 (eval "$lt_compile" 2>out/conftest.err)
11465 cat out/conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11469 # The compiler can only warn and ignore the option if not recognized
11470 # So say no if there are warnings
11471 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11472 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11473 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11474 lt_cv_prog_compiler_c_o=yes
11479 # SGI C++ compiler will create directory out/ii_files/ for
11480 # template instantiation
11481 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11482 $RM out/* && rmdir out
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11489 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11494 hard_links=nottested
11495 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11496 # do not overwrite the value of need_locks provided by the user
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11498 $as_echo_n "checking if we can lock with hard links... " >&6; }
11501 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11503 ln conftest.a conftest.b 2>&5 || hard_links=no
11504 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11506 $as_echo "$hard_links" >&6; }
11507 if test no = "$hard_links"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11509 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11522 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11525 allow_undefined_flag=
11526 always_export_symbols=no
11528 archive_expsym_cmds=
11529 compiler_needs_object=no
11530 enable_shared_with_static_runtimes=no
11531 export_dynamic_flag_spec=
11532 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11533 hardcode_automatic=no
11535 hardcode_direct_absolute=no
11536 hardcode_libdir_flag_spec=
11537 hardcode_libdir_separator=
11538 hardcode_minus_L=no
11539 hardcode_shlibpath_var=unsupported
11541 link_all_deplibs=unknown
11543 module_expsym_cmds=
11544 old_archive_from_new_cmds=
11545 old_archive_from_expsyms_cmds=
11546 thread_safe_flag_spec=
11547 whole_archive_flag_spec=
11548 # include_expsyms should be a list of space-separated symbols to be *always*
11549 # included in the symbol list
11551 # exclude_expsyms can be an extended regexp of symbols to exclude
11552 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11553 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11554 # as well as any symbol that contains 'd'.
11555 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11556 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11557 # platforms (ab)use it in PIC code, but their linkers get confused if
11558 # the symbol is explicitly referenced. Since portable code cannot
11559 # rely on this symbol name, it's probably fine to never include it in
11560 # preloaded symbol tables.
11561 # Exclude shared library initialization/finalization symbols.
11562 extract_expsyms_cmds=
11565 cygwin* | mingw* | pw32* | cegcc*)
11566 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11567 # When not using gcc, we currently assume that we are using
11568 # Microsoft Visual C++.
11569 if test yes != "$GCC"; then
11574 # we just hope/assume this is gcc and not c89 (= MSVC++)
11577 openbsd* | bitrig*)
11584 # On some targets, GNU ld is compatible enough with the native linker
11585 # that we're better off using the native interface for both.
11586 lt_use_gnu_ld_interface=no
11587 if test yes = "$with_gnu_ld"; then
11590 # The AIX port of GNU ld has always aspired to compatibility
11591 # with the native linker. However, as the warning in the GNU ld
11592 # block says, versions before 2.19.5* couldn't really create working
11593 # shared libraries, regardless of the interface used.
11594 case `$LD -v 2>&1` in
11595 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11596 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11597 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11599 lt_use_gnu_ld_interface=yes
11604 lt_use_gnu_ld_interface=yes
11609 if test yes = "$lt_use_gnu_ld_interface"; then
11610 # If archive_cmds runs LD, not CC, wlarc should be empty
11613 # Set some defaults for GNU ld with shared library support. These
11614 # are reset later if shared libraries are not supported. Putting them
11615 # here allows them to be overridden if necessary.
11616 runpath_var=LD_RUN_PATH
11617 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11618 export_dynamic_flag_spec='$wl--export-dynamic'
11619 # ancient GNU ld didn't support --whole-archive et. al.
11620 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11621 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11623 whole_archive_flag_spec=
11625 supports_anon_versioning=no
11626 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11627 *GNU\ gold*) supports_anon_versioning=yes ;;
11628 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11629 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11630 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11631 *\ 2.11.*) ;; # other 2.11 versions
11632 *) supports_anon_versioning=yes ;;
11635 # See if GNU ld supports shared libraries.
11638 # On AIX/PPC, the GNU linker is very broken
11639 if test ia64 != "$host_cpu"; then
11643 *** Warning: the GNU linker, at least up to release 2.19, is reported
11644 *** to be unable to reliably create shared libraries on AIX.
11645 *** Therefore, libtool is disabling shared libraries support. If you
11646 *** really care for shared libraries, you may want to install binutils
11647 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11648 *** You will then need to restart the configuration process.
11657 # see comment about AmigaOS4 .so support
11658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11659 archive_expsym_cmds=''
11662 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)'
11663 hardcode_libdir_flag_spec='-L$libdir'
11664 hardcode_minus_L=yes
11670 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11671 allow_undefined_flag=unsupported
11672 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11673 # support --undefined. This deserves some investigation. FIXME
11674 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11680 cygwin* | mingw* | pw32* | cegcc*)
11681 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11682 # as there is no search path for DLLs.
11683 hardcode_libdir_flag_spec='-L$libdir'
11684 export_dynamic_flag_spec='$wl--export-all-symbols'
11685 allow_undefined_flag=unsupported
11686 always_export_symbols=no
11687 enable_shared_with_static_runtimes=yes
11688 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'
11689 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11691 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11693 # If the export-symbols file already is a .def file, use it as
11694 # is; otherwise, prepend EXPORTS...
11695 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11696 cp $export_symbols $output_objdir/$soname.def;
11698 echo EXPORTS > $output_objdir/$soname.def;
11699 cat $export_symbols >> $output_objdir/$soname.def;
11701 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11709 link_all_deplibs=yes
11713 hardcode_libdir_flag_spec='-L$libdir'
11714 hardcode_minus_L=yes
11715 allow_undefined_flag=unsupported
11717 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11718 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11719 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11720 $ECHO EXPORTS >> $output_objdir/$libname.def~
11721 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11722 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11723 emximp -o $lib $output_objdir/$libname.def'
11724 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11725 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11726 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11727 $ECHO EXPORTS >> $output_objdir/$libname.def~
11728 prefix_cmds="$SED"~
11729 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11730 prefix_cmds="$prefix_cmds -e 1d";
11732 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11733 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11734 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11735 emximp -o $lib $output_objdir/$libname.def'
11736 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11737 enable_shared_with_static_runtimes=yes
11742 hardcode_shlibpath_var=no
11743 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11744 export_dynamic_flag_spec='$wl-E'
11745 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11746 # Instead, shared libraries are loaded at an image base (0x10000000 by
11747 # default) and relocated if they conflict, which is a slow very memory
11748 # consuming and fragmenting process. To avoid this, we pick a random,
11749 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11750 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11751 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11752 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'
11755 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11757 if test linux-dietlibc = "$host_os"; then
11758 case $cc_basename in
11759 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11762 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11763 && test no = "$tmp_diet"
11765 tmp_addflag=' $pic_flag'
11766 tmp_sharedflag='-shared'
11767 case $cc_basename,$host_cpu in
11768 pgcc*) # Portland Group C compiler
11769 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'
11770 tmp_addflag=' $pic_flag'
11772 pgf77* | pgf90* | pgf95* | pgfortran*)
11773 # Portland Group f77 and f90 compilers
11774 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'
11775 tmp_addflag=' $pic_flag -Mnomain' ;;
11776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11777 tmp_addflag=' -i_dynamic' ;;
11778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11779 tmp_addflag=' -i_dynamic -nofor_main' ;;
11780 ifc* | ifort*) # Intel Fortran compiler
11781 tmp_addflag=' -nofor_main' ;;
11782 lf95*) # Lahey Fortran 8.1
11783 whole_archive_flag_spec=
11784 tmp_sharedflag='--shared' ;;
11785 nagfor*) # NAGFOR 5.3
11786 tmp_sharedflag='-Wl,-shared' ;;
11787 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11788 tmp_sharedflag='-qmkshrobj'
11790 nvcc*) # Cuda Compiler Driver 2.2
11791 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'
11792 compiler_needs_object=yes
11795 case `$CC -V 2>&1 | sed 5q` in
11796 *Sun\ C*) # Sun C 5.9
11797 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'
11798 compiler_needs_object=yes
11799 tmp_sharedflag='-G' ;;
11800 *Sun\ F*) # Sun Fortran 8.3
11801 tmp_sharedflag='-G' ;;
11803 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11805 if test yes = "$supports_anon_versioning"; then
11806 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11807 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11808 echo "local: *; };" >> $output_objdir/$libname.ver~
11809 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11812 case $cc_basename in
11814 export_dynamic_flag_spec='-rdynamic'
11816 xlf* | bgf* | bgxlf* | mpixlf*)
11817 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11818 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11819 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11820 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11821 if test yes = "$supports_anon_versioning"; then
11822 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11823 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11824 echo "local: *; };" >> $output_objdir/$libname.ver~
11825 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11835 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11836 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11839 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11840 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11845 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11849 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11850 *** create shared libraries on Solaris systems. Therefore, libtool
11851 *** is disabling shared libraries support. We urge you to upgrade GNU
11852 *** binutils to release 2.9.1 or newer. Another option is to modify
11853 *** your PATH or compiler configuration so that the native linker is
11854 *** used, and then restart.
11857 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11858 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11859 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11866 case `$LD -v 2>&1` in
11867 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11871 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11872 *** reliably create shared libraries on SCO systems. Therefore, libtool
11873 *** is disabling shared libraries support. We urge you to upgrade GNU
11874 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11875 *** your PATH or compiler configuration so that the native linker is
11876 *** used, and then restart.
11881 # For security reasons, it is highly recommended that you always
11882 # use absolute paths for naming shared libraries, and exclude the
11883 # DT_RUNPATH tag from executables and libraries. But doing so
11884 # requires that you compile everything twice, which is a pain.
11885 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11886 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11888 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11897 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11899 hardcode_direct=yes
11900 hardcode_shlibpath_var=no
11904 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11905 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11906 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11913 if test no = "$ld_shlibs"; then
11915 hardcode_libdir_flag_spec=
11916 export_dynamic_flag_spec=
11917 whole_archive_flag_spec=
11920 # PORTME fill in a description of your system's linker (not GNU ld)
11923 allow_undefined_flag=unsupported
11924 always_export_symbols=yes
11925 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'
11926 # Note: this linker hardcodes the directories in LIBPATH if there
11927 # are no directories specified by -L.
11928 hardcode_minus_L=yes
11929 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11930 # Neither direct hardcoding nor static linking is supported with a
11932 hardcode_direct=unsupported
11937 if test ia64 = "$host_cpu"; then
11938 # On IA64, the linker does run time linking by default, so we don't
11939 # have to do anything special.
11940 aix_use_runtimelinking=no
11941 exp_sym_flag='-Bexport'
11944 # If we're using GNU nm, then we don't want the "-C" option.
11945 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11946 # Without the "-l" option, or with the "-B" option, AIX nm treats
11947 # weak defined symbols like other global defined symbols, whereas
11948 # GNU nm marks them as "W".
11949 # While the 'weak' keyword is ignored in the Export File, we need
11950 # it in the Import File for the 'aix-soname' feature, so we have
11951 # to replace the "-B" option with "-P" for AIX nm.
11952 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11953 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'
11955 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'
11957 aix_use_runtimelinking=no
11959 # Test if we are trying to use run time linking or normal
11960 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11961 # have runtime linking enabled, and use it for executables.
11962 # For shared libraries, we enable/disable runtime linking
11963 # depending on the kind of the shared library created -
11964 # when "with_aix_soname,aix_use_runtimelinking" is:
11965 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11966 # "aix,yes" lib.so shared, rtl:yes, for executables
11967 # lib.a static archive
11968 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11969 # lib.a(lib.so.V) shared, rtl:no, for executables
11970 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11971 # lib.a(lib.so.V) shared, rtl:no
11972 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11973 # lib.a static archive
11974 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11975 for ld_flag in $LDFLAGS; do
11976 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11977 aix_use_runtimelinking=yes
11981 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11982 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11983 # so we don't have lib.a shared libs to link our executables.
11984 # We have to force runtime linking in this case.
11985 aix_use_runtimelinking=yes
11986 LDFLAGS="$LDFLAGS -Wl,-brtl"
11991 exp_sym_flag='-bexport'
11992 no_entry_flag='-bnoentry'
11995 # When large executables or shared objects are built, AIX ld can
11996 # have problems creating the table of contents. If linking a library
11997 # or program results in "error TOC overflow" add -mminimal-toc to
11998 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11999 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12002 hardcode_direct=yes
12003 hardcode_direct_absolute=yes
12004 hardcode_libdir_separator=':'
12005 link_all_deplibs=yes
12006 file_list_spec='$wl-f,'
12007 case $with_aix_soname,$aix_use_runtimelinking in
12008 aix,*) ;; # traditional, no import file
12009 svr4,* | *,yes) # use import file
12010 # The Import File defines what to hardcode.
12012 hardcode_direct_absolute=no
12016 if test yes = "$GCC"; then
12017 case $host_os in aix4.[012]|aix4.[012].*)
12018 # We only want to do this on AIX 4.2 and lower, the check
12019 # below for broken collect2 doesn't work under 4.3+
12020 collect2name=`$CC -print-prog-name=collect2`
12021 if test -f "$collect2name" &&
12022 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12024 # We have reworked collect2
12027 # We have old collect2
12028 hardcode_direct=unsupported
12029 # It fails to find uninstalled libraries when the uninstalled
12030 # path is not listed in the libpath. Setting hardcode_minus_L
12031 # to unsupported forces relinking
12032 hardcode_minus_L=yes
12033 hardcode_libdir_flag_spec='-L$libdir'
12034 hardcode_libdir_separator=
12038 shared_flag='-shared'
12039 if test yes = "$aix_use_runtimelinking"; then
12040 shared_flag="$shared_flag "'$wl-G'
12042 # Need to ensure runtime linking is disabled for the traditional
12043 # shared library, or the linker may eventually find shared libraries
12044 # /with/ Import File - we do not want to mix them.
12045 shared_flag_aix='-shared'
12046 shared_flag_svr4='-shared $wl-G'
12049 if test ia64 = "$host_cpu"; then
12050 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12051 # chokes on -Wl,-G. The following line is correct:
12054 if test yes = "$aix_use_runtimelinking"; then
12055 shared_flag='$wl-G'
12057 shared_flag='$wl-bM:SRE'
12059 shared_flag_aix='$wl-bM:SRE'
12060 shared_flag_svr4='$wl-G'
12064 export_dynamic_flag_spec='$wl-bexpall'
12065 # It seems that -bexpall does not export symbols beginning with
12066 # underscore (_), so it is better to generate a list of symbols to export.
12067 always_export_symbols=yes
12068 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12069 # Warning - without using the other runtime loading flags (-brtl),
12070 # -berok will link without error, but may produce a broken library.
12071 allow_undefined_flag='-berok'
12072 # Determine the default libpath from the value encoded in an
12073 # empty executable.
12074 if test set = "${lt_cv_aix_libpath+set}"; then
12075 aix_libpath=$lt_cv_aix_libpath
12077 if ${lt_cv_aix_libpath_+:} false; then :
12078 $as_echo_n "(cached) " >&6
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12091 if ac_fn_c_try_link "$LINENO"; then :
12093 lt_aix_libpath_sed='
12094 /Import File Strings/,/^$/ {
12096 s/^0 *\([^ ]*\) *$/\1/
12100 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12101 # Check for a 64-bit object if we didn't find anything.
12102 if test -z "$lt_cv_aix_libpath_"; then
12103 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12106 rm -f core conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108 if test -z "$lt_cv_aix_libpath_"; then
12109 lt_cv_aix_libpath_=/usr/lib:/lib
12114 aix_libpath=$lt_cv_aix_libpath_
12117 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12118 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
12120 if test ia64 = "$host_cpu"; then
12121 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12122 allow_undefined_flag="-z nodefs"
12123 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"
12125 # Determine the default libpath from the value encoded in an
12126 # empty executable.
12127 if test set = "${lt_cv_aix_libpath+set}"; then
12128 aix_libpath=$lt_cv_aix_libpath
12130 if ${lt_cv_aix_libpath_+:} false; then :
12131 $as_echo_n "(cached) " >&6
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12144 if ac_fn_c_try_link "$LINENO"; then :
12146 lt_aix_libpath_sed='
12147 /Import File Strings/,/^$/ {
12149 s/^0 *\([^ ]*\) *$/\1/
12153 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12154 # Check for a 64-bit object if we didn't find anything.
12155 if test -z "$lt_cv_aix_libpath_"; then
12156 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12159 rm -f core conftest.err conftest.$ac_objext \
12160 conftest$ac_exeext conftest.$ac_ext
12161 if test -z "$lt_cv_aix_libpath_"; then
12162 lt_cv_aix_libpath_=/usr/lib:/lib
12167 aix_libpath=$lt_cv_aix_libpath_
12170 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12171 # Warning - without using the other run time loading flags,
12172 # -berok will link without error, but may produce a broken library.
12173 no_undefined_flag=' $wl-bernotok'
12174 allow_undefined_flag=' $wl-berok'
12175 if test yes = "$with_gnu_ld"; then
12176 # We only use this code for GNU lds that support --whole-archive.
12177 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12179 # Exported symbols can be pulled into shared objects from archives
12180 whole_archive_flag_spec='$convenience'
12182 archive_cmds_need_lc=yes
12183 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12184 # -brtl affects multiple linker settings, -berok does not and is overridden later
12185 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12186 if test svr4 != "$with_aix_soname"; then
12187 # This is similar to how AIX traditionally builds its shared libraries.
12188 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'
12190 if test aix != "$with_aix_soname"; then
12191 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'
12193 # used by -dlpreopen to get the symbols
12194 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12196 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12204 # see comment about AmigaOS4 .so support
12205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12206 archive_expsym_cmds=''
12209 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)'
12210 hardcode_libdir_flag_spec='-L$libdir'
12211 hardcode_minus_L=yes
12217 export_dynamic_flag_spec=-rdynamic
12220 cygwin* | mingw* | pw32* | cegcc*)
12221 # When not using gcc, we currently assume that we are using
12222 # Microsoft Visual C++.
12223 # hardcode_libdir_flag_spec is actually meaningless, as there is
12224 # no search path for DLLs.
12225 case $cc_basename in
12228 hardcode_libdir_flag_spec=' '
12229 allow_undefined_flag=unsupported
12230 always_export_symbols=yes
12232 # Tell ltmain to make .lib files, not .a files.
12234 # Tell ltmain to make .dll files, not .so files.
12236 # FIXME: Setting linknames here is a bad hack.
12237 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12238 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12239 cp "$export_symbols" "$output_objdir/$soname.def";
12240 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12242 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12244 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12246 # The linker will not automatically build a static lib if we build a DLL.
12247 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12248 enable_shared_with_static_runtimes=yes
12249 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12250 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12252 old_postinstall_cmds='chmod 644 $oldlib'
12253 postlink_cmds='lt_outputfile="@OUTPUT@"~
12254 lt_tool_outputfile="@TOOL_OUTPUT@"~
12255 case $lt_outputfile in
12258 lt_outputfile=$lt_outputfile.exe
12259 lt_tool_outputfile=$lt_tool_outputfile.exe
12262 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12263 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12264 $RM "$lt_outputfile.manifest";
12268 # Assume MSVC wrapper
12269 hardcode_libdir_flag_spec=' '
12270 allow_undefined_flag=unsupported
12271 # Tell ltmain to make .lib files, not .a files.
12273 # Tell ltmain to make .dll files, not .so files.
12275 # FIXME: Setting linknames here is a bad hack.
12276 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12277 # The linker will automatically build a .lib file if we build a DLL.
12278 old_archive_from_new_cmds='true'
12279 # FIXME: Should let the user specify the lib program.
12280 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12281 enable_shared_with_static_runtimes=yes
12286 darwin* | rhapsody*)
12289 archive_cmds_need_lc=no
12291 hardcode_automatic=yes
12292 hardcode_shlibpath_var=unsupported
12293 if test yes = "$lt_cv_ld_force_load"; then
12294 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\"`'
12297 whole_archive_flag_spec=''
12299 link_all_deplibs=yes
12300 allow_undefined_flag=$_lt_dar_allow_undefined
12301 case $cc_basename in
12302 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12303 *) _lt_dar_can_shared=$GCC ;;
12305 if test yes = "$_lt_dar_can_shared"; then
12306 output_verbose_link_cmd=func_echo_all
12307 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12308 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12309 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"
12310 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"
12319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12320 hardcode_libdir_flag_spec='-L$libdir'
12321 hardcode_shlibpath_var=no
12324 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12325 # support. Future versions do this automatically, but an explicit c++rt0.o
12326 # does not break anything, and helps significantly (at the cost of a little
12329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12330 hardcode_libdir_flag_spec='-R$libdir'
12331 hardcode_direct=yes
12332 hardcode_shlibpath_var=no
12335 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12338 hardcode_direct=yes
12339 hardcode_minus_L=yes
12340 hardcode_shlibpath_var=no
12343 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12344 freebsd* | dragonfly*)
12345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12346 hardcode_libdir_flag_spec='-R$libdir'
12347 hardcode_direct=yes
12348 hardcode_shlibpath_var=no
12352 if test yes = "$GCC"; then
12353 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'
12355 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'
12357 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12358 hardcode_libdir_separator=:
12359 hardcode_direct=yes
12361 # hardcode_minus_L: Not really in the search PATH,
12362 # but as the default location of the library.
12363 hardcode_minus_L=yes
12364 export_dynamic_flag_spec='$wl-E'
12368 if test yes,no = "$GCC,$with_gnu_ld"; then
12369 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12371 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12373 if test no = "$with_gnu_ld"; then
12374 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12375 hardcode_libdir_separator=:
12376 hardcode_direct=yes
12377 hardcode_direct_absolute=yes
12378 export_dynamic_flag_spec='$wl-E'
12379 # hardcode_minus_L: Not really in the search PATH,
12380 # but as the default location of the library.
12381 hardcode_minus_L=yes
12386 if test yes,no = "$GCC,$with_gnu_ld"; then
12389 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12392 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12395 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12401 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12404 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12408 # Older versions of the 11.00 compiler do not understand -b yet
12409 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12411 $as_echo_n "checking if $CC understands -b... " >&6; }
12412 if ${lt_cv_prog_compiler__b+:} false; then :
12413 $as_echo_n "(cached) " >&6
12415 lt_cv_prog_compiler__b=no
12416 save_LDFLAGS=$LDFLAGS
12417 LDFLAGS="$LDFLAGS -b"
12418 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12419 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12420 # The linker can only warn and ignore the option if not recognized
12421 # So say no if there are warnings
12422 if test -s conftest.err; then
12423 # Append any errors to the config.log.
12424 cat conftest.err 1>&5
12425 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12427 if diff conftest.exp conftest.er2 >/dev/null; then
12428 lt_cv_prog_compiler__b=yes
12431 lt_cv_prog_compiler__b=yes
12435 LDFLAGS=$save_LDFLAGS
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12439 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12441 if test yes = "$lt_cv_prog_compiler__b"; then
12442 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12444 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12450 if test no = "$with_gnu_ld"; then
12451 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12452 hardcode_libdir_separator=:
12457 hardcode_shlibpath_var=no
12460 hardcode_direct=yes
12461 hardcode_direct_absolute=yes
12462 export_dynamic_flag_spec='$wl-E'
12464 # hardcode_minus_L: Not really in the search PATH,
12465 # but as the default location of the library.
12466 hardcode_minus_L=yes
12472 irix5* | irix6* | nonstopux*)
12473 if test yes = "$GCC"; then
12474 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'
12475 # Try to use the -exported_symbol ld option, if it does not
12476 # work, assume that -exports_file does not work either and
12477 # implicitly export all symbols.
12478 # This should be the same for all languages, so no per-tag cache variable.
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12480 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12481 if ${lt_cv_irix_exported_symbol+:} false; then :
12482 $as_echo_n "(cached) " >&6
12484 save_LDFLAGS=$LDFLAGS
12485 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h. */
12488 int foo (void) { return 0; }
12490 if ac_fn_c_try_link "$LINENO"; then :
12491 lt_cv_irix_exported_symbol=yes
12493 lt_cv_irix_exported_symbol=no
12495 rm -f core conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12497 LDFLAGS=$save_LDFLAGS
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12500 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12501 if test yes = "$lt_cv_irix_exported_symbol"; then
12502 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'
12505 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'
12506 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'
12508 archive_cmds_need_lc='no'
12509 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12510 hardcode_libdir_separator=:
12512 link_all_deplibs=yes
12516 case $cc_basename in
12518 # Fabrice Bellard et al's Tiny C Compiler
12520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12526 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12529 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12531 hardcode_libdir_flag_spec='-R$libdir'
12532 hardcode_direct=yes
12533 hardcode_shlibpath_var=no
12537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12538 hardcode_direct=yes
12539 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12540 hardcode_libdir_separator=:
12541 hardcode_shlibpath_var=no
12547 openbsd* | bitrig*)
12548 if test -f /usr/libexec/ld.so; then
12549 hardcode_direct=yes
12550 hardcode_shlibpath_var=no
12551 hardcode_direct_absolute=yes
12552 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12553 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12554 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12555 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12556 export_dynamic_flag_spec='$wl-E'
12558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12559 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12567 hardcode_libdir_flag_spec='-L$libdir'
12568 hardcode_minus_L=yes
12569 allow_undefined_flag=unsupported
12571 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12572 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12573 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12574 $ECHO EXPORTS >> $output_objdir/$libname.def~
12575 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12576 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12577 emximp -o $lib $output_objdir/$libname.def'
12578 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12579 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12580 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12581 $ECHO EXPORTS >> $output_objdir/$libname.def~
12582 prefix_cmds="$SED"~
12583 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12584 prefix_cmds="$prefix_cmds -e 1d";
12586 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12587 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12588 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12589 emximp -o $lib $output_objdir/$libname.def'
12590 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12591 enable_shared_with_static_runtimes=yes
12595 if test yes = "$GCC"; then
12596 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12597 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'
12599 allow_undefined_flag=' -expect_unresolved \*'
12600 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'
12602 archive_cmds_need_lc='no'
12603 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12604 hardcode_libdir_separator=:
12607 osf4* | osf5*) # as osf3* with the addition of -msym flag
12608 if test yes = "$GCC"; then
12609 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12610 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'
12611 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12613 allow_undefined_flag=' -expect_unresolved \*'
12614 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'
12615 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~
12616 $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'
12618 # Both c and cxx compiler support -rpath directly
12619 hardcode_libdir_flag_spec='-rpath $libdir'
12621 archive_cmds_need_lc='no'
12622 hardcode_libdir_separator=:
12626 no_undefined_flag=' -z defs'
12627 if test yes = "$GCC"; then
12629 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12630 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12631 $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'
12633 case `$CC -V 2>&1` in
12636 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12638 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12642 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12644 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12648 hardcode_libdir_flag_spec='-R$libdir'
12649 hardcode_shlibpath_var=no
12651 solaris2.[0-5] | solaris2.[0-5].*) ;;
12653 # The compiler driver will combine and reorder linker options,
12654 # but understands '-z linker_flag'. GCC discards it without '$wl',
12655 # but is careful enough not to reorder.
12656 # Supported since Solaris 2.6 (maybe 2.5.1?)
12657 if test yes = "$GCC"; then
12658 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12660 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12664 link_all_deplibs=yes
12668 if test sequent = "$host_vendor"; then
12669 # Use $CC to link under sequent, because it throws in some extra .o
12670 # files that make .init and .fini sections work.
12671 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12673 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12675 hardcode_libdir_flag_spec='-L$libdir'
12676 hardcode_direct=yes
12677 hardcode_minus_L=yes
12678 hardcode_shlibpath_var=no
12682 case $host_vendor in
12684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12685 hardcode_direct=yes # is this really true???
12688 ## LD is ld it makes a PLAMLIB
12689 ## CC just makes a GrossModule.
12690 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12691 reload_cmds='$CC -r -o $output$reload_objs'
12695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12696 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12699 runpath_var='LD_RUN_PATH'
12700 hardcode_shlibpath_var=no
12704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12705 hardcode_shlibpath_var=no
12706 export_dynamic_flag_spec='-Bexport'
12710 if test -d /usr/nec; then
12711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12712 hardcode_shlibpath_var=no
12713 runpath_var=LD_RUN_PATH
12714 hardcode_runpath_var=yes
12719 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12720 no_undefined_flag='$wl-z,text'
12721 archive_cmds_need_lc=no
12722 hardcode_shlibpath_var=no
12723 runpath_var='LD_RUN_PATH'
12725 if test yes = "$GCC"; then
12726 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12727 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12729 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12730 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12734 sysv5* | sco3.2v5* | sco5v6*)
12735 # Note: We CANNOT use -z defs as we might desire, because we do not
12736 # link with -lc, and that would cause any symbols used from libc to
12737 # always be unresolved, which means just about no library would
12738 # ever link correctly. If we're not using GNU ld we use -z text
12739 # though, which does catch some bad symbols but isn't as heavy-handed
12741 no_undefined_flag='$wl-z,text'
12742 allow_undefined_flag='$wl-z,nodefs'
12743 archive_cmds_need_lc=no
12744 hardcode_shlibpath_var=no
12745 hardcode_libdir_flag_spec='$wl-R,$libdir'
12746 hardcode_libdir_separator=':'
12747 link_all_deplibs=yes
12748 export_dynamic_flag_spec='$wl-Bexport'
12749 runpath_var='LD_RUN_PATH'
12751 if test yes = "$GCC"; then
12752 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12753 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12755 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12756 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12762 hardcode_libdir_flag_spec='-L$libdir'
12763 hardcode_shlibpath_var=no
12771 if test sni = "$host_vendor"; then
12773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12774 export_dynamic_flag_spec='$wl-Blargedynsym'
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12781 $as_echo "$ld_shlibs" >&6; }
12782 test no = "$ld_shlibs" && can_build_shared=no
12784 with_gnu_ld=$with_gnu_ld
12801 # Do we need to explicitly link libc?
12803 case "x$archive_cmds_need_lc" in
12805 # Assume -lc should be added
12806 archive_cmds_need_lc=yes
12808 if test yes,yes = "$GCC,$enable_shared"; then
12809 case $archive_cmds in
12811 # FIXME: we may have to deal with multi-command sequences.
12814 # Test whether the compiler implicitly links with -lc since on some
12815 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12816 # to ld, don't add -lc before -lgcc.
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12818 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12819 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12820 $as_echo_n "(cached) " >&6
12823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12826 (eval $ac_compile) 2>&5
12828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12829 test $ac_status = 0; } 2>conftest.err; then
12832 libobjs=conftest.$ac_objext
12834 wl=$lt_prog_compiler_wl
12835 pic_flag=$lt_prog_compiler_pic
12841 lt_save_allow_undefined_flag=$allow_undefined_flag
12842 allow_undefined_flag=
12843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12844 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12847 test $ac_status = 0; }
12849 lt_cv_archive_cmds_need_lc=no
12851 lt_cv_archive_cmds_need_lc=yes
12853 allow_undefined_flag=$lt_save_allow_undefined_flag
12855 cat conftest.err 1>&5
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12861 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12862 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13021 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13023 if test yes = "$GCC"; then
13025 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13026 *) lt_awk_arg='/^libraries:/' ;;
13029 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13030 *) lt_sed_strip_eq='s|=/|/|g' ;;
13032 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13033 case $lt_search_path_spec in
13035 # if the path contains ";" then we assume it to be the separator
13036 # otherwise default to the standard path separator (i.e. ":") - it is
13037 # assumed that no part of a normal pathname contains ";" but that should
13038 # okay in the real world where ";" in dirpaths is itself problematic.
13039 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13042 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13045 # Ok, now we have the path, separated by spaces, we can step through it
13046 # and add multilib dir if necessary...
13047 lt_tmp_lt_search_path_spec=
13048 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13049 # ...but if some path component already ends with the multilib dir we assume
13050 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13051 case "$lt_multi_os_dir; $lt_search_path_spec " in
13052 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13056 for lt_sys_path in $lt_search_path_spec; do
13057 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13058 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13059 elif test -n "$lt_multi_os_dir"; then
13060 test -d "$lt_sys_path" && \
13061 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13064 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13065 BEGIN {RS = " "; FS = "/|\n";} {
13068 for (lt_i = NF; lt_i > 0; lt_i--) {
13069 if ($lt_i != "" && $lt_i != ".") {
13070 if ($lt_i == "..") {
13073 if (lt_count == 0) {
13074 lt_foo = "/" $lt_i lt_foo;
13081 if (lt_foo != "") { lt_freq[lt_foo]++; }
13082 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13084 # AWK program above erroneously prepends '/' to C:/dos/paths
13087 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13088 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13090 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13094 library_names_spec=
13095 libname_spec='lib$name'
13099 postuninstall_cmds=
13103 shlibpath_overrides_runpath=unknown
13105 dynamic_linker="$host_os ld.so"
13106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13107 need_lib_prefix=unknown
13108 hardcode_into_libs=no
13110 # when you set need_version to no, make sure it does not cause -set_version
13111 # flags to be left without arguments
13112 need_version=unknown
13118 version_type=linux # correct to gnu/linux during the next big refactor
13119 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13120 shlibpath_var=LIBPATH
13122 # AIX 3 has no versioning support, so we append a major version to the name.
13123 soname_spec='$libname$release$shared_ext$major'
13127 version_type=linux # correct to gnu/linux during the next big refactor
13130 hardcode_into_libs=yes
13131 if test ia64 = "$host_cpu"; then
13132 # AIX 5 supports IA64
13133 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13134 shlibpath_var=LD_LIBRARY_PATH
13136 # With GCC up to 2.95.x, collect2 would create an import file
13137 # for dependence libraries. The import file would start with
13138 # the line '#! .'. This would cause the generated library to
13139 # depend on '.', always an invalid library. This was fixed in
13140 # development snapshots of GCC prior to 3.0.
13142 aix4 | aix4.[01] | aix4.[01].*)
13143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13145 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13148 can_build_shared=no
13152 # Using Import Files as archive members, it is possible to support
13153 # filename-based versioning of shared library archives on AIX. While
13154 # this would work for both with and without runtime linking, it will
13155 # prevent static linking of such archives. So we do filename-based
13156 # shared library versioning with .so extension only, which is used
13157 # when both runtime linking and shared linking is enabled.
13158 # Unfortunately, runtime linking may impact performance, so we do
13159 # not want this to be the default eventually. Also, we use the
13160 # versioned .so libs for executables only if there is the -brtl
13161 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13162 # To allow for filename-based versioning support, we need to create
13163 # libNAME.so.V as an archive file, containing:
13164 # *) an Import File, referring to the versioned filename of the
13165 # archive as well as the shared archive member, telling the
13166 # bitwidth (32 or 64) of that shared object, and providing the
13167 # list of exported symbols of that shared object, eventually
13168 # decorated with the 'weak' keyword
13169 # *) the shared object with the F_LOADONLY flag set, to really avoid
13170 # it being seen by the linker.
13171 # At run time we better use the real file rather than another symlink,
13172 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13174 case $with_aix_soname,$aix_use_runtimelinking in
13175 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13176 # soname into executable. Probably we can add versioning support to
13177 # collect2, so additional links can be useful in future.
13178 aix,yes) # traditional libtool
13179 dynamic_linker='AIX unversionable lib.so'
13180 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13181 # instead of lib<name>.a to let people know that these are not
13182 # typical AIX shared libraries.
13183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13185 aix,no) # traditional AIX only
13186 dynamic_linker='AIX lib.a(lib.so.V)'
13187 # We preserve .a as extension for shared libraries through AIX4.2
13188 # and later when we are not doing run time linking.
13189 library_names_spec='$libname$release.a $libname.a'
13190 soname_spec='$libname$release$shared_ext$major'
13192 svr4,*) # full svr4 only
13193 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13194 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13195 # We do not specify a path in Import Files, so LIBPATH fires.
13196 shlibpath_overrides_runpath=yes
13198 *,yes) # both, prefer svr4
13199 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13200 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13201 # unpreferred sharedlib libNAME.a needs extra handling
13202 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"'
13203 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"'
13204 # We do not specify a path in Import Files, so LIBPATH fires.
13205 shlibpath_overrides_runpath=yes
13207 *,no) # both, prefer aix
13208 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13209 library_names_spec='$libname$release.a $libname.a'
13210 soname_spec='$libname$release$shared_ext$major'
13211 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13212 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)'
13213 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"'
13216 shlibpath_var=LIBPATH
13223 # Since July 2007 AmigaOS4 officially supports .so libraries.
13224 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13228 library_names_spec='$libname.ixlibrary $libname.a'
13229 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13230 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'
13236 library_names_spec='$libname$shared_ext'
13237 dynamic_linker="$host_os ld.so"
13238 shlibpath_var=LIBRARY_PATH
13242 version_type=linux # correct to gnu/linux during the next big refactor
13244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13245 soname_spec='$libname$release$shared_ext$major'
13246 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13247 shlibpath_var=LD_LIBRARY_PATH
13248 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13249 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13250 # the default ld.so.conf also contains /usr/contrib/lib and
13251 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13252 # libtool to hard-code these into programs
13255 cygwin* | mingw* | pw32* | cegcc*)
13256 version_type=windows
13261 case $GCC,$cc_basename in
13264 library_names_spec='$libname.dll.a'
13265 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13266 postinstall_cmds='base_file=`basename \$file`~
13267 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13268 dldir=$destdir/`dirname \$dlpath`~
13269 test -d \$dldir || mkdir -p \$dldir~
13270 $install_prog $dir/$dlname \$dldir/$dlname~
13271 chmod a+x \$dldir/$dlname~
13272 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13273 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13275 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13276 dlpath=$dir/\$dldll~
13278 shlibpath_overrides_runpath=yes
13282 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13283 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13285 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13288 # MinGW DLLs use traditional 'lib' prefix
13289 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13292 # pw32 DLLs use 'pw' prefix rather than 'lib'
13293 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13296 dynamic_linker='Win32 ld.exe'
13301 libname_spec='$name'
13302 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13303 library_names_spec='$libname.dll.lib'
13307 sys_lib_search_path_spec=
13310 for lt_path in $LIB
13313 # Let DOS variable expansion print the short 8.3 style file name.
13314 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13315 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13318 # Convert to MSYS style.
13319 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13322 # Convert to unix form, then to dos form, then back to unix form
13323 # but this time dos style (no spaces!) so that the unix form looks
13324 # like /cygdrive/c/PROGRA~1:/cygdr...
13325 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13326 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13327 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13330 sys_lib_search_path_spec=$LIB
13331 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13332 # It is most probably a Windows format PATH.
13333 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13335 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13337 # FIXME: find the short name or the path components, as spaces are
13338 # common. (e.g. "Program Files" -> "PROGRA~1")
13342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13343 postinstall_cmds='base_file=`basename \$file`~
13344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13345 dldir=$destdir/`dirname \$dlpath`~
13346 test -d \$dldir || mkdir -p \$dldir~
13347 $install_prog $dir/$dlname \$dldir/$dlname'
13348 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13349 dlpath=$dir/\$dldll~
13351 shlibpath_overrides_runpath=yes
13352 dynamic_linker='Win32 link.exe'
13356 # Assume MSVC wrapper
13357 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13358 dynamic_linker='Win32 ld.exe'
13361 # FIXME: first we should search . and the directory the executable is in
13365 darwin* | rhapsody*)
13366 dynamic_linker="$host_os dyld"
13367 version_type=darwin
13370 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13371 soname_spec='$libname$release$major$shared_ext'
13372 shlibpath_overrides_runpath=yes
13373 shlibpath_var=DYLD_LIBRARY_PATH
13374 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13376 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13377 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13381 version_type=linux # correct to gnu/linux during the next big refactor
13384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13385 soname_spec='$libname$release$shared_ext$major'
13386 shlibpath_var=LD_LIBRARY_PATH
13389 freebsd* | dragonfly*)
13390 # DragonFly does not have aout. When/if they implement a new
13391 # versioning mechanism, adjust this.
13392 if test -x /usr/bin/objformat; then
13393 objformat=`/usr/bin/objformat`
13396 freebsd[23].*) objformat=aout ;;
13397 *) objformat=elf ;;
13400 version_type=freebsd-$objformat
13401 case $version_type in
13403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13404 soname_spec='$libname$release$shared_ext$major'
13409 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13413 shlibpath_var=LD_LIBRARY_PATH
13416 shlibpath_overrides_runpath=yes
13418 freebsd3.[01]* | freebsdelf3.[01]*)
13419 shlibpath_overrides_runpath=yes
13420 hardcode_into_libs=yes
13422 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13423 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13424 shlibpath_overrides_runpath=no
13425 hardcode_into_libs=yes
13427 *) # from 4.6 on, and DragonFly
13428 shlibpath_overrides_runpath=yes
13429 hardcode_into_libs=yes
13435 version_type=linux # correct to gnu/linux during the next big refactor
13438 dynamic_linker="$host_os runtime_loader"
13439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13440 soname_spec='$libname$release$shared_ext$major'
13441 shlibpath_var=LIBRARY_PATH
13442 shlibpath_overrides_runpath=no
13443 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13444 hardcode_into_libs=yes
13447 hpux9* | hpux10* | hpux11*)
13448 # Give a soname corresponding to the major version so that dld.sl refuses to
13449 # link against other versions.
13456 hardcode_into_libs=yes
13457 dynamic_linker="$host_os dld.so"
13458 shlibpath_var=LD_LIBRARY_PATH
13459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13461 soname_spec='$libname$release$shared_ext$major'
13462 if test 32 = "$HPUX_IA64_MODE"; then
13463 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13464 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13466 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13467 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13472 hardcode_into_libs=yes
13473 dynamic_linker="$host_os dld.sl"
13474 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13477 soname_spec='$libname$release$shared_ext$major'
13478 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13483 dynamic_linker="$host_os dld.sl"
13484 shlibpath_var=SHLIB_PATH
13485 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13487 soname_spec='$libname$release$shared_ext$major'
13490 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13491 postinstall_cmds='chmod 555 $lib'
13492 # or fails outright, so override atomically:
13493 install_override_mode=555
13497 version_type=linux # correct to gnu/linux during the next big refactor
13500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13501 soname_spec='$libname$release$shared_ext$major'
13502 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13503 shlibpath_var=LD_LIBRARY_PATH
13504 shlibpath_overrides_runpath=no
13505 hardcode_into_libs=yes
13508 irix5* | irix6* | nonstopux*)
13510 nonstopux*) version_type=nonstopux ;;
13512 if test yes = "$lt_cv_prog_gnu_ld"; then
13513 version_type=linux # correct to gnu/linux during the next big refactor
13520 soname_spec='$libname$release$shared_ext$major'
13521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13523 irix5* | nonstopux*)
13524 libsuff= shlibsuff=
13527 case $LD in # libtool.m4 will add one of these switches to LD
13528 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13529 libsuff= shlibsuff= libmagic=32-bit;;
13530 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13531 libsuff=32 shlibsuff=N32 libmagic=N32;;
13532 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13533 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13534 *) libsuff= shlibsuff= libmagic=never-match;;
13538 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13539 shlibpath_overrides_runpath=no
13540 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13541 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13542 hardcode_into_libs=yes
13545 # No shared lib support for Linux oldld, aout, or coff.
13546 linux*oldld* | linux*aout* | linux*coff*)
13551 version_type=none # Android doesn't support versioned libraries.
13554 library_names_spec='$libname$release$shared_ext'
13555 soname_spec='$libname$release$shared_ext'
13557 shlibpath_var=LD_LIBRARY_PATH
13558 shlibpath_overrides_runpath=yes
13560 # This implies no fast_install, which is unacceptable.
13561 # Some rework will be needed to allow for fast_install
13562 # before this can be enabled.
13563 hardcode_into_libs=yes
13565 dynamic_linker='Android linker'
13566 # Don't embed -rpath directories since the linker doesn't support them.
13567 hardcode_libdir_flag_spec='-L$libdir'
13570 # This must be glibc/ELF.
13571 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13572 version_type=linux # correct to gnu/linux during the next big refactor
13575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13576 soname_spec='$libname$release$shared_ext$major'
13577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13578 shlibpath_var=LD_LIBRARY_PATH
13579 shlibpath_overrides_runpath=no
13581 # Some binutils ld are patched to set DT_RUNPATH
13582 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13583 $as_echo_n "(cached) " >&6
13585 lt_cv_shlibpath_overrides_runpath=no
13586 save_LDFLAGS=$LDFLAGS
13587 save_libdir=$libdir
13588 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13589 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13601 if ac_fn_c_try_link "$LINENO"; then :
13602 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13603 lt_cv_shlibpath_overrides_runpath=yes
13606 rm -f core conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext conftest.$ac_ext
13608 LDFLAGS=$save_LDFLAGS
13609 libdir=$save_libdir
13613 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13615 # This implies no fast_install, which is unacceptable.
13616 # Some rework will be needed to allow for fast_install
13617 # before this can be enabled.
13618 hardcode_into_libs=yes
13620 # Add ABI-specific directories to the system library path.
13621 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13623 # Ideally, we could use ldconfig to report *all* directores which are
13624 # searched for libraries, however this is still not possible. Aside from not
13625 # being certain /sbin/ldconfig is available, command
13626 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13627 # even though it is searched at run-time. Try to do the best guess by
13628 # appending ld.so.conf contents (and includes) to the search path.
13629 if test -f /etc/ld.so.conf; then
13630 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' ' '`
13631 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13634 # We used to test for /lib/ld.so.1 and disable shared libraries on
13635 # powerpc, because MkLinux only supported shared libraries with the
13636 # GNU dynamic linker. Since this was broken with cross compilers,
13637 # most powerpc-linux boxes support dynamic linking these days and
13638 # people can always --disable-shared, the test was removed, and we
13639 # assume the GNU/Linux dynamic linker is in use.
13640 dynamic_linker='GNU/Linux ld.so'
13647 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13648 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13650 dynamic_linker='NetBSD (a.out) ld.so'
13652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13653 soname_spec='$libname$release$shared_ext$major'
13654 dynamic_linker='NetBSD ld.elf_so'
13656 shlibpath_var=LD_LIBRARY_PATH
13657 shlibpath_overrides_runpath=yes
13658 hardcode_into_libs=yes
13662 version_type=linux # correct to gnu/linux during the next big refactor
13663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13664 shlibpath_var=LD_LIBRARY_PATH
13665 shlibpath_overrides_runpath=yes
13672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13673 soname_spec='$libname$release$shared_ext$major'
13674 shlibpath_var=LD_LIBRARY_PATH
13675 shlibpath_overrides_runpath=no
13676 hardcode_into_libs=yes
13677 dynamic_linker='ldqnx.so'
13680 openbsd* | bitrig*)
13682 sys_lib_dlsearch_path_spec=/usr/lib
13684 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13689 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13691 shlibpath_var=LD_LIBRARY_PATH
13692 shlibpath_overrides_runpath=yes
13696 libname_spec='$name'
13697 version_type=windows
13701 # OS/2 can only load a DLL with a base name of 8 characters or less.
13702 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13703 v=$($ECHO $release$versuffix | tr -d .-);
13704 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13705 $ECHO $n$v`$shared_ext'
13706 library_names_spec='${libname}_dll.$libext'
13707 dynamic_linker='OS/2 ld.exe'
13708 shlibpath_var=BEGINLIBPATH
13709 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13711 postinstall_cmds='base_file=`basename \$file`~
13712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13713 dldir=$destdir/`dirname \$dlpath`~
13714 test -d \$dldir || mkdir -p \$dldir~
13715 $install_prog $dir/$dlname \$dldir/$dlname~
13716 chmod a+x \$dldir/$dlname~
13717 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13718 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13721 dlpath=$dir/\$dldll~
13725 osf3* | osf4* | osf5*)
13729 soname_spec='$libname$release$shared_ext$major'
13730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13731 shlibpath_var=LD_LIBRARY_PATH
13732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13741 version_type=linux # correct to gnu/linux during the next big refactor
13744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13745 soname_spec='$libname$release$shared_ext$major'
13746 shlibpath_var=LD_LIBRARY_PATH
13747 shlibpath_overrides_runpath=yes
13748 hardcode_into_libs=yes
13749 # ldd complains unless libraries are executable
13750 postinstall_cmds='chmod +x $lib'
13755 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13757 shlibpath_var=LD_LIBRARY_PATH
13758 shlibpath_overrides_runpath=yes
13759 if test yes = "$with_gnu_ld"; then
13766 version_type=linux # correct to gnu/linux during the next big refactor
13767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13768 soname_spec='$libname$release$shared_ext$major'
13769 shlibpath_var=LD_LIBRARY_PATH
13770 case $host_vendor in
13772 shlibpath_overrides_runpath=no
13774 runpath_var=LD_RUN_PATH
13782 shlibpath_overrides_runpath=no
13783 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13789 if test -d /usr/nec; then
13790 version_type=linux # correct to gnu/linux during the next big refactor
13791 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13792 soname_spec='$libname$shared_ext.$major'
13793 shlibpath_var=LD_LIBRARY_PATH
13797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13802 soname_spec='$libname$release$shared_ext$major'
13803 shlibpath_var=LD_LIBRARY_PATH
13804 shlibpath_overrides_runpath=yes
13805 hardcode_into_libs=yes
13806 if test yes = "$with_gnu_ld"; then
13807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13809 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13812 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13816 sys_lib_dlsearch_path_spec='/usr/lib'
13820 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13821 version_type=linux # correct to gnu/linux during the next big refactor
13824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13825 shlibpath_var=LD_LIBRARY_PATH
13826 shlibpath_overrides_runpath=no
13827 hardcode_into_libs=yes
13831 version_type=linux # correct to gnu/linux during the next big refactor
13832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13833 soname_spec='$libname$release$shared_ext$major'
13834 shlibpath_var=LD_LIBRARY_PATH
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13842 $as_echo "$dynamic_linker" >&6; }
13843 test no = "$dynamic_linker" && can_build_shared=no
13845 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13846 if test yes = "$GCC"; then
13847 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13850 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13851 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13854 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13855 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13858 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13859 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13861 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13862 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13864 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13865 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13964 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13966 if test -n "$hardcode_libdir_flag_spec" ||
13967 test -n "$runpath_var" ||
13968 test yes = "$hardcode_automatic"; then
13970 # We can hardcode non-existent directories.
13971 if test no != "$hardcode_direct" &&
13972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13973 # have to relink, otherwise we might link with an installed library
13974 # when we should be linking with a yet-to-be-installed one
13975 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13976 test no != "$hardcode_minus_L"; then
13977 # Linking always hardcodes the temporary library directory.
13978 hardcode_action=relink
13980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13981 hardcode_action=immediate
13984 # We cannot hardcode anything, or else we can only hardcode existing
13986 hardcode_action=unsupported
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13989 $as_echo "$hardcode_action" >&6; }
13991 if test relink = "$hardcode_action" ||
13992 test yes = "$inherit_rpath"; then
13993 # Fast installation is not supported
13994 enable_fast_install=no
13995 elif test yes = "$shlibpath_overrides_runpath" ||
13996 test no = "$enable_shared"; then
13997 # Fast installation is not necessary
13998 enable_fast_install=needless
14006 if test yes != "$enable_dlopen"; then
14007 enable_dlopen=unknown
14008 enable_dlopen_self=unknown
14009 enable_dlopen_self_static=unknown
14016 lt_cv_dlopen=load_add_on
14018 lt_cv_dlopen_self=yes
14021 mingw* | pw32* | cegcc*)
14022 lt_cv_dlopen=LoadLibrary
14027 lt_cv_dlopen=dlopen
14032 # if libdl is installed we need to link against it
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14034 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14035 if ${ac_cv_lib_dl_dlopen+:} false; then :
14036 $as_echo_n "(cached) " >&6
14038 ac_check_lib_save_LIBS=$LIBS
14040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041 /* end confdefs.h. */
14043 /* Override any GCC internal prototype to avoid an error.
14044 Use char because int might match the return type of a GCC
14045 builtin and then its argument prototype would still apply. */
14058 if ac_fn_c_try_link "$LINENO"; then :
14059 ac_cv_lib_dl_dlopen=yes
14061 ac_cv_lib_dl_dlopen=no
14063 rm -f core conftest.err conftest.$ac_objext \
14064 conftest$ac_exeext conftest.$ac_ext
14065 LIBS=$ac_check_lib_save_LIBS
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14068 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14069 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14070 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14075 lt_cv_dlopen_self=yes
14082 # Don't try to run any link tests for TPF. We know it's impossible
14083 # because TPF is a cross-compiler, and we know how we open DSOs.
14084 lt_cv_dlopen=dlopen
14086 lt_cv_dlopen_self=no
14090 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14091 if test "x$ac_cv_func_shl_load" = xyes; then :
14092 lt_cv_dlopen=shl_load
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14095 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14096 if ${ac_cv_lib_dld_shl_load+:} false; then :
14097 $as_echo_n "(cached) " >&6
14099 ac_check_lib_save_LIBS=$LIBS
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14104 /* Override any GCC internal prototype to avoid an error.
14105 Use char because int might match the return type of a GCC
14106 builtin and then its argument prototype would still apply. */
14114 return shl_load ();
14119 if ac_fn_c_try_link "$LINENO"; then :
14120 ac_cv_lib_dld_shl_load=yes
14122 ac_cv_lib_dld_shl_load=no
14124 rm -f core conftest.err conftest.$ac_objext \
14125 conftest$ac_exeext conftest.$ac_ext
14126 LIBS=$ac_check_lib_save_LIBS
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14129 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14130 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14131 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14133 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14134 if test "x$ac_cv_func_dlopen" = xyes; then :
14135 lt_cv_dlopen=dlopen
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14138 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14139 if ${ac_cv_lib_dl_dlopen+:} false; then :
14140 $as_echo_n "(cached) " >&6
14142 ac_check_lib_save_LIBS=$LIBS
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14147 /* Override any GCC internal prototype to avoid an error.
14148 Use char because int might match the return type of a GCC
14149 builtin and then its argument prototype would still apply. */
14162 if ac_fn_c_try_link "$LINENO"; then :
14163 ac_cv_lib_dl_dlopen=yes
14165 ac_cv_lib_dl_dlopen=no
14167 rm -f core conftest.err conftest.$ac_objext \
14168 conftest$ac_exeext conftest.$ac_ext
14169 LIBS=$ac_check_lib_save_LIBS
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14172 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14173 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14174 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14177 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14178 if ${ac_cv_lib_svld_dlopen+:} false; then :
14179 $as_echo_n "(cached) " >&6
14181 ac_check_lib_save_LIBS=$LIBS
14182 LIBS="-lsvld $LIBS"
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14186 /* Override any GCC internal prototype to avoid an error.
14187 Use char because int might match the return type of a GCC
14188 builtin and then its argument prototype would still apply. */
14201 if ac_fn_c_try_link "$LINENO"; then :
14202 ac_cv_lib_svld_dlopen=yes
14204 ac_cv_lib_svld_dlopen=no
14206 rm -f core conftest.err conftest.$ac_objext \
14207 conftest$ac_exeext conftest.$ac_ext
14208 LIBS=$ac_check_lib_save_LIBS
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14211 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14212 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14213 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14216 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14217 if ${ac_cv_lib_dld_dld_link+:} false; then :
14218 $as_echo_n "(cached) " >&6
14220 ac_check_lib_save_LIBS=$LIBS
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14225 /* Override any GCC internal prototype to avoid an error.
14226 Use char because int might match the return type of a GCC
14227 builtin and then its argument prototype would still apply. */
14235 return dld_link ();
14240 if ac_fn_c_try_link "$LINENO"; then :
14241 ac_cv_lib_dld_dld_link=yes
14243 ac_cv_lib_dld_dld_link=no
14245 rm -f core conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14247 LIBS=$ac_check_lib_save_LIBS
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14250 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14251 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14252 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14273 if test no = "$lt_cv_dlopen"; then
14279 case $lt_cv_dlopen in
14281 save_CPPFLAGS=$CPPFLAGS
14282 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14284 save_LDFLAGS=$LDFLAGS
14285 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14288 LIBS="$lt_cv_dlopen_libs $LIBS"
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14291 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14292 if ${lt_cv_dlopen_self+:} false; then :
14293 $as_echo_n "(cached) " >&6
14295 if test yes = "$cross_compiling"; then :
14296 lt_cv_dlopen_self=cross
14298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14299 lt_status=$lt_dlunknown
14300 cat > conftest.$ac_ext <<_LT_EOF
14301 #line $LINENO "configure"
14302 #include "confdefs.h"
14311 # define LT_DLGLOBAL RTLD_GLOBAL
14314 # define LT_DLGLOBAL DL_GLOBAL
14316 # define LT_DLGLOBAL 0
14320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14321 find out it does not work in some platform. */
14322 #ifndef LT_DLLAZY_OR_NOW
14324 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14327 # define LT_DLLAZY_OR_NOW DL_LAZY
14330 # define LT_DLLAZY_OR_NOW RTLD_NOW
14333 # define LT_DLLAZY_OR_NOW DL_NOW
14335 # define LT_DLLAZY_OR_NOW 0
14342 /* When -fvisibility=hidden is used, assume the code has been annotated
14343 correspondingly for the symbols needed. */
14344 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14345 int fnord () __attribute__((visibility("default")));
14348 int fnord () { return 42; }
14351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14352 int status = $lt_dlunknown;
14356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14359 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14360 else puts (dlerror ());
14362 /* dlclose (self); */
14370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14371 (eval $ac_link) 2>&5
14373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14374 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14375 (./conftest; exit; ) >&5 2>/dev/null
14377 case x$lt_status in
14378 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14379 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14380 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14383 # compilation failed
14384 lt_cv_dlopen_self=no
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14392 $as_echo "$lt_cv_dlopen_self" >&6; }
14394 if test yes = "$lt_cv_dlopen_self"; then
14395 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14397 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14398 if ${lt_cv_dlopen_self_static+:} false; then :
14399 $as_echo_n "(cached) " >&6
14401 if test yes = "$cross_compiling"; then :
14402 lt_cv_dlopen_self_static=cross
14404 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14405 lt_status=$lt_dlunknown
14406 cat > conftest.$ac_ext <<_LT_EOF
14407 #line $LINENO "configure"
14408 #include "confdefs.h"
14417 # define LT_DLGLOBAL RTLD_GLOBAL
14420 # define LT_DLGLOBAL DL_GLOBAL
14422 # define LT_DLGLOBAL 0
14426 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14427 find out it does not work in some platform. */
14428 #ifndef LT_DLLAZY_OR_NOW
14430 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14433 # define LT_DLLAZY_OR_NOW DL_LAZY
14436 # define LT_DLLAZY_OR_NOW RTLD_NOW
14439 # define LT_DLLAZY_OR_NOW DL_NOW
14441 # define LT_DLLAZY_OR_NOW 0
14448 /* When -fvisibility=hidden is used, assume the code has been annotated
14449 correspondingly for the symbols needed. */
14450 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14451 int fnord () __attribute__((visibility("default")));
14454 int fnord () { return 42; }
14457 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14458 int status = $lt_dlunknown;
14462 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14465 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14466 else puts (dlerror ());
14468 /* dlclose (self); */
14476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14477 (eval $ac_link) 2>&5
14479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14480 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14481 (./conftest; exit; ) >&5 2>/dev/null
14483 case x$lt_status in
14484 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14485 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14486 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14489 # compilation failed
14490 lt_cv_dlopen_self_static=no
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14498 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14501 CPPFLAGS=$save_CPPFLAGS
14502 LDFLAGS=$save_LDFLAGS
14507 case $lt_cv_dlopen_self in
14508 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14509 *) enable_dlopen_self=unknown ;;
14512 case $lt_cv_dlopen_self_static in
14513 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14514 *) enable_dlopen_self_static=unknown ;;
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14537 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14538 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14539 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14540 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14542 $as_echo "yes" >&6; }
14544 # FIXME - insert some real tests, host_os isn't really good enough
14547 if test -n "$STRIP"; then
14548 striplib="$STRIP -x"
14549 old_striplib="$STRIP -S"
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14551 $as_echo "yes" >&6; }
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14554 $as_echo "no" >&6; }
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14559 $as_echo "no" >&6; }
14575 # Report what library types will actually be built
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14577 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14579 $as_echo "$can_build_shared" >&6; }
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14582 $as_echo_n "checking whether to build shared libraries... " >&6; }
14583 test no = "$can_build_shared" && enable_shared=no
14585 # On AIX, shared libraries and static libraries use the same namespace, and
14586 # are all built from PIC.
14589 test yes = "$enable_shared" && enable_static=no
14590 if test -n "$RANLIB"; then
14591 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14592 postinstall_cmds='$RANLIB $lib'
14597 if test ia64 != "$host_cpu"; then
14598 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14599 yes,aix,yes) ;; # shared object as lib.so file only
14600 yes,svr4,*) ;; # shared object as lib.so archive member only
14601 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14607 $as_echo "$enable_shared" >&6; }
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14610 $as_echo_n "checking whether to build static libraries... " >&6; }
14611 # Make sure either enable_shared or enable_static is yes.
14612 test yes = "$enable_shared" || enable_static=yes
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14614 $as_echo "$enable_static" >&6; }
14621 ac_cpp='$CPP $CPPFLAGS'
14622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14642 ac_config_commands="$ac_config_commands libtool"
14647 # Only expand once:
14652 # pkg-config is only needed for these options, do not require it otherwise
14653 if test "$enable_systemd" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then
14661 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14662 if test -n "$ac_tool_prefix"; then
14663 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14664 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14666 $as_echo_n "checking for $ac_word... " >&6; }
14667 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14668 $as_echo_n "(cached) " >&6
14670 case $PKG_CONFIG in
14672 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14676 for as_dir in $PATH
14679 test -z "$as_dir" && as_dir=.
14680 for ac_exec_ext in '' $ac_executable_extensions; do
14681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14682 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14693 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14694 if test -n "$PKG_CONFIG"; then
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14696 $as_echo "$PKG_CONFIG" >&6; }
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14699 $as_echo "no" >&6; }
14704 if test -z "$ac_cv_path_PKG_CONFIG"; then
14705 ac_pt_PKG_CONFIG=$PKG_CONFIG
14706 # Extract the first word of "pkg-config", so it can be a program name with args.
14707 set dummy pkg-config; ac_word=$2
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14709 $as_echo_n "checking for $ac_word... " >&6; }
14710 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14711 $as_echo_n "(cached) " >&6
14713 case $ac_pt_PKG_CONFIG in
14715 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14719 for as_dir in $PATH
14722 test -z "$as_dir" && as_dir=.
14723 for ac_exec_ext in '' $ac_executable_extensions; do
14724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14725 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14736 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14737 if test -n "$ac_pt_PKG_CONFIG"; then
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14739 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14742 $as_echo "no" >&6; }
14745 if test "x$ac_pt_PKG_CONFIG" = x; then
14748 case $cross_compiling:$ac_tool_warned in
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14752 ac_tool_warned=yes ;;
14754 PKG_CONFIG=$ac_pt_PKG_CONFIG
14757 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14761 if test -n "$PKG_CONFIG"; then
14762 _pkg_min_version=0.9.0
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14764 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14765 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14767 $as_echo "yes" >&6; }
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14770 $as_echo "no" >&6; }
14776 # Checks for header files.
14777 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 poll.h
14779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14780 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14782 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14783 cat >>confdefs.h <<_ACEOF
14784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14791 # net/if.h portability for Darwin see:
14792 # https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html
14793 for ac_header in net/if.h
14795 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
14797 #ifdef STDC_HEADERS
14798 # include <stdlib.h>
14799 # include <stddef.h>
14801 # ifdef HAVE_STDLIB_H
14802 # include <stdlib.h>
14805 #ifdef HAVE_SYS_SOCKET_H
14806 # include <sys/socket.h>
14810 if test "x$ac_cv_header_net_if_h" = xyes; then :
14811 cat >>confdefs.h <<_ACEOF
14812 #define HAVE_NET_IF_H 1
14820 # Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
14821 for ac_header in TargetConditionals.h
14823 ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default
14825 if test "x$ac_cv_header_TargetConditionals_h" = xyes; then :
14826 cat >>confdefs.h <<_ACEOF
14827 #define HAVE_TARGETCONDITIONALS_H 1
14834 for ac_header in netioapi.h
14836 ac_fn_c_check_header_compile "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" "$ac_includes_default
14837 #if HAVE_SYS_PARAM_H
14838 #include <sys/param.h>
14841 #ifdef HAVE_SYS_SOCKET_H
14842 #include <sys/socket.h>
14845 #ifdef HAVE_SYS_UIO_H
14846 #include <sys/uio.h>
14849 #ifdef HAVE_NETINET_IN_H
14850 #include <netinet/in.h>
14853 #ifdef HAVE_NETINET_TCP_H
14854 #include <netinet/tcp.h>
14857 #ifdef HAVE_ARPA_INET_H
14858 #include <arpa/inet.h>
14861 #ifdef HAVE_WINSOCK2_H
14862 #include <winsock2.h>
14865 #ifdef HAVE_WS2TCPIP_H
14866 #include <ws2tcpip.h>
14870 if test "x$ac_cv_header_netioapi_h" = xyes; then :
14871 cat >>confdefs.h <<_ACEOF
14872 #define HAVE_NETIOAPI_H 1
14881 # Using own tests for int64* because autoconf builtin only give 32bit.
14882 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14883 if test "x$ac_cv_type_int8_t" = xyes; then :
14887 cat >>confdefs.h <<_ACEOF
14888 #define int8_t signed char
14893 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14894 if test "x$ac_cv_type_int16_t" = xyes; then :
14898 cat >>confdefs.h <<_ACEOF
14899 #define int16_t short
14904 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14905 if test "x$ac_cv_type_int32_t" = xyes; then :
14909 cat >>confdefs.h <<_ACEOF
14910 #define int32_t int
14915 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14916 if test "x$ac_cv_type_int64_t" = xyes; then :
14920 cat >>confdefs.h <<_ACEOF
14921 #define int64_t long long
14926 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14927 if test "x$ac_cv_type_uint8_t" = xyes; then :
14931 cat >>confdefs.h <<_ACEOF
14932 #define uint8_t unsigned char
14937 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14938 if test "x$ac_cv_type_uint16_t" = xyes; then :
14942 cat >>confdefs.h <<_ACEOF
14943 #define uint16_t unsigned short
14948 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14949 if test "x$ac_cv_type_uint32_t" = xyes; then :
14953 cat >>confdefs.h <<_ACEOF
14954 #define uint32_t unsigned int
14959 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14960 if test "x$ac_cv_type_uint64_t" = xyes; then :
14964 cat >>confdefs.h <<_ACEOF
14965 #define uint64_t unsigned long long
14970 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14971 if test "x$ac_cv_type_size_t" = xyes; then :
14975 cat >>confdefs.h <<_ACEOF
14976 #define size_t unsigned int
14981 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14982 if test "x$ac_cv_type_ssize_t" = xyes; then :
14986 cat >>confdefs.h <<_ACEOF
14987 #define ssize_t int
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14993 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14994 if ${ac_cv_type_uid_t+:} false; then :
14995 $as_echo_n "(cached) " >&6
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999 #include <sys/types.h>
15002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15003 $EGREP "uid_t" >/dev/null 2>&1; then :
15004 ac_cv_type_uid_t=yes
15006 ac_cv_type_uid_t=no
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15012 $as_echo "$ac_cv_type_uid_t" >&6; }
15013 if test $ac_cv_type_uid_t = no; then
15015 $as_echo "#define uid_t int" >>confdefs.h
15018 $as_echo "#define gid_t int" >>confdefs.h
15022 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15023 if test "x$ac_cv_type_pid_t" = xyes; then :
15027 cat >>confdefs.h <<_ACEOF
15033 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15034 if test "x$ac_cv_type_off_t" = xyes; then :
15038 cat >>confdefs.h <<_ACEOF
15039 #define off_t long int
15044 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
15045 $ac_includes_default
15046 #ifdef HAVE_WINSOCK2_H
15047 # include <winsock2.h>
15051 if test "x$ac_cv_type_u_char" = xyes; then :
15055 $as_echo "#define u_char unsigned char" >>confdefs.h
15059 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
15060 $ac_includes_default
15061 #ifdef HAVE_SYS_RESOURCE_H
15062 # include <sys/resource.h>
15066 if test "x$ac_cv_type_rlim_t" = xyes; then :
15070 $as_echo "#define rlim_t unsigned long" >>confdefs.h
15075 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15076 $ac_includes_default
15077 #ifdef HAVE_SYS_SOCKET_H
15078 # include <sys/socket.h>
15080 #ifdef HAVE_WS2TCPIP_H
15081 # include <ws2tcpip.h>
15085 if test "x$ac_cv_type_socklen_t" = xyes; then :
15089 $as_echo "#define socklen_t int" >>confdefs.h
15093 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
15094 $ac_includes_default
15095 #ifdef HAVE_SYS_TYPES_H
15096 # include <sys/types.h>
15098 #ifdef HAVE_NETINET_IN_H
15099 # include <netinet/in.h>
15103 if test "x$ac_cv_type_in_addr_t" = xyes; then :
15107 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
15111 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
15112 $ac_includes_default
15113 #ifdef HAVE_SYS_TYPES_H
15114 # include <sys/types.h>
15116 #ifdef HAVE_NETINET_IN_H
15117 # include <netinet/in.h>
15121 if test "x$ac_cv_type_in_port_t" = xyes; then :
15125 $as_echo "#define in_port_t uint16_t" >>confdefs.h
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
15130 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
15131 if test "$cross_compiling" = yes; then :
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
15133 $as_echo "cross-compile no" >&6; }
15135 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15137 case " $LIBOBJS " in
15138 *" memcmp.$ac_objext "* ) ;;
15139 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15149 #include <stdlib.h>
15150 #include <string.h>
15153 char a = 255, b = 0;
15154 if(memcmp(&a, &b, 1) < 0)
15160 if ac_fn_c_try_run "$LINENO"; then :
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15162 $as_echo "yes" >&6; }
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15165 $as_echo "no" >&6; }
15167 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15169 case " $LIBOBJS " in
15170 *" memcmp.$ac_objext "* ) ;;
15171 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15178 conftest.$ac_objext conftest.beam conftest.$ac_ext
15182 # The cast to long int works around a bug in the HP C Compiler
15183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15185 # This bug is HP SR number 8606223364.
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15187 $as_echo_n "checking size of time_t... " >&6; }
15188 if ${ac_cv_sizeof_time_t+:} false; then :
15189 $as_echo_n "(cached) " >&6
15191 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
15192 $ac_includes_default
15193 #ifdef TIME_WITH_SYS_TIME
15194 # include <sys/time.h>
15197 # ifdef HAVE_SYS_TIME_H
15198 # include <sys/time.h>
15207 if test "$ac_cv_type_time_t" = yes; then
15208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15210 as_fn_error 77 "cannot compute sizeof (time_t)
15211 See \`config.log' for more details" "$LINENO" 5; }
15213 ac_cv_sizeof_time_t=0
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15219 $as_echo "$ac_cv_sizeof_time_t" >&6; }
15223 cat >>confdefs.h <<_ACEOF
15224 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15228 # The cast to long int works around a bug in the HP C Compiler
15229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15231 # This bug is HP SR number 8606223364.
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15233 $as_echo_n "checking size of size_t... " >&6; }
15234 if ${ac_cv_sizeof_size_t+:} false; then :
15235 $as_echo_n "(cached) " >&6
15237 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15240 if test "$ac_cv_type_size_t" = yes; then
15241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15243 as_fn_error 77 "cannot compute sizeof (size_t)
15244 See \`config.log' for more details" "$LINENO" 5; }
15246 ac_cv_sizeof_size_t=0
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15252 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15256 cat >>confdefs.h <<_ACEOF
15257 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15262 # add option to disable the evil rpath
15264 # Check whether --enable-rpath was given.
15265 if test "${enable_rpath+set}" = set; then :
15266 enableval=$enable_rpath; enable_rpath=$enableval
15271 if test "x$enable_rpath" = xno; then
15272 ac_config_commands="$ac_config_commands disable-rpath"
15278 # check to see if libraries are needed for these functions.
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15280 $as_echo_n "checking for library containing inet_pton... " >&6; }
15281 if ${ac_cv_search_inet_pton+:} false; then :
15282 $as_echo_n "(cached) " >&6
15284 ac_func_search_save_LIBS=$LIBS
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h. */
15288 /* Override any GCC internal prototype to avoid an error.
15289 Use char because int might match the return type of a GCC
15290 builtin and then its argument prototype would still apply. */
15298 return inet_pton ();
15303 for ac_lib in '' nsl; do
15304 if test -z "$ac_lib"; then
15305 ac_res="none required"
15308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15310 if ac_fn_c_try_link "$LINENO"; then :
15311 ac_cv_search_inet_pton=$ac_res
15313 rm -f core conftest.err conftest.$ac_objext \
15315 if ${ac_cv_search_inet_pton+:} false; then :
15319 if ${ac_cv_search_inet_pton+:} false; then :
15322 ac_cv_search_inet_pton=no
15324 rm conftest.$ac_ext
15325 LIBS=$ac_func_search_save_LIBS
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15328 $as_echo "$ac_cv_search_inet_pton" >&6; }
15329 ac_res=$ac_cv_search_inet_pton
15330 if test "$ac_res" != no; then :
15331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15336 $as_echo_n "checking for library containing socket... " >&6; }
15337 if ${ac_cv_search_socket+:} false; then :
15338 $as_echo_n "(cached) " >&6
15340 ac_func_search_save_LIBS=$LIBS
15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h. */
15344 /* Override any GCC internal prototype to avoid an error.
15345 Use char because int might match the return type of a GCC
15346 builtin and then its argument prototype would still apply. */
15359 for ac_lib in '' socket; do
15360 if test -z "$ac_lib"; then
15361 ac_res="none required"
15364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15366 if ac_fn_c_try_link "$LINENO"; then :
15367 ac_cv_search_socket=$ac_res
15369 rm -f core conftest.err conftest.$ac_objext \
15371 if ${ac_cv_search_socket+:} false; then :
15375 if ${ac_cv_search_socket+:} false; then :
15378 ac_cv_search_socket=no
15380 rm conftest.$ac_ext
15381 LIBS=$ac_func_search_save_LIBS
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15384 $as_echo "$ac_cv_search_socket" >&6; }
15385 ac_res=$ac_cv_search_socket
15386 if test "$ac_res" != no; then :
15387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15392 # check whether strptime also works
15394 # check some functions of the OS before linking libs (while still runnable).
15395 for ac_header in unistd.h
15397 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15398 if test "x$ac_cv_header_unistd_h" = xyes; then :
15399 cat >>confdefs.h <<_ACEOF
15400 #define HAVE_UNISTD_H 1
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15408 $as_echo_n "checking for working chown... " >&6; }
15409 if ${ac_cv_func_chown_works+:} false; then :
15410 $as_echo_n "(cached) " >&6
15412 if test "$cross_compiling" = yes; then :
15413 ac_cv_func_chown_works=no
15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h. */
15417 $ac_includes_default
15423 char *f = "conftest.chown";
15424 struct stat before, after;
15426 if (creat (f, 0600) < 0)
15428 if (stat (f, &before) < 0)
15430 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15432 if (stat (f, &after) < 0)
15434 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15440 if ac_fn_c_try_run "$LINENO"; then :
15441 ac_cv_func_chown_works=yes
15443 ac_cv_func_chown_works=no
15445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15446 conftest.$ac_objext conftest.beam conftest.$ac_ext
15449 rm -f conftest.chown
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15453 $as_echo "$ac_cv_func_chown_works" >&6; }
15454 if test $ac_cv_func_chown_works = yes; then
15456 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15460 for ac_header in vfork.h
15462 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15463 if test "x$ac_cv_header_vfork_h" = xyes; then :
15464 cat >>confdefs.h <<_ACEOF
15465 #define HAVE_VFORK_H 1
15472 for ac_func in fork vfork
15474 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15475 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15476 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15477 cat >>confdefs.h <<_ACEOF
15478 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15484 if test "x$ac_cv_func_fork" = xyes; then
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15486 $as_echo_n "checking for working fork... " >&6; }
15487 if ${ac_cv_func_fork_works+:} false; then :
15488 $as_echo_n "(cached) " >&6
15490 if test "$cross_compiling" = yes; then :
15491 ac_cv_func_fork_works=cross
15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494 /* end confdefs.h. */
15495 $ac_includes_default
15500 /* By Ruediger Kuhlmann. */
15501 return fork () < 0;
15507 if ac_fn_c_try_run "$LINENO"; then :
15508 ac_cv_func_fork_works=yes
15510 ac_cv_func_fork_works=no
15512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15513 conftest.$ac_objext conftest.beam conftest.$ac_ext
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15518 $as_echo "$ac_cv_func_fork_works" >&6; }
15521 ac_cv_func_fork_works=$ac_cv_func_fork
15523 if test "x$ac_cv_func_fork_works" = xcross; then
15525 *-*-amigaos* | *-*-msdosdjgpp*)
15526 # Override, as these systems have only a dummy fork() stub
15527 ac_cv_func_fork_works=no
15530 ac_cv_func_fork_works=yes
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15534 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15536 ac_cv_func_vfork_works=$ac_cv_func_vfork
15537 if test "x$ac_cv_func_vfork" = xyes; then
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15539 $as_echo_n "checking for working vfork... " >&6; }
15540 if ${ac_cv_func_vfork_works+:} false; then :
15541 $as_echo_n "(cached) " >&6
15543 if test "$cross_compiling" = yes; then :
15544 ac_cv_func_vfork_works=cross
15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15548 /* Thanks to Paul Eggert for this test. */
15549 $ac_includes_default
15550 #include <sys/wait.h>
15551 #ifdef HAVE_VFORK_H
15552 # include <vfork.h>
15554 /* On some sparc systems, changes by the child to local and incoming
15555 argument registers are propagated back to the parent. The compiler
15556 is told about this with #include <vfork.h>, but some compilers
15557 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15558 static variable whose address is put into a register that is
15559 clobbered by the vfork. */
15562 sparc_address_test (int arg)
15564 sparc_address_test (arg) int arg;
15567 static pid_t child;
15585 pid_t parent = getpid ();
15588 sparc_address_test (0);
15593 /* Here is another test for sparc vfork register problems. This
15594 test uses lots of local variables, at least as many local
15595 variables as main has allocated so far including compiler
15596 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15597 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15598 reuse the register of parent for one of the local variables,
15599 since it will think that parent can't possibly be used any more
15600 in this routine. Assigning to the local variable will thus
15601 munge parent in the parent process. */
15603 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15604 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15605 /* Convince the compiler that p..p7 are live; otherwise, it might
15606 use the same hardware register for all 8 local variables. */
15607 if (p != p1 || p != p2 || p != p3 || p != p4
15608 || p != p5 || p != p6 || p != p7)
15611 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15612 from child file descriptors. If the child closes a descriptor
15613 before it execs or exits, this munges the parent's descriptor
15614 as well. Test for this by closing stdout in the child. */
15615 _exit(close(fileno(stdout)) != 0);
15620 while (wait(&status) != child)
15623 /* Was there some problem with vforking? */
15626 /* Did the child fail? (This shouldn't happen.) */
15629 /* Did the vfork/compiler bug occur? */
15630 || parent != getpid()
15632 /* Did the file descriptor bug occur? */
15633 || fstat(fileno(stdout), &st) != 0
15638 if ac_fn_c_try_run "$LINENO"; then :
15639 ac_cv_func_vfork_works=yes
15641 ac_cv_func_vfork_works=no
15643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15644 conftest.$ac_objext conftest.beam conftest.$ac_ext
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15649 $as_echo "$ac_cv_func_vfork_works" >&6; }
15652 if test "x$ac_cv_func_fork_works" = xcross; then
15653 ac_cv_func_vfork_works=$ac_cv_func_vfork
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15655 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15658 if test "x$ac_cv_func_vfork_works" = xyes; then
15660 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15664 $as_echo "#define vfork fork" >>confdefs.h
15667 if test "x$ac_cv_func_fork_works" = xyes; then
15669 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15674 $as_echo "#define RETSIGTYPE void" >>confdefs.h
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15677 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15678 if ${ac_cv_sys_largefile_source+:} false; then :
15679 $as_echo_n "(cached) " >&6
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h. */
15684 #include <sys/types.h> /* for off_t */
15689 int (*fp) (FILE *, off_t, int) = fseeko;
15690 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15695 if ac_fn_c_try_link "$LINENO"; then :
15696 ac_cv_sys_largefile_source=no; break
15698 rm -f core conftest.err conftest.$ac_objext \
15699 conftest$ac_exeext conftest.$ac_ext
15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15701 /* end confdefs.h. */
15702 #define _LARGEFILE_SOURCE 1
15703 #include <sys/types.h> /* for off_t */
15708 int (*fp) (FILE *, off_t, int) = fseeko;
15709 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15714 if ac_fn_c_try_link "$LINENO"; then :
15715 ac_cv_sys_largefile_source=1; break
15717 rm -f core conftest.err conftest.$ac_objext \
15718 conftest$ac_exeext conftest.$ac_ext
15719 ac_cv_sys_largefile_source=unknown
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15724 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15725 case $ac_cv_sys_largefile_source in #(
15728 cat >>confdefs.h <<_ACEOF
15729 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15735 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15736 # in glibc 2.1.3, but that breaks too many other things.
15737 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15738 if test $ac_cv_sys_largefile_source != unknown; then
15740 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15745 # Check whether --enable-largefile was given.
15746 if test "${enable_largefile+set}" = set; then :
15747 enableval=$enable_largefile;
15750 if test "$enable_largefile" != no; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15753 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15754 if ${ac_cv_sys_largefile_CC+:} false; then :
15755 $as_echo_n "(cached) " >&6
15757 ac_cv_sys_largefile_CC=no
15758 if test "$GCC" != yes; then
15761 # IRIX 6.2 and later do not support large files by default,
15762 # so use the C compiler's -n32 option if that helps.
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15765 #include <sys/types.h>
15766 /* Check that off_t can represent 2**63 - 1 correctly.
15767 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15768 since some C++ compilers masquerading as C compilers
15769 incorrectly reject 9223372036854775807. */
15770 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15771 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15772 && LARGE_OFF_T % 2147483647 == 1)
15782 if ac_fn_c_try_compile "$LINENO"; then :
15785 rm -f core conftest.err conftest.$ac_objext
15787 if ac_fn_c_try_compile "$LINENO"; then :
15788 ac_cv_sys_largefile_CC=' -n32'; break
15790 rm -f core conftest.err conftest.$ac_objext
15794 rm -f conftest.$ac_ext
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15798 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15799 if test "$ac_cv_sys_largefile_CC" != no; then
15800 CC=$CC$ac_cv_sys_largefile_CC
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15804 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15805 if ${ac_cv_sys_file_offset_bits+:} false; then :
15806 $as_echo_n "(cached) " >&6
15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15810 /* end confdefs.h. */
15811 #include <sys/types.h>
15812 /* Check that off_t can represent 2**63 - 1 correctly.
15813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15814 since some C++ compilers masquerading as C compilers
15815 incorrectly reject 9223372036854775807. */
15816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15818 && LARGE_OFF_T % 2147483647 == 1)
15828 if ac_fn_c_try_compile "$LINENO"; then :
15829 ac_cv_sys_file_offset_bits=no; break
15831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833 /* end confdefs.h. */
15834 #define _FILE_OFFSET_BITS 64
15835 #include <sys/types.h>
15836 /* Check that off_t can represent 2**63 - 1 correctly.
15837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15838 since some C++ compilers masquerading as C compilers
15839 incorrectly reject 9223372036854775807. */
15840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15842 && LARGE_OFF_T % 2147483647 == 1)
15852 if ac_fn_c_try_compile "$LINENO"; then :
15853 ac_cv_sys_file_offset_bits=64; break
15855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856 ac_cv_sys_file_offset_bits=unknown
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15861 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15862 case $ac_cv_sys_file_offset_bits in #(
15865 cat >>confdefs.h <<_ACEOF
15866 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15871 if test $ac_cv_sys_file_offset_bits = unknown; then
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15873 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15874 if ${ac_cv_sys_large_files+:} false; then :
15875 $as_echo_n "(cached) " >&6
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880 #include <sys/types.h>
15881 /* Check that off_t can represent 2**63 - 1 correctly.
15882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15883 since some C++ compilers masquerading as C compilers
15884 incorrectly reject 9223372036854775807. */
15885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15887 && LARGE_OFF_T % 2147483647 == 1)
15897 if ac_fn_c_try_compile "$LINENO"; then :
15898 ac_cv_sys_large_files=no; break
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902 /* end confdefs.h. */
15903 #define _LARGE_FILES 1
15904 #include <sys/types.h>
15905 /* Check that off_t can represent 2**63 - 1 correctly.
15906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15907 since some C++ compilers masquerading as C compilers
15908 incorrectly reject 9223372036854775807. */
15909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15911 && LARGE_OFF_T % 2147483647 == 1)
15921 if ac_fn_c_try_compile "$LINENO"; then :
15922 ac_cv_sys_large_files=1; break
15924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15925 ac_cv_sys_large_files=unknown
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15930 $as_echo "$ac_cv_sys_large_files" >&6; }
15931 case $ac_cv_sys_large_files in #(
15934 cat >>confdefs.h <<_ACEOF
15935 #define _LARGE_FILES $ac_cv_sys_large_files
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15949 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15950 cache=_D_LARGEFILE_SOURCE_1
15951 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15952 $as_echo_n "(cached) " >&6
15958 int a = fseeko(stdin, 0, 0);
15962 echo 'void f(){}' >>conftest.c
15963 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15964 eval "cv_prog_cc_flag_needed_$cache=no"
15967 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15968 eval "cv_prog_cc_flag_needed_$cache=yes"
15970 eval "cv_prog_cc_flag_needed_$cache=fail"
15971 #echo 'Test with flag fails too!'
15973 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15974 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15979 rm -f conftest conftest.c conftest.o
15983 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15985 $as_echo "yes" >&6; }
15987 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15989 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15991 $as_echo "no" >&6; }
15992 #echo 'Test with flag is no!'
15994 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15995 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16001 $as_echo "failed" >&6; }
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
16010 $as_echo_n "checking if nonblocking sockets work... " >&6; }
16011 if echo $host | grep mingw >/dev/null; then
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
16013 $as_echo "no (windows)" >&6; }
16015 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
16018 if test "$cross_compiling" = yes; then :
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
16021 $as_echo "crosscompile(yes)" >&6; }
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16029 #include <string.h>
16030 #include <stdlib.h>
16033 #ifdef HAVE_SYS_TYPES_H
16034 #include <sys/types.h>
16036 #ifdef HAVE_SYS_SELECT_H
16037 #include <sys/select.h>
16039 #ifdef HAVE_SYS_SOCKET_H
16040 #include <sys/socket.h>
16042 #ifdef HAVE_NETINET_IN_H
16043 #include <netinet/in.h>
16045 #ifdef HAVE_ARPA_INET_H
16046 #include <arpa/inet.h>
16048 #ifdef HAVE_UNISTD_H
16049 #include <unistd.h>
16061 struct sockaddr_in a;
16062 /* test if select and nonblocking reads work well together */
16064 fork child to send 10 messages.
16066 then try to nonblocking read the 10 messages
16067 then, nonblocking read must give EAGAIN
16070 port = 12345 + (time(0)%32);
16071 sfd = socket(PF_INET, SOCK_DGRAM, 0);
16076 memset(&a, 0, sizeof(a));
16077 a.sin_family = AF_INET;
16078 a.sin_port = htons(port);
16079 a.sin_addr.s_addr = inet_addr("127.0.0.1");
16080 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
16084 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
16089 cfd = socket(PF_INET, SOCK_DGRAM, 0);
16091 perror("client socket");
16095 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
16096 perror("client bind");
16099 a.sin_port = htons(port);
16101 /* no handler, causes exit in 10 seconds */
16104 /* send and receive on the socket */
16105 if((p=fork()) == 0) {
16106 for(i=0; i<num; i++) {
16107 if(sendto(cfd, &i, sizeof(i), 0,
16108 (struct sockaddr*)&a, sizeof(a)) < 0) {
16122 FD_SET(sfd, &rset);
16123 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
16129 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
16130 if(errno == EAGAIN)
16137 /* now we want to get EAGAIN: nonblocking goodness */
16139 recv(sfd, &x, sizeof(x), 0);
16140 if(errno != EAGAIN) {
16141 perror("trying to recv again");
16144 /* EAGAIN encountered */
16153 if ac_fn_c_try_run "$LINENO"; then :
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16156 $as_echo "yes" >&6; }
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16161 $as_echo "no" >&6; }
16163 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
16167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16168 conftest.$ac_objext conftest.beam conftest.$ac_ext
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
16175 $as_echo_n "checking whether mkdir has one arg... " >&6; }
16176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177 /* end confdefs.h. */
16180 #include <unistd.h>
16181 #ifdef HAVE_WINSOCK2_H
16182 #include <winsock2.h>
16184 #ifdef HAVE_SYS_STAT_H
16185 #include <sys/stat.h>
16192 (void)mkdir("directory");
16198 if ac_fn_c_try_compile "$LINENO"; then :
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16200 $as_echo "yes" >&6; }
16202 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16207 $as_echo "no" >&6; }
16210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212 for ac_func in strptime
16214 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
16215 if test "x$ac_cv_func_strptime" = xyes; then :
16216 cat >>confdefs.h <<_ACEOF
16217 #define HAVE_STRPTIME 1
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
16221 $as_echo_n "checking whether strptime works... " >&6; }
16222 if test c${cross_compiling} = cno; then
16223 if test "$cross_compiling" = yes; then :
16224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16226 as_fn_error $? "cannot run test program while cross compiling
16227 See \`config.log' for more details" "$LINENO" 5; }
16229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16232 #define _XOPEN_SOURCE 600
16234 int main(void) { struct tm tm; char *res;
16235 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);
16236 if (!res) return 2;
16237 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
16238 if (!res) return 1; return 0; }
16241 if ac_fn_c_try_run "$LINENO"; then :
16242 eval "ac_cv_c_strptime_works=yes"
16244 eval "ac_cv_c_strptime_works=no"
16246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16247 conftest.$ac_objext conftest.beam conftest.$ac_ext
16251 eval "ac_cv_c_strptime_works=maybe"
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
16254 $as_echo "$ac_cv_c_strptime_works" >&6; }
16255 if test $ac_cv_c_strptime_works = no; then
16256 case " $LIBOBJS " in
16257 *" strptime.$ac_objext "* ) ;;
16258 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16264 cat >>confdefs.h <<_ACEOF
16265 #define STRPTIME_WORKS 1
16271 case " $LIBOBJS " in
16272 *" strptime.$ac_objext "* ) ;;
16273 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16281 # check if we can use SO_REUSEPORT
16282 reuseport_default=0
16283 if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi
16284 if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi
16285 if test "$reuseport_default" = 1; then
16287 $as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
16291 $as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
16295 # Include systemd.m4 - begin
16296 # macros for configuring systemd
16297 # Copyright 2015, Sami Kerola, CloudFlare.
16299 # Check whether --enable-systemd was given.
16300 if test "${enable_systemd+set}" = set; then :
16301 enableval=$enable_systemd;
16307 if test "x$enable_systemd" != xno; then :
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
16313 $as_echo_n "checking for SYSTEMD... " >&6; }
16315 if test -n "$SYSTEMD_CFLAGS"; then
16316 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
16317 elif test -n "$PKG_CONFIG"; then
16318 if test -n "$PKG_CONFIG" && \
16319 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16320 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16323 test $ac_status = 0; }; then
16324 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
16325 test "x$?" != "x0" && pkg_failed=yes
16332 if test -n "$SYSTEMD_LIBS"; then
16333 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
16334 elif test -n "$PKG_CONFIG"; then
16335 if test -n "$PKG_CONFIG" && \
16336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16337 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16340 test $ac_status = 0; }; then
16341 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
16342 test "x$?" != "x0" && pkg_failed=yes
16352 if test $pkg_failed = yes; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16354 $as_echo "no" >&6; }
16356 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16357 _pkg_short_errors_supported=yes
16359 _pkg_short_errors_supported=no
16361 if test $_pkg_short_errors_supported = yes; then
16362 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
16364 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
16366 # Put the nasty error message in config.log where it belongs
16367 echo "$SYSTEMD_PKG_ERRORS" >&5
16370 elif test $pkg_failed = untried; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372 $as_echo "no" >&6; }
16375 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
16376 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16378 $as_echo "yes" >&6; }
16381 if test "x$have_systemd" != "xyes"; then :
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
16386 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
16388 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
16389 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
16390 elif test -n "$PKG_CONFIG"; then
16391 if test -n "$PKG_CONFIG" && \
16392 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16393 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16396 test $ac_status = 0; }; then
16397 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16398 test "x$?" != "x0" && pkg_failed=yes
16405 if test -n "$SYSTEMD_DAEMON_LIBS"; then
16406 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
16407 elif test -n "$PKG_CONFIG"; then
16408 if test -n "$PKG_CONFIG" && \
16409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16410 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16413 test $ac_status = 0; }; then
16414 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16415 test "x$?" != "x0" && pkg_failed=yes
16425 if test $pkg_failed = yes; then
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427 $as_echo "no" >&6; }
16429 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16430 _pkg_short_errors_supported=yes
16432 _pkg_short_errors_supported=no
16434 if test $_pkg_short_errors_supported = yes; then
16435 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16437 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16439 # Put the nasty error message in config.log where it belongs
16440 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
16442 have_systemd_daemon=no
16443 elif test $pkg_failed = untried; then
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16445 $as_echo "no" >&6; }
16446 have_systemd_daemon=no
16448 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
16449 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16451 $as_echo "yes" >&6; }
16452 have_systemd_daemon=yes
16454 if test "x$have_systemd_daemon" = "xyes"; then :
16459 case $enable_systemd:$have_systemd in #(
16461 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
16464 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
16466 LIBS="$LIBS $SYSTEMD_LIBS"
16475 if test "x$have_systemd" = xyes; then
16477 USE_SYSTEMD_FALSE='#'
16479 USE_SYSTEMD_TRUE='#'
16484 # Include systemd.m4 - end
16486 # set memory allocation checking if requested
16487 # Check whether --enable-alloc-checks was given.
16488 if test "${enable_alloc_checks+set}" = set; then :
16489 enableval=$enable_alloc_checks;
16492 # Check whether --enable-alloc-lite was given.
16493 if test "${enable_alloc_lite+set}" = set; then :
16494 enableval=$enable_alloc_lite;
16497 # Check whether --enable-alloc-nonregional was given.
16498 if test "${enable_alloc_nonregional+set}" = set; then :
16499 enableval=$enable_alloc_nonregional;
16502 if test x_$enable_alloc_nonregional = x_yes; then
16504 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
16507 if test x_$enable_alloc_checks = x_yes; then
16509 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
16511 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
16513 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
16516 if test x_$enable_alloc_lite = x_yes; then
16518 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16523 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16524 if test "$cross_compiling" = yes; then :
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
16526 $as_echo "no (crosscompile)" >&6; }
16527 case " $LIBOBJS " in
16528 *" malloc.$ac_objext "* ) ;;
16529 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16534 cat >>confdefs.h <<_ACEOF
16535 #define malloc rpl_malloc_unbound
16539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540 /* end confdefs.h. */
16541 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16542 #include <stdlib.h>
16550 if(malloc(0) != 0) return 1;
16556 if ac_fn_c_try_run "$LINENO"; then :
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16558 $as_echo "no" >&6; }
16559 case " $LIBOBJS " in
16560 *" malloc.$ac_objext "* ) ;;
16561 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16566 cat >>confdefs.h <<_ACEOF
16567 #define malloc rpl_malloc_unbound
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16572 $as_echo "yes" >&6; }
16574 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16578 conftest.$ac_objext conftest.beam conftest.$ac_ext
16585 # check windows threads (we use them, not pthreads, on windows).
16586 if test "$on_mingw" = "yes"; then
16587 # check windows threads
16588 for ac_header in windows.h
16590 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16592 if test "x$ac_cv_header_windows_h" = xyes; then :
16593 cat >>confdefs.h <<_ACEOF
16594 #define HAVE_WINDOWS_H 1
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
16602 $as_echo_n "checking for CreateThread... " >&6; }
16603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604 /* end confdefs.h. */
16606 #ifdef HAVE_WINDOWS_H
16607 #include <windows.h>
16614 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16620 if ac_fn_c_try_compile "$LINENO"; then :
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16622 $as_echo "yes" >&6; }
16624 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16629 $as_echo "no" >&6; }
16632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635 # not on mingw, check thread libraries.
16637 # check for thread library.
16638 # check this first, so that the pthread lib does not get linked in via
16639 # libssl or libpython, and thus distorts the tests, and we end up using
16640 # the non-threadsafe C libraries.
16642 # Check whether --with-pthreads was given.
16643 if test "${with_pthreads+set}" = set; then :
16644 withval=$with_pthreads;
16649 ub_have_pthreads=no
16650 if test x_$withval != x_no; then
16654 ac_cpp='$CPP $CPPFLAGS'
16655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16661 # We used to check for pthread.h first, but this fails if pthread.h
16662 # requires special compiler flags (e.g. on True64 or Sequent).
16663 # It gets checked for in the link test anyway.
16665 # First of all, check if the user has set any of the PTHREAD_LIBS,
16666 # etcetera environment variables, and if threads linking works using
16668 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16669 save_CFLAGS="$CFLAGS"
16670 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16672 LIBS="$PTHREAD_LIBS $LIBS"
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16674 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676 /* end confdefs.h. */
16678 /* Override any GCC internal prototype to avoid an error.
16679 Use char because int might match the return type of a GCC
16680 builtin and then its argument prototype would still apply. */
16684 char pthread_join ();
16688 return pthread_join ();
16693 if ac_fn_c_try_link "$LINENO"; then :
16696 rm -f core conftest.err conftest.$ac_objext \
16697 conftest$ac_exeext conftest.$ac_ext
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16699 $as_echo "$ax_pthread_ok" >&6; }
16700 if test x"$ax_pthread_ok" = xno; then
16705 CFLAGS="$save_CFLAGS"
16708 # We must check for the threads library under a number of different
16709 # names; the ordering is very important because some systems
16710 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16711 # libraries is broken (non-POSIX).
16713 # Create a list of thread flags to try. Items starting with a "-" are
16714 # C compiler flags, and other items are library names, except for "none"
16715 # which indicates that we try without any flags at all, and "pthread-config"
16716 # which is a program returning the flags for the Pth emulation library.
16718 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16720 # The ordering *is* (sometimes) important. Some notes on the
16721 # individual items follow:
16723 # pthreads: AIX (must check this before -lpthread)
16724 # none: in case threads are in libc; should be tried before -Kthread and
16725 # other compiler flags to prevent continual compiler warnings
16726 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16727 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16728 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16729 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16730 # -pthreads: Solaris/gcc
16731 # -mthreads: Mingw32/gcc, Lynx/gcc
16732 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16733 # doesn't hurt to check since this sometimes defines pthreads too;
16734 # also defines -D_REENTRANT)
16735 # ... -mt is also the pthreads flag for HP/aCC
16736 # pthread: Linux, etcetera
16737 # --thread-safe: KAI C++
16738 # pthread-config: use pthread-config program (for GNU Pth library)
16743 # On Solaris (at least, for some versions), libc contains stubbed
16744 # (non-functional) versions of the pthreads routines, so link-based
16745 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16746 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16747 # a function called by this macro, so we could check for that, but
16748 # who knows whether they'll stub that too in a future libc.) So,
16749 # we'll just look for -pthreads and -lpthread first:
16751 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16755 ax_pthread_flags="-pthread $ax_pthread_flags"
16759 # Clang doesn't consider unrecognized options an error unless we specify
16760 # -Werror. We throw in some extra Clang-specific options to ensure that
16761 # this doesn't happen for GCC, which also accepts -Werror.
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16764 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16765 save_CFLAGS="$CFLAGS"
16766 ax_pthread_extra_flags="-Werror"
16767 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h. */
16779 if ac_fn_c_try_compile "$LINENO"; then :
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16781 $as_echo "yes" >&6; }
16783 ax_pthread_extra_flags=
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16785 $as_echo "no" >&6; }
16787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16788 CFLAGS="$save_CFLAGS"
16790 if test x"$ax_pthread_ok" = xno; then
16791 for flag in $ax_pthread_flags; do
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16796 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16801 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16802 PTHREAD_CFLAGS="$flag"
16806 # Extract the first word of "pthread-config", so it can be a program name with args.
16807 set dummy pthread-config; ac_word=$2
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16809 $as_echo_n "checking for $ac_word... " >&6; }
16810 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16811 $as_echo_n "(cached) " >&6
16813 if test -n "$ax_pthread_config"; then
16814 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16817 for as_dir in $PATH
16820 test -z "$as_dir" && as_dir=.
16821 for ac_exec_ext in '' $ac_executable_extensions; do
16822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16823 ac_cv_prog_ax_pthread_config="yes"
16824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16831 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16834 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16835 if test -n "$ax_pthread_config"; then
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16837 $as_echo "$ax_pthread_config" >&6; }
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16840 $as_echo "no" >&6; }
16844 if test x"$ax_pthread_config" = xno; then continue; fi
16845 PTHREAD_CFLAGS="`pthread-config --cflags`"
16846 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16851 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16852 PTHREAD_LIBS="-l$flag"
16857 save_CFLAGS="$CFLAGS"
16858 LIBS="$PTHREAD_LIBS $LIBS"
16859 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16861 # Check for various functions. We must include pthread.h,
16862 # since some functions may be macros. (On the Sequent, we
16863 # need a special flag -Kthread to make this header compile.)
16864 # We check for pthread_join because it is in -lpthread on IRIX
16865 # while pthread_create is in libc. We check for pthread_attr_init
16866 # due to DEC craziness with -lpthreads. We check for
16867 # pthread_cleanup_push because it is one of the few pthread
16868 # functions on Solaris that doesn't have a non-functional libc stub.
16869 # We try pthread_create on general principles.
16870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h. */
16872 #include <pthread.h>
16873 static void routine(void *a) { *((int*)a) = 0; }
16874 static void *start_routine(void *a) { return a; }
16878 pthread_t th; pthread_attr_t attr;
16879 pthread_create(&th, 0, start_routine, 0);
16880 pthread_join(th, 0);
16881 pthread_attr_init(&attr);
16882 pthread_cleanup_push(routine, 0);
16883 pthread_cleanup_pop(0) /* ; */
16888 if ac_fn_c_try_link "$LINENO"; then :
16891 rm -f core conftest.err conftest.$ac_objext \
16892 conftest$ac_exeext conftest.$ac_ext
16895 CFLAGS="$save_CFLAGS"
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16898 $as_echo "$ax_pthread_ok" >&6; }
16899 if test "x$ax_pthread_ok" = xyes; then
16908 # Various other checks:
16909 if test "x$ax_pthread_ok" = xyes; then
16911 LIBS="$PTHREAD_LIBS $LIBS"
16912 save_CFLAGS="$CFLAGS"
16913 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16915 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16917 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16919 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16921 /* end confdefs.h. */
16922 #include <pthread.h>
16926 int attr = $attr; return attr /* ; */
16931 if ac_fn_c_try_link "$LINENO"; then :
16932 attr_name=$attr; break
16934 rm -f core conftest.err conftest.$ac_objext \
16935 conftest$ac_exeext conftest.$ac_ext
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16938 $as_echo "$attr_name" >&6; }
16939 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16941 cat >>confdefs.h <<_ACEOF
16942 #define PTHREAD_CREATE_JOINABLE $attr_name
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16948 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16951 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16952 osf* | hpux*) flag="-D_REENTRANT";;
16954 if test "$GCC" = "yes"; then
16955 flag="-D_REENTRANT"
16957 # TODO: What about Clang on Solaris?
16958 flag="-mt -D_REENTRANT"
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16963 $as_echo "$flag" >&6; }
16964 if test "x$flag" != xno; then
16965 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16969 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16970 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16971 $as_echo_n "(cached) " >&6
16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16975 /* end confdefs.h. */
16976 #include <pthread.h>
16980 int i = PTHREAD_PRIO_INHERIT;
16985 if ac_fn_c_try_link "$LINENO"; then :
16986 ax_cv_PTHREAD_PRIO_INHERIT=yes
16988 ax_cv_PTHREAD_PRIO_INHERIT=no
16990 rm -f core conftest.err conftest.$ac_objext \
16991 conftest$ac_exeext conftest.$ac_ext
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16995 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16996 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16998 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
17003 CFLAGS="$save_CFLAGS"
17005 # More AIX lossage: compile with *_r variant
17006 if test "x$GCC" != xyes; then
17010 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
17011 #handle absolute path differently from PATH based program lookup
17014 if as_fn_executable_p ${CC}_r; then :
17015 PTHREAD_CC="${CC}_r"
17018 for ac_prog in ${CC}_r
17020 # Extract the first word of "$ac_prog", so it can be a program name with args.
17021 set dummy $ac_prog; ac_word=$2
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17023 $as_echo_n "checking for $ac_word... " >&6; }
17024 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17025 $as_echo_n "(cached) " >&6
17027 if test -n "$PTHREAD_CC"; then
17028 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17031 for as_dir in $PATH
17034 test -z "$as_dir" && as_dir=.
17035 for ac_exec_ext in '' $ac_executable_extensions; do
17036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17037 ac_cv_prog_PTHREAD_CC="$ac_prog"
17038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17047 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17048 if test -n "$PTHREAD_CC"; then
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17050 $as_echo "$PTHREAD_CC" >&6; }
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17053 $as_echo "no" >&6; }
17057 test -n "$PTHREAD_CC" && break
17059 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17070 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17076 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17077 if test x"$ax_pthread_ok" = xyes; then
17080 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17082 if test -n "$PTHREAD_LIBS"; then
17083 LIBS="$PTHREAD_LIBS $LIBS"
17085 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17087 ub_have_pthreads=yes
17088 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
17090 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
17092 cat >>confdefs.h <<_ACEOF
17093 #define HAVE_PTHREAD_SPINLOCK_T 1
17098 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
17100 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
17102 cat >>confdefs.h <<_ACEOF
17103 #define HAVE_PTHREAD_RWLOCK_T 1
17109 # The cast to long int works around a bug in the HP C Compiler
17110 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17111 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17112 # This bug is HP SR number 8606223364.
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
17114 $as_echo_n "checking size of unsigned long... " >&6; }
17115 if ${ac_cv_sizeof_unsigned_long+:} false; then :
17116 $as_echo_n "(cached) " >&6
17118 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
17121 if test "$ac_cv_type_unsigned_long" = yes; then
17122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17124 as_fn_error 77 "cannot compute sizeof (unsigned long)
17125 See \`config.log' for more details" "$LINENO" 5; }
17127 ac_cv_sizeof_unsigned_long=0
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
17133 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
17137 cat >>confdefs.h <<_ACEOF
17138 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17142 # The cast to long int works around a bug in the HP C Compiler
17143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17145 # This bug is HP SR number 8606223364.
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
17147 $as_echo_n "checking size of pthread_t... " >&6; }
17148 if ${ac_cv_sizeof_pthread_t+:} false; then :
17149 $as_echo_n "(cached) " >&6
17151 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default"; then :
17154 if test "$ac_cv_type_pthread_t" = yes; then
17155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17157 as_fn_error 77 "cannot compute sizeof (pthread_t)
17158 See \`config.log' for more details" "$LINENO" 5; }
17160 ac_cv_sizeof_pthread_t=0
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
17166 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
17170 cat >>confdefs.h <<_ACEOF
17171 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
17176 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
17178 $as_echo_n "checking if -pthread unused during linking... " >&6; }
17179 # catch clang warning 'argument unused during compilation'
17180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17181 /* end confdefs.h. */
17182 $ac_includes_default
17184 int main(void) {return 0;}
17187 pthread_unused="yes"
17189 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
17190 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
17191 if test $? = 0; then
17193 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
17194 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
17195 if test $? -ne 0; then
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17197 $as_echo "yes" >&6; }
17198 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
17199 PTHREAD_CFLAGS_ONLY="-pthread"
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17203 $as_echo "no" >&6; }
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17207 $as_echo "no" >&6; }
17208 fi # endif cc successful
17209 rm -f conftest conftest.c conftest.o
17210 fi # endif -pthread in CFLAGS
17219 ac_cpp='$CPP $CPPFLAGS'
17220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17227 # check solaris thread library
17229 # Check whether --with-solaris-threads was given.
17230 if test "${with_solaris_threads+set}" = set; then :
17231 withval=$with_solaris_threads;
17236 ub_have_sol_threads=no
17237 if test x_$withval != x_no; then
17238 if test x_$ub_have_pthreads != x_no; then
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
17240 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
17243 $as_echo_n "checking for library containing thr_create... " >&6; }
17244 if ${ac_cv_search_thr_create+:} false; then :
17245 $as_echo_n "(cached) " >&6
17247 ac_func_search_save_LIBS=$LIBS
17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h. */
17251 /* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17257 char thr_create ();
17261 return thr_create ();
17266 for ac_lib in '' thread; do
17267 if test -z "$ac_lib"; then
17268 ac_res="none required"
17271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17273 if ac_fn_c_try_link "$LINENO"; then :
17274 ac_cv_search_thr_create=$ac_res
17276 rm -f core conftest.err conftest.$ac_objext \
17278 if ${ac_cv_search_thr_create+:} false; then :
17282 if ${ac_cv_search_thr_create+:} false; then :
17285 ac_cv_search_thr_create=no
17287 rm conftest.$ac_ext
17288 LIBS=$ac_func_search_save_LIBS
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
17291 $as_echo "$ac_cv_search_thr_create" >&6; }
17292 ac_res=$ac_cv_search_thr_create
17293 if test "$ac_res" != no; then :
17294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17297 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
17303 $as_echo_n "checking whether $CC supports -mt... " >&6; }
17304 cache=`echo mt | sed 'y%.=/+-%___p_%'`
17305 if eval \${cv_prog_cc_flag_$cache+:} false; then :
17306 $as_echo_n "(cached) " >&6
17309 echo 'void f(void){}' >conftest.c
17310 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
17311 eval "cv_prog_cc_flag_$cache=yes"
17313 eval "cv_prog_cc_flag_$cache=no"
17315 rm -f conftest conftest.o conftest.c
17319 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17321 $as_echo "yes" >&6; }
17323 CFLAGS="$CFLAGS -mt"
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17326 $as_echo "no" >&6; }
17328 CFLAGS="$CFLAGS -D_REENTRANT"
17331 ub_have_sol_threads=yes
17335 as_fn_error $? "no solaris threads found." "$LINENO" 5
17342 fi # end of non-mingw check of thread libraries
17344 # Check for SYSLOG_FACILITY
17346 # Check whether --with-syslog-facility was given.
17347 if test "${with_syslog_facility+set}" = set; then :
17348 withval=$with_syslog_facility; UNBOUND_SYSLOG_FACILITY="$withval"
17351 case "${UNBOUND_SYSLOG_FACILITY}" in
17353 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
17355 *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
17359 cat >>confdefs.h <<_ACEOF
17360 #define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}
17364 # Check for dynamic library module
17366 # Check whether --with-dynlibmodule was given.
17367 if test "${with_dynlibmodule+set}" = set; then :
17368 withval=$with_dynlibmodule;
17374 if test x_$withval != x_no; then
17376 $as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h
17378 WITH_DYNLIBMODULE=yes
17380 DYNLIBMOD_OBJ="dynlibmod.lo"
17382 DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h'
17384 if test $on_mingw = "no"; then
17385 # link with -ldl if not already there, for all executables because
17386 # dlopen call is in the dynlib module. For unbound executable, also
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17389 $as_echo_n "checking for library containing dlopen... " >&6; }
17390 if ${ac_cv_search_dlopen+:} false; then :
17391 $as_echo_n "(cached) " >&6
17393 ac_func_search_save_LIBS=$LIBS
17394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395 /* end confdefs.h. */
17397 /* Override any GCC internal prototype to avoid an error.
17398 Use char because int might match the return type of a GCC
17399 builtin and then its argument prototype would still apply. */
17412 for ac_lib in '' dl; do
17413 if test -z "$ac_lib"; then
17414 ac_res="none required"
17417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17419 if ac_fn_c_try_link "$LINENO"; then :
17420 ac_cv_search_dlopen=$ac_res
17422 rm -f core conftest.err conftest.$ac_objext \
17424 if ${ac_cv_search_dlopen+:} false; then :
17428 if ${ac_cv_search_dlopen+:} false; then :
17431 ac_cv_search_dlopen=no
17433 rm conftest.$ac_ext
17434 LIBS=$ac_func_search_save_LIBS
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17437 $as_echo "$ac_cv_search_dlopen" >&6; }
17438 ac_res=$ac_cv_search_dlopen
17439 if test "$ac_res" != no; then :
17440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17444 DYNLIBMOD_EXTRALIBS="-export-dynamic"
17446 DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a"
17451 # Check for PyUnbound
17453 # Check whether --with-pyunbound was given.
17454 if test "${with_pyunbound+set}" = set; then :
17455 withval=$with_pyunbound;
17462 ub_with_pyunbound=no
17463 if test x_$withval != x_no; then
17464 ub_with_pyunbound=yes
17468 # Check for Python module
17470 # Check whether --with-pythonmodule was given.
17471 if test "${with_pythonmodule+set}" = set; then :
17472 withval=$with_pythonmodule;
17478 ub_with_pythonmod=no
17479 if test x_$withval != x_no; then
17480 ub_with_pythonmod=yes
17484 # Check for Python & SWIG only on PyUnbound or PyModule
17485 if test x_$ub_test_python != x_no; then
17489 ac_save_LIBS="$LIBS"
17491 # Allow the use of a (user set) custom python version
17495 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17496 set dummy python$PYTHON_VERSION; ac_word=$2
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17498 $as_echo_n "checking for $ac_word... " >&6; }
17499 if ${ac_cv_path_PYTHON+:} false; then :
17500 $as_echo_n "(cached) " >&6
17504 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17508 for as_dir in $PATH
17511 test -z "$as_dir" && as_dir=.
17512 for ac_exec_ext in '' $ac_executable_extensions; do
17513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17514 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17525 PYTHON=$ac_cv_path_PYTHON
17526 if test -n "$PYTHON"; then
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17528 $as_echo "$PYTHON" >&6; }
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17531 $as_echo "no" >&6; }
17535 if test -z "$PYTHON"; then
17536 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
17540 if test -z "$PYTHON_VERSION"; then
17541 PYTHON_VERSION=`$PYTHON -c "import sys; \
17542 print(sys.version.split()[0])"`
17545 # Check if you have sysconfig
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the sysconfig Python module" >&5
17547 $as_echo_n "checking for the sysconfig Python module... " >&6; }
17548 if ac_sysconfig_result=`$PYTHON -c "import sysconfig" 2>&1`; then
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17550 $as_echo "yes" >&6; }
17551 sysconfig_module="sysconfig"
17552 # if yes, use sysconfig, because distutils is deprecated.
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17555 $as_echo "no" >&6; }
17556 # if no, try to use distutils
17559 # Check if you have distutils, else fail
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
17562 $as_echo_n "checking for the distutils Python package... " >&6; }
17563 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17565 $as_echo "yes" >&6; }
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17568 $as_echo "no" >&6; }
17569 as_fn_error $? "cannot import Python module \"distutils\".
17570 Please check your Python installation. The error was:
17571 $ac_distutils_result" "$LINENO" 5
17575 sysconfig_module="distutils.sysconfig"
17579 # Check for Python include path
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17582 $as_echo_n "checking for Python include path... " >&6; }
17583 if test -z "$PYTHON_CPPFLAGS"; then
17584 if test "$sysconfig_module" = "sysconfig"; then
17585 python_path=`$PYTHON -c 'import sysconfig; \
17586 print(sysconfig.get_path("include"));'`
17588 python_path=`$PYTHON -c "import distutils.sysconfig; \
17589 print(distutils.sysconfig.get_python_inc());"`
17591 if test -n "${python_path}"; then
17592 python_path="-I$python_path"
17594 PYTHON_CPPFLAGS=$python_path
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17597 $as_echo "$PYTHON_CPPFLAGS" >&6; }
17601 # Check for Python library path
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17604 $as_echo_n "checking for Python library path... " >&6; }
17605 if test -z "$PYTHON_LDFLAGS"; then
17606 PYTHON_LDFLAGS=`$PYTHON -c "from $sysconfig_module import *; \
17607 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17610 $as_echo "$PYTHON_LDFLAGS" >&6; }
17613 if test -z "$PYTHON_LIBDIR"; then
17614 PYTHON_LIBDIR=`$PYTHON -c "from $sysconfig_module import *; \
17615 print(get_config_var('LIBDIR'));"`
17619 # Check for site packages
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17622 $as_echo_n "checking for Python site-packages path... " >&6; }
17623 if test -z "$PYTHON_SITE_PKG"; then
17624 if test "$sysconfig_module" = "sysconfig"; then
17625 PYTHON_SITE_PKG=`$PYTHON -c 'import sysconfig; \
17626 print(sysconfig.get_path("platlib"));'`
17628 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17629 print(distutils.sysconfig.get_python_lib(1,0));"`
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17633 $as_echo "$PYTHON_SITE_PKG" >&6; }
17637 # final check to see if everything compiles alright
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17640 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
17642 ac_cpp='$CPP $CPPFLAGS'
17643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17647 # save current global flags
17648 ac_save_LIBS="$LIBS"
17649 ac_save_CPPFLAGS="$CPPFLAGS"
17651 LIBS="$LIBS $PYTHON_LDFLAGS"
17652 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17654 /* end confdefs.h. */
17656 #include <Python.h>
17668 if ac_fn_c_try_link "$LINENO"; then :
17673 rm -f core conftest.err conftest.$ac_objext \
17674 conftest$ac_exeext conftest.$ac_ext
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17677 $as_echo "$pythonexists" >&6; }
17679 if test ! "$pythonexists" = "yes"; then
17681 Could not link test program to Python. Maybe the main Python library has been
17682 installed in some non-standard library path. If so, pass it to configure,
17683 via the LDFLAGS environment variable.
17684 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17685 ============================================================================
17687 You probably have to install the development version of the Python package
17688 for your distribution. The exact name of this package varies among them.
17689 ============================================================================
17694 ac_cpp='$CPP $CPPFLAGS'
17695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17699 # turn back to default flags
17700 CPPFLAGS="$ac_save_CPPFLAGS"
17701 LIBS="$ac_save_LIBS"
17707 if test ! -z "$PYTHON_VERSION"; then
17708 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
17709 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
17712 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
17716 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
17718 if test x_$ub_with_pythonmod != x_no; then
17719 if test -n "$LIBS"; then
17720 LIBS="$PYTHON_LDFLAGS $LIBS"
17722 LIBS="$PYTHON_LDFLAGS"
17725 PYTHON_LIBS="$PYTHON_LDFLAGS"
17727 if test -n "$CPPFLAGS"; then
17728 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17730 CPPFLAGS="$PYTHON_CPPFLAGS"
17732 if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then
17734 if test "x$enable_rpath" = xyes; then
17735 if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then
17736 RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR"
17742 if test -n "$PKG_CONFIG" && \
17743 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
17744 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
17746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17747 test $ac_status = 0; }; then
17748 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
17750 PC_PY_DEPENDENCY="python"
17756 # Check whether --enable-swig-version-check was given.
17757 if test "${enable_swig_version_check+set}" = set; then :
17758 enableval=$enable_swig_version_check;
17761 if test "$enable_swig_version_check" = "yes"; then
17763 # Extract the first word of "swig", so it can be a program name with args.
17764 set dummy swig; ac_word=$2
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17766 $as_echo_n "checking for $ac_word... " >&6; }
17767 if ${ac_cv_path_SWIG+:} false; then :
17768 $as_echo_n "(cached) " >&6
17772 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17776 for as_dir in $PATH
17779 test -z "$as_dir" && as_dir=.
17780 for ac_exec_ext in '' $ac_executable_extensions; do
17781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17782 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17793 SWIG=$ac_cv_path_SWIG
17794 if test -n "$SWIG"; then
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17796 $as_echo "$SWIG" >&6; }
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17799 $as_echo "no" >&6; }
17803 if test -z "$SWIG" ; then
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17805 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17806 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17807 elif test -n "2.0.1" ; then
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17809 $as_echo_n "checking for SWIG version... " >&6; }
17810 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'`
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17812 $as_echo "$swig_version" >&6; }
17813 if test -n "$swig_version" ; then
17814 # Calculate the required version number components
17816 required_major=`echo $required | sed 's/[^0-9].*//'`
17817 if test -z "$required_major" ; then
17820 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17821 required_minor=`echo $required | sed 's/[^0-9].*//'`
17822 if test -z "$required_minor" ; then
17825 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17826 required_patch=`echo $required | sed 's/[^0-9].*//'`
17827 if test -z "$required_patch" ; then
17830 # Calculate the available version number components
17831 available=$swig_version
17832 available_major=`echo $available | sed 's/[^0-9].*//'`
17833 if test -z "$available_major" ; then
17836 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17837 available_minor=`echo $available | sed 's/[^0-9].*//'`
17838 if test -z "$available_minor" ; then
17841 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17842 available_patch=`echo $available | sed 's/[^0-9].*//'`
17843 if test -z "$available_patch" ; then
17847 if test $available_major -lt $required_major ; then
17850 if test $available_major -eq $required_major \
17851 -a $available_minor -lt $required_minor ; then
17854 if test $available_major -eq $required_major \
17855 -a $available_minor -eq $required_minor \
17856 -a $available_patch -lt $required_patch ; then
17859 if test $badversion -eq 1 ; then
17860 { $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
17861 $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;}
17862 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17865 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17866 SWIG_LIB=`$SWIG -swiglib`
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17868 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17872 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17873 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17880 # Extract the first word of "swig", so it can be a program name with args.
17881 set dummy swig; ac_word=$2
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17883 $as_echo_n "checking for $ac_word... " >&6; }
17884 if ${ac_cv_path_SWIG+:} false; then :
17885 $as_echo_n "(cached) " >&6
17889 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17893 for as_dir in $PATH
17896 test -z "$as_dir" && as_dir=.
17897 for ac_exec_ext in '' $ac_executable_extensions; do
17898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17899 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17910 SWIG=$ac_cv_path_SWIG
17911 if test -n "$SWIG"; then
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17913 $as_echo "$SWIG" >&6; }
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17916 $as_echo "no" >&6; }
17920 if test -z "$SWIG" ; then
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17922 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17923 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17924 elif test -n "" ; then
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17926 $as_echo_n "checking for SWIG version... " >&6; }
17927 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'`
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17929 $as_echo "$swig_version" >&6; }
17930 if test -n "$swig_version" ; then
17931 # Calculate the required version number components
17933 required_major=`echo $required | sed 's/[^0-9].*//'`
17934 if test -z "$required_major" ; then
17937 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17938 required_minor=`echo $required | sed 's/[^0-9].*//'`
17939 if test -z "$required_minor" ; then
17942 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17943 required_patch=`echo $required | sed 's/[^0-9].*//'`
17944 if test -z "$required_patch" ; then
17947 # Calculate the available version number components
17948 available=$swig_version
17949 available_major=`echo $available | sed 's/[^0-9].*//'`
17950 if test -z "$available_major" ; then
17953 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17954 available_minor=`echo $available | sed 's/[^0-9].*//'`
17955 if test -z "$available_minor" ; then
17958 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17959 available_patch=`echo $available | sed 's/[^0-9].*//'`
17960 if test -z "$available_patch" ; then
17964 if test $available_major -lt $required_major ; then
17967 if test $available_major -eq $required_major \
17968 -a $available_minor -lt $required_minor ; then
17971 if test $available_major -eq $required_major \
17972 -a $available_minor -eq $required_minor \
17973 -a $available_patch -lt $required_patch ; then
17976 if test $badversion -eq 1 ; then
17977 { $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
17978 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
17979 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17982 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17983 SWIG_LIB=`$SWIG -swiglib`
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17985 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17989 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17990 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17997 $as_echo_n "checking SWIG... " >&6; }
17998 if test ! -x "$SWIG"; then
17999 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
18002 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
18007 $as_echo "present" >&6; }
18009 # If have Python & SWIG
18010 # Declare PythonMod
18011 if test x_$ub_with_pythonmod != x_no; then
18013 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
18015 WITH_PYTHONMODULE=yes
18017 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
18019 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
18021 PYTHONMOD_INSTALL=pythonmod-install
18023 PYTHONMOD_UNINSTALL=pythonmod-uninstall
18027 # Declare PyUnbound
18028 if test x_$ub_with_pyunbound != x_no; then
18030 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
18034 PYUNBOUND_OBJ="libunbound_wrap.lo"
18036 PYUNBOUND_TARGET="_unbound.la"
18038 PYUNBOUND_INSTALL=pyunbound-install
18040 PYUNBOUND_UNINSTALL=pyunbound-uninstall
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
18046 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
18047 ub_with_pyunbound=no
18048 ub_with_pythonmod=no
18052 if test "`uname`" = "NetBSD"; then
18053 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
18057 if test "`uname`" = "Linux"; then
18058 # splint cannot parse modern c99 header files
18059 GCC_DOCKER_LINTFLAGS='-syntax'
18062 CONFIG_DATE=`date +%Y%m%d`
18065 # Checks for libraries.
18070 # Check whether --with-nss was given.
18071 if test "${with_nss+set}" = set; then :
18075 $as_echo "#define HAVE_NSS 1" >>confdefs.h
18077 if test "$withval" != "" -a "$withval" != "yes"; then
18078 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
18079 LDFLAGS="$LDFLAGS -L$withval/lib"
18081 if test "x$enable_rpath" = xyes; then
18082 if echo "$withval/lib" | grep "^/" >/dev/null; then
18083 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
18087 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
18089 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
18090 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
18092 LIBS="$LIBS -lnss3 -lnspr4"
18094 PC_CRYPTO_DEPENDENCY="nss nspr"
18104 # Check whether --with-nettle was given.
18105 if test "${with_nettle+set}" = set; then :
18106 withval=$with_nettle;
18109 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
18111 for ac_header in nettle/dsa-compat.h
18113 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
18115 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
18116 cat >>confdefs.h <<_ACEOF
18117 #define HAVE_NETTLE_DSA_COMPAT_H 1
18124 if test "$withval" != "" -a "$withval" != "yes"; then
18125 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
18126 LDFLAGS="$LDFLAGS -L$withval/lib"
18128 if test "x$enable_rpath" = xyes; then
18129 if echo "$withval/lib" | grep "^/" >/dev/null; then
18130 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
18135 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
18137 LIBS="$LIBS -lhogweed -lnettle -lgmp"
18139 PC_CRYPTO_DEPENDENCY="hogweed nettle"
18147 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18150 # Check whether --with-ssl was given.
18151 if test "${with_ssl+set}" = set; then :
18160 if test x_$withval = x_no; then
18161 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
18165 if test x_$withval != x_no; then
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
18167 $as_echo_n "checking for SSL... " >&6; }
18168 if test -n "$withval"; then
18169 if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then
18173 ssldir_include="$ssldir"
18174 ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'`
18175 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
18178 ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'`
18179 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
18182 as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5
18187 if test x_$withval = x_ -o x_$withval = x_yes; then
18188 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
18190 for dir in $withval; do
18192 if test -f "$dir/include/openssl/ssl.h"; then
18194 ssldir_include="$ssldir/include"
18195 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
18196 ssldir_lib="$ssldir/lib64"
18198 ssldir_lib="$ssldir/lib"
18203 if test x_$found_ssl != x_yes; then
18204 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
18207 $as_echo "found in $ssldir" >&6; }
18209 cat >>confdefs.h <<_ACEOF
18210 #define HAVE_SSL /**/
18214 if test "$ssldir" != "/usr"; then
18215 CPPFLAGS="$CPPFLAGS -I$ssldir_include"
18216 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include"
18217 LDFLAGS="$LDFLAGS -L$ssldir_lib"
18218 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib"
18220 if test "x$enable_rpath" = xyes; then
18221 if echo "$ssldir_lib" | grep "^/" >/dev/null; then
18222 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib"
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
18229 $as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; }
18230 LIBS="$LIBS -lcrypto"
18231 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
18232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h. */
18239 int EVP_sha256(void);
18240 (void)EVP_sha256();
18246 if ac_fn_c_try_link "$LINENO"; then :
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18249 $as_echo "yes" >&6; }
18251 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18257 $as_echo "no" >&6; }
18258 # check if -lwsock32 or -lgdi32 are needed.
18260 BAKSSLLIBS="$LIBSSL_LIBS"
18261 LIBS="$LIBS -lgdi32 -lws2_32"
18262 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
18264 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
18265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h. */
18272 int EVP_sha256(void);
18273 (void)EVP_sha256();
18279 if ac_fn_c_try_link "$LINENO"; then :
18282 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18285 $as_echo "yes" >&6; }
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18290 $as_echo "no" >&6; }
18292 LIBSSL_LIBS="$BAKSSLLIBS"
18294 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
18296 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
18297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h. */
18304 int EVP_sha256(void);
18305 (void)EVP_sha256();
18311 if ac_fn_c_try_link "$LINENO"; then :
18314 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18317 $as_echo "yes" >&6; }
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18322 $as_echo "no" >&6; }
18324 LIBSSL_LIBS="$BAKSSLLIBS"
18325 LIBS="$LIBS -ldl -pthread"
18326 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
18328 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
18329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330 /* end confdefs.h. */
18336 int EVP_sha256(void);
18337 (void)EVP_sha256();
18343 if ac_fn_c_try_link "$LINENO"; then :
18346 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18349 $as_echo "yes" >&6; }
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18354 $as_echo "no" >&6; }
18355 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
18358 rm -f core conftest.err conftest.$ac_objext \
18359 conftest$ac_exeext conftest.$ac_ext
18362 rm -f core conftest.err conftest.$ac_objext \
18363 conftest$ac_exeext conftest.$ac_ext
18366 rm -f core conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18370 rm -f core conftest.err conftest.$ac_objext \
18371 conftest$ac_exeext conftest.$ac_ext
18376 for ac_header in openssl/ssl.h
18378 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
18380 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
18381 cat >>confdefs.h <<_ACEOF
18382 #define HAVE_OPENSSL_SSL_H 1
18389 for ac_header in openssl/err.h
18391 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
18393 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
18394 cat >>confdefs.h <<_ACEOF
18395 #define HAVE_OPENSSL_ERR_H 1
18402 for ac_header in openssl/rand.h
18404 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
18406 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
18407 cat >>confdefs.h <<_ACEOF
18408 #define HAVE_OPENSSL_RAND_H 1
18418 # check if libssl needs libdl
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
18422 $as_echo_n "checking if libssl needs libdl... " >&6; }
18423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18424 /* end confdefs.h. */
18426 /* Override any GCC internal prototype to avoid an error.
18427 Use char because int might match the return type of a GCC
18428 builtin and then its argument prototype would still apply. */
18432 char SSL_CTX_new ();
18436 return SSL_CTX_new ();
18441 if ac_fn_c_try_link "$LINENO"; then :
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18444 $as_echo "no" >&6; }
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18450 $as_echo "yes" >&6; }
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18453 $as_echo_n "checking for library containing dlopen... " >&6; }
18454 if ${ac_cv_search_dlopen+:} false; then :
18455 $as_echo_n "(cached) " >&6
18457 ac_func_search_save_LIBS=$LIBS
18458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18459 /* end confdefs.h. */
18461 /* Override any GCC internal prototype to avoid an error.
18462 Use char because int might match the return type of a GCC
18463 builtin and then its argument prototype would still apply. */
18476 for ac_lib in '' dl; do
18477 if test -z "$ac_lib"; then
18478 ac_res="none required"
18481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18483 if ac_fn_c_try_link "$LINENO"; then :
18484 ac_cv_search_dlopen=$ac_res
18486 rm -f core conftest.err conftest.$ac_objext \
18488 if ${ac_cv_search_dlopen+:} false; then :
18492 if ${ac_cv_search_dlopen+:} false; then :
18495 ac_cv_search_dlopen=no
18497 rm conftest.$ac_ext
18498 LIBS=$ac_func_search_save_LIBS
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18501 $as_echo "$ac_cv_search_dlopen" >&6; }
18502 ac_res=$ac_cv_search_dlopen
18503 if test "$ac_res" != no; then :
18504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18510 rm -f core conftest.err conftest.$ac_objext \
18511 conftest$ac_exeext conftest.$ac_ext
18514 PC_CRYPTO_DEPENDENCY=""
18517 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
18521 $as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
18522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18523 /* end confdefs.h. */
18529 int EVP_sha256(void);
18530 (void)EVP_sha256();
18536 if ac_fn_c_try_link "$LINENO"; then :
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18539 $as_echo "no" >&6; }
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18545 $as_echo "yes" >&6; }
18547 LIBS="$LIBS -lcrypt32"
18550 rm -f core conftest.err conftest.$ac_objext \
18551 conftest$ac_exeext conftest.$ac_ext
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
18554 $as_echo_n "checking for LibreSSL... " >&6; }
18555 if grep VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18557 $as_echo "yes" >&6; }
18559 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
18561 # libressl provides these compat functions, but they may also be
18562 # declared by the OS in libc. See if they have been declared.
18563 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
18564 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
18570 cat >>confdefs.h <<_ACEOF
18571 #define HAVE_DECL_STRLCPY $ac_have_decl
18573 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
18574 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
18580 cat >>confdefs.h <<_ACEOF
18581 #define HAVE_DECL_STRLCAT $ac_have_decl
18583 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
18584 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
18590 cat >>confdefs.h <<_ACEOF
18591 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
18593 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
18594 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
18600 cat >>confdefs.h <<_ACEOF
18601 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18606 $as_echo "no" >&6; }
18608 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 openssl/param_build.h
18610 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18611 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18613 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18614 cat >>confdefs.h <<_ACEOF
18615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18622 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_default_properties_is_fips_enabled 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 OSSL_PARAM_BLD_new BIO_set_callback_ex
18624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18625 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18626 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18627 cat >>confdefs.h <<_ACEOF
18628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18635 # these check_funcs need -lssl
18638 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 SSL_get0_alpn_selected SSL_CTX_set_alpn_protos SSL_get1_peer_certificate
18640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18642 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18643 cat >>confdefs.h <<_ACEOF
18644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18652 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
18653 $ac_includes_default
18654 #ifdef HAVE_OPENSSL_ERR_H
18655 #include <openssl/err.h>
18658 #ifdef HAVE_OPENSSL_RAND_H
18659 #include <openssl/rand.h>
18662 #ifdef HAVE_OPENSSL_CONF_H
18663 #include <openssl/conf.h>
18666 #ifdef HAVE_OPENSSL_ENGINE_H
18667 #include <openssl/engine.h>
18669 #include <openssl/ssl.h>
18670 #include <openssl/evp.h>
18673 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
18679 cat >>confdefs.h <<_ACEOF
18680 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
18682 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
18683 $ac_includes_default
18684 #ifdef HAVE_OPENSSL_ERR_H
18685 #include <openssl/err.h>
18688 #ifdef HAVE_OPENSSL_RAND_H
18689 #include <openssl/rand.h>
18692 #ifdef HAVE_OPENSSL_CONF_H
18693 #include <openssl/conf.h>
18696 #ifdef HAVE_OPENSSL_ENGINE_H
18697 #include <openssl/engine.h>
18699 #include <openssl/ssl.h>
18700 #include <openssl/evp.h>
18703 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
18709 cat >>confdefs.h <<_ACEOF
18710 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
18712 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
18713 $ac_includes_default
18714 #ifdef HAVE_OPENSSL_ERR_H
18715 #include <openssl/err.h>
18718 #ifdef HAVE_OPENSSL_RAND_H
18719 #include <openssl/rand.h>
18722 #ifdef HAVE_OPENSSL_CONF_H
18723 #include <openssl/conf.h>
18726 #ifdef HAVE_OPENSSL_ENGINE_H
18727 #include <openssl/engine.h>
18729 #include <openssl/ssl.h>
18730 #include <openssl/evp.h>
18733 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
18739 cat >>confdefs.h <<_ACEOF
18740 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
18744 if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
18745 # check function return type.
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
18747 $as_echo_n "checking the return type of HMAC_Init_ex... " >&6; }
18748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18749 /* end confdefs.h. */
18751 #ifdef HAVE_OPENSSL_ERR_H
18752 #include <openssl/err.h>
18755 #ifdef HAVE_OPENSSL_RAND_H
18756 #include <openssl/rand.h>
18759 #ifdef HAVE_OPENSSL_CONF_H
18760 #include <openssl/conf.h>
18763 #ifdef HAVE_OPENSSL_ENGINE_H
18764 #include <openssl/engine.h>
18766 #include <openssl/ssl.h>
18767 #include <openssl/evp.h>
18773 HMAC_CTX* hmac_ctx = NULL;
18774 void* hmac_key = NULL;
18775 const EVP_MD* digest = NULL;
18776 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
18783 if ac_fn_c_try_compile "$LINENO"; then :
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18786 $as_echo "int" >&6; }
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
18791 $as_echo "void" >&6; }
18793 $as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
18797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18805 # Check whether --with-libbsd was given.
18806 if test "${with_libbsd+set}" = set; then :
18807 withval=$with_libbsd;
18808 for ac_header in bsd/string.h bsd/stdlib.h
18810 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18811 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18813 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18814 cat >>confdefs.h <<_ACEOF
18815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18822 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
18823 for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do
18824 as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh`
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
18826 $as_echo_n "checking for library containing $func... " >&6; }
18827 if eval \${$as_ac_Search+:} false; then :
18828 $as_echo_n "(cached) " >&6
18830 ac_func_search_save_LIBS=$LIBS
18831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18834 /* Override any GCC internal prototype to avoid an error.
18835 Use char because int might match the return type of a GCC
18836 builtin and then its argument prototype would still apply. */
18849 for ac_lib in '' bsd; do
18850 if test -z "$ac_lib"; then
18851 ac_res="none required"
18854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18856 if ac_fn_c_try_link "$LINENO"; then :
18857 eval "$as_ac_Search=\$ac_res"
18859 rm -f core conftest.err conftest.$ac_objext \
18861 if eval \${$as_ac_Search+:} false; then :
18865 if eval \${$as_ac_Search+:} false; then :
18868 eval "$as_ac_Search=no"
18870 rm conftest.$ac_ext
18871 LIBS=$ac_func_search_save_LIBS
18873 eval ac_res=\$$as_ac_Search
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18875 $as_echo "$ac_res" >&6; }
18876 eval ac_res=\$$as_ac_Search
18877 if test "$ac_res" != no; then :
18878 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18881 $as_echo "#define HAVE_LIBBSD 1" >>confdefs.h
18883 PC_LIBBSD_DEPENDENCY=libbsd
18894 # Check whether --enable-sha1 was given.
18895 if test "${enable_sha1+set}" = set; then :
18896 enableval=$enable_sha1;
18899 case "$enable_sha1" in
18904 $as_echo "#define USE_SHA1 1" >>confdefs.h
18910 # Check whether --enable-sha2 was given.
18911 if test "${enable_sha2+set}" = set; then :
18912 enableval=$enable_sha2;
18915 case "$enable_sha2" in
18920 $as_echo "#define USE_SHA2 1" >>confdefs.h
18925 # Check whether --enable-subnet was given.
18926 if test "${enable_subnet+set}" = set; then :
18927 enableval=$enable_subnet;
18930 case "$enable_subnet" in
18933 $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
18935 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
18937 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
18944 # check whether gost also works
18946 # Check whether --enable-gost was given.
18947 if test "${enable_gost+set}" = set; then :
18948 enableval=$enable_gost;
18952 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18953 case "$enable_gost" in
18957 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
18958 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
18961 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
18964 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
18965 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
18968 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
18973 $as_echo_n "checking if GOST works... " >&6; }
18974 if test c${cross_compiling} = cno; then
18975 BAKCFLAGS="$CFLAGS"
18976 if test -n "$ssldir"; then
18977 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib"
18979 if test "$cross_compiling" = yes; then :
18980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18982 as_fn_error $? "cannot run test program while cross compiling
18983 See \`config.log' for more details" "$LINENO" 5; }
18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h. */
18988 #include <string.h>
18989 #include <openssl/ssl.h>
18990 #include <openssl/evp.h>
18991 #include <openssl/engine.h>
18992 #include <openssl/conf.h>
18993 /* routine to load gost (from sldns) */
18994 int load_gost_id(void)
18996 static int gost_id = 0;
18997 const EVP_PKEY_ASN1_METHOD* meth;
19000 if(gost_id) return gost_id;
19002 /* see if configuration loaded gost implementation from other engine*/
19003 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
19005 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
19009 /* see if engine can be loaded already */
19010 e = ENGINE_by_id("gost");
19012 /* load it ourself, in case statically linked */
19013 ENGINE_load_builtin_engines();
19014 ENGINE_load_dynamic();
19015 e = ENGINE_by_id("gost");
19018 /* no gost engine in openssl */
19021 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
19027 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
19029 /* algo not found */
19034 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
19040 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
19041 const char* str = "Hello world";
19042 const unsigned char check[] = {
19043 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
19044 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
19045 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
19046 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
19048 OPENSSL_config(NULL);
19049 (void)load_gost_id();
19050 md = EVP_get_digestbyname("md_gost94");
19052 memset(digest, 0, sizeof(digest));
19053 ctx = EVP_MD_CTX_create();
19055 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
19056 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
19057 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
19058 /* uncomment to see the hash calculated.
19060 for(i=0; i<32; i++)
19061 printf(" %2.2x", (int)digest[i]);
19064 if(memcmp(digest, check, sizeof(check)) != 0)
19070 if ac_fn_c_try_run "$LINENO"; then :
19071 eval "ac_cv_c_gost_works=yes"
19073 eval "ac_cv_c_gost_works=no"
19075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19076 conftest.$ac_objext conftest.beam conftest.$ac_ext
19079 CFLAGS="$BAKCFLAGS"
19081 eval "ac_cv_c_gost_works=maybe"
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
19084 $as_echo "$ac_cv_c_gost_works" >&6; }
19086 if test "$ac_cv_c_gost_works" != no; then
19089 $as_echo "#define USE_GOST 1" >>confdefs.h
19095 # Check whether --enable-ecdsa was given.
19096 if test "${enable_ecdsa+set}" = set; then :
19097 enableval=$enable_ecdsa;
19101 case "$enable_ecdsa" in
19105 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19106 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
19107 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
19110 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19113 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
19114 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
19117 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19120 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
19121 #include <openssl/evp.h>
19124 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
19130 cat >>confdefs.h <<_ACEOF
19131 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
19133 if test $ac_have_decl = 1; then :
19136 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19138 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
19139 #include <openssl/evp.h>
19142 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
19148 cat >>confdefs.h <<_ACEOF
19149 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
19151 if test $ac_have_decl = 1; then :
19154 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19157 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
19159 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
19160 if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
19161 if grep OPENSSL_VERSION_NUMBER $ssldir_include/openssl/opensslv.h | grep 0x0 >/dev/null; then
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19163 $as_echo "no" >&6; }
19165 cat >>confdefs.h <<_ACEOF
19166 #define USE_ECDSA_EVP_WORKAROUND 1
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19171 $as_echo "yes" >&6; }
19174 # not OpenSSL, thus likely LibreSSL, which supports it
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19176 $as_echo "yes" >&6; }
19179 # we now know we have ECDSA and the required curves.
19181 cat >>confdefs.h <<_ACEOF
19182 #define USE_ECDSA 1
19189 # Check whether --enable-dsa was given.
19190 if test "${enable_dsa+set}" = set; then :
19191 enableval=$enable_dsa;
19195 case "$enable_dsa" in
19197 # detect if DSA is supported, and turn it off if not.
19198 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19199 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
19200 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
19202 as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
19203 ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
19204 $ac_includes_default
19205 #ifdef HAVE_OPENSSL_ERR_H
19206 #include <openssl/err.h>
19209 #ifdef HAVE_OPENSSL_RAND_H
19210 #include <openssl/rand.h>
19213 #ifdef HAVE_OPENSSL_CONF_H
19214 #include <openssl/conf.h>
19217 #ifdef HAVE_OPENSSL_ENGINE_H
19218 #include <openssl/engine.h>
19222 if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
19225 cat >>confdefs.h <<_ACEOF
19231 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
19237 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
19243 cat >>confdefs.h <<_ACEOF
19250 # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT
19251 # support DSA for DNSSEC Validation.
19256 # Check whether --with-deprecate-rsa-1024 was given.
19257 if test "${with_deprecate_rsa_1024+set}" = set; then :
19258 withval=$with_deprecate_rsa_1024;
19261 if test "$with_deprecate_rsa_1024" = "yes"; then
19263 $as_echo "#define DEPRECATE_RSA_1024 1" >>confdefs.h
19267 # Check whether --enable-ed25519 was given.
19268 if test "${enable_ed25519+set}" = set; then :
19269 enableval=$enable_ed25519;
19273 case "$enable_ed25519" in
19277 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19278 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
19279 #include <openssl/evp.h>
19282 if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
19288 cat >>confdefs.h <<_ACEOF
19289 #define HAVE_DECL_NID_ED25519 $ac_have_decl
19291 if test $ac_have_decl = 1; then :
19296 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
19301 if test $USE_NETTLE = "yes"; then
19302 for ac_header in nettle/eddsa.h
19304 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
19306 if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
19307 cat >>confdefs.h <<_ACEOF
19308 #define HAVE_NETTLE_EDDSA_H 1
19316 if test $use_ed25519 = "yes"; then
19318 cat >>confdefs.h <<_ACEOF
19319 #define USE_ED25519 1
19326 # Check whether --enable-ed448 was given.
19327 if test "${enable_ed448+set}" = set; then :
19328 enableval=$enable_ed448;
19332 case "$enable_ed448" in
19336 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19337 ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
19338 #include <openssl/evp.h>
19341 if test "x$ac_cv_have_decl_NID_ED448" = xyes; then :
19347 cat >>confdefs.h <<_ACEOF
19348 #define HAVE_DECL_NID_ED448 $ac_have_decl
19350 if test $ac_have_decl = 1; then :
19355 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
19360 if test $use_ed448 = "yes"; then
19362 cat >>confdefs.h <<_ACEOF
19363 #define USE_ED448 1
19370 # Check whether --enable-event-api was given.
19371 if test "${enable_event_api+set}" = set; then :
19372 enableval=$enable_event_api;
19375 case "$enable_event_api" in
19377 UNBOUND_EVENT_INSTALL=unbound-event-install
19379 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
19386 # Check whether --enable-tfo-client was given.
19387 if test "${enable_tfo_client+set}" = set; then :
19388 enableval=$enable_tfo_client;
19391 case "$enable_tfo_client" in
19394 linux*) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
19395 #include <netinet/tcp.h>
19398 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19400 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19402 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19406 cat >>confdefs.h <<_ACEOF
19407 #define USE_MSG_FASTOPEN 1
19411 darwin*) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
19412 #include <sys/socket.h>
19415 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19417 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19419 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19423 cat >>confdefs.h <<_ACEOF
19424 #define USE_OSX_MSG_FASTOPEN 1
19434 # Check whether --enable-tfo-server was given.
19435 if test "${enable_tfo_server+set}" = set; then :
19436 enableval=$enable_tfo_server;
19439 case "$enable_tfo_server" in
19441 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
19442 #include <netinet/tcp.h>
19445 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
19447 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
19449 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
19453 cat >>confdefs.h <<_ACEOF
19454 #define USE_TCP_FASTOPEN 1
19462 # check for libevent
19464 # Check whether --with-libevent was given.
19465 if test "${with_libevent+set}" = set; then :
19466 withval=$with_libevent;
19471 if test "x_$with_libevent" != x_no; then
19473 $as_echo "#define USE_LIBEVENT 1" >>confdefs.h
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
19476 $as_echo_n "checking for libevent... " >&6; }
19477 if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then
19478 with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19480 for dir in $with_libevent; do
19482 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
19483 found_libevent="yes"
19484 if test "$thedir" != "/usr"; then
19485 CPPFLAGS="$CPPFLAGS -I$thedir/include"
19490 if test x_$found_libevent != x_yes; then
19491 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
19492 # libevent source directory
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19494 $as_echo "found in $thedir" >&6; }
19495 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
19496 BAK_LDFLAGS_SET="1"
19497 BAK_LDFLAGS="$LDFLAGS"
19498 # remove evdns from linking
19499 mkdir build >/dev/null 2>&1
19500 mkdir build/libevent >/dev/null 2>&1
19501 mkdir build/libevent/.libs >/dev/null 2>&1
19502 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19503 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
19504 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19505 cp $ev_files_o build/libevent
19506 cp $ev_files_lo build/libevent
19507 cp $ev_files_libso build/libevent/.libs
19508 LATE_LDFLAGS="build/libevent/*.lo -lm"
19509 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
19511 as_fn_error $? "Cannot find the libevent library in $with_libevent
19512 You can restart ./configure --with-libevent=no to use a builtin alternative.
19513 Please note that this alternative is not as capable as libevent when using
19514 large outgoing port ranges. " "$LINENO" 5
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19518 $as_echo "found in $thedir" >&6; }
19519 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
19520 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
19522 if test "x$enable_rpath" = xyes; then
19523 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
19524 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
19529 if test "$thedir" != "/usr" -a "$thedir" != ""; then
19530 LDFLAGS="$LDFLAGS -L$thedir/lib"
19532 if test "x$enable_rpath" = xyes; then
19533 if echo "$thedir/lib" | grep "^/" >/dev/null; then
19534 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
19541 # check for library used by libevent after 1.3c
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19543 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19544 if ${ac_cv_search_clock_gettime+:} false; then :
19545 $as_echo_n "(cached) " >&6
19547 ac_func_search_save_LIBS=$LIBS
19548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549 /* end confdefs.h. */
19551 /* Override any GCC internal prototype to avoid an error.
19552 Use char because int might match the return type of a GCC
19553 builtin and then its argument prototype would still apply. */
19557 char clock_gettime ();
19561 return clock_gettime ();
19566 for ac_lib in '' rt; do
19567 if test -z "$ac_lib"; then
19568 ac_res="none required"
19571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19573 if ac_fn_c_try_link "$LINENO"; then :
19574 ac_cv_search_clock_gettime=$ac_res
19576 rm -f core conftest.err conftest.$ac_objext \
19578 if ${ac_cv_search_clock_gettime+:} false; then :
19582 if ${ac_cv_search_clock_gettime+:} false; then :
19585 ac_cv_search_clock_gettime=no
19587 rm conftest.$ac_ext
19588 LIBS=$ac_func_search_save_LIBS
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19591 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19592 ac_res=$ac_cv_search_clock_gettime
19593 if test "$ac_res" != no; then :
19594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19599 # is the event.h header libev or libevent?
19600 for ac_header in event.h
19602 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
19604 if test "x$ac_cv_header_event_h" = xyes; then :
19605 cat >>confdefs.h <<_ACEOF
19606 #define HAVE_EVENT_H 1
19613 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
19617 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19620 $as_echo_n "checking for library containing event_set... " >&6; }
19621 if ${ac_cv_search_event_set+:} false; then :
19622 $as_echo_n "(cached) " >&6
19624 ac_func_search_save_LIBS=$LIBS
19625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19626 /* end confdefs.h. */
19628 /* Override any GCC internal prototype to avoid an error.
19629 Use char because int might match the return type of a GCC
19630 builtin and then its argument prototype would still apply. */
19638 return event_set ();
19643 for ac_lib in '' ev; do
19644 if test -z "$ac_lib"; then
19645 ac_res="none required"
19648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19650 if ac_fn_c_try_link "$LINENO"; then :
19651 ac_cv_search_event_set=$ac_res
19653 rm -f core conftest.err conftest.$ac_objext \
19655 if ${ac_cv_search_event_set+:} false; then :
19659 if ${ac_cv_search_event_set+:} false; then :
19662 ac_cv_search_event_set=no
19664 rm conftest.$ac_ext
19665 LIBS=$ac_func_search_save_LIBS
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19668 $as_echo "$ac_cv_search_event_set" >&6; }
19669 ac_res=$ac_cv_search_event_set
19670 if test "$ac_res" != no; then :
19671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19679 $as_echo_n "checking for library containing event_set... " >&6; }
19680 if ${ac_cv_search_event_set+:} false; then :
19681 $as_echo_n "(cached) " >&6
19683 ac_func_search_save_LIBS=$LIBS
19684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19685 /* end confdefs.h. */
19687 /* Override any GCC internal prototype to avoid an error.
19688 Use char because int might match the return type of a GCC
19689 builtin and then its argument prototype would still apply. */
19697 return event_set ();
19702 for ac_lib in '' event; do
19703 if test -z "$ac_lib"; then
19704 ac_res="none required"
19707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19709 if ac_fn_c_try_link "$LINENO"; then :
19710 ac_cv_search_event_set=$ac_res
19712 rm -f core conftest.err conftest.$ac_objext \
19714 if ${ac_cv_search_event_set+:} false; then :
19718 if ${ac_cv_search_event_set+:} false; then :
19721 ac_cv_search_event_set=no
19723 rm conftest.$ac_ext
19724 LIBS=$ac_func_search_save_LIBS
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19727 $as_echo "$ac_cv_search_event_set" >&6; }
19728 ac_res=$ac_cv_search_event_set
19729 if test "$ac_res" != no; then :
19730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19737 for ac_func in event_base_free
19739 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
19740 if test "x$ac_cv_func_event_base_free" = xyes; then :
19741 cat >>confdefs.h <<_ACEOF
19742 #define HAVE_EVENT_BASE_FREE 1
19747 # only in libevent 1.2 and later
19748 for ac_func in event_base_once
19750 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
19751 if test "x$ac_cv_func_event_base_once" = xyes; then :
19752 cat >>confdefs.h <<_ACEOF
19753 #define HAVE_EVENT_BASE_ONCE 1
19758 # only in libevent 1.4.1 and later
19759 for ac_func in event_base_new
19761 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
19762 if test "x$ac_cv_func_event_base_new" = xyes; then :
19763 cat >>confdefs.h <<_ACEOF
19764 #define HAVE_EVENT_BASE_NEW 1
19769 # only in libevent 1.4.1 and later
19770 for ac_func in event_base_get_method
19772 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
19773 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
19774 cat >>confdefs.h <<_ACEOF
19775 #define HAVE_EVENT_BASE_GET_METHOD 1
19780 # only in libevent 1.4.3 and later
19781 for ac_func in ev_loop
19783 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
19784 if test "x$ac_cv_func_ev_loop" = xyes; then :
19785 cat >>confdefs.h <<_ACEOF
19786 #define HAVE_EV_LOOP 1
19791 # only in libev. (tested on 3.51)
19792 for ac_func in ev_default_loop
19794 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
19795 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
19796 cat >>confdefs.h <<_ACEOF
19797 #define HAVE_EV_DEFAULT_LOOP 1
19802 # only in libev. (tested on 4.00)
19803 for ac_func in event_assign
19805 ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
19806 if test "x$ac_cv_func_event_assign" = xyes; then :
19807 cat >>confdefs.h <<_ACEOF
19808 #define HAVE_EVENT_ASSIGN 1
19813 # in libevent, for thread-safety
19814 ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
19815 #ifdef HAVE_EVENT_H
19816 # include <event.h>
19818 # include \"event2/event.h\"
19822 if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then :
19828 cat >>confdefs.h <<_ACEOF
19829 #define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl
19832 PC_LIBEVENT_DEPENDENCY="libevent"
19834 if test -n "$BAK_LDFLAGS_SET"; then
19835 LDFLAGS="$BAK_LDFLAGS"
19839 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
19843 # check for libexpat
19845 # Check whether --with-libexpat was given.
19846 if test "${with_libexpat+set}" = set; then :
19847 withval=$with_libexpat;
19849 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
19853 $as_echo_n "checking for libexpat... " >&6; }
19854 found_libexpat="no"
19855 for dir in $withval ; do
19856 if test -f "$dir/include/expat.h"; then
19857 found_libexpat="yes"
19858 if test "$dir" != "/usr"; then
19859 CPPFLAGS="$CPPFLAGS -I$dir/include"
19860 LDFLAGS="$LDFLAGS -L$dir/lib"
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19863 $as_echo "found in $dir" >&6; }
19867 if test x_$found_libexpat != x_yes; then
19868 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
19870 for ac_header in expat.h
19872 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
19874 if test "x$ac_cv_header_expat_h" = xyes; then :
19875 cat >>confdefs.h <<_ACEOF
19876 #define HAVE_EXPAT_H 1
19883 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
19887 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
19893 cat >>confdefs.h <<_ACEOF
19894 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
19898 # hiredis (redis C client for cachedb)
19900 # Check whether --with-libhiredis was given.
19901 if test "${with_libhiredis+set}" = set; then :
19902 withval=$with_libhiredis;
19907 found_libhiredis="no"
19908 if test x_$withval = x_yes -o x_$withval != x_no; then
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
19910 $as_echo_n "checking for libhiredis... " >&6; }
19911 if test x_$withval = x_ -o x_$withval = x_yes; then
19912 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19914 for dir in $withval ; do
19915 if test -f "$dir/include/hiredis/hiredis.h"; then
19916 found_libhiredis="yes"
19917 if test "$dir" != "/usr"; then
19918 CPPFLAGS="$CPPFLAGS -I$dir/include"
19919 LDFLAGS="$LDFLAGS -L$dir/lib"
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19922 $as_echo "found in $dir" >&6; }
19924 $as_echo "#define USE_REDIS 1" >>confdefs.h
19926 LIBS="$LIBS -lhiredis"
19930 if test x_$found_libhiredis != x_yes; then
19931 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
19933 for ac_header in hiredis/hiredis.h
19935 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
19937 if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
19938 cat >>confdefs.h <<_ACEOF
19939 #define HAVE_HIREDIS_HIREDIS_H 1
19946 ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
19947 #include <hiredis/hiredis.h>
19950 if test "x$ac_cv_have_decl_redisConnect" = xyes; then :
19956 cat >>confdefs.h <<_ACEOF
19957 #define HAVE_DECL_REDISCONNECT $ac_have_decl
19964 # Check whether --with-libnghttp2 was given.
19965 if test "${with_libnghttp2+set}" = set; then :
19966 withval=$with_libnghttp2;
19971 found_libnghttp2="no"
19972 if test x_$withval = x_yes -o x_$withval != x_no; then
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5
19974 $as_echo_n "checking for libnghttp2... " >&6; }
19975 if test x_$withval = x_ -o x_$withval = x_yes; then
19976 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19978 for dir in $withval ; do
19979 if test -f "$dir/include/nghttp2/nghttp2.h"; then
19980 found_libnghttp2="yes"
19981 if test "$dir" != "/usr"; then
19982 CPPFLAGS="$CPPFLAGS -I$dir/include"
19983 LDFLAGS="$LDFLAGS -L$dir/lib"
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19986 $as_echo "found in $dir" >&6; }
19988 $as_echo "#define HAVE_NGHTTP2 1" >>confdefs.h
19990 LIBS="$LIBS -lnghttp2"
19994 if test x_$found_libnghttp2 != x_yes; then
19995 as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5
19997 for ac_header in nghttp2/nghttp2.h
19999 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default
20001 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
20002 cat >>confdefs.h <<_ACEOF
20003 #define HAVE_NGHTTP2_NGHTTP2_H 1
20010 ac_fn_c_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default
20011 #include <nghttp2/nghttp2.h>
20014 if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes; then :
20020 cat >>confdefs.h <<_ACEOF
20021 #define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl
20026 # set static linking for uninstalled libraries if requested
20029 # Check whether --enable-static-exe was given.
20030 if test "${enable_static_exe+set}" = set; then :
20031 enableval=$enable_static_exe;
20034 if test x_$enable_static_exe = x_yes; then
20035 staticexe="-static"
20036 if test "$on_mingw" = yes; then
20037 staticexe="-all-static"
20038 # for static compile, include gdi32 and zlib here.
20039 if echo $LIBS | grep 'lgdi32' >/dev/null; then
20042 LIBS="$LIBS -lgdi32"
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
20045 $as_echo_n "checking for compress in -lz... " >&6; }
20046 if ${ac_cv_lib_z_compress+:} false; then :
20047 $as_echo_n "(cached) " >&6
20049 ac_check_lib_save_LIBS=$LIBS
20051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20052 /* end confdefs.h. */
20054 /* Override any GCC internal prototype to avoid an error.
20055 Use char because int might match the return type of a GCC
20056 builtin and then its argument prototype would still apply. */
20064 return compress ();
20069 if ac_fn_c_try_link "$LINENO"; then :
20070 ac_cv_lib_z_compress=yes
20072 ac_cv_lib_z_compress=no
20074 rm -f core conftest.err conftest.$ac_objext \
20075 conftest$ac_exeext conftest.$ac_ext
20076 LIBS=$ac_check_lib_save_LIBS
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
20079 $as_echo "$ac_cv_lib_z_compress" >&6; }
20080 if test "x$ac_cv_lib_z_compress" = xyes; then :
20084 LIBS="$LIBS -l:libssp.a"
20088 # set full static linking if requested
20089 # Check whether --enable-fully-static was given.
20090 if test "${enable_fully_static+set}" = set; then :
20091 enableval=$enable_fully_static;
20094 if test x_$enable_fully_static = x_yes; then
20095 staticexe="-all-static"
20096 if test "$on_mingw" = yes; then
20097 # for static compile, include gdi32 and zlib here.
20098 if echo $LIBS | grep 'lgdi32' >/dev/null; then
20101 LIBS="$LIBS -lgdi32"
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
20104 $as_echo_n "checking for compress in -lz... " >&6; }
20105 if ${ac_cv_lib_z_compress+:} false; then :
20106 $as_echo_n "(cached) " >&6
20108 ac_check_lib_save_LIBS=$LIBS
20110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20111 /* end confdefs.h. */
20113 /* Override any GCC internal prototype to avoid an error.
20114 Use char because int might match the return type of a GCC
20115 builtin and then its argument prototype would still apply. */
20123 return compress ();
20128 if ac_fn_c_try_link "$LINENO"; then :
20129 ac_cv_lib_z_compress=yes
20131 ac_cv_lib_z_compress=no
20133 rm -f core conftest.err conftest.$ac_objext \
20134 conftest$ac_exeext conftest.$ac_ext
20135 LIBS=$ac_check_lib_save_LIBS
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
20138 $as_echo "$ac_cv_lib_z_compress" >&6; }
20139 if test "x$ac_cv_lib_z_compress" = xyes; then :
20143 LIBS="$LIBS -l:libssp.a"
20147 # set lock checking if requested
20148 # Check whether --enable-lock_checks was given.
20149 if test "${enable_lock_checks+set}" = set; then :
20150 enableval=$enable_lock_checks;
20153 if test x_$enable_lock_checks = x_yes; then
20155 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
20157 CHECKLOCK_OBJ="checklocks.lo"
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
20163 $as_echo_n "checking for getaddrinfo... " >&6; }
20164 ac_cv_func_getaddrinfo=no
20165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20166 /* end confdefs.h. */
20172 char* getaddrinfo();
20173 char* (*f) () = getaddrinfo;
20183 if ac_fn_c_try_link "$LINENO"; then :
20184 ac_cv_func_getaddrinfo="yes"
20185 if test "$ac_cv_header_windows_h" = "yes"; then
20187 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
20190 if echo $LIBS | grep 'lws2_32' >/dev/null; then
20193 LIBS="$LIBS -lws2_32"
20199 LIBS="$LIBS -lws2_32"
20200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20201 /* end confdefs.h. */
20203 #ifdef HAVE_WS2TCPIP_H
20204 #include <ws2tcpip.h>
20211 (void)getaddrinfo(NULL, NULL, NULL, NULL);
20218 if ac_fn_c_try_link "$LINENO"; then :
20220 ac_cv_func_getaddrinfo="yes"
20222 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
20228 ac_cv_func_getaddrinfo="no"
20232 rm -f core conftest.err conftest.$ac_objext \
20233 conftest$ac_exeext conftest.$ac_ext
20236 rm -f core conftest.err conftest.$ac_objext \
20237 conftest$ac_exeext conftest.$ac_ext
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
20240 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
20241 if test $ac_cv_func_getaddrinfo = yes; then
20243 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
20247 if test "$USE_WINSOCK" = 1; then
20249 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
20251 for ac_header in iphlpapi.h
20253 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
20254 #include <windows.h>
20257 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
20258 cat >>confdefs.h <<_ACEOF
20259 #define HAVE_IPHLPAPI_H 1
20266 if test -n "$ac_tool_prefix"; then
20267 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20268 set dummy ${ac_tool_prefix}windres; ac_word=$2
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20270 $as_echo_n "checking for $ac_word... " >&6; }
20271 if ${ac_cv_prog_WINDRES+:} false; then :
20272 $as_echo_n "(cached) " >&6
20274 if test -n "$WINDRES"; then
20275 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20278 for as_dir in $PATH
20281 test -z "$as_dir" && as_dir=.
20282 for ac_exec_ext in '' $ac_executable_extensions; do
20283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20284 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20294 WINDRES=$ac_cv_prog_WINDRES
20295 if test -n "$WINDRES"; then
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20297 $as_echo "$WINDRES" >&6; }
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20300 $as_echo "no" >&6; }
20305 if test -z "$ac_cv_prog_WINDRES"; then
20306 ac_ct_WINDRES=$WINDRES
20307 # Extract the first word of "windres", so it can be a program name with args.
20308 set dummy windres; ac_word=$2
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20310 $as_echo_n "checking for $ac_word... " >&6; }
20311 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
20312 $as_echo_n "(cached) " >&6
20314 if test -n "$ac_ct_WINDRES"; then
20315 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20318 for as_dir in $PATH
20321 test -z "$as_dir" && as_dir=.
20322 for ac_exec_ext in '' $ac_executable_extensions; do
20323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20324 ac_cv_prog_ac_ct_WINDRES="windres"
20325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20334 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20335 if test -n "$ac_ct_WINDRES"; then
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
20337 $as_echo "$ac_ct_WINDRES" >&6; }
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20340 $as_echo "no" >&6; }
20343 if test "x$ac_ct_WINDRES" = x; then
20346 case $cross_compiling:$ac_tool_warned in
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20350 ac_tool_warned=yes ;;
20352 WINDRES=$ac_ct_WINDRES
20355 WINDRES="$ac_cv_prog_WINDRES"
20358 LIBS="$LIBS -liphlpapi -lcrypt32"
20359 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
20361 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
20363 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
20365 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
20367 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
20369 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
20371 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
20373 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
20376 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
20379 if test $ac_cv_func_getaddrinfo = no; then
20380 case " $LIBOBJS " in
20381 *" fake-rfc2553.$ac_objext "* ) ;;
20382 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
20387 # check after getaddrinfo for its libraries
20389 # check ioctlsocket
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
20391 $as_echo_n "checking for ioctlsocket... " >&6; }
20392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20393 /* end confdefs.h. */
20395 #ifdef HAVE_WINSOCK2_H
20396 #include <winsock2.h>
20403 (void)ioctlsocket(0, 0, NULL);
20409 if ac_fn_c_try_link "$LINENO"; then :
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20412 $as_echo "yes" >&6; }
20414 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20419 $as_echo "no" >&6; }
20421 rm -f core conftest.err conftest.$ac_objext \
20422 conftest$ac_exeext conftest.$ac_ext
20425 # see if daemon(3) exists, and if it is deprecated.
20426 for ac_func in daemon
20428 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
20429 if test "x$ac_cv_func_daemon" = xyes; then :
20430 cat >>confdefs.h <<_ACEOF
20431 #define HAVE_DAEMON 1
20437 if test $ac_cv_func_daemon = yes; then
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
20441 $as_echo_n "checking if daemon is deprecated... " >&6; }
20442 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
20443 if eval \${cv_cc_deprecated_$cache+:} false; then :
20444 $as_echo_n "(cached) " >&6
20448 #include <stdlib.h>
20449 #include <unistd.h>
20451 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
20452 if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then
20453 eval "cv_cc_deprecated_$cache=no"
20455 eval "cv_cc_deprecated_$cache=yes"
20457 rm -f conftest conftest.o conftest.c
20461 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20463 $as_echo "yes" >&6; }
20465 cat >>confdefs.h <<_ACEOF
20466 #define DEPRECATED_DAEMON 1
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20473 $as_echo "no" >&6; }
20480 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
20481 $ac_includes_default
20482 #ifdef HAVE_SYS_UN_H
20483 #include <sys/un.h>
20487 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
20489 cat >>confdefs.h <<_ACEOF
20490 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
20496 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
20497 $ac_includes_default
20498 #if HAVE_SYS_PARAM_H
20499 #include <sys/param.h>
20502 #ifdef HAVE_SYS_SOCKET_H
20503 #include <sys/socket.h>
20506 #ifdef HAVE_SYS_UIO_H
20507 #include <sys/uio.h>
20510 #ifdef HAVE_NETINET_IN_H
20511 #include <netinet/in.h>
20514 #ifdef HAVE_NETINET_TCP_H
20515 #include <netinet/tcp.h>
20518 #ifdef HAVE_ARPA_INET_H
20519 #include <arpa/inet.h>
20522 #ifdef HAVE_WINSOCK2_H
20523 #include <winsock2.h>
20526 #ifdef HAVE_WS2TCPIP_H
20527 #include <ws2tcpip.h>
20531 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
20533 cat >>confdefs.h <<_ACEOF
20534 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
20542 $as_echo_n "checking for htobe64... " >&6; }
20543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20544 /* end confdefs.h. */
20547 #ifdef HAVE_ENDIAN_H
20548 # include <endian.h>
20550 #ifdef HAVE_SYS_ENDIAN_H
20551 # include <sys/endian.h>
20557 unsigned long long x = htobe64(0); printf("%u", (unsigned)x);
20562 if ac_fn_c_try_link "$LINENO"; then :
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20564 $as_echo "yes" >&6; }
20566 $as_echo "#define HAVE_HTOBE64 1" >>confdefs.h
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20570 $as_echo "no" >&6; }
20572 rm -f core conftest.err conftest.$ac_objext \
20573 conftest$ac_exeext conftest.$ac_ext
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
20576 $as_echo_n "checking for be64toh... " >&6; }
20577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20578 /* end confdefs.h. */
20581 #ifdef HAVE_ENDIAN_H
20582 # include <endian.h>
20584 #ifdef HAVE_SYS_ENDIAN_H
20585 # include <sys/endian.h>
20591 unsigned long long x = be64toh(0); printf("%u", (unsigned)x);
20596 if ac_fn_c_try_link "$LINENO"; then :
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20598 $as_echo "yes" >&6; }
20600 $as_echo "#define HAVE_BE64TOH 1" >>confdefs.h
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20604 $as_echo "no" >&6; }
20606 rm -f core conftest.err conftest.$ac_objext \
20607 conftest$ac_exeext conftest.$ac_ext
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
20610 $as_echo_n "checking for library containing setusercontext... " >&6; }
20611 if ${ac_cv_search_setusercontext+:} false; then :
20612 $as_echo_n "(cached) " >&6
20614 ac_func_search_save_LIBS=$LIBS
20615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20616 /* end confdefs.h. */
20618 /* Override any GCC internal prototype to avoid an error.
20619 Use char because int might match the return type of a GCC
20620 builtin and then its argument prototype would still apply. */
20624 char setusercontext ();
20628 return setusercontext ();
20633 for ac_lib in '' util; do
20634 if test -z "$ac_lib"; then
20635 ac_res="none required"
20638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20640 if ac_fn_c_try_link "$LINENO"; then :
20641 ac_cv_search_setusercontext=$ac_res
20643 rm -f core conftest.err conftest.$ac_objext \
20645 if ${ac_cv_search_setusercontext+:} false; then :
20649 if ${ac_cv_search_setusercontext+:} false; then :
20652 ac_cv_search_setusercontext=no
20654 rm conftest.$ac_ext
20655 LIBS=$ac_func_search_save_LIBS
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20658 $as_echo "$ac_cv_search_setusercontext" >&6; }
20659 ac_res=$ac_cv_search_setusercontext
20660 if test "$ac_res" != no; then :
20661 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20665 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 if_nametoindex poll gettid
20667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20668 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20669 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20670 cat >>confdefs.h <<_ACEOF
20671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20677 for ac_func in setresuid
20679 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
20680 if test "x$ac_cv_func_setresuid" = xyes; then :
20681 cat >>confdefs.h <<_ACEOF
20682 #define HAVE_SETRESUID 1
20686 for ac_func in setreuid
20688 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
20689 if test "x$ac_cv_func_setreuid" = xyes; then :
20690 cat >>confdefs.h <<_ACEOF
20691 #define HAVE_SETREUID 1
20700 for ac_func in setresgid
20702 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
20703 if test "x$ac_cv_func_setresgid" = xyes; then :
20704 cat >>confdefs.h <<_ACEOF
20705 #define HAVE_SETRESGID 1
20709 for ac_func in setregid
20711 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
20712 if test "x$ac_cv_func_setregid" = xyes; then :
20713 cat >>confdefs.h <<_ACEOF
20714 #define HAVE_SETREGID 1
20724 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
20725 if echo $host_os | grep darwin8 > /dev/null; then
20727 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
20730 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
20731 $ac_includes_default
20732 #ifdef HAVE_NETINET_IN_H
20733 #include <netinet/in.h>
20736 #ifdef HAVE_NETINET_TCP_H
20737 #include <netinet/tcp.h>
20740 #ifdef HAVE_ARPA_INET_H
20741 #include <arpa/inet.h>
20744 #ifdef HAVE_WINSOCK2_H
20745 #include <winsock2.h>
20748 #ifdef HAVE_WS2TCPIP_H
20749 #include <ws2tcpip.h>
20753 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
20759 cat >>confdefs.h <<_ACEOF
20760 #define HAVE_DECL_INET_PTON $ac_have_decl
20762 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
20763 $ac_includes_default
20764 #ifdef HAVE_NETINET_IN_H
20765 #include <netinet/in.h>
20768 #ifdef HAVE_NETINET_TCP_H
20769 #include <netinet/tcp.h>
20772 #ifdef HAVE_ARPA_INET_H
20773 #include <arpa/inet.h>
20776 #ifdef HAVE_WINSOCK2_H
20777 #include <winsock2.h>
20780 #ifdef HAVE_WS2TCPIP_H
20781 #include <ws2tcpip.h>
20785 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
20791 cat >>confdefs.h <<_ACEOF
20792 #define HAVE_DECL_INET_NTOP $ac_have_decl
20795 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
20796 if test "x$ac_cv_func_inet_aton" = xyes; then :
20797 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
20800 case " $LIBOBJS " in
20801 *" inet_aton.$ac_objext "* ) ;;
20802 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20809 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
20810 if test "x$ac_cv_func_inet_pton" = xyes; then :
20811 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
20814 case " $LIBOBJS " in
20815 *" inet_pton.$ac_objext "* ) ;;
20816 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
20823 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20824 if test "x$ac_cv_func_inet_ntop" = xyes; then :
20825 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
20828 case " $LIBOBJS " in
20829 *" inet_ntop.$ac_objext "* ) ;;
20830 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20837 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20838 if test "x$ac_cv_func_snprintf" = xyes; then :
20839 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20842 case " $LIBOBJS " in
20843 *" snprintf.$ac_objext "* ) ;;
20844 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20851 # test if snprintf return the proper length
20852 if test "x$ac_cv_func_snprintf" = xyes; then
20853 if test c${cross_compiling} = cno; then
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
20855 $as_echo_n "checking for correct snprintf return value... " >&6; }
20856 if test "$cross_compiling" = yes; then :
20857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20859 as_fn_error $? "cannot run test program while cross compiling
20860 See \`config.log' for more details" "$LINENO" 5; }
20862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20863 /* end confdefs.h. */
20864 $ac_includes_default
20866 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
20869 if ac_fn_c_try_run "$LINENO"; then :
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20871 $as_echo "yes" >&6; }
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20875 $as_echo "no" >&6; }
20877 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
20879 case " $LIBOBJS " in
20880 *" snprintf.$ac_objext "* ) ;;
20881 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20888 conftest.$ac_objext conftest.beam conftest.$ac_ext
20893 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20894 if test "x$ac_cv_func_strlcat" = xyes; then :
20895 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
20898 case " $LIBOBJS " in
20899 *" strlcat.$ac_objext "* ) ;;
20900 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20907 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20908 if test "x$ac_cv_func_strlcpy" = xyes; then :
20909 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
20912 case " $LIBOBJS " in
20913 *" strlcpy.$ac_objext "* ) ;;
20914 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20921 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20922 if test "x$ac_cv_func_memmove" = xyes; then :
20923 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20926 case " $LIBOBJS " in
20927 *" memmove.$ac_objext "* ) ;;
20928 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
20935 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
20936 if test "x$ac_cv_func_gmtime_r" = xyes; then :
20937 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20940 case " $LIBOBJS " in
20941 *" gmtime_r.$ac_objext "* ) ;;
20942 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
20949 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
20950 if test "x$ac_cv_func_isblank" = xyes; then :
20951 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
20954 case " $LIBOBJS " in
20955 *" isblank.$ac_objext "* ) ;;
20956 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
20963 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20964 if test "x$ac_cv_func_explicit_bzero" = xyes; then :
20965 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20968 case " $LIBOBJS " in
20969 *" explicit_bzero.$ac_objext "* ) ;;
20970 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
20977 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
20980 $as_echo_n "checking for reallocarray... " >&6; }
20981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20982 /* end confdefs.h. */
20983 $ac_includes_default
20985 #ifndef _OPENBSD_SOURCE
20986 #define _OPENBSD_SOURCE 1
20988 #include <stdlib.h>
20990 void* p = reallocarray(NULL, 10, 100);
20996 if ac_fn_c_try_link "$LINENO"; then :
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20998 $as_echo "yes" >&6; }
21000 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21006 $as_echo "no" >&6; }
21007 case " $LIBOBJS " in
21008 *" reallocarray.$ac_objext "* ) ;;
21009 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
21015 rm -f core conftest.err conftest.$ac_objext \
21016 conftest$ac_exeext conftest.$ac_ext
21017 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
21018 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
21024 cat >>confdefs.h <<_ACEOF
21025 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
21028 if test "$USE_NSS" = "no"; then
21029 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
21030 if test "x$ac_cv_func_arc4random" = xyes; then :
21031 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
21034 case " $LIBOBJS " in
21035 *" arc4random.$ac_objext "* ) ;;
21036 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
21043 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
21044 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
21045 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
21048 case " $LIBOBJS " in
21049 *" arc4random_uniform.$ac_objext "* ) ;;
21050 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
21057 if test "$ac_cv_func_arc4random" = "no"; then
21058 case " $LIBOBJS " in
21059 *" arc4_lock.$ac_objext "* ) ;;
21060 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
21064 for ac_func in getentropy
21066 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
21067 if test "x$ac_cv_func_getentropy" = xyes; then :
21068 cat >>confdefs.h <<_ACEOF
21069 #define HAVE_GETENTROPY 1
21074 if test "$USE_WINSOCK" = 1; then
21075 case " $LIBOBJS " in
21076 *" getentropy_win.$ac_objext "* ) ;;
21077 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
21084 case " $LIBOBJS " in
21085 *" getentropy_osx.$ac_objext "* ) ;;
21086 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
21091 *solaris*|*sunos*|SunOS)
21092 case " $LIBOBJS " in
21093 *" getentropy_solaris.$ac_objext "* ) ;;
21094 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
21098 for ac_header in sys/sha2.h
21100 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
21102 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
21103 cat >>confdefs.h <<_ACEOF
21104 #define HAVE_SYS_SHA2_H 1
21109 for ac_func in SHA512_Update
21111 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
21112 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
21113 cat >>confdefs.h <<_ACEOF
21114 #define HAVE_SHA512_UPDATE 1
21119 case " $LIBOBJS " in
21120 *" sha512.$ac_objext "* ) ;;
21121 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
21134 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
21135 # this lib needed for sha2 on solaris
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21139 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21140 if ${ac_cv_search_clock_gettime+:} false; then :
21141 $as_echo_n "(cached) " >&6
21143 ac_func_search_save_LIBS=$LIBS
21144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145 /* end confdefs.h. */
21147 /* Override any GCC internal prototype to avoid an error.
21148 Use char because int might match the return type of a GCC
21149 builtin and then its argument prototype would still apply. */
21153 char clock_gettime ();
21157 return clock_gettime ();
21162 for ac_lib in '' rt; do
21163 if test -z "$ac_lib"; then
21164 ac_res="none required"
21167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21169 if ac_fn_c_try_link "$LINENO"; then :
21170 ac_cv_search_clock_gettime=$ac_res
21172 rm -f core conftest.err conftest.$ac_objext \
21174 if ${ac_cv_search_clock_gettime+:} false; then :
21178 if ${ac_cv_search_clock_gettime+:} false; then :
21181 ac_cv_search_clock_gettime=no
21183 rm conftest.$ac_ext
21184 LIBS=$ac_func_search_save_LIBS
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21187 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21188 ac_res=$ac_cv_search_clock_gettime
21189 if test "$ac_res" != no; then :
21190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21195 *freebsd*|*FreeBSD)
21196 case " $LIBOBJS " in
21197 *" getentropy_freebsd.$ac_objext "* ) ;;
21198 *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
21204 case " $LIBOBJS " in
21205 *" getentropy_linux.$ac_objext "* ) ;;
21206 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
21210 for ac_func in SHA512_Update
21212 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
21213 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
21214 cat >>confdefs.h <<_ACEOF
21215 #define HAVE_SHA512_UPDATE 1
21221 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
21223 case " $LIBOBJS " in
21224 *" sha512.$ac_objext "* ) ;;
21225 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
21233 for ac_header in sys/sysctl.h
21235 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
21237 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
21238 cat >>confdefs.h <<_ACEOF
21239 #define HAVE_SYS_SYSCTL_H 1
21246 for ac_func in getauxval
21248 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
21249 if test "x$ac_cv_func_getauxval" = xyes; then :
21250 cat >>confdefs.h <<_ACEOF
21251 #define HAVE_GETAUXVAL 1
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21258 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21259 if ${ac_cv_search_clock_gettime+:} false; then :
21260 $as_echo_n "(cached) " >&6
21262 ac_func_search_save_LIBS=$LIBS
21263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21264 /* end confdefs.h. */
21266 /* Override any GCC internal prototype to avoid an error.
21267 Use char because int might match the return type of a GCC
21268 builtin and then its argument prototype would still apply. */
21272 char clock_gettime ();
21276 return clock_gettime ();
21281 for ac_lib in '' rt; do
21282 if test -z "$ac_lib"; then
21283 ac_res="none required"
21286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21288 if ac_fn_c_try_link "$LINENO"; then :
21289 ac_cv_search_clock_gettime=$ac_res
21291 rm -f core conftest.err conftest.$ac_objext \
21293 if ${ac_cv_search_clock_gettime+:} false; then :
21297 if ${ac_cv_search_clock_gettime+:} false; then :
21300 ac_cv_search_clock_gettime=no
21302 rm conftest.$ac_ext
21303 LIBS=$ac_func_search_save_LIBS
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21306 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21307 ac_res=$ac_cv_search_clock_gettime
21308 if test "$ac_res" != no; then :
21309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21322 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
21324 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
21325 if test "x$ac_cv_func_ctime_r" = xyes; then :
21326 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
21329 case " $LIBOBJS " in
21330 *" ctime_r.$ac_objext "* ) ;;
21331 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
21338 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
21339 if test "x$ac_cv_func_strsep" = xyes; then :
21340 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
21343 case " $LIBOBJS " in
21344 *" strsep.$ac_objext "* ) ;;
21345 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
21353 # Check whether --enable-allsymbols was given.
21354 if test "${enable_allsymbols+set}" = set; then :
21355 enableval=$enable_allsymbols;
21358 case "$enable_allsymbols" in
21360 COMMON_OBJ_ALL_SYMBOLS=""
21362 EXTRALINK="libunbound.la"
21364 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
21368 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
21369 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
21376 if test x_$enable_lock_checks = x_yes; then
21377 UBSYMS="-export-symbols clubsyms.def"
21378 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
21379 echo lock_protect >> clubsyms.def
21380 echo lock_unprotect >> clubsyms.def
21381 echo lock_get_mem >> clubsyms.def
21382 echo checklock_start >> clubsyms.def
21383 echo checklock_stop >> clubsyms.def
21384 echo checklock_lock >> clubsyms.def
21385 echo checklock_unlock >> clubsyms.def
21386 echo checklock_init >> clubsyms.def
21387 echo checklock_thrcreate >> clubsyms.def
21388 echo checklock_thrjoin >> clubsyms.def
21391 # check for dnstap if requested
21393 # Check whether --enable-dnstap was given.
21394 if test "${enable_dnstap+set}" = set; then :
21395 enableval=$enable_dnstap; opt_dnstap=$enableval
21402 # Check whether --with-dnstap-socket-path was given.
21403 if test "${with_dnstap_socket_path+set}" = set; then :
21404 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
21406 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
21410 if test "x$opt_dnstap" != "xno"; then
21411 # Extract the first word of "protoc-c", so it can be a program name with args.
21412 set dummy protoc-c; ac_word=$2
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21414 $as_echo_n "checking for $ac_word... " >&6; }
21415 if ${ac_cv_path_PROTOC_C+:} false; then :
21416 $as_echo_n "(cached) " >&6
21420 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
21423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21424 for as_dir in $PATH
21427 test -z "$as_dir" && as_dir=.
21428 for ac_exec_ext in '' $ac_executable_extensions; do
21429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21430 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
21431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21441 PROTOC_C=$ac_cv_path_PROTOC_C
21442 if test -n "$PROTOC_C"; then
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
21444 $as_echo "$PROTOC_C" >&6; }
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21447 $as_echo "no" >&6; }
21451 if test -z "$PROTOC_C"; then
21452 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
21455 # Check whether --with-protobuf-c was given.
21456 if test "${with_protobuf_c+set}" = set; then :
21457 withval=$with_protobuf_c;
21458 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21459 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
21460 CFLAGS="$CFLAGS -I$withval/include/google"
21462 CFLAGS="$CFLAGS -I$withval/include"
21464 LDFLAGS="$LDFLAGS -L$withval/lib"
21468 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21469 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
21470 CFLAGS="$CFLAGS -I/usr/include/google"
21472 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
21473 CFLAGS="$CFLAGS -I/usr/local/include/google"
21474 LDFLAGS="$LDFLAGS -L/usr/local/lib"
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
21481 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
21482 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21483 $as_echo_n "(cached) " >&6
21485 ac_func_search_save_LIBS=$LIBS
21486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21487 /* end confdefs.h. */
21489 /* Override any GCC internal prototype to avoid an error.
21490 Use char because int might match the return type of a GCC
21491 builtin and then its argument prototype would still apply. */
21495 char protobuf_c_message_pack ();
21499 return protobuf_c_message_pack ();
21504 for ac_lib in '' protobuf-c; do
21505 if test -z "$ac_lib"; then
21506 ac_res="none required"
21509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21511 if ac_fn_c_try_link "$LINENO"; then :
21512 ac_cv_search_protobuf_c_message_pack=$ac_res
21514 rm -f core conftest.err conftest.$ac_objext \
21516 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21520 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21523 ac_cv_search_protobuf_c_message_pack=no
21525 rm conftest.$ac_ext
21526 LIBS=$ac_func_search_save_LIBS
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
21529 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
21530 ac_res=$ac_cv_search_protobuf_c_message_pack
21531 if test "$ac_res" != no; then :
21532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21535 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
21540 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
21546 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
21549 cat >>confdefs.h <<_ACEOF
21550 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
21553 DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path"
21555 DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)'
21557 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c"
21559 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo"
21571 # check for dnscrypt if requested
21573 # Check whether --enable-dnscrypt was given.
21574 if test "${enable_dnscrypt+set}" = set; then :
21575 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
21581 if test "x$opt_dnscrypt" != "xno"; then
21583 # Check whether --with-libsodium was given.
21584 if test "${with_libsodium+set}" = set; then :
21585 withval=$with_libsodium;
21586 CFLAGS="$CFLAGS -I$withval/include"
21587 LDFLAGS="$LDFLAGS -L$withval/lib"
21591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
21592 $as_echo_n "checking for library containing sodium_init... " >&6; }
21593 if ${ac_cv_search_sodium_init+:} false; then :
21594 $as_echo_n "(cached) " >&6
21596 ac_func_search_save_LIBS=$LIBS
21597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21598 /* end confdefs.h. */
21600 /* Override any GCC internal prototype to avoid an error.
21601 Use char because int might match the return type of a GCC
21602 builtin and then its argument prototype would still apply. */
21606 char sodium_init ();
21610 return sodium_init ();
21615 for ac_lib in '' sodium; do
21616 if test -z "$ac_lib"; then
21617 ac_res="none required"
21620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21622 if ac_fn_c_try_link "$LINENO"; then :
21623 ac_cv_search_sodium_init=$ac_res
21625 rm -f core conftest.err conftest.$ac_objext \
21627 if ${ac_cv_search_sodium_init+:} false; then :
21631 if ${ac_cv_search_sodium_init+:} false; then :
21634 ac_cv_search_sodium_init=no
21636 rm conftest.$ac_ext
21637 LIBS=$ac_func_search_save_LIBS
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
21640 $as_echo "$ac_cv_search_sodium_init" >&6; }
21641 ac_res=$ac_cv_search_sodium_init
21642 if test "$ac_res" != no; then :
21643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21646 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21650 $as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
21651 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21652 $as_echo_n "(cached) " >&6
21654 ac_func_search_save_LIBS=$LIBS
21655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21656 /* end confdefs.h. */
21658 /* Override any GCC internal prototype to avoid an error.
21659 Use char because int might match the return type of a GCC
21660 builtin and then its argument prototype would still apply. */
21664 char crypto_box_curve25519xchacha20poly1305_beforenm ();
21668 return crypto_box_curve25519xchacha20poly1305_beforenm ();
21673 for ac_lib in '' sodium; do
21674 if test -z "$ac_lib"; then
21675 ac_res="none required"
21678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21680 if ac_fn_c_try_link "$LINENO"; then :
21681 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
21683 rm -f core conftest.err conftest.$ac_objext \
21685 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21689 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21692 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
21694 rm conftest.$ac_ext
21695 LIBS=$ac_func_search_save_LIBS
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21698 $as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
21699 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
21700 if test "$ac_res" != no; then :
21701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21703 ENABLE_DNSCRYPT_XCHACHA20=1
21706 $as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
21711 ENABLE_DNSCRYPT_XCHACHA20=0
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
21717 $as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
21718 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21719 $as_echo_n "(cached) " >&6
21721 ac_func_search_save_LIBS=$LIBS
21722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21723 /* end confdefs.h. */
21725 /* Override any GCC internal prototype to avoid an error.
21726 Use char because int might match the return type of a GCC
21727 builtin and then its argument prototype would still apply. */
21731 char sodium_set_misuse_handler ();
21735 return sodium_set_misuse_handler ();
21740 for ac_lib in '' sodium; do
21741 if test -z "$ac_lib"; then
21742 ac_res="none required"
21745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21747 if ac_fn_c_try_link "$LINENO"; then :
21748 ac_cv_search_sodium_set_misuse_handler=$ac_res
21750 rm -f core conftest.err conftest.$ac_objext \
21752 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21756 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21759 ac_cv_search_sodium_set_misuse_handler=no
21761 rm conftest.$ac_ext
21762 LIBS=$ac_func_search_save_LIBS
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
21765 $as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
21766 ac_res=$ac_cv_search_sodium_set_misuse_handler
21767 if test "$ac_res" != no; then :
21768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21771 $as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
21778 $as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
21783 DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
21785 DNSCRYPT_OBJ="dnscrypt.lo"
21789 ENABLE_DNSCRYPT_XCHACHA20=0
21799 # check for cachedb if requested
21800 # Check whether --enable-cachedb was given.
21801 if test "${enable_cachedb+set}" = set; then :
21802 enableval=$enable_cachedb;
21805 # turn on cachedb when hiredis support is enabled.
21806 if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
21807 case "$enable_cachedb" in
21810 $as_echo "#define USE_CACHEDB 1" >>confdefs.h
21812 CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c"
21814 CACHEDB_OBJ="cachedb.lo redis.lo"
21822 # check for ipsecmod if requested
21823 # Check whether --enable-ipsecmod was given.
21824 if test "${enable_ipsecmod+set}" = set; then :
21825 enableval=$enable_ipsecmod;
21828 case "$enable_ipsecmod" in
21831 $as_echo "#define USE_IPSECMOD 1" >>confdefs.h
21833 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
21835 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
21843 # check for ipset if requested
21844 # Check whether --enable-ipset was given.
21845 if test "${enable_ipset+set}" = set; then :
21846 enableval=$enable_ipset;
21849 case "$enable_ipset" in
21852 $as_echo "#define USE_IPSET 1" >>confdefs.h
21854 IPSET_SRC="ipset/ipset.c"
21856 IPSET_OBJ="ipset.lo"
21861 # Check whether --with-libmnl was given.
21862 if test "${with_libmnl+set}" = set; then :
21863 withval=$with_libmnl;
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
21870 $as_echo_n "checking for libmnl... " >&6; }
21871 if test x_$withval = x_ -o x_$withval = x_yes; then
21872 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21874 for dir in $withval ; do
21875 if test -f "$dir/include/libmnl/libmnl.h" -o -f "$dir/include/libmnl/libmnl/libmnl.h"; then
21878 if test -f "$dir/include/libmnl/libmnl/libmnl.h"; then
21879 extralibmnl="/libmnl"
21881 if test "$dir" != "/usr" -o -n "$extralibmnl"; then
21882 CPPFLAGS="$CPPFLAGS -I$dir/include$extralibmnl"
21884 if test "$dir" != "/usr"; then
21885 LDFLAGS="$LDFLAGS -L$dir/lib"
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21888 $as_echo "found in $dir" >&6; }
21893 if test x_$found_libmnl != x_yes; then
21894 as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
21901 # Check whether --enable-explicit-port-randomisation was given.
21902 if test "${enable_explicit_port_randomisation+set}" = set; then :
21903 enableval=$enable_explicit_port_randomisation;
21906 case "$enable_explicit_port_randomisation" in
21909 $as_echo "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h
21916 if echo "$host" | $GREP -i -e linux >/dev/null; then
21917 # Check whether --enable-linux-ip-local-port-range was given.
21918 if test "${enable_linux_ip_local_port_range+set}" = set; then :
21919 enableval=$enable_linux_ip_local_port_range;
21922 case "$enable_linux_ip_local_port_range" in
21925 $as_echo "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
21935 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
21936 # on openBSD, the implicit rule make $< work.
21937 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
21939 cat >conftest.make <<EOF
21942 conftest.lo foo.lo bla.lo:
21943 if test -f "\$<"; then touch \$@; fi
21947 if test -f "\$<"; then touch \$@; fi
21949 conftest.lo: conftest.dir/conftest.c
21952 touch conftest.dir/conftest.c
21953 rm -f conftest.lo conftest.c
21954 ${MAKE:-make} -f conftest.make >/dev/null
21955 rm -f conftest.make conftest.c conftest.dir/conftest.c
21956 rm -rf conftest.dir
21957 if test ! -f conftest.lo; then
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21959 $as_echo "no" >&6; }
21960 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
21961 SOURCEFILE='`cat .source`'
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21964 $as_echo "yes" >&6; }
21965 SOURCEDETERMINE=':'
21972 # see if we want to build the library or everything
21973 ALLTARGET="alltargets"
21974 INSTALLTARGET="install-all"
21976 # Check whether --with-libunbound-only was given.
21977 if test "${with_libunbound_only+set}" = set; then :
21978 withval=$with_libunbound_only;
21979 if test "$withval" = "yes"; then
21981 INSTALLTARGET="install-lib"
21986 if test $ALLTARGET = "alltargets"; then
21987 if test $USE_NSS = "yes"; then
21988 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
21990 if test $USE_NETTLE = "yes"; then
21991 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
22000 $as_echo "$as_me: Stripping extension flags..." >&6;}
22002 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
22003 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
22005 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
22010 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
22011 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
22013 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
22018 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
22019 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
22021 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
22026 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
22027 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
22029 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
22034 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
22035 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
22037 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
22042 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
22043 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
22045 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
22050 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
22051 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
22053 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
22058 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
22059 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
22061 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
22066 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
22067 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
22069 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
22074 if test -n "$LATE_LDFLAGS"; then
22075 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
22077 # remove start spaces
22078 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
22079 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
22082 cat >>confdefs.h <<_ACEOF
22083 #define MAXSYSLOGMSGLEN 10240
22091 date=`date +'%b %e, %Y'`
22094 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"
22096 ac_config_headers="$ac_config_headers config.h"
22098 cat >confcache <<\_ACEOF
22099 # This file is a shell script that caches the results of configure
22100 # tests run on this system so they can be shared between configure
22101 # scripts and configure runs, see configure's option --config-cache.
22102 # It is not useful on other systems. If it contains results you don't
22103 # want to keep, you may remove or edit it.
22105 # config.status only pays attention to the cache file if you give it
22106 # the --recheck option to rerun configure.
22108 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22109 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22110 # following values.
22114 # The following way of writing the cache mishandles newlines in values,
22115 # but we know of no workaround that is simple, portable, and efficient.
22116 # So, we kill variables containing newlines.
22117 # Ultrix sh set writes to stderr and can't be redirected directly,
22118 # and sets the high bit in the cache file unless we assign to the vars.
22120 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22121 eval ac_val=\$$ac_var
22125 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22126 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22129 _ | IFS | as_nl) ;; #(
22130 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22131 *) { eval $ac_var=; unset $ac_var;} ;;
22137 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22138 *${as_nl}ac_space=\ *)
22139 # `set' does not quote correctly, so add quotes: double-quote
22140 # substitution turns \\\\ into \\, and sed turns \\ into \.
22143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22146 # `set' quotes correctly as required by POSIX, so do not add quotes.
22147 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22156 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22158 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22160 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22161 if test -w "$cache_file"; then
22162 if test "x$cache_file" != "x/dev/null"; then
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22164 $as_echo "$as_me: updating cache $cache_file" >&6;}
22165 if test ! -f "$cache_file" || test -h "$cache_file"; then
22166 cat confcache >"$cache_file"
22168 case $cache_file in #(
22170 mv -f confcache "$cache_file"$$ &&
22171 mv -f "$cache_file"$$ "$cache_file" ;; #(
22173 mv -f confcache "$cache_file" ;;
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22179 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22184 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22185 # Let make expand exec_prefix.
22186 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22188 DEFS=-DHAVE_CONFIG_H
22193 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22194 # 1. Remove the extension, and $U if already installed.
22195 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22196 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22197 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22198 # will be set to the directory where LIBOBJS objects are built.
22199 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22200 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22202 LIBOBJS=$ac_libobjs
22204 LTLIBOBJS=$ac_ltlibobjs
22207 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
22208 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
22209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22212 : "${CONFIG_STATUS=./config.status}"
22214 ac_clean_files_save=$ac_clean_files
22215 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22217 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22219 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22221 # Generated by $as_me.
22222 # Run this file to recreate the current configuration.
22223 # Compiler output produced by configure, useful for debugging
22224 # configure, is in config.log if it exists.
22227 ac_cs_recheck=false
22230 SHELL=\${CONFIG_SHELL-$SHELL}
22233 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22234 ## -------------------- ##
22235 ## M4sh Initialization. ##
22236 ## -------------------- ##
22238 # Be more Bourne compatible
22239 DUALCASE=1; export DUALCASE # for MKS sh
22240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22243 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22244 # is contrary to our usage. Disable this feature.
22245 alias -g '${1+"$@"}'='"$@"'
22246 setopt NO_GLOB_SUBST
22248 case `(set -o) 2>/dev/null` in #(
22260 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22261 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22262 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22263 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22264 # Prefer a ksh shell builtin over an external printf program on Solaris,
22265 # but without wasting forks for bash or zsh.
22266 if test -z "$BASH_VERSION$ZSH_VERSION" \
22267 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22268 as_echo='print -r --'
22269 as_echo_n='print -rn --'
22270 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22271 as_echo='printf %s\n'
22272 as_echo_n='printf %s'
22274 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22275 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22276 as_echo_n='/usr/ucb/echo -n'
22278 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22279 as_echo_n_body='eval
22283 expr "X$arg" : "X\\(.*\\)$as_nl";
22284 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22286 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22288 export as_echo_n_body
22289 as_echo_n='sh -c $as_echo_n_body as_echo'
22291 export as_echo_body
22292 as_echo='sh -c $as_echo_body as_echo'
22295 # The user is always right.
22296 if test "${PATH_SEPARATOR+set}" != set; then
22298 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22299 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22306 # We need space, tab and new line, in precisely that order. Quoting is
22307 # there to prevent editors from complaining about space-tab.
22308 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22309 # splitting by setting IFS to empty value.)
22312 # Find who we are. Look in the path if we contain no directory separator.
22315 *[\\/]* ) as_myself=$0 ;;
22316 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22317 for as_dir in $PATH
22320 test -z "$as_dir" && as_dir=.
22321 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22327 # We did not find ourselves, most probably we were run as `sh COMMAND'
22328 # in which case we are not to be found in the path.
22329 if test "x$as_myself" = x; then
22332 if test ! -f "$as_myself"; then
22333 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22337 # Unset variables that we do not need and which cause bugs (e.g. in
22338 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22339 # suppresses any "Segmentation fault" message there. '((' could
22340 # trigger a bug in pdksh 5.2.14.
22341 for as_var in BASH_ENV ENV MAIL MAILPATH
22342 do eval test x\${$as_var+set} = xset \
22343 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22356 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22360 # ----------------------------------------
22361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22363 # script with STATUS, using 1 if that was 0.
22366 as_status=$1; test $as_status -eq 0 && as_status=1
22368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22371 $as_echo "$as_me: error: $2" >&2
22372 as_fn_exit $as_status
22376 # as_fn_set_status STATUS
22377 # -----------------------
22378 # Set $? to STATUS, without forking.
22379 as_fn_set_status ()
22382 } # as_fn_set_status
22384 # as_fn_exit STATUS
22385 # -----------------
22386 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22390 as_fn_set_status $1
22396 # Portably unset VAR.
22399 { eval $1=; unset $1;}
22401 as_unset=as_fn_unset
22402 # as_fn_append VAR VALUE
22403 # ----------------------
22404 # Append the text in VALUE to the end of the definition contained in VAR. Take
22405 # advantage of any shell optimizations that allow amortized linear growth over
22406 # repeated appends, instead of the typical quadratic growth present in naive
22408 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22409 eval 'as_fn_append ()
22420 # as_fn_arith ARG...
22421 # ------------------
22422 # Perform arithmetic evaluation on the ARGs, and store the result in the
22423 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22424 # must be portable across $(()) and expr.
22425 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22426 eval 'as_fn_arith ()
22433 as_val=`expr "$@" || test $? -eq 1`
22438 if expr a : '\(a\)' >/dev/null 2>&1 &&
22439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22446 as_basename=basename
22451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22457 as_me=`$as_basename -- "$0" ||
22458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22459 X"$0" : 'X\(//\)$' \| \
22460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22462 sed '/^.*\/\([^/][^/]*\)\/*$/{
22476 # Avoid depending upon Character Ranges.
22477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22480 as_cr_digits='0123456789'
22481 as_cr_alnum=$as_cr_Letters$as_cr_digits
22483 ECHO_C= ECHO_N= ECHO_T=
22484 case `echo -n x` in #(((((
22486 case `echo 'xy\c'` in
22487 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22489 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22496 rm -f conf$$ conf$$.exe conf$$.file
22497 if test -d conf$$.dir; then
22498 rm -f conf$$.dir/conf$$.file
22501 mkdir conf$$.dir 2>/dev/null
22503 if (echo >conf$$.file) 2>/dev/null; then
22504 if ln -s conf$$.file conf$$ 2>/dev/null; then
22506 # ... but there are two gotchas:
22507 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22508 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22509 # In both cases, we have to default to `cp -pR'.
22510 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22512 elif ln conf$$.file conf$$ 2>/dev/null; then
22520 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22521 rmdir conf$$.dir 2>/dev/null
22526 # Create "$as_dir" as a directory, including parents if necessary.
22531 -*) as_dir=./$as_dir;;
22533 test -d "$as_dir" || eval $as_mkdir_p || {
22537 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22538 *) as_qdir=$as_dir;;
22540 as_dirs="'$as_qdir' $as_dirs"
22541 as_dir=`$as_dirname -- "$as_dir" ||
22542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22543 X"$as_dir" : 'X\(//\)[^/]' \| \
22544 X"$as_dir" : 'X\(//\)$' \| \
22545 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22546 $as_echo X"$as_dir" |
22547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22551 /^X\(\/\/\)[^/].*/{
22564 test -d "$as_dir" && break
22566 test -z "$as_dirs" || eval "mkdir $as_dirs"
22567 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22571 if mkdir -p . 2>/dev/null; then
22572 as_mkdir_p='mkdir -p "$as_dir"'
22574 test -d ./-p && rmdir ./-p
22579 # as_fn_executable_p FILE
22580 # -----------------------
22581 # Test if FILE is an executable regular file.
22582 as_fn_executable_p ()
22584 test -f "$1" && test -x "$1"
22585 } # as_fn_executable_p
22586 as_test_x='test -x'
22587 as_executable_p=as_fn_executable_p
22589 # Sed expression to map a string onto a valid CPP name.
22590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22592 # Sed expression to map a string onto a valid variable name.
22593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22597 ## ----------------------------------- ##
22598 ## Main body of $CONFIG_STATUS script. ##
22599 ## ----------------------------------- ##
22601 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22604 # Save the log message, to keep $0 and so on meaningful, and to
22605 # report actual input values of CONFIG_FILES etc. instead of their
22606 # values after options handling.
22608 This file was extended by unbound $as_me 1.17.1, which was
22609 generated by GNU Autoconf 2.69. Invocation command line was
22611 CONFIG_FILES = $CONFIG_FILES
22612 CONFIG_HEADERS = $CONFIG_HEADERS
22613 CONFIG_LINKS = $CONFIG_LINKS
22614 CONFIG_COMMANDS = $CONFIG_COMMANDS
22617 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22622 case $ac_config_files in *"
22623 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22626 case $ac_config_headers in *"
22627 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22632 # Files that config.status was made for.
22633 config_files="$ac_config_files"
22634 config_headers="$ac_config_headers"
22635 config_commands="$ac_config_commands"
22639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22641 \`$as_me' instantiates files and other configuration actions
22642 from templates according to the current configuration. Unless the files
22643 and actions are specified as TAGs, all are instantiated by default.
22645 Usage: $0 [OPTION]... [TAG]...
22647 -h, --help print this help, then exit
22648 -V, --version print version number and configuration settings, then exit
22649 --config print configuration, then exit
22650 -q, --quiet, --silent
22651 do not print progress messages
22652 -d, --debug don't remove temporary files
22653 --recheck update $as_me by reconfiguring in the same conditions
22654 --file=FILE[:TEMPLATE]
22655 instantiate the configuration file FILE
22656 --header=FILE[:TEMPLATE]
22657 instantiate the configuration header FILE
22659 Configuration files:
22662 Configuration headers:
22665 Configuration commands:
22668 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
22671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22672 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22674 unbound config.status 1.17.1
22675 configured by $0, generated by GNU Autoconf 2.69,
22676 with options \\"\$ac_cs_config\\"
22678 Copyright (C) 2012 Free Software Foundation, Inc.
22679 This config.status script is free software; the Free Software Foundation
22680 gives unlimited permission to copy, distribute and modify it."
22685 test -n "\$AWK" || AWK=awk
22688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22689 # The default lists apply if the user does not specify any file.
22695 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22696 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22700 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22712 # Handling of the options.
22713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22715 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22716 $as_echo "$ac_cs_version"; exit ;;
22717 --config | --confi | --conf | --con | --co | --c )
22718 $as_echo "$ac_cs_config"; exit ;;
22719 --debug | --debu | --deb | --de | --d | -d )
22721 --file | --fil | --fi | --f )
22724 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22725 '') as_fn_error $? "missing file argument" ;;
22727 as_fn_append CONFIG_FILES " '$ac_optarg'"
22728 ac_need_defaults=false;;
22729 --header | --heade | --head | --hea )
22732 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22734 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22735 ac_need_defaults=false;;
22737 # Conflict between --help and --header
22738 as_fn_error $? "ambiguous option: \`$1'
22739 Try \`$0 --help' for more information.";;
22740 --help | --hel | -h )
22741 $as_echo "$ac_cs_usage"; exit ;;
22742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22743 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22746 # This is an error.
22747 -*) as_fn_error $? "unrecognized option: \`$1'
22748 Try \`$0 --help' for more information." ;;
22750 *) as_fn_append ac_config_targets " $1"
22751 ac_need_defaults=false ;;
22757 ac_configure_extra_args=
22759 if $ac_cs_silent; then
22761 ac_configure_extra_args="$ac_configure_extra_args --silent"
22765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22766 if \$ac_cs_recheck; then
22767 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22769 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22770 CONFIG_SHELL='$SHELL'
22771 export CONFIG_SHELL
22776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22780 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22781 ## Running $as_me. ##
22787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22793 # The HP-UX ksh and POSIX shell print the target directory to stdout
22794 # if CDPATH is set.
22795 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22797 sed_quote_subst='$sed_quote_subst'
22798 double_quote_subst='$double_quote_subst'
22799 delay_variable_subst='$delay_variable_subst'
22800 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22801 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22802 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22803 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22804 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22805 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22806 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22807 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22808 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22809 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22810 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22811 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22812 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22813 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22814 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22815 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22816 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22817 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22818 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22819 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22820 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22821 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22822 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22823 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22824 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22825 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22826 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22827 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22828 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22829 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22830 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22831 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22832 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22833 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22834 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22835 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22836 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22837 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22838 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22839 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22840 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22841 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22842 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22843 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22844 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22845 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22846 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22847 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22848 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22849 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22850 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22851 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22852 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22853 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22854 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22855 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22856 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22857 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22858 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"`'
22859 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22860 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22861 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22862 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22863 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22864 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22865 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22866 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22867 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22868 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22869 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22870 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22871 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22872 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22873 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22874 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22875 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22876 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22877 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22878 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22879 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22880 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22881 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22882 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22883 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22884 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22885 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22886 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22887 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22888 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22889 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22890 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22891 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22892 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22893 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22894 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22895 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22896 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22897 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22898 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22899 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22900 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22901 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22902 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22903 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22904 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22905 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22906 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22907 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22908 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22909 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22910 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22911 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22912 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22913 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22914 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22915 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22916 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22917 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22918 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22919 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22920 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22921 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22922 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22923 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22924 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22925 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22926 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22927 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22928 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22929 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22930 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22931 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22932 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22933 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22934 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22937 LTCFLAGS='$LTCFLAGS'
22938 compiler='$compiler_DEFAULT'
22940 # A function that is used when there is no print builtin or printf.
22941 func_fallback_echo ()
22943 eval 'cat <<_LTECHO_EOF
22948 # Quote evaled strings.
22963 deplibs_check_method \
22968 sharedlib_from_linklib_cmd \
22971 archiver_list_spec \
22977 lt_cv_sys_global_symbol_pipe \
22978 lt_cv_sys_global_symbol_to_cdecl \
22979 lt_cv_sys_global_symbol_to_import \
22980 lt_cv_sys_global_symbol_to_c_name_address \
22981 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22982 lt_cv_nm_interface \
22983 nm_file_list_spec \
22984 lt_cv_truncate_bin \
22985 lt_prog_compiler_no_builtin_flag \
22986 lt_prog_compiler_pic \
22987 lt_prog_compiler_wl \
22988 lt_prog_compiler_static \
22989 lt_cv_prog_compiler_c_o \
22998 export_dynamic_flag_spec \
22999 whole_archive_flag_spec \
23000 compiler_needs_object \
23002 allow_undefined_flag \
23003 no_undefined_flag \
23004 hardcode_libdir_flag_spec \
23005 hardcode_libdir_separator \
23009 variables_saved_for_relink \
23011 library_names_spec \
23013 install_override_mode \
23017 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23018 *[\\\\\\\`\\"\\\$]*)
23019 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23022 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23027 # Double-quote double-evaled strings.
23028 for var in reload_cmds \
23029 old_postinstall_cmds \
23030 old_postuninstall_cmds \
23032 extract_expsyms_cmds \
23033 old_archive_from_new_cmds \
23034 old_archive_from_expsyms_cmds \
23036 archive_expsym_cmds \
23038 module_expsym_cmds \
23039 export_symbols_cmds \
23043 postuninstall_cmds \
23045 sys_lib_search_path_spec \
23046 configure_time_dlsearch_path \
23047 configure_time_lt_sys_library_path; do
23048 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23049 *[\\\\\\\`\\"\\\$]*)
23050 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23053 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23058 ac_aux_dir='$ac_aux_dir'
23060 # See if we are running on zsh, and set the options that allow our
23061 # commands through without removal of \ escapes INIT.
23062 if test -n "\${ZSH_VERSION+set}"; then
23063 setopt NO_GLOB_SUBST
23077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23079 # Handling of arguments.
23080 for ac_config_target in $ac_config_targets
23082 case $ac_config_target in
23083 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23084 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
23085 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23086 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
23087 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
23088 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
23089 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
23090 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
23091 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
23092 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
23093 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
23094 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
23095 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
23096 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
23097 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
23098 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
23099 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
23100 "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;;
23101 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23103 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23108 # If the user did not use the arguments to specify the items to instantiate,
23109 # then the envvar interface is used. Set only those that are not.
23110 # We use the long form for the default assignment because of an extremely
23111 # bizarre bug on SunOS 4.1.3.
23112 if $ac_need_defaults; then
23113 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23114 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23115 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23118 # Have a temporary directory for convenience. Make it in the build tree
23119 # simply because there is no reason against having it here, and in addition,
23120 # creating and moving files from /tmp can sometimes cause problems.
23121 # Hook for its removal unless debugging.
23122 # Note that there is a small window in which the directory will not be cleaned:
23123 # after its creation but before its name has been assigned to `$tmp'.
23127 trap 'exit_status=$?
23128 : "${ac_tmp:=$tmp}"
23129 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23131 trap 'as_fn_exit 1' 1 2 13 15
23133 # Create a (secure) tmp directory for tmp files.
23136 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23140 tmp=./conf$$-$RANDOM
23141 (umask 077 && mkdir "$tmp")
23142 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23145 # Set up the scripts for CONFIG_FILES section.
23146 # No need to generate them if there are no CONFIG_FILES.
23147 # This happens for instance with `./config.status config.h'.
23148 if test -n "$CONFIG_FILES"; then
23151 ac_cr=`echo X | tr X '\015'`
23152 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23153 # But we know of no other shell where ac_cr would be empty at this
23154 # point, so we can use a bashism as a fallback.
23155 if test "x$ac_cr" = x; then
23156 eval ac_cr=\$\'\\r\'
23158 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23159 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23162 ac_cs_awk_cr=$ac_cr
23165 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23170 echo "cat >conf$$subs.awk <<_ACEOF" &&
23171 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23173 } >conf$$subs.sh ||
23174 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23175 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23177 for ac_last_try in false false false false false :; do
23178 . ./conf$$subs.sh ||
23179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23181 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23182 if test $ac_delim_n = $ac_delim_num; then
23184 elif $ac_last_try; then
23185 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23190 rm -f conf$$subs.sh
23192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23193 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23197 s/^/S["/; s/!.*/"]=/
23207 s/\(.\{148\}\)..*/\1/
23209 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23214 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23221 s/\(.\{148\}\)..*/\1/
23223 s/["\\]/\\&/g; s/^/"/; s/$/"/
23227 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23232 ' <conf$$subs.awk | sed '
23237 ' >>$CONFIG_STATUS || ac_write_fail=1
23238 rm -f conf$$subs.awk
23239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23241 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23242 for (key in S) S_is_set[key] = 1
23248 nfields = split(line, field, "@")
23250 len = length(field[1])
23251 for (i = 2; i < nfields; i++) {
23253 keylen = length(key)
23254 if (S_is_set[key]) {
23256 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23257 len += length(value) + length(field[++i])
23268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23269 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23270 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23273 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23274 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23277 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23278 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23279 # trailing colons and then remove the whole line if VPATH becomes empty
23280 # (actually we leave an empty line to preserve line numbers).
23281 if test "x$srcdir" = x.; then
23282 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23301 fi # test -n "$CONFIG_FILES"
23303 # Set up the scripts for CONFIG_HEADERS section.
23304 # No need to generate them if there are no CONFIG_HEADERS.
23305 # This happens for instance with `./config.status Makefile'.
23306 if test -n "$CONFIG_HEADERS"; then
23307 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23311 # Transform confdefs.h into an awk script `defines.awk', embedded as
23312 # here-document in config.status, that substitutes the proper values into
23313 # config.h.in to produce config.h.
23315 # Create a delimiter string that does not exist in confdefs.h, to ease
23316 # handling of long lines.
23318 for ac_last_try in false false :; do
23319 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23320 if test -z "$ac_tt"; then
23322 elif $ac_last_try; then
23323 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23329 # For the awk script, D is an array of macro values keyed by name,
23330 # likewise P contains macro parameters if any. Preserve backslash
23331 # newline sequences.
23333 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23335 s/.\{148\}/&'"$ac_delim"'/g
23338 s/^[ ]*#[ ]*define[ ][ ]*/ /
23345 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23347 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23351 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23352 D["\1"]=" \3\\\\\\n"\\/p
23354 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23359 s/.\{148\}/&'"$ac_delim"'/g
23364 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23367 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23369 ' <confdefs.h | sed '
23370 s/'"$ac_delim"'/"\\\
23371 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23374 for (key in D) D_is_set[key] = 1
23377 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23379 split(line, arg, " ")
23380 if (arg[1] == "#") {
23384 defundef = substr(arg[1], 2)
23387 split(mac1, mac2, "(") #)
23389 prefix = substr(line, 1, index(line, defundef) - 1)
23390 if (D_is_set[macro]) {
23391 # Preserve the white space surrounding the "#".
23392 print prefix "define", macro P[macro] D[macro]
23395 # Replace #undef with comments. This is necessary, for example,
23396 # in the case of _POSIX_SOURCE, which is predefined and required
23397 # on some systems where configure will not decide to define it.
23398 if (defundef == "undef") {
23399 print "/*", prefix defundef, macro, "*/"
23407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23408 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23409 fi # test -n "$CONFIG_HEADERS"
23412 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23417 :[FHLC]) ac_mode=$ac_tag; continue;;
23419 case $ac_mode$ac_tag in
23421 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23422 :[FH]-) ac_tag=-:-;;
23423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23440 -) ac_f="$ac_tmp/stdin";;
23441 *) # Look for the file first in the build tree, then in the source tree
23442 # (if the path is not absolute). The absolute path cannot be DOS-style,
23443 # because $ac_f cannot contain `:'.
23447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23449 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23451 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23452 as_fn_append ac_file_inputs " '$ac_f'"
23455 # Let's still pretend it is `configure' which instantiates (i.e., don't
23456 # use $as_me), people would be surprised to read:
23457 # /* config.h. Generated by config.status. */
23458 configure_input='Generated from '`
23459 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23461 if test x"$ac_file" != x-; then
23462 configure_input="$ac_file. $configure_input"
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23464 $as_echo "$as_me: creating $ac_file" >&6;}
23466 # Neutralize special characters interpreted by sed in replacement strings.
23467 case $configure_input in #(
23468 *\&* | *\|* | *\\* )
23469 ac_sed_conf_input=`$as_echo "$configure_input" |
23470 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23471 *) ac_sed_conf_input=$configure_input;;
23475 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23481 ac_dir=`$as_dirname -- "$ac_file" ||
23482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23483 X"$ac_file" : 'X\(//\)[^/]' \| \
23484 X"$ac_file" : 'X\(//\)$' \| \
23485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23486 $as_echo X"$ac_file" |
23487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23491 /^X\(\/\/\)[^/].*/{
23504 as_dir="$ac_dir"; as_fn_mkdir_p
23508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23511 # A ".." for each directory in $ac_dir_suffix.
23512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23513 case $ac_top_builddir_sub in
23514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23518 ac_abs_top_builddir=$ac_pwd
23519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23520 # for backward compatibility:
23521 ac_top_builddir=$ac_top_build_prefix
23524 .) # We are building in place.
23526 ac_top_srcdir=$ac_top_builddir_sub
23527 ac_abs_top_srcdir=$ac_pwd ;;
23528 [\\/]* | ?:[\\/]* ) # Absolute name.
23529 ac_srcdir=$srcdir$ac_dir_suffix;
23530 ac_top_srcdir=$srcdir
23531 ac_abs_top_srcdir=$srcdir ;;
23532 *) # Relative name.
23533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23534 ac_top_srcdir=$ac_top_build_prefix$srcdir
23535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23549 # If the template does not know about datarootdir, expand it.
23550 # FIXME: This hack should be removed a few years after 2.60.
23551 ac_datarootdir_hack=; ac_datarootdir_seen=
23562 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23563 *datarootdir*) ac_datarootdir_seen=yes;;
23564 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23566 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23569 ac_datarootdir_hack='
23570 s&@datadir@&$datadir&g
23571 s&@docdir@&$docdir&g
23572 s&@infodir@&$infodir&g
23573 s&@localedir@&$localedir&g
23574 s&@mandir@&$mandir&g
23575 s&\\\${datarootdir}&$datarootdir&g' ;;
23579 # Neutralize VPATH when `$srcdir' = `.'.
23580 # Shell code in configure.ac might set extrasub.
23581 # FIXME: do we really want to maintain this feature?
23582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23583 ac_sed_extra="$ac_vpsub
23586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23589 s|@configure_input@|$ac_sed_conf_input|;t t
23590 s&@top_builddir@&$ac_top_builddir_sub&;t t
23591 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23592 s&@srcdir@&$ac_srcdir&;t t
23593 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23594 s&@top_srcdir@&$ac_top_srcdir&;t t
23595 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23596 s&@builddir@&$ac_builddir&;t t
23597 s&@abs_builddir@&$ac_abs_builddir&;t t
23598 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23599 $ac_datarootdir_hack
23601 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23602 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23604 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23605 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23606 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23607 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23609 which seems to be undefined. Please make sure it is defined" >&5
23610 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23611 which seems to be undefined. Please make sure it is defined" >&2;}
23613 rm -f "$ac_tmp/stdin"
23615 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23616 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23618 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23624 if test x"$ac_file" != x-; then
23626 $as_echo "/* $configure_input */" \
23627 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23628 } >"$ac_tmp/config.h" \
23629 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23630 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23632 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23635 mv "$ac_tmp/config.h" "$ac_file" \
23636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23639 $as_echo "/* $configure_input */" \
23640 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23641 || as_fn_error $? "could not create -" "$LINENO" 5
23645 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23646 $as_echo "$as_me: executing $ac_file commands" >&6;}
23651 case $ac_file$ac_mode in
23654 # See if we are running on zsh, and set the options that allow our
23655 # commands through without removal of \ escapes.
23656 if test -n "${ZSH_VERSION+set}"; then
23657 setopt NO_GLOB_SUBST
23661 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23664 cat <<_LT_EOF >> "$cfgfile"
23666 # Generated automatically by $as_me ($PACKAGE) $VERSION
23667 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23668 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23670 # Provide generalized library-building support services.
23671 # Written by Gordon Matzigkeit, 1996
23673 # Copyright (C) 2014 Free Software Foundation, Inc.
23674 # This is free software; see the source for copying conditions. There is NO
23675 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23677 # GNU Libtool is free software; you can redistribute it and/or modify
23678 # it under the terms of the GNU General Public License as published by
23679 # the Free Software Foundation; either version 2 of of the License, or
23680 # (at your option) any later version.
23682 # As a special exception to the GNU General Public License, if you
23683 # distribute this file as part of a program or library that is built
23684 # using GNU Libtool, you may include this file under the same
23685 # distribution terms that you use for the rest of that program.
23687 # GNU Libtool is distributed in the hope that it will be useful, but
23688 # WITHOUT ANY WARRANTY; without even the implied warranty of
23689 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23690 # GNU General Public License for more details.
23692 # You should have received a copy of the GNU General Public License
23693 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23696 # The names of the tagged configurations supported by this script.
23699 # Configured defaults for sys_lib_dlsearch_path munging.
23700 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23702 # ### BEGIN LIBTOOL CONFIG
23704 # Which release of libtool.m4 was used?
23705 macro_version=$macro_version
23706 macro_revision=$macro_revision
23708 # Whether or not to build shared libraries.
23709 build_libtool_libs=$enable_shared
23711 # Whether or not to build static libraries.
23712 build_old_libs=$enable_static
23714 # What type of objects to build.
23717 # Whether or not to optimize for fast installation.
23718 fast_install=$enable_fast_install
23720 # Shared archive member basename,for filename based shared library versioning on AIX.
23721 shared_archive_member_spec=$shared_archive_member_spec
23723 # Shell to use when invoking shell scripts.
23726 # An echo program that protects backslashes.
23729 # The PATH separator for the build system.
23730 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23733 host_alias=$host_alias
23737 # The build system.
23738 build_alias=$build_alias
23742 # A sed program that does not truncate output.
23745 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23746 Xsed="\$SED -e 1s/^X//"
23748 # A grep program that handles long lines.
23754 # A literal string matcher.
23757 # A BSD- or MS-compatible name lister.
23760 # Whether we need soft or hard links.
23763 # What is the maximum length of a command?
23764 max_cmd_len=$max_cmd_len
23766 # Object file suffix (normally "o").
23769 # Executable file suffix (normally "").
23772 # whether the shell understands "unset".
23775 # turn spaces into newlines.
23778 # turn newlines into spaces.
23781 # convert \$build file names to \$host format.
23782 to_host_file_cmd=$lt_cv_to_host_file_cmd
23784 # convert \$build files to toolchain format.
23785 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23787 # An object symbol dumper.
23788 OBJDUMP=$lt_OBJDUMP
23790 # Method to check whether dependent libraries are shared objects.
23791 deplibs_check_method=$lt_deplibs_check_method
23793 # Command to use when deplibs_check_method = "file_magic".
23794 file_magic_cmd=$lt_file_magic_cmd
23796 # How to find potential files when deplibs_check_method = "file_magic".
23797 file_magic_glob=$lt_file_magic_glob
23799 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23800 want_nocaseglob=$lt_want_nocaseglob
23802 # DLL creation program.
23803 DLLTOOL=$lt_DLLTOOL
23805 # Command to associate shared and link libraries.
23806 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23811 # Flags to create an archive.
23812 AR_FLAGS=$lt_AR_FLAGS
23814 # How to feed a file listing to the archiver.
23815 archiver_list_spec=$lt_archiver_list_spec
23817 # A symbol stripping program.
23820 # Commands used to install an old-style archive.
23822 old_postinstall_cmds=$lt_old_postinstall_cmds
23823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23825 # Whether to use a lock for old archive extraction.
23826 lock_old_archive_extraction=$lock_old_archive_extraction
23831 # LTCC compiler flags.
23832 LTCFLAGS=$lt_CFLAGS
23834 # Take the output of nm and produce a listing of raw symbols and C names.
23835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23837 # Transform the output of nm in a proper C declaration.
23838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23840 # Transform the output of nm into a list of symbols to manually relocate.
23841 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23843 # Transform the output of nm in a C name address pair.
23844 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23846 # Transform the output of nm in a C name address pair when lib prefix is needed.
23847 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23849 # The name lister interface.
23850 nm_interface=$lt_lt_cv_nm_interface
23852 # Specify filename containing input files for \$NM.
23853 nm_file_list_spec=$lt_nm_file_list_spec
23855 # The root where to search for dependent libraries,and where our libraries should be installed.
23856 lt_sysroot=$lt_sysroot
23858 # Command to truncate a binary pipe.
23859 lt_truncate_bin=$lt_lt_cv_truncate_bin
23861 # The name of the directory that contains temporary libtool files.
23864 # Used to examine libraries when file_magic_cmd begins with "file".
23865 MAGIC_CMD=$MAGIC_CMD
23867 # Must we lock files when doing compilation?
23868 need_locks=$lt_need_locks
23871 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23873 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23874 DSYMUTIL=$lt_DSYMUTIL
23876 # Tool to change global to local symbols on Mac OS X.
23879 # Tool to manipulate fat objects and archives on Mac OS X.
23882 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23885 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23886 OTOOL64=$lt_OTOOL64
23888 # Old archive suffix (normally "a").
23891 # Shared library suffix (normally ".so").
23892 shrext_cmds=$lt_shrext_cmds
23894 # The commands to extract the exported symbol list from a shared archive.
23895 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23897 # Variables whose values should be saved in libtool wrapper scripts and
23898 # restored at link time.
23899 variables_saved_for_relink=$lt_variables_saved_for_relink
23901 # Do we need the "lib" prefix for modules?
23902 need_lib_prefix=$need_lib_prefix
23904 # Do we need a version for libraries?
23905 need_version=$need_version
23907 # Library versioning type.
23908 version_type=$version_type
23910 # Shared library runtime path variable.
23911 runpath_var=$runpath_var
23913 # Shared library path variable.
23914 shlibpath_var=$shlibpath_var
23916 # Is shlibpath searched before the hard-coded library search path?
23917 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23919 # Format of library name prefix.
23920 libname_spec=$lt_libname_spec
23922 # List of archive names. First name is the real one, the rest are links.
23923 # The last name is the one that the linker finds with -lNAME
23924 library_names_spec=$lt_library_names_spec
23926 # The coded name of the library, if different from the real name.
23927 soname_spec=$lt_soname_spec
23929 # Permission mode override for installation of shared libraries.
23930 install_override_mode=$lt_install_override_mode
23932 # Command to use after installation of a shared archive.
23933 postinstall_cmds=$lt_postinstall_cmds
23935 # Command to use after uninstallation of a shared archive.
23936 postuninstall_cmds=$lt_postuninstall_cmds
23938 # Commands used to finish a libtool library installation in a directory.
23939 finish_cmds=$lt_finish_cmds
23941 # As "finish_cmds", except a single script fragment to be evaled but
23943 finish_eval=$lt_finish_eval
23945 # Whether we should hardcode library paths into libraries.
23946 hardcode_into_libs=$hardcode_into_libs
23948 # Compile-time system search path for libraries.
23949 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23951 # Detected run-time system search path for libraries.
23952 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23954 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23955 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23957 # Whether dlopen is supported.
23958 dlopen_support=$enable_dlopen
23960 # Whether dlopen of programs is supported.
23961 dlopen_self=$enable_dlopen_self
23963 # Whether dlopen of statically linked programs is supported.
23964 dlopen_self_static=$enable_dlopen_self_static
23966 # Commands to strip libraries.
23967 old_striplib=$lt_old_striplib
23968 striplib=$lt_striplib
23971 # The linker used to build libraries.
23974 # How to create reloadable object files.
23975 reload_flag=$lt_reload_flag
23976 reload_cmds=$lt_reload_cmds
23978 # Commands used to build an old-style archive.
23979 old_archive_cmds=$lt_old_archive_cmds
23981 # A language specific compiler.
23984 # Is the compiler the GNU compiler?
23987 # Compiler flag to turn off builtin functions.
23988 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23990 # Additional compiler flags for building library objects.
23991 pic_flag=$lt_lt_prog_compiler_pic
23993 # How to pass a linker flag through the compiler.
23994 wl=$lt_lt_prog_compiler_wl
23996 # Compiler flag to prevent dynamic linking.
23997 link_static_flag=$lt_lt_prog_compiler_static
23999 # Does compiler simultaneously support -c and -o options?
24000 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24002 # Whether or not to add -lc for building shared libraries.
24003 build_libtool_need_lc=$archive_cmds_need_lc
24005 # Whether or not to disallow shared libs when runtime libs are static.
24006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24008 # Compiler flag to allow reflexive dlopens.
24009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24011 # Compiler flag to generate shared objects directly from archives.
24012 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24014 # Whether the compiler copes with passing no objects directly.
24015 compiler_needs_object=$lt_compiler_needs_object
24017 # Create an old-style archive from a shared archive.
24018 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24020 # Create a temporary old-style archive to link instead of a shared archive.
24021 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24023 # Commands used to build a shared archive.
24024 archive_cmds=$lt_archive_cmds
24025 archive_expsym_cmds=$lt_archive_expsym_cmds
24027 # Commands used to build a loadable module if different from building
24028 # a shared archive.
24029 module_cmds=$lt_module_cmds
24030 module_expsym_cmds=$lt_module_expsym_cmds
24032 # Whether we are building with GNU ld or not.
24033 with_gnu_ld=$lt_with_gnu_ld
24035 # Flag that allows shared libraries with undefined symbols to be built.
24036 allow_undefined_flag=$lt_allow_undefined_flag
24038 # Flag that enforces no undefined symbols.
24039 no_undefined_flag=$lt_no_undefined_flag
24041 # Flag to hardcode \$libdir into a binary during linking.
24042 # This must work even if \$libdir does not exist
24043 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24045 # Whether we need a single "-rpath" flag with a separated argument.
24046 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24048 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24049 # DIR into the resulting binary.
24050 hardcode_direct=$hardcode_direct
24052 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24053 # DIR into the resulting binary and the resulting library dependency is
24054 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24055 # library is relocated.
24056 hardcode_direct_absolute=$hardcode_direct_absolute
24058 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24059 # into the resulting binary.
24060 hardcode_minus_L=$hardcode_minus_L
24062 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24063 # into the resulting binary.
24064 hardcode_shlibpath_var=$hardcode_shlibpath_var
24066 # Set to "yes" if building a shared library automatically hardcodes DIR
24067 # into the library and all subsequent libraries and executables linked
24069 hardcode_automatic=$hardcode_automatic
24071 # Set to yes if linker adds runtime paths of dependent libraries
24072 # to runtime path list.
24073 inherit_rpath=$inherit_rpath
24075 # Whether libtool must link a program against all its dependency libraries.
24076 link_all_deplibs=$link_all_deplibs
24078 # Set to "yes" if exported symbols are required.
24079 always_export_symbols=$always_export_symbols
24081 # The commands to list exported symbols.
24082 export_symbols_cmds=$lt_export_symbols_cmds
24084 # Symbols that should not be listed in the preloaded symbols.
24085 exclude_expsyms=$lt_exclude_expsyms
24087 # Symbols that must always be exported.
24088 include_expsyms=$lt_include_expsyms
24090 # Commands necessary for linking programs (against libraries) with templates.
24091 prelink_cmds=$lt_prelink_cmds
24093 # Commands necessary for finishing linking programs.
24094 postlink_cmds=$lt_postlink_cmds
24096 # Specify filename containing input files.
24097 file_list_spec=$lt_file_list_spec
24099 # How to hardcode a shared library path into an executable.
24100 hardcode_action=$hardcode_action
24102 # ### END LIBTOOL CONFIG
24106 cat <<'_LT_EOF' >> "$cfgfile"
24108 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24110 # func_munge_path_list VARIABLE PATH
24111 # -----------------------------------
24112 # VARIABLE is name of variable containing _space_ separated list of
24113 # directories to be munged by the contents of PATH, which is string
24116 # string "DIR[ DIR]" will be prepended to VARIABLE
24118 # string "DIR[ DIR]" will be appended to VARIABLE
24119 # "DIRP[:DIRP]::[DIRA:]DIRA"
24120 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24121 # "DIRA[ DIRA]" will be appended to VARIABLE
24123 # VARIABLE will be replaced by "DIR[ DIR]"
24124 func_munge_path_list ()
24130 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24133 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24136 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24137 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24140 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24146 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24147 func_cc_basename ()
24149 for cc_temp in $*""; do
24151 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24152 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24157 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24161 # ### END FUNCTIONS SHARED WITH CONFIGURE
24167 cat <<\_LT_EOF >> "$cfgfile"
24168 # AIX sometimes has problems with the GCC collect2 program. For some
24169 # reason, if we set the COLLECT_NAMES environment variable, the problems
24170 # vanish in a puff of smoke.
24171 if test set != "${COLLECT_NAMES+set}"; then
24173 export COLLECT_NAMES
24180 ltmain=$ac_aux_dir/ltmain.sh
24183 # We use sed instead of cat because bash on DJGPP gets confused if
24184 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24185 # text mode, it properly converts lines to CR/LF. This bash problem
24186 # is reportedly fixed, but why not run on old versions too?
24187 sed '$q' "$ltmain" >> "$cfgfile" \
24188 || (rm -f "$cfgfile"; exit 1)
24190 mv -f "$cfgfile" "$ofile" ||
24191 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24196 sed < libtool > libtool-2 \
24197 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
24198 mv libtool-2 libtool
24200 libtool="./libtool"
24209 ac_clean_files=$ac_clean_files_save
24211 test $ac_write_fail = 0 ||
24212 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24215 # configure is writing to config.log, and then calls config.status.
24216 # config.status does its own redirection, appending to config.log.
24217 # Unfortunately, on DOS this fails, as config.log is still kept open
24218 # by configure, so config.status won't be able to write to it; its
24219 # output is simply discarded. So we exec the FD to /dev/null,
24220 # effectively closing config.log, so it can be properly (re)opened and
24221 # appended to by config.status. When coming back to configure, we
24222 # need to make the FD available again.
24223 if test "$no_create" != yes; then
24225 ac_config_status_args=
24226 test "$silent" = yes &&
24227 ac_config_status_args="$ac_config_status_args --quiet"
24229 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24231 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24232 # would make configure fail if this is the last instruction.
24233 $ac_cs_success || as_fn_exit 1
24235 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24237 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}