2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.19.0.
5 # Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: unbound-bugs@nlnetlabs.nl or
279 $0: https://github.com/NLnetLabs/unbound/issues about your
280 $0: system, including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='unbound'
593 PACKAGE_TARNAME='unbound'
594 PACKAGE_VERSION='1.19.0'
595 PACKAGE_STRING='unbound 1.19.0'
596 PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues'
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='LTLIBOBJS
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.19.0 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.19.0:";;
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.19.0
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.19.0, 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=19
2849 UNBOUND_VERSION_MICRO=0
2852 LIBUNBOUND_CURRENT=9
2853 LIBUNBOUND_REVISION=23
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
2945 # Current -- the number of the binary API that we're implementing
2946 # Revision -- which iteration of the implementation of the binary
2947 # API are we supplying?
2948 # Age -- How many previous binary API versions do we also
2951 # If we release a new version that does not change the binary API,
2952 # increment Revision.
2954 # If we release a new version that changes the binary API, but does
2955 # not break programs compiled against the old binary API, increment
2956 # Current and Age. Set Revision to 0, since this is the first
2957 # implementation of the new API.
2959 # Otherwise, we're changing the binary API and breaking backward
2960 # compatibility with old binaries. Increment Current. Set Age to 0,
2961 # since we're backward compatible with no previous APIs. Set Revision
2968 cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
2970 cat >>confdefs.h <<_ACEOF
2971 #define CONFCMDLINE "$cmdln"
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 if test -n "$ac_tool_prefix"; then
2982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_CC+:} false; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 if test -n "$CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3020 if test -z "$ac_cv_prog_CC"; then
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3027 $as_echo_n "(cached) " >&6
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_ac_ct_CC="gcc"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050 if test -n "$ac_ct_CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3052 $as_echo "$ac_ct_CC" >&6; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3058 if test "x$ac_ct_CC" = x; then
3061 case $cross_compiling:$ac_tool_warned in
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3073 if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}cc; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_CC="${ac_tool_prefix}cc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3114 if test -z "$CC"; then
3115 # Extract the first word of "cc", so it can be a program name with args.
3116 set dummy cc; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_CC+:} false; then :
3120 $as_echo_n "(cached) " >&6
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3134 ac_prog_rejected=yes
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 if test $ac_prog_rejected = yes; then
3146 # We found a bogon in the path, so make sure we never use it.
3147 set dummy $ac_cv_prog_CC
3149 if test $# != 0; then
3150 # We chose a different compiler from the bogus one.
3151 # However, it has the same basename, so the bogon will be chosen
3152 # first if we set CC to just the basename; use the full file name.
3154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3160 if test -n "$CC"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3170 if test -z "$CC"; then
3171 if test -n "$ac_tool_prefix"; then
3172 for ac_prog in cl.exe
3174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if ${ac_cv_prog_CC+:} false; then :
3179 $as_echo_n "(cached) " >&6
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3211 test -n "$CC" && break
3214 if test -z "$CC"; then
3216 for ac_prog in cl.exe
3218 # Extract the first word of "$ac_prog", so it can be a program name with args.
3219 set dummy $ac_prog; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3223 $as_echo_n "(cached) " >&6
3225 if test -n "$ac_ct_CC"; then
3226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_ac_ct_CC="$ac_prog"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246 if test -n "$ac_ct_CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3248 $as_echo "$ac_ct_CC" >&6; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3255 test -n "$ac_ct_CC" && break
3258 if test "x$ac_ct_CC" = x; then
3261 case $cross_compiling:$ac_tool_warned in
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265 ac_tool_warned=yes ;;
3274 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error $? "no acceptable C compiler found in \$PATH
3277 See \`config.log' for more details" "$LINENO" 5; }
3279 # Provide some information about the compiler.
3280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3283 for ac_option in --version -v -V -qversion; do
3284 { { ac_try="$ac_compiler $ac_option >&5"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3293 if test -s conftest.err; then
3295 ... rest of stderr output deleted ...
3296 10q' conftest.err >conftest.er1
3297 cat conftest.er1 >&5
3299 rm -f conftest.er1 conftest.err
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3315 ac_clean_files_save=$ac_clean_files
3316 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3317 # Try to create an executable without -o first, disregard a.out.
3318 # It will help us diagnose broken compilers, and finding out an intuition
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3321 $as_echo_n "checking whether the C compiler works... " >&6; }
3322 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3324 # The possible output files:
3325 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3328 for ac_file in $ac_files
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3332 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3337 if { { ac_try="$ac_link_default"
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344 (eval "$ac_link_default") 2>&5
3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347 test $ac_status = 0; }; then :
3348 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3349 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3350 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3351 # so that the user can short-circuit this test for compilers unknown to
3353 for ac_file in $ac_files ''
3355 test -f "$ac_file" || continue
3357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3360 # We found the default executable, but exeext='' is most
3364 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3366 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3368 # We set ac_cv_exeext here because the later test for it is not
3369 # safe: cross compilers may not add the suffix if given an `-o'
3370 # argument, so we may need to know it at that point already.
3371 # Even if this section looks crufty: it has the advantage of
3378 test "$ac_cv_exeext" = no && ac_cv_exeext=
3383 if test -z "$ac_file"; then :
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 $as_echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error 77 "C compiler cannot create executables
3392 See \`config.log' for more details" "$LINENO" 5; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395 $as_echo "yes" >&6; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3398 $as_echo_n "checking for C compiler default output file name... " >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3400 $as_echo "$ac_file" >&6; }
3401 ac_exeext=$ac_cv_exeext
3403 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3404 ac_clean_files=$ac_clean_files_save
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3406 $as_echo_n "checking for suffix of executables... " >&6; }
3407 if { { ac_try="$ac_link"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_link") 2>&5
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
3418 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3419 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3420 # work properly (i.e., refer to `conftest.exe'), while it won't with
3422 for ac_file in conftest.exe conftest conftest.*; do
3423 test -f "$ac_file" || continue
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3426 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3435 See \`config.log' for more details" "$LINENO" 5; }
3437 rm -f conftest conftest$ac_cv_exeext
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3439 $as_echo "$ac_cv_exeext" >&6; }
3441 rm -f conftest.$ac_ext
3442 EXEEXT=$ac_cv_exeext
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3450 FILE *f = fopen ("conftest.out", "w");
3451 return ferror (f) || fclose (f) != 0;
3457 ac_clean_files="$ac_clean_files conftest.out"
3458 # Check that the compiler produces executables we can run. If not, either
3459 # the compiler is broken, or we cross compile.
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3461 $as_echo_n "checking whether we are cross compiling... " >&6; }
3462 if test "$cross_compiling" != yes; then
3463 { { ac_try="$ac_link"
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_link") 2>&5
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }
3474 if { ac_try='./conftest$ac_cv_exeext'
3475 { { case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_try") 2>&5
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; }; then
3487 if test "$cross_compiling" = maybe; then
3490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492 as_fn_error $? "cannot run C compiled programs.
3493 If you meant to cross compile, use \`--host'.
3494 See \`config.log' for more details" "$LINENO" 5; }
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3499 $as_echo "$cross_compiling" >&6; }
3501 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3502 ac_clean_files=$ac_clean_files_save
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3504 $as_echo_n "checking for suffix of object files... " >&6; }
3505 if ${ac_cv_objext+:} false; then :
3506 $as_echo_n "(cached) " >&6
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3519 rm -f conftest.o conftest.obj
3520 if { { ac_try="$ac_compile"
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526 $as_echo "$ac_try_echo"; } >&5
3527 (eval "$ac_compile") 2>&5
3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }; then :
3531 for ac_file in conftest.o conftest.obj conftest.*; do
3532 test -f "$ac_file" || continue;
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3535 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3540 $as_echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "cannot compute suffix of object files: cannot compile
3546 See \`config.log' for more details" "$LINENO" 5; }
3548 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3551 $as_echo "$ac_cv_objext" >&6; }
3552 OBJEXT=$ac_cv_objext
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3555 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3556 if ${ac_cv_c_compiler_gnu+:} false; then :
3557 $as_echo_n "(cached) " >&6
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3573 if ac_fn_c_try_compile "$LINENO"; then :
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3583 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3584 if test $ac_compiler_gnu = yes; then
3589 ac_test_CFLAGS=${CFLAGS+set}
3590 ac_save_CFLAGS=$CFLAGS
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3592 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3593 if ${ac_cv_prog_cc_g+:} false; then :
3594 $as_echo_n "(cached) " >&6
3596 ac_save_c_werror_flag=$ac_c_werror_flag
3597 ac_c_werror_flag=yes
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3611 if ac_fn_c_try_compile "$LINENO"; then :
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3626 if ac_fn_c_try_compile "$LINENO"; then :
3629 ac_c_werror_flag=$ac_save_c_werror_flag
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3642 if ac_fn_c_try_compile "$LINENO"; then :
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 ac_c_werror_flag=$ac_save_c_werror_flag
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3653 $as_echo "$ac_cv_prog_cc_g" >&6; }
3654 if test "$ac_test_CFLAGS" = set; then
3655 CFLAGS=$ac_save_CFLAGS
3656 elif test $ac_cv_prog_cc_g = yes; then
3657 if test "$GCC" = yes; then
3663 if test "$GCC" = yes; then
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3670 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3671 if ${ac_cv_prog_cc_c89+:} false; then :
3672 $as_echo_n "(cached) " >&6
3674 ac_cv_prog_cc_c89=no
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3681 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3682 struct buf { int x; };
3683 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3684 static char *e (p, i)
3690 static char *f (char * (*g) (char **, int), char **p, ...)
3695 s = g (p, va_arg (v,int));
3700 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3701 function prototypes and stuff, but not '\xHH' hex character constants.
3702 These don't provoke an error unfortunately, instead are silently treated
3703 as 'x'. The following induces an error, until -std is added to get
3704 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3705 array size at least. It's necessary to write '\x00'==0 to get something
3706 that's true only with -std. */
3707 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3709 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3710 inside strings and character constants. */
3712 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3714 int test (int i, double x);
3715 struct s1 {int (*f) (int a);};
3716 struct s2 {int (*f) (double a);};
3717 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3723 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3728 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3729 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3731 CC="$ac_save_CC $ac_arg"
3732 if ac_fn_c_try_compile "$LINENO"; then :
3733 ac_cv_prog_cc_c89=$ac_arg
3735 rm -f core conftest.err conftest.$ac_objext
3736 test "x$ac_cv_prog_cc_c89" != "xno" && break
3738 rm -f conftest.$ac_ext
3743 case "x$ac_cv_prog_cc_c89" in
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3746 $as_echo "none needed" >&6; } ;;
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3749 $as_echo "unsupported" >&6; } ;;
3751 CC="$CC $ac_cv_prog_cc_c89"
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3753 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3755 if test "x$ac_cv_prog_cc_c89" != xno; then :
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3772 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3773 # On Suns, sometimes $CPP names a directory.
3774 if test -n "$CPP" && test -d "$CPP"; then
3777 if test -z "$CPP"; then
3778 if ${ac_cv_prog_CPP+:} false; then :
3779 $as_echo_n "(cached) " >&6
3781 # Double quotes because CPP needs to be expanded
3782 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3785 for ac_c_preproc_warn_flag in '' yes
3787 # Use a header file that comes with gcc, so configuring glibc
3788 # with a fresh cross-compiler works.
3789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790 # <limits.h> exists even on freestanding compilers.
3791 # On the NeXT, cc -E runs the code through the compiler's parser,
3792 # not just through cpp. "Syntax error" is here to catch this case.
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3796 # include <limits.h>
3798 # include <assert.h>
3802 if ac_fn_c_try_cpp "$LINENO"; then :
3805 # Broken: fails on valid input.
3808 rm -f conftest.err conftest.i conftest.$ac_ext
3810 # OK, works on sane cases. Now check whether nonexistent headers
3811 # can be detected and how.
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814 #include <ac_nonexistent.h>
3816 if ac_fn_c_try_cpp "$LINENO"; then :
3817 # Broken: success on invalid input.
3820 # Passes both tests.
3824 rm -f conftest.err conftest.i conftest.$ac_ext
3827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3828 rm -f conftest.i conftest.err conftest.$ac_ext
3829 if $ac_preproc_ok; then :
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3842 $as_echo "$CPP" >&6; }
3844 for ac_c_preproc_warn_flag in '' yes
3846 # Use a header file that comes with gcc, so configuring glibc
3847 # with a fresh cross-compiler works.
3848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3849 # <limits.h> exists even on freestanding compilers.
3850 # On the NeXT, cc -E runs the code through the compiler's parser,
3851 # not just through cpp. "Syntax error" is here to catch this case.
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3855 # include <limits.h>
3857 # include <assert.h>
3861 if ac_fn_c_try_cpp "$LINENO"; then :
3864 # Broken: fails on valid input.
3867 rm -f conftest.err conftest.i conftest.$ac_ext
3869 # OK, works on sane cases. Now check whether nonexistent headers
3870 # can be detected and how.
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873 #include <ac_nonexistent.h>
3875 if ac_fn_c_try_cpp "$LINENO"; then :
3876 # Broken: success on invalid input.
3879 # Passes both tests.
3883 rm -f conftest.err conftest.i conftest.$ac_ext
3886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887 rm -f conftest.i conftest.err conftest.$ac_ext
3888 if $ac_preproc_ok; then :
3891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details" "$LINENO" 5; }
3898 ac_cpp='$CPP $CPPFLAGS'
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3905 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3906 if ${ac_cv_path_GREP+:} false; then :
3907 $as_echo_n "(cached) " >&6
3909 if test -z "$GREP"; then
3910 ac_path_GREP_found=false
3911 # Loop through the user's path and test for each of PROGNAME-LIST
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3916 test -z "$as_dir" && as_dir=.
3917 for ac_prog in grep ggrep; do
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3920 as_fn_executable_p "$ac_path_GREP" || continue
3921 # Check for GNU ac_path_GREP and select it if it is found.
3922 # Check for GNU $ac_path_GREP
3923 case `"$ac_path_GREP" --version 2>&1` in
3925 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3928 $as_echo_n 0123456789 >"conftest.in"
3931 cat "conftest.in" "conftest.in" >"conftest.tmp"
3932 mv "conftest.tmp" "conftest.in"
3933 cp "conftest.in" "conftest.nl"
3934 $as_echo 'GREP' >> "conftest.nl"
3935 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3937 as_fn_arith $ac_count + 1 && ac_count=$as_val
3938 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3939 # Best one so far, save it but keep looking for a better one
3940 ac_cv_path_GREP="$ac_path_GREP"
3941 ac_path_GREP_max=$ac_count
3943 # 10*(2^10) chars as input seems more than enough
3944 test $ac_count -gt 10 && break
3946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949 $ac_path_GREP_found && break 3
3954 if test -z "$ac_cv_path_GREP"; then
3955 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3958 ac_cv_path_GREP=$GREP
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3963 $as_echo "$ac_cv_path_GREP" >&6; }
3964 GREP="$ac_cv_path_GREP"
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3968 $as_echo_n "checking for egrep... " >&6; }
3969 if ${ac_cv_path_EGREP+:} false; then :
3970 $as_echo_n "(cached) " >&6
3972 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3973 then ac_cv_path_EGREP="$GREP -E"
3975 if test -z "$EGREP"; then
3976 ac_path_EGREP_found=false
3977 # Loop through the user's path and test for each of PROGNAME-LIST
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3982 test -z "$as_dir" && as_dir=.
3983 for ac_prog in egrep; do
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3986 as_fn_executable_p "$ac_path_EGREP" || continue
3987 # Check for GNU ac_path_EGREP and select it if it is found.
3988 # Check for GNU $ac_path_EGREP
3989 case `"$ac_path_EGREP" --version 2>&1` in
3991 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3994 $as_echo_n 0123456789 >"conftest.in"
3997 cat "conftest.in" "conftest.in" >"conftest.tmp"
3998 mv "conftest.tmp" "conftest.in"
3999 cp "conftest.in" "conftest.nl"
4000 $as_echo 'EGREP' >> "conftest.nl"
4001 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4003 as_fn_arith $ac_count + 1 && ac_count=$as_val
4004 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4005 # Best one so far, save it but keep looking for a better one
4006 ac_cv_path_EGREP="$ac_path_EGREP"
4007 ac_path_EGREP_max=$ac_count
4009 # 10*(2^10) chars as input seems more than enough
4010 test $ac_count -gt 10 && break
4012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4015 $ac_path_EGREP_found && break 3
4020 if test -z "$ac_cv_path_EGREP"; then
4021 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4024 ac_cv_path_EGREP=$EGREP
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4030 $as_echo "$ac_cv_path_EGREP" >&6; }
4031 EGREP="$ac_cv_path_EGREP"
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4035 $as_echo_n "checking for ANSI C header files... " >&6; }
4036 if ${ac_cv_header_stdc+:} false; then :
4037 $as_echo_n "(cached) " >&6
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_cv_header_stdc=yes
4057 ac_cv_header_stdc=no
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 if test $ac_cv_header_stdc = yes; then
4062 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4069 $EGREP "memchr" >/dev/null 2>&1; then :
4072 ac_cv_header_stdc=no
4078 if test $ac_cv_header_stdc = yes; then
4079 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4086 $EGREP "free" >/dev/null 2>&1; then :
4089 ac_cv_header_stdc=no
4095 if test $ac_cv_header_stdc = yes; then
4096 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4097 if test "$cross_compiling" = yes; then :
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4104 #if ((' ' & 0x0FF) == 0x020)
4105 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4106 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4108 # define ISLOWER(c) \
4109 (('a' <= (c) && (c) <= 'i') \
4110 || ('j' <= (c) && (c) <= 'r') \
4111 || ('s' <= (c) && (c) <= 'z'))
4112 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4115 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4120 for (i = 0; i < 256; i++)
4121 if (XOR (islower (i), ISLOWER (i))
4122 || toupper (i) != TOUPPER (i))
4127 if ac_fn_c_try_run "$LINENO"; then :
4130 ac_cv_header_stdc=no
4132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4133 conftest.$ac_objext conftest.beam conftest.$ac_ext
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4139 $as_echo "$ac_cv_header_stdc" >&6; }
4140 if test $ac_cv_header_stdc = yes; then
4142 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4146 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4147 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4148 inttypes.h stdint.h unistd.h
4150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4151 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4153 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4154 cat >>confdefs.h <<_ACEOF
4155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4164 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4165 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4172 if test "$MINIX" = yes; then
4174 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4177 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4180 $as_echo "#define _MINIX 1" >>confdefs.h
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4186 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4187 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4188 $as_echo_n "(cached) " >&6
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4193 # define __EXTENSIONS__ 1
4194 $ac_includes_default
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_cv_safe_to_define___extensions__=yes
4206 ac_cv_safe_to_define___extensions__=no
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4211 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4212 test $ac_cv_safe_to_define___extensions__ = yes &&
4213 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4215 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4217 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4219 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4221 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4224 if test "$ac_cv_header_minix_config_h" = "yes"; then
4226 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4235 case "$exec_prefix" in
4237 exec_prefix="$prefix"
4242 if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes"
4244 if echo $host | grep mingw >/dev/null; then on_mingw="yes"
4245 else on_mingw="no"; fi
4249 # Determine configuration file
4250 # the eval is to evaluate shell expansion twice
4251 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4253 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4255 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4257 if test $on_mingw = "no"; then
4258 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4260 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4263 # Check whether --with-conf_file was given.
4264 if test "${with_conf_file+set}" = set; then :
4265 withval=$with_conf_file; ub_conf_file="$withval"
4269 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4272 cat >>confdefs.h <<_ACEOF
4273 #define CONFIGFILE "$hdr_config"
4276 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4277 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4278 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4279 X"$ub_conf_file" : 'X\(//\)$' \| \
4280 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4281 $as_echo X"$ub_conf_file" |
4282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4301 # Determine run, chroot directory and pidfile locations
4303 # Check whether --with-run-dir was given.
4304 if test "${with_run_dir+set}" = set; then :
4305 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4307 if test $on_mingw = no; then
4308 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4316 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4319 cat >>confdefs.h <<_ACEOF
4320 #define RUN_DIR "$hdr_run"
4325 # Check whether --with-chroot-dir was given.
4326 if test "${with_chroot_dir+set}" = set; then :
4327 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4329 if test $on_mingw = no; then
4330 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4332 UNBOUND_CHROOT_DIR=""
4338 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4341 cat >>confdefs.h <<_ACEOF
4342 #define CHROOT_DIR "$hdr_chroot"
4347 # Check whether --with-share-dir was given.
4348 if test "${with_share_dir+set}" = set; then :
4349 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4351 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4356 cat >>confdefs.h <<_ACEOF
4357 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4362 # Check whether --with-pidfile was given.
4363 if test "${with_pidfile+set}" = set; then :
4364 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4366 if test $on_mingw = no; then
4367 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4375 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4378 cat >>confdefs.h <<_ACEOF
4379 #define PIDFILE "$hdr_pid"
4384 # Check whether --with-rootkey-file was given.
4385 if test "${with_rootkey_file+set}" = set; then :
4386 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4388 if test $on_mingw = no; then
4389 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4391 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4397 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4400 cat >>confdefs.h <<_ACEOF
4401 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4406 # Check whether --with-rootcert-file was given.
4407 if test "${with_rootcert_file+set}" = set; then :
4408 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4410 if test $on_mingw = no; then
4411 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4413 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4419 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4422 cat >>confdefs.h <<_ACEOF
4423 #define ROOT_CERT_FILE "$hdr_rpem"
4428 # Check whether --with-username was given.
4429 if test "${with_username+set}" = set; then :
4430 withval=$with_username; UNBOUND_USERNAME="$withval"
4432 UNBOUND_USERNAME="unbound"
4437 cat >>confdefs.h <<_ACEOF
4438 #define UB_USERNAME "$UNBOUND_USERNAME"
4443 $as_echo "#define WINVER 0x0502" >>confdefs.h
4445 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/' `
4448 cat >>confdefs.h <<_ACEOF
4449 #define RSRC_PACKAGE_VERSION $wnvs
4453 # Checks for typedefs, structures, and compiler characteristics.
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4455 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4456 if ${ac_cv_c_const+:} false; then :
4457 $as_echo_n "(cached) " >&6
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4467 /* Ultrix mips cc rejects this sort of thing. */
4468 typedef int charset[2];
4469 const charset cs = { 0, 0 };
4470 /* SunOS 4.1.1 cc rejects this. */
4471 char const *const *pcpcc;
4473 /* NEC SVR4.0.2 mips cc rejects this. */
4474 struct point {int x, y;};
4475 static struct point const zero = {0,0};
4476 /* AIX XL C 1.02.0.0 rejects this.
4477 It does not let you subtract one const X* pointer from another in
4478 an arm of an if-expression whose if-part is not a constant
4480 const char *g = "string";
4481 pcpcc = &g + (g ? g-g : 0);
4482 /* HPUX 7.0 cc rejects these. */
4484 ppc = (char**) pcpcc;
4485 pcpcc = (char const *const *) ppc;
4486 { /* SCO 3.2v4 cc rejects this sort of thing. */
4489 char const *s = 0 ? (char *) 0 : (char const *) 0;
4494 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4496 const int *foo = &x[0];
4499 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4500 typedef const int *iptr;
4504 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4505 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4506 struct s { int j; const int *ap[3]; } bx;
4507 struct s *b = &bx; b->j = 5;
4509 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4513 return !cs[0] && !zero.x;
4520 if ac_fn_c_try_compile "$LINENO"; then :
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4528 $as_echo "$ac_cv_c_const" >&6; }
4529 if test $ac_cv_c_const = no; then
4531 $as_echo "#define const /**/" >>confdefs.h
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541 # allow user to override the -g -O2 flags.
4543 if test "x$CFLAGS" = "x" ; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4547 $as_echo_n "checking whether $CC supports -g... " >&6; }
4548 cache=`echo g | sed 'y%.=/+-%___p_%'`
4549 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4550 $as_echo_n "(cached) " >&6
4553 echo 'void f(void){}' >conftest.c
4554 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4555 eval "cv_prog_cc_flag_$cache=yes"
4557 eval "cv_prog_cc_flag_$cache=no"
4559 rm -f conftest conftest.o conftest.c
4563 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4565 $as_echo "yes" >&6; }
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570 $as_echo "no" >&6; }
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4578 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4579 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4580 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4581 $as_echo_n "(cached) " >&6
4584 echo 'void f(void){}' >conftest.c
4585 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4586 eval "cv_prog_cc_flag_$cache=yes"
4588 eval "cv_prog_cc_flag_$cache=no"
4590 rm -f conftest conftest.o conftest.c
4594 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4596 $as_echo "yes" >&6; }
4598 CFLAGS="$CFLAGS -O2"
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4608 case $ac_cv_prog_cc_stdc in #(
4610 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4613 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4614 if ${ac_cv_prog_cc_c99+:} false; then :
4615 $as_echo_n "(cached) " >&6
4617 ac_cv_prog_cc_c99=no
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4622 #include <stdbool.h>
4627 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4628 #define debug(...) fprintf (stderr, __VA_ARGS__)
4629 #define showlist(...) puts (#__VA_ARGS__)
4630 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4632 test_varargs_macros (void)
4637 debug ("X = %d\n", x);
4638 showlist (The first, second, and third items.);
4639 report (x>y, "x is %d but y is %d", x, y);
4642 // Check long long types.
4643 #define BIG64 18446744073709551615ull
4644 #define BIG32 4294967295ul
4645 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4647 your preprocessor is broken;
4651 your preprocessor is broken;
4653 static long long int bignum = -9223372036854775807LL;
4654 static unsigned long long int ubignum = BIG64;
4656 struct incomplete_array
4664 const wchar_t *name;
4668 typedef const char *ccp;
4671 test_restrict (ccp restrict text)
4673 // See if C++-style comments work.
4674 // Iterate through items via the restricted pointer.
4675 // Also check for declarations in for loops.
4676 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4681 // Check varargs and va_copy.
4683 test_varargs (const char *format, ...)
4686 va_start (args, format);
4688 va_copy (args_copy, args);
4699 str = va_arg (args_copy, const char *);
4702 number = va_arg (args_copy, int);
4705 fnumber = va_arg (args_copy, double);
4720 _Bool success = false;
4723 if (test_restrict ("String literal") == 0)
4725 char *restrict newvar = "Another string";
4728 test_varargs ("s, d' f .", "string", 65, 34.234);
4729 test_varargs_macros ();
4731 // Check flexible array members.
4732 struct incomplete_array *ia =
4733 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4735 for (int i = 0; i < ia->datasize; ++i)
4736 ia->data[i] = i * 1.234;
4738 // Check named initializers.
4739 struct named_init ni = {
4741 .name = L"Test wide string",
4742 .average = 543.34343,
4747 int dynamic_array[ni.number];
4748 dynamic_array[ni.number - 1] = 543;
4750 // work around unused variable warnings
4751 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4752 || dynamic_array[ni.number - 1] != 543);
4758 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4760 CC="$ac_save_CC $ac_arg"
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_prog_cc_c99=$ac_arg
4764 rm -f core conftest.err conftest.$ac_objext
4765 test "x$ac_cv_prog_cc_c99" != "xno" && break
4767 rm -f conftest.$ac_ext
4772 case "x$ac_cv_prog_cc_c99" in
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4775 $as_echo "none needed" >&6; } ;;
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4778 $as_echo "unsupported" >&6; } ;;
4780 CC="$CC $ac_cv_prog_cc_c99"
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4782 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4784 if test "x$ac_cv_prog_cc_c99" != xno; then :
4785 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4788 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4789 if ${ac_cv_prog_cc_c89+:} false; then :
4790 $as_echo_n "(cached) " >&6
4792 ac_cv_prog_cc_c89=no
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4799 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4800 struct buf { int x; };
4801 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4802 static char *e (p, i)
4808 static char *f (char * (*g) (char **, int), char **p, ...)
4813 s = g (p, va_arg (v,int));
4818 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4819 function prototypes and stuff, but not '\xHH' hex character constants.
4820 These don't provoke an error unfortunately, instead are silently treated
4821 as 'x'. The following induces an error, until -std is added to get
4822 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4823 array size at least. It's necessary to write '\x00'==0 to get something
4824 that's true only with -std. */
4825 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4827 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4828 inside strings and character constants. */
4830 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4832 int test (int i, double x);
4833 struct s1 {int (*f) (int a);};
4834 struct s2 {int (*f) (double a);};
4835 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4841 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4846 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4847 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4849 CC="$ac_save_CC $ac_arg"
4850 if ac_fn_c_try_compile "$LINENO"; then :
4851 ac_cv_prog_cc_c89=$ac_arg
4853 rm -f core conftest.err conftest.$ac_objext
4854 test "x$ac_cv_prog_cc_c89" != "xno" && break
4856 rm -f conftest.$ac_ext
4861 case "x$ac_cv_prog_cc_c89" in
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4864 $as_echo "none needed" >&6; } ;;
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4867 $as_echo "unsupported" >&6; } ;;
4869 CC="$CC $ac_cv_prog_cc_c89"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4871 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4873 if test "x$ac_cv_prog_cc_c89" != xno; then :
4874 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4876 ac_cv_prog_cc_stdc=no
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4883 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4884 if ${ac_cv_prog_cc_stdc+:} false; then :
4885 $as_echo_n "(cached) " >&6
4888 case $ac_cv_prog_cc_stdc in #(
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4891 $as_echo "unsupported" >&6; } ;; #(
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4894 $as_echo "none needed" >&6; } ;; #(
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4897 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4902 $as_echo_n "checking $CC dependency flag... " >&6; }
4903 echo 'void f(void){}' >conftest.c
4904 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4907 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4910 DEPFLAG="-MM" # dunno do something
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4914 $as_echo "$DEPFLAG" >&6; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4922 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4923 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4924 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4925 $as_echo_n "(cached) " >&6
4928 echo 'void f(void){}' >conftest.c
4929 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4930 eval "cv_prog_cc_flag_$cache=yes"
4932 eval "cv_prog_cc_flag_$cache=no"
4934 rm -f conftest conftest.o conftest.c
4938 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4940 $as_echo "yes" >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4953 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4954 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4955 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4956 $as_echo_n "(cached) " >&6
4959 echo 'void f(void){}' >conftest.c
4960 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4961 eval "cv_prog_cc_flag_$cache=yes"
4963 eval "cv_prog_cc_flag_$cache=no"
4965 rm -f conftest conftest.o conftest.c
4969 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4971 $as_echo "yes" >&6; }
4973 ERRFLAG="$ERRFLAG -Wall"
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4978 ERRFLAG="$ERRFLAG -errfmt"
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4986 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4987 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4988 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4989 $as_echo_n "(cached) " >&6
4992 echo 'void f(void){}' >conftest.c
4993 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4994 eval "cv_prog_cc_flag_$cache=yes"
4996 eval "cv_prog_cc_flag_$cache=no"
4998 rm -f conftest conftest.o conftest.c
5002 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5004 $as_echo "yes" >&6; }
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5017 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5018 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5019 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5020 $as_echo_n "(cached) " >&6
5023 echo 'void f(void){}' >conftest.c
5024 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5025 eval "cv_prog_cc_flag_$cache=yes"
5027 eval "cv_prog_cc_flag_$cache=no"
5029 rm -f conftest conftest.o conftest.c
5033 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5035 $as_echo "yes" >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5046 for ac_header in getopt.h time.h
5048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5049 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5051 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5052 cat >>confdefs.h <<_ACEOF
5053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5064 { $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
5065 $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; }
5066 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`
5067 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5068 $as_echo_n "(cached) " >&6
5072 #include "confdefs.h"
5075 #include <sys/time.h>
5081 #ifdef HAVE_GETOPT_H
5092 const char* str = NULL;
5094 msg.msg_control = 0;
5095 t = ctime_r(&time, buf);
5098 a = getopt(2, opts, "a");
5100 str = gai_strerror(0);
5101 if(str && t && tv.tv_usec && msg.msg_control)
5106 echo 'void f(void){}' >>conftest.c
5107 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5108 eval "cv_prog_cc_flag_needed_$cache=no"
5111 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
5112 eval "cv_prog_cc_flag_needed_$cache=yes"
5114 eval "cv_prog_cc_flag_needed_$cache=fail"
5115 #echo 'Test with flag fails too!'
5117 #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"
5118 #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`
5123 rm -f conftest conftest.c conftest.o
5127 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5129 $as_echo "yes" >&6; }
5131 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"
5133 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5136 #echo 'Test with flag is no!'
5138 #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"
5139 #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`
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5145 $as_echo "failed" >&6; }
5155 { $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
5156 $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; }
5157 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`
5158 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5159 $as_echo_n "(cached) " >&6
5163 #include "confdefs.h"
5166 #include <sys/time.h>
5172 #ifdef HAVE_GETOPT_H
5183 const char* str = NULL;
5185 msg.msg_control = 0;
5186 t = ctime_r(&time, buf);
5189 a = getopt(2, opts, "a");
5191 str = gai_strerror(0);
5192 if(str && t && tv.tv_usec && msg.msg_control)
5197 echo 'void f(void){}' >>conftest.c
5198 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5199 eval "cv_prog_cc_flag_needed_$cache=no"
5202 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
5203 eval "cv_prog_cc_flag_needed_$cache=yes"
5205 eval "cv_prog_cc_flag_needed_$cache=fail"
5206 #echo 'Test with flag fails too!'
5208 #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"
5209 #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`
5214 rm -f conftest conftest.c conftest.o
5218 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5220 $as_echo "yes" >&6; }
5222 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5224 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227 #echo 'Test with flag is no!'
5229 #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"
5230 #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`
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5236 $as_echo "failed" >&6; }
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5247 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5248 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5249 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5250 $as_echo_n "(cached) " >&6
5254 #include <stdbool.h>
5261 echo 'void f(void){}' >>conftest.c
5262 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5263 eval "cv_prog_cc_flag_needed_$cache=no"
5266 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5267 eval "cv_prog_cc_flag_needed_$cache=yes"
5269 eval "cv_prog_cc_flag_needed_$cache=fail"
5270 #echo 'Test with flag fails too!'
5272 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5273 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5278 rm -f conftest conftest.c conftest.o
5282 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5284 $as_echo "yes" >&6; }
5286 CFLAGS="$CFLAGS $C99FLAG"
5288 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5291 #echo 'Test with flag is no!'
5293 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5294 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5300 $as_echo "failed" >&6; }
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5311 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5312 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5313 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5314 $as_echo_n "(cached) " >&6
5326 echo 'void f(void){}' >>conftest.c
5327 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5328 eval "cv_prog_cc_flag_needed_$cache=no"
5331 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5332 eval "cv_prog_cc_flag_needed_$cache=yes"
5334 eval "cv_prog_cc_flag_needed_$cache=fail"
5335 #echo 'Test with flag fails too!'
5337 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5338 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5343 rm -f conftest conftest.c conftest.o
5347 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5349 $as_echo "yes" >&6; }
5351 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5353 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5356 #echo 'Test with flag is no!'
5358 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5359 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5365 $as_echo "failed" >&6; }
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5376 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5378 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5379 $as_echo_n "(cached) " >&6
5383 #include <netinet/in.h>
5386 struct in6_pktinfo inf;
5387 int a = (int)sizeof(inf);
5391 echo 'void f(void){}' >>conftest.c
5392 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5393 eval "cv_prog_cc_flag_needed_$cache=no"
5396 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5397 eval "cv_prog_cc_flag_needed_$cache=yes"
5399 eval "cv_prog_cc_flag_needed_$cache=fail"
5400 #echo 'Test with flag fails too!'
5402 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5403 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5408 rm -f conftest conftest.c conftest.o
5412 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5414 $as_echo "yes" >&6; }
5416 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5418 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5421 #echo 'Test with flag is no!'
5423 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5424 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5430 $as_echo "failed" >&6; }
5437 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5438 # is not available at all. -D_FRSRESGID is to make this check unique.
5439 # otherwise we would get the previous cached result.
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5444 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5445 cache=_D_GNU_SOURCE__D_FRSRESGID
5446 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5447 $as_echo_n "(cached) " >&6
5454 int a = setresgid(0,0,0);
5455 a = setresuid(0,0,0);
5459 echo 'void f(void){}' >>conftest.c
5460 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5461 eval "cv_prog_cc_flag_needed_$cache=no"
5464 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5465 eval "cv_prog_cc_flag_needed_$cache=yes"
5467 eval "cv_prog_cc_flag_needed_$cache=fail"
5468 #echo 'Test with flag fails too!'
5470 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5471 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5476 rm -f conftest conftest.c conftest.o
5480 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5482 $as_echo "yes" >&6; }
5484 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5486 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5489 #echo 'Test with flag is no!'
5491 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5492 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5498 $as_echo "failed" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5509 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5510 cache=_D_POSIX_C_SOURCE_200112
5511 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5512 $as_echo_n "(cached) " >&6
5516 #include "confdefs.h"
5527 const char* str = NULL;
5528 t = ctime_r(&time, buf);
5529 str = gai_strerror(0);
5535 echo 'void f(void){}' >>conftest.c
5536 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5537 eval "cv_prog_cc_flag_needed_$cache=no"
5540 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5541 eval "cv_prog_cc_flag_needed_$cache=yes"
5543 eval "cv_prog_cc_flag_needed_$cache=fail"
5544 #echo 'Test with flag fails too!'
5546 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5547 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5552 rm -f conftest conftest.c conftest.o
5556 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5558 $as_echo "yes" >&6; }
5560 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5562 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565 #echo 'Test with flag is no!'
5567 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5568 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5574 $as_echo "failed" >&6; }
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5585 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5586 cache=_D__EXTENSIONS__
5587 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5588 $as_echo_n "(cached) " >&6
5592 #include "confdefs.h"
5595 #include <sys/time.h>
5600 #ifdef HAVE_GETOPT_H
5610 a = getopt(2, opts, "a");
5617 echo 'void f(void){}' >>conftest.c
5618 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5619 eval "cv_prog_cc_flag_needed_$cache=no"
5622 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5623 eval "cv_prog_cc_flag_needed_$cache=yes"
5625 eval "cv_prog_cc_flag_needed_$cache=fail"
5626 #echo 'Test with flag fails too!'
5628 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5629 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5634 rm -f conftest conftest.c conftest.o
5638 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5640 $as_echo "yes" >&6; }
5642 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5644 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5647 #echo 'Test with flag is no!'
5649 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5650 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5656 $as_echo "failed" >&6; }
5665 # debug mode flags warnings
5666 # Check whether --enable-checking was given.
5667 if test "${enable_checking+set}" = set; then :
5668 enableval=$enable_checking;
5671 # Check whether --enable-debug was given.
5672 if test "${enable_debug+set}" = set; then :
5673 enableval=$enable_debug;
5676 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5677 else debug_enabled="$enable_checking"; fi
5679 case "$debug_enabled" in
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5684 $as_echo_n "checking whether $CC supports -W... " >&6; }
5685 cache=`echo W | sed 'y%.=/+-%___p_%'`
5686 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5687 $as_echo_n "(cached) " >&6
5690 echo 'void f(void){}' >conftest.c
5691 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5692 eval "cv_prog_cc_flag_$cache=yes"
5694 eval "cv_prog_cc_flag_$cache=no"
5696 rm -f conftest conftest.o conftest.c
5700 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5702 $as_echo "yes" >&6; }
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5715 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5716 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5717 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5718 $as_echo_n "(cached) " >&6
5721 echo 'void f(void){}' >conftest.c
5722 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5723 eval "cv_prog_cc_flag_$cache=yes"
5725 eval "cv_prog_cc_flag_$cache=no"
5727 rm -f conftest conftest.o conftest.c
5731 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733 $as_echo "yes" >&6; }
5735 CFLAGS="$CFLAGS -Wall"
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5746 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5747 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5748 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5749 $as_echo_n "(cached) " >&6
5752 echo 'void f(void){}' >conftest.c
5753 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5754 eval "cv_prog_cc_flag_$cache=yes"
5756 eval "cv_prog_cc_flag_$cache=no"
5758 rm -f conftest conftest.o conftest.c
5762 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5764 $as_echo "yes" >&6; }
5766 CFLAGS="$CFLAGS -Wextra"
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5777 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5778 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5779 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5780 $as_echo_n "(cached) " >&6
5783 echo 'void f(void){}' >conftest.c
5784 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5785 eval "cv_prog_cc_flag_$cache=yes"
5787 eval "cv_prog_cc_flag_$cache=no"
5789 rm -f conftest conftest.o conftest.c
5793 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5795 $as_echo "yes" >&6; }
5797 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5806 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5813 if test "$default_cflags" = "yes"; then
5814 # only when CFLAGS was "" at the start, if the users wants to
5815 # override we shouldn't add default cflags, because they wouldn't
5816 # be able to turn off these options and set the CFLAGS wanted.
5818 # Check whether --enable-flto was given.
5819 if test "${enable_flto+set}" = set; then :
5820 enableval=$enable_flto;
5823 if test "x$enable_flto" != "xno"; then :
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5826 $as_echo_n "checking if $CC supports -flto... " >&6; }
5828 CFLAGS="$CFLAGS -flto"
5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5840 if ac_fn_c_try_link "$LINENO"; then :
5842 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5848 $as_echo "yes" >&6; }
5850 rm -f conftest conftest.c conftest.o
5853 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 $as_echo "no" >&6; }
5856 rm -f core conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5862 # Check whether --enable-pie was given.
5863 if test "${enable_pie+set}" = set; then :
5864 enableval=$enable_pie;
5867 if test "x$enable_pie" = "xyes"; then :
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
5870 $as_echo_n "checking if $CC supports PIE... " >&6; }
5871 BAKLDFLAGS="$LDFLAGS"
5873 LDFLAGS="$LDFLAGS -pie"
5874 CFLAGS="$CFLAGS -fPIE"
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5886 if ac_fn_c_try_link "$LINENO"; then :
5888 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5889 LDFLAGS="$BAKLDFLAGS"
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5894 $as_echo "yes" >&6; }
5896 rm -f conftest conftest.c conftest.o
5899 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5902 rm -f core conftest.err conftest.$ac_objext \
5903 conftest$ac_exeext conftest.$ac_ext
5908 # Check whether --enable-relro_now was given.
5909 if test "${enable_relro_now+set}" = set; then :
5910 enableval=$enable_relro_now;
5913 if test "x$enable_relro_now" = "xyes"; then :
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
5916 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
5917 BAKLDFLAGS="$LDFLAGS"
5918 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5930 if ac_fn_c_try_link "$LINENO"; then :
5932 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5933 LDFLAGS="$BAKLDFLAGS"
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5938 $as_echo "yes" >&6; }
5940 rm -f conftest conftest.c conftest.o
5943 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5946 rm -f core conftest.err conftest.$ac_objext \
5947 conftest$ac_exeext conftest.$ac_ext
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5954 $as_echo_n "checking for inline... " >&6; }
5955 if ${ac_cv_c_inline+:} false; then :
5956 $as_echo_n "(cached) " >&6
5959 for ac_kw in inline __inline__ __inline; do
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5964 static $ac_kw foo_t static_foo () {return 0; }
5965 $ac_kw foo_t foo () {return 0; }
5969 if ac_fn_c_try_compile "$LINENO"; then :
5970 ac_cv_c_inline=$ac_kw
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 test "$ac_cv_c_inline" != no && break
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5978 $as_echo "$ac_cv_c_inline" >&6; }
5980 case $ac_cv_c_inline in
5983 case $ac_cv_c_inline in
5985 *) ac_val=$ac_cv_c_inline;;
5987 cat >>confdefs.h <<_ACEOF
5989 #define inline $ac_val
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5997 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5998 if ${ac_cv_c_format_attribute+:} false; then :
5999 $as_echo_n "(cached) " >&6
6001 ac_cv_c_format_attribute=no
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6005 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6006 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6018 if ac_fn_c_try_compile "$LINENO"; then :
6019 ac_cv_c_format_attribute="yes"
6021 ac_cv_c_format_attribute="no"
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6029 $as_echo "$ac_cv_c_format_attribute" >&6; }
6030 if test $ac_cv_c_format_attribute = yes; then
6032 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6038 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6039 if ${ac_cv_c_unused_attribute+:} false; then :
6040 $as_echo_n "(cached) " >&6
6042 ac_cv_c_unused_attribute=no
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6046 void f (char *u __attribute__((unused)));
6058 if ac_fn_c_try_compile "$LINENO"; then :
6059 ac_cv_c_unused_attribute="yes"
6061 ac_cv_c_unused_attribute="no"
6063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6071 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6072 if test $ac_cv_c_unused_attribute = yes; then
6074 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6082 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6083 if ${ac_cv_c_weak_attribute+:} false; then :
6084 $as_echo_n "(cached) " >&6
6086 ac_cv_c_weak_attribute=no
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6090 __attribute__((weak)) void f(int x) { printf("%d", x); }
6102 if ac_fn_c_try_compile "$LINENO"; then :
6103 ac_cv_c_weak_attribute="yes"
6105 ac_cv_c_weak_attribute="no"
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6113 $as_echo "$ac_cv_c_weak_attribute" >&6; }
6114 if test $ac_cv_c_weak_attribute = yes; then
6116 $as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6119 $as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6127 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6128 if ${ac_cv_c_noreturn_attribute+:} false; then :
6129 $as_echo_n "(cached) " >&6
6131 ac_cv_c_noreturn_attribute=no
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6135 __attribute__((noreturn)) void f(int x) { printf("%d", x); }
6147 if ac_fn_c_try_compile "$LINENO"; then :
6148 ac_cv_c_noreturn_attribute="yes"
6150 ac_cv_c_noreturn_attribute="no"
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
6158 $as_echo "$ac_cv_c_noreturn_attribute" >&6; }
6159 if test $ac_cv_c_noreturn_attribute = yes; then
6161 $as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
6164 $as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
6169 if test "$srcdir" != "."; then
6170 CPPFLAGS="$CPPFLAGS -I$srcdir"
6177 for ac_prog in flex lex
6179 # Extract the first word of "$ac_prog", so it can be a program name with args.
6180 set dummy $ac_prog; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_LEX+:} false; then :
6184 $as_echo_n "(cached) " >&6
6186 if test -n "$LEX"; then
6187 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196 ac_cv_prog_LEX="$ac_prog"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 if test -n "$LEX"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6209 $as_echo "$LEX" >&6; }
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6216 test -n "$LEX" && break
6218 test -n "$LEX" || LEX=":"
6220 if test "x$LEX" != "x:"; then
6221 cat >conftest.l <<_ACEOF
6227 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6228 yyless ((input () != 0)); }
6229 f { unput (yytext[0]); }
6230 . { BEGIN INITIAL; }
6232 #ifdef YYTEXT_POINTER
6233 extern char *yytext;
6238 return ! yylex () + ! yywrap ();
6241 { { ac_try="$LEX conftest.l"
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6247 $as_echo "$ac_try_echo"; } >&5
6248 (eval "$LEX conftest.l") 2>&5
6250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6251 test $ac_status = 0; }
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6253 $as_echo_n "checking lex output file root... " >&6; }
6254 if ${ac_cv_prog_lex_root+:} false; then :
6255 $as_echo_n "(cached) " >&6
6258 if test -f lex.yy.c; then
6259 ac_cv_prog_lex_root=lex.yy
6260 elif test -f lexyy.c; then
6261 ac_cv_prog_lex_root=lexyy
6263 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6267 $as_echo "$ac_cv_prog_lex_root" >&6; }
6268 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6270 if test -z "${LEXLIB+set}"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6272 $as_echo_n "checking lex library... " >&6; }
6273 if ${ac_cv_lib_lex+:} false; then :
6274 $as_echo_n "(cached) " >&6
6278 ac_cv_lib_lex='none needed'
6279 for ac_lib in '' -lfl -ll; do
6280 LIBS="$ac_lib $ac_save_LIBS"
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 `cat $LEX_OUTPUT_ROOT.c`
6285 if ac_fn_c_try_link "$LINENO"; then :
6286 ac_cv_lib_lex=$ac_lib
6288 rm -f core conftest.err conftest.$ac_objext \
6289 conftest$ac_exeext conftest.$ac_ext
6290 test "$ac_cv_lib_lex" != 'none needed' && break
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6296 $as_echo "$ac_cv_lib_lex" >&6; }
6297 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6302 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6303 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6304 $as_echo_n "(cached) " >&6
6306 # POSIX says lex can declare yytext either as a pointer or an array; the
6307 # default is implementation-dependent. Figure out which it is, since
6308 # not all implementations provide the %pointer and %array declarations.
6309 ac_cv_prog_lex_yytext_pointer=no
6311 LIBS="$LEXLIB $ac_save_LIBS"
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6315 #define YYTEXT_POINTER 1
6316 `cat $LEX_OUTPUT_ROOT.c`
6318 if ac_fn_c_try_link "$LINENO"; then :
6319 ac_cv_prog_lex_yytext_pointer=yes
6321 rm -f core conftest.err conftest.$ac_objext \
6322 conftest$ac_exeext conftest.$ac_ext
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6327 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6328 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6330 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6333 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6336 if test "$LEX" != "" -a "$LEX" != ":"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6339 $as_echo_n "checking for yylex_destroy... " >&6; }
6340 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6342 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6345 $as_echo "yes" >&6; }
6346 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; };
6352 if test "$LEX" != "" -a "$LEX" != ":"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
6355 $as_echo_n "checking for lex %option... " >&6; }
6356 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6361 $as_echo "yes" >&6; }
6362 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; };
6368 if test "$LEX" = "" -o "$LEX" = ":"; then
6369 if test ! -f util/configlexer.c; then
6370 as_fn_error $? "no lex and no util/configlexer.c: need flex and bison to compile from source repository." "$LINENO" 5
6373 for ac_prog in 'bison -y' byacc
6375 # Extract the first word of "$ac_prog", so it can be a program name with args.
6376 set dummy $ac_prog; ac_word=$2
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378 $as_echo_n "checking for $ac_word... " >&6; }
6379 if ${ac_cv_prog_YACC+:} false; then :
6380 $as_echo_n "(cached) " >&6
6382 if test -n "$YACC"; then
6383 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 test -z "$as_dir" && as_dir=.
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6392 ac_cv_prog_YACC="$ac_prog"
6393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 YACC=$ac_cv_prog_YACC
6403 if test -n "$YACC"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6405 $as_echo "$YACC" >&6; }
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 $as_echo "no" >&6; }
6412 test -n "$YACC" && break
6414 test -n "$YACC" || YACC="yacc"
6416 if test "$YACC" = "" -o "$YACC" = ":"; then
6417 if test ! -f util/configparser.c; then
6418 as_fn_error $? "no yacc and no util/configparser.c: need flex and bison to compile from source repository." "$LINENO" 5
6421 # Extract the first word of "doxygen", so it can be a program name with args.
6422 set dummy doxygen; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_doxygen+:} false; then :
6426 $as_echo_n "(cached) " >&6
6428 if test -n "$doxygen"; then
6429 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438 ac_cv_prog_doxygen="doxygen"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 doxygen=$ac_cv_prog_doxygen
6449 if test -n "$doxygen"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6451 $as_echo "$doxygen" >&6; }
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6458 if test -n "$ac_tool_prefix"; then
6459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}strip; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_STRIP+:} false; then :
6464 $as_echo_n "(cached) " >&6
6466 if test -n "$STRIP"; then
6467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 STRIP=$ac_cv_prog_STRIP
6487 if test -n "$STRIP"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6489 $as_echo "$STRIP" >&6; }
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6497 if test -z "$ac_cv_prog_STRIP"; then
6499 # Extract the first word of "strip", so it can be a program name with args.
6500 set dummy strip; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6504 $as_echo_n "(cached) " >&6
6506 if test -n "$ac_ct_STRIP"; then
6507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_ac_ct_STRIP="strip"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6527 if test -n "$ac_ct_STRIP"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6529 $as_echo "$ac_ct_STRIP" >&6; }
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6535 if test "x$ac_ct_STRIP" = x; then
6538 case $cross_compiling:$ac_tool_warned in
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6547 STRIP="$ac_cv_prog_STRIP"
6551 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6552 if test -f "$ac_dir/install-sh"; then
6554 ac_install_sh="$ac_aux_dir/install-sh -c"
6556 elif test -f "$ac_dir/install.sh"; then
6558 ac_install_sh="$ac_aux_dir/install.sh -c"
6560 elif test -f "$ac_dir/shtool"; then
6562 ac_install_sh="$ac_aux_dir/shtool install -c"
6566 if test -z "$ac_aux_dir"; then
6567 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6570 # These three variables are undocumented and unsupported,
6571 # and are intended to be withdrawn in a future Autoconf release.
6572 # They can cause serious problems if a builder's source tree is in a directory
6573 # whose full name contains unusual characters.
6574 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6575 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6576 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6579 # Make sure we can run config.sub.
6580 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6581 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6584 $as_echo_n "checking build system type... " >&6; }
6585 if ${ac_cv_build+:} false; then :
6586 $as_echo_n "(cached) " >&6
6588 ac_build_alias=$build_alias
6589 test "x$ac_build_alias" = x &&
6590 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6591 test "x$ac_build_alias" = x &&
6592 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6593 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6594 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6598 $as_echo "$ac_cv_build" >&6; }
6599 case $ac_cv_build in
6601 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6604 ac_save_IFS=$IFS; IFS='-'
6610 # Remember, the first character of IFS is used to create $*,
6611 # except with old shells:
6614 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6618 $as_echo_n "checking host system type... " >&6; }
6619 if ${ac_cv_host+:} false; then :
6620 $as_echo_n "(cached) " >&6
6622 if test "x$host_alias" = x; then
6623 ac_cv_host=$ac_cv_build
6625 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6626 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6631 $as_echo "$ac_cv_host" >&6; }
6634 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6637 ac_save_IFS=$IFS; IFS='-'
6643 # Remember, the first character of IFS is used to create $*,
6644 # except with old shells:
6647 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6651 # skip these tests, we do not need them.
6660 # always use ./libtool unless override from commandline (libtool=mylibtool)
6661 if test -z "$libtool"; then
6665 # avoid libtool max commandline length test on systems that fork slowly.
6667 if echo "$host_os" | grep "sunos4" >/dev/null; then
6668 lt_cv_sys_max_cmd_len=32750;
6670 if test -n "$ac_tool_prefix"; then
6671 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6672 set dummy ${ac_tool_prefix}ar; ac_word=$2
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if ${ac_cv_path_AR+:} false; then :
6676 $as_echo_n "(cached) " >&6
6680 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 if test -n "$AR"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6704 $as_echo "$AR" >&6; }
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6712 if test -z "$ac_cv_path_AR"; then
6714 # Extract the first word of "ar", so it can be a program name with args.
6715 set dummy ar; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if ${ac_cv_path_ac_pt_AR+:} false; then :
6719 $as_echo_n "(cached) " >&6
6723 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 ac_pt_AR=$ac_cv_path_ac_pt_AR
6745 if test -n "$ac_pt_AR"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6747 $as_echo "$ac_pt_AR" >&6; }
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6753 if test "x$ac_pt_AR" = x; then
6756 case $cross_compiling:$ac_tool_warned in
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6768 if test $AR = false; then
6769 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6775 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6780 macro_version='2.4.6'
6781 macro_revision='2.4.6'
6795 ltmain=$ac_aux_dir/ltmain.sh
6797 # Backslashify metacharacters that are still active within
6798 # double-quoted strings.
6799 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6801 # Same as above, but do not quote variable references.
6802 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6804 # Sed substitution to delay expansion of an escaped shell variable in a
6805 # double_quote_subst'ed string.
6806 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6808 # Sed substitution to delay expansion of an escaped single quote.
6809 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6811 # Sed substitution to avoid accidental globbing in evaled expressions
6812 no_glob_subst='s/\*/\\\*/g'
6814 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6815 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6816 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6819 $as_echo_n "checking how to print strings... " >&6; }
6820 # Test print first, because it will be a builtin if present.
6821 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6822 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6824 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6827 # Use this function as a fallback that always works.
6828 func_fallback_echo ()
6830 eval 'cat <<_LTECHO_EOF
6834 ECHO='func_fallback_echo'
6837 # func_echo_all arg...
6838 # Invoke $ECHO with all args, space-separated.
6845 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6846 $as_echo "printf" >&6; } ;;
6847 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6848 $as_echo "print -r" >&6; } ;;
6849 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6850 $as_echo "cat" >&6; } ;;
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6867 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6868 if ${ac_cv_path_SED+:} false; then :
6869 $as_echo_n "(cached) " >&6
6871 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6872 for ac_i in 1 2 3 4 5 6 7; do
6873 ac_script="$ac_script$as_nl$ac_script"
6875 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6876 { ac_script=; unset ac_script;}
6877 if test -z "$SED"; then
6878 ac_path_SED_found=false
6879 # Loop through the user's path and test for each of PROGNAME-LIST
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 test -z "$as_dir" && as_dir=.
6885 for ac_prog in sed gsed; do
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6888 as_fn_executable_p "$ac_path_SED" || continue
6889 # Check for GNU ac_path_SED and select it if it is found.
6890 # Check for GNU $ac_path_SED
6891 case `"$ac_path_SED" --version 2>&1` in
6893 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6896 $as_echo_n 0123456789 >"conftest.in"
6899 cat "conftest.in" "conftest.in" >"conftest.tmp"
6900 mv "conftest.tmp" "conftest.in"
6901 cp "conftest.in" "conftest.nl"
6902 $as_echo '' >> "conftest.nl"
6903 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6905 as_fn_arith $ac_count + 1 && ac_count=$as_val
6906 if test $ac_count -gt ${ac_path_SED_max-0}; then
6907 # Best one so far, save it but keep looking for a better one
6908 ac_cv_path_SED="$ac_path_SED"
6909 ac_path_SED_max=$ac_count
6911 # 10*(2^10) chars as input seems more than enough
6912 test $ac_count -gt 10 && break
6914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6917 $ac_path_SED_found && break 3
6922 if test -z "$ac_cv_path_SED"; then
6923 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6931 $as_echo "$ac_cv_path_SED" >&6; }
6932 SED="$ac_cv_path_SED"
6935 test -z "$SED" && SED=sed
6936 Xsed="$SED -e 1s/^X//"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6949 $as_echo_n "checking for fgrep... " >&6; }
6950 if ${ac_cv_path_FGREP+:} false; then :
6951 $as_echo_n "(cached) " >&6
6953 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6954 then ac_cv_path_FGREP="$GREP -F"
6956 if test -z "$FGREP"; then
6957 ac_path_FGREP_found=false
6958 # Loop through the user's path and test for each of PROGNAME-LIST
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6963 test -z "$as_dir" && as_dir=.
6964 for ac_prog in fgrep; do
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6967 as_fn_executable_p "$ac_path_FGREP" || continue
6968 # Check for GNU ac_path_FGREP and select it if it is found.
6969 # Check for GNU $ac_path_FGREP
6970 case `"$ac_path_FGREP" --version 2>&1` in
6972 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6975 $as_echo_n 0123456789 >"conftest.in"
6978 cat "conftest.in" "conftest.in" >"conftest.tmp"
6979 mv "conftest.tmp" "conftest.in"
6980 cp "conftest.in" "conftest.nl"
6981 $as_echo 'FGREP' >> "conftest.nl"
6982 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6984 as_fn_arith $ac_count + 1 && ac_count=$as_val
6985 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6986 # Best one so far, save it but keep looking for a better one
6987 ac_cv_path_FGREP="$ac_path_FGREP"
6988 ac_path_FGREP_max=$ac_count
6990 # 10*(2^10) chars as input seems more than enough
6991 test $ac_count -gt 10 && break
6993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6996 $ac_path_FGREP_found && break 3
7001 if test -z "$ac_cv_path_FGREP"; then
7002 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7005 ac_cv_path_FGREP=$FGREP
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7011 $as_echo "$ac_cv_path_FGREP" >&6; }
7012 FGREP="$ac_cv_path_FGREP"
7015 test -z "$GREP" && GREP=grep
7035 # Check whether --with-gnu-ld was given.
7036 if test "${with_gnu_ld+set}" = set; then :
7037 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7043 if test yes = "$GCC"; then
7044 # Check if gcc -print-prog-name=ld gives a path.
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7046 $as_echo_n "checking for ld used by $CC... " >&6; }
7049 # gcc leaves a trailing carriage return, which upsets mingw
7050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7055 # Accept absolute paths.
7057 re_direlt='/[^/][^/]*/\.\./'
7058 # Canonicalize the pathname of ld
7059 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7060 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7061 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7063 test -z "$LD" && LD=$ac_prog
7066 # If it fails, then pretend we aren't using GCC.
7070 # If it is relative, then search for the first ld in PATH.
7074 elif test yes = "$with_gnu_ld"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7076 $as_echo_n "checking for GNU ld... " >&6; }
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7079 $as_echo_n "checking for non-GNU ld... " >&6; }
7081 if ${lt_cv_path_LD+:} false; then :
7082 $as_echo_n "(cached) " >&6
7084 if test -z "$LD"; then
7085 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7086 for ac_dir in $PATH; do
7088 test -z "$ac_dir" && ac_dir=.
7089 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7090 lt_cv_path_LD=$ac_dir/$ac_prog
7091 # Check to see if the program is GNU ld. I'd rather use --version,
7092 # but apparently some variants of GNU ld only accept -v.
7093 # Break only if it was the GNU/non-GNU ld that we prefer.
7094 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7095 *GNU* | *'with BFD'*)
7096 test no != "$with_gnu_ld" && break
7099 test yes != "$with_gnu_ld" && break
7106 lt_cv_path_LD=$LD # Let the user override the test with a path.
7111 if test -n "$LD"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7113 $as_echo "$LD" >&6; }
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7118 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7120 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7121 if ${lt_cv_prog_gnu_ld+:} false; then :
7122 $as_echo_n "(cached) " >&6
7124 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7125 case `$LD -v 2>&1 </dev/null` in
7126 *GNU* | *'with BFD'*)
7127 lt_cv_prog_gnu_ld=yes
7130 lt_cv_prog_gnu_ld=no
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7135 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7136 with_gnu_ld=$lt_cv_prog_gnu_ld
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7147 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7148 if ${lt_cv_path_NM+:} false; then :
7149 $as_echo_n "(cached) " >&6
7151 if test -n "$NM"; then
7152 # Let the user override the test.
7155 lt_nm_to_check=${ac_tool_prefix}nm
7156 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7157 lt_nm_to_check="$lt_nm_to_check nm"
7159 for lt_tmp_nm in $lt_nm_to_check; do
7160 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7161 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7163 test -z "$ac_dir" && ac_dir=.
7164 tmp_nm=$ac_dir/$lt_tmp_nm
7165 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7166 # Check to see if the nm accepts a BSD-compat flag.
7167 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7168 # nm: unknown option "B" ignored
7169 # Tru64's nm complains that /dev/null is an invalid object file
7170 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7172 mingw*) lt_bad_file=conftest.nm/nofile ;;
7173 *) lt_bad_file=/dev/null ;;
7175 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7176 *$lt_bad_file* | *'Invalid file or object type'*)
7177 lt_cv_path_NM="$tmp_nm -B"
7181 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7183 lt_cv_path_NM="$tmp_nm -p"
7187 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7188 continue # so that we can try to find one that supports BSD flags
7197 : ${lt_cv_path_NM=no}
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7201 $as_echo "$lt_cv_path_NM" >&6; }
7202 if test no != "$lt_cv_path_NM"; then
7205 # Didn't find any BSD compatible name lister, look for dumpbin.
7206 if test -n "$DUMPBIN"; then :
7207 # Let the user override the test.
7209 if test -n "$ac_tool_prefix"; then
7210 for ac_prog in dumpbin "link -dump"
7212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_prog_DUMPBIN+:} false; then :
7217 $as_echo_n "(cached) " >&6
7219 if test -n "$DUMPBIN"; then
7220 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 DUMPBIN=$ac_cv_prog_DUMPBIN
7240 if test -n "$DUMPBIN"; then
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7242 $as_echo "$DUMPBIN" >&6; }
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 $as_echo "no" >&6; }
7249 test -n "$DUMPBIN" && break
7252 if test -z "$DUMPBIN"; then
7253 ac_ct_DUMPBIN=$DUMPBIN
7254 for ac_prog in dumpbin "link -dump"
7256 # Extract the first word of "$ac_prog", so it can be a program name with args.
7257 set dummy $ac_prog; ac_word=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7261 $as_echo_n "(cached) " >&6
7263 if test -n "$ac_ct_DUMPBIN"; then
7264 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7284 if test -n "$ac_ct_DUMPBIN"; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7286 $as_echo "$ac_ct_DUMPBIN" >&6; }
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289 $as_echo "no" >&6; }
7293 test -n "$ac_ct_DUMPBIN" && break
7296 if test "x$ac_ct_DUMPBIN" = x; then
7299 case $cross_compiling:$ac_tool_warned in
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7303 ac_tool_warned=yes ;;
7305 DUMPBIN=$ac_ct_DUMPBIN
7309 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7311 DUMPBIN="$DUMPBIN -symbols -headers"
7319 if test : != "$DUMPBIN"; then
7323 test -z "$NM" && NM=nm
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7331 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7332 if ${lt_cv_nm_interface+:} false; then :
7333 $as_echo_n "(cached) " >&6
7335 lt_cv_nm_interface="BSD nm"
7336 echo "int some_variable = 0;" > conftest.$ac_ext
7337 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7338 (eval "$ac_compile" 2>conftest.err)
7339 cat conftest.err >&5
7340 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7341 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7342 cat conftest.err >&5
7343 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7344 cat conftest.out >&5
7345 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7346 lt_cv_nm_interface="MS dumpbin"
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7351 $as_echo "$lt_cv_nm_interface" >&6; }
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7354 $as_echo_n "checking whether ln -s works... " >&6; }
7356 if test "$LN_S" = "ln -s"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7358 $as_echo "yes" >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7361 $as_echo "no, using $LN_S" >&6; }
7364 # find the maximum length of command line arguments
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7366 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7367 if ${lt_cv_sys_max_cmd_len+:} false; then :
7368 $as_echo_n "(cached) " >&6
7375 # On DJGPP, this test can blow up pretty badly due to problems in libc
7376 # (any single argument exceeding 2000 bytes causes a buffer overrun
7377 # during glob expansion). Even if it were fixed, the result of this
7378 # check would be larger than it should be.
7379 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7383 # Under GNU Hurd, this test is not required because there is
7384 # no limit to the length of command line arguments.
7385 # Libtool will interpret -1 as no limit whatsoever
7386 lt_cv_sys_max_cmd_len=-1;
7389 cygwin* | mingw* | cegcc*)
7390 # On Win9x/ME, this test blows up -- it succeeds, but takes
7391 # about 5 minutes as the teststring grows exponentially.
7392 # Worse, since 9x/ME are not pre-emptively multitasking,
7393 # you end up with a "frozen" computer, even though with patience
7394 # the test eventually succeeds (with a max line length of 256k).
7395 # Instead, let's just punt: use the minimum linelength reported by
7396 # all of the supported platforms: 8192 (on NT/2K/XP).
7397 lt_cv_sys_max_cmd_len=8192;
7401 # On MiNT this can take a long time and run out of memory.
7402 lt_cv_sys_max_cmd_len=8192;
7406 # On AmigaOS with pdksh, this test takes hours, literally.
7407 # So we just punt and use a minimum line length of 8192.
7408 lt_cv_sys_max_cmd_len=8192;
7411 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7412 # This has been around since 386BSD, at least. Likely further.
7413 if test -x /sbin/sysctl; then
7414 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7415 elif test -x /usr/sbin/sysctl; then
7416 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7418 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7420 # And add a safety zone
7421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7426 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7427 lt_cv_sys_max_cmd_len=196608
7431 # The test takes a long time on OS/2.
7432 lt_cv_sys_max_cmd_len=8192
7436 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7437 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7438 # nice to cause kernel panics so lets avoid the loop below.
7439 # First set a reasonable default.
7440 lt_cv_sys_max_cmd_len=16384
7442 if test -x /sbin/sysconfig; then
7443 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7444 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7449 lt_cv_sys_max_cmd_len=102400
7451 sysv5* | sco5v6* | sysv4.2uw2*)
7452 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7453 if test -n "$kargmax"; then
7454 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7456 lt_cv_sys_max_cmd_len=32768
7460 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7461 if test -n "$lt_cv_sys_max_cmd_len" && \
7462 test undefined != "$lt_cv_sys_max_cmd_len"; then
7463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7466 # Make teststring a little bigger before we do anything with it.
7467 # a 1K string should be a reasonable start.
7468 for i in 1 2 3 4 5 6 7 8; do
7469 teststring=$teststring$teststring
7471 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7472 # If test is not a shell built-in, we'll probably end up computing a
7473 # maximum length that is only half of the actual maximum length, but
7475 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7476 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7477 test 17 != "$i" # 1/2 MB should be enough
7480 teststring=$teststring$teststring
7482 # Only check the string length outside the loop.
7483 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7485 # Add a significant safety factor because C++ compilers can tack on
7486 # massive amounts of additional arguments before passing them to the
7487 # linker. It appears as though 1/2 is a usable value.
7488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7495 if test -n "$lt_cv_sys_max_cmd_len"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7497 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7500 $as_echo "none" >&6; }
7502 max_cmd_len=$lt_cv_sys_max_cmd_len
7513 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7523 # test EBCDIC or ASCII
7524 case `echo X|tr X '\101'` in
7525 A) # ASCII based system
7526 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7527 lt_SP2NL='tr \040 \012'
7528 lt_NL2SP='tr \015\012 \040\040'
7530 *) # EBCDIC based system
7531 lt_SP2NL='tr \100 \n'
7532 lt_NL2SP='tr \r\n \100\100'
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7545 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7546 if ${lt_cv_to_host_file_cmd+:} false; then :
7547 $as_echo_n "(cached) " >&6
7552 *-*-mingw* ) # actually msys
7553 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7556 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7558 * ) # otherwise, assume *nix
7559 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7565 *-*-mingw* ) # actually msys
7566 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7569 lt_cv_to_host_file_cmd=func_convert_file_noop
7571 * ) # otherwise, assume *nix
7572 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7576 * ) # unhandled hosts (and "normal" native builds)
7577 lt_cv_to_host_file_cmd=func_convert_file_noop
7583 to_host_file_cmd=$lt_cv_to_host_file_cmd
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7585 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7592 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7593 if ${lt_cv_to_tool_file_cmd+:} false; then :
7594 $as_echo_n "(cached) " >&6
7596 #assume ordinary cross tools, or native build.
7597 lt_cv_to_tool_file_cmd=func_convert_file_noop
7601 *-*-mingw* ) # actually msys
7602 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7610 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7612 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7619 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7620 if ${lt_cv_ld_reload_flag+:} false; then :
7621 $as_echo_n "(cached) " >&6
7623 lt_cv_ld_reload_flag='-r'
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7626 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7627 reload_flag=$lt_cv_ld_reload_flag
7628 case $reload_flag in
7630 *) reload_flag=" $reload_flag" ;;
7632 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7634 cygwin* | mingw* | pw32* | cegcc*)
7635 if test yes != "$GCC"; then
7640 if test yes = "$GCC"; then
7641 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7643 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7656 if test -n "$ac_tool_prefix"; then
7657 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7658 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_prog_OBJDUMP+:} false; then :
7662 $as_echo_n "(cached) " >&6
7664 if test -n "$OBJDUMP"; then
7665 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 OBJDUMP=$ac_cv_prog_OBJDUMP
7685 if test -n "$OBJDUMP"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7687 $as_echo "$OBJDUMP" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7695 if test -z "$ac_cv_prog_OBJDUMP"; then
7696 ac_ct_OBJDUMP=$OBJDUMP
7697 # Extract the first word of "objdump", so it can be a program name with args.
7698 set dummy objdump; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7702 $as_echo_n "(cached) " >&6
7704 if test -n "$ac_ct_OBJDUMP"; then
7705 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7725 if test -n "$ac_ct_OBJDUMP"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7727 $as_echo "$ac_ct_OBJDUMP" >&6; }
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7733 if test "x$ac_ct_OBJDUMP" = x; then
7736 case $cross_compiling:$ac_tool_warned in
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7740 ac_tool_warned=yes ;;
7742 OBJDUMP=$ac_ct_OBJDUMP
7745 OBJDUMP="$ac_cv_prog_OBJDUMP"
7748 test -z "$OBJDUMP" && OBJDUMP=objdump
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7759 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7760 if ${lt_cv_deplibs_check_method+:} false; then :
7761 $as_echo_n "(cached) " >&6
7763 lt_cv_file_magic_cmd='$MAGIC_CMD'
7764 lt_cv_file_magic_test_file=
7765 lt_cv_deplibs_check_method='unknown'
7766 # Need to set the preceding variable on all platforms that support
7767 # interlibrary dependencies.
7768 # 'none' -- dependencies not supported.
7769 # 'unknown' -- same as none, but documents that we really don't know.
7770 # 'pass_all' -- all dependencies passed with no checks.
7771 # 'test_compile' -- check by making test program.
7772 # 'file_magic [[regex]]' -- check by looking for files in library path
7773 # that responds to the $file_magic_cmd with a given extended regex.
7774 # If you have 'file' or equivalent on your system and you're not sure
7775 # whether 'pass_all' will *always* work, you probably want this one.
7779 lt_cv_deplibs_check_method=pass_all
7783 lt_cv_deplibs_check_method=pass_all
7787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7788 lt_cv_file_magic_cmd='/usr/bin/file -L'
7789 lt_cv_file_magic_test_file=/shlib/libc.so
7793 # func_win32_libid is a shell function defined in ltmain.sh
7794 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7795 lt_cv_file_magic_cmd='func_win32_libid'
7799 # Base MSYS/MinGW do not provide the 'file' command needed by
7800 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7801 # unless we find 'file', for example because we are cross-compiling.
7802 if ( file / ) >/dev/null 2>&1; then
7803 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7804 lt_cv_file_magic_cmd='func_win32_libid'
7806 # Keep this pattern in sync with the one in func_win32_libid.
7807 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7808 lt_cv_file_magic_cmd='$OBJDUMP -f'
7813 # use the weaker test based on 'objdump'. See mingw*.
7814 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7815 lt_cv_file_magic_cmd='$OBJDUMP -f'
7818 darwin* | rhapsody*)
7819 lt_cv_deplibs_check_method=pass_all
7822 freebsd* | dragonfly*)
7823 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7826 # Not sure whether the presence of OpenBSD here was a mistake.
7827 # Let's accept both of them until this is cleared up.
7828 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7829 lt_cv_file_magic_cmd=/usr/bin/file
7830 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7834 lt_cv_deplibs_check_method=pass_all
7839 lt_cv_deplibs_check_method=pass_all
7842 hpux10.20* | hpux11*)
7843 lt_cv_file_magic_cmd=/usr/bin/file
7846 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7847 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7850 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]'
7851 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7854 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7855 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7861 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7862 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7865 irix5* | irix6* | nonstopux*)
7867 *-32|*"-32 ") libmagic=32-bit;;
7868 *-n32|*"-n32 ") libmagic=N32;;
7869 *-64|*"-64 ") libmagic=64-bit;;
7870 *) libmagic=never-match;;
7872 lt_cv_deplibs_check_method=pass_all
7875 # This must be glibc/ELF.
7876 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7877 lt_cv_deplibs_check_method=pass_all
7881 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7882 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7884 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7889 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7890 lt_cv_file_magic_cmd=/usr/bin/file
7891 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7895 lt_cv_deplibs_check_method=pass_all
7899 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7900 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7906 osf3* | osf4* | osf5*)
7907 lt_cv_deplibs_check_method=pass_all
7911 lt_cv_deplibs_check_method=pass_all
7915 lt_cv_deplibs_check_method=pass_all
7918 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7919 lt_cv_deplibs_check_method=pass_all
7923 case $host_vendor in
7925 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]'
7926 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7929 lt_cv_deplibs_check_method=pass_all
7932 lt_cv_file_magic_cmd='/bin/file'
7933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7936 lt_cv_file_magic_cmd='/bin/file'
7937 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7938 lt_cv_file_magic_test_file=/lib/libc.so
7941 lt_cv_deplibs_check_method=pass_all
7944 lt_cv_deplibs_check_method=pass_all
7950 lt_cv_deplibs_check_method=pass_all
7953 lt_cv_deplibs_check_method=pass_all
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7959 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7963 if test "$build" = "$host"; then
7966 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7969 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7975 file_magic_cmd=$lt_cv_file_magic_cmd
7976 deplibs_check_method=$lt_cv_deplibs_check_method
7977 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8000 if test -n "$ac_tool_prefix"; then
8001 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8002 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 $as_echo_n "checking for $ac_word... " >&6; }
8005 if ${ac_cv_prog_DLLTOOL+:} false; then :
8006 $as_echo_n "(cached) " >&6
8008 if test -n "$DLLTOOL"; then
8009 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 DLLTOOL=$ac_cv_prog_DLLTOOL
8029 if test -n "$DLLTOOL"; then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8031 $as_echo "$DLLTOOL" >&6; }
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8039 if test -z "$ac_cv_prog_DLLTOOL"; then
8040 ac_ct_DLLTOOL=$DLLTOOL
8041 # Extract the first word of "dlltool", so it can be a program name with args.
8042 set dummy dlltool; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8046 $as_echo_n "(cached) " >&6
8048 if test -n "$ac_ct_DLLTOOL"; then
8049 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8069 if test -n "$ac_ct_DLLTOOL"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8071 $as_echo "$ac_ct_DLLTOOL" >&6; }
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8077 if test "x$ac_ct_DLLTOOL" = x; then
8080 case $cross_compiling:$ac_tool_warned in
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8084 ac_tool_warned=yes ;;
8086 DLLTOOL=$ac_ct_DLLTOOL
8089 DLLTOOL="$ac_cv_prog_DLLTOOL"
8092 test -z "$DLLTOOL" && DLLTOOL=dlltool
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8104 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8105 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8106 $as_echo_n "(cached) " >&6
8108 lt_cv_sharedlib_from_linklib_cmd='unknown'
8111 cygwin* | mingw* | pw32* | cegcc*)
8112 # two different shell functions defined in ltmain.sh;
8113 # decide which one to use based on capabilities of $DLLTOOL
8114 case `$DLLTOOL --help 2>&1` in
8115 *--identify-strict*)
8116 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8119 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8124 # fallback: assume linklib IS sharedlib
8125 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8131 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8132 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8133 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8141 if test -n "$ac_tool_prefix"; then
8144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147 $as_echo_n "checking for $ac_word... " >&6; }
8148 if ${ac_cv_prog_AR+:} false; then :
8149 $as_echo_n "(cached) " >&6
8151 if test -n "$AR"; then
8152 ac_cv_prog_AR="$AR" # Let the user override the test.
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 test -z "$as_dir" && as_dir=.
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8161 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172 if test -n "$AR"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8174 $as_echo "$AR" >&6; }
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8181 test -n "$AR" && break
8184 if test -z "$AR"; then
8188 # Extract the first word of "$ac_prog", so it can be a program name with args.
8189 set dummy $ac_prog; ac_word=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 $as_echo_n "checking for $ac_word... " >&6; }
8192 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8193 $as_echo_n "(cached) " >&6
8195 if test -n "$ac_ct_AR"; then
8196 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 test -z "$as_dir" && as_dir=.
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205 ac_cv_prog_ac_ct_AR="$ac_prog"
8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8216 if test -n "$ac_ct_AR"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8218 $as_echo "$ac_ct_AR" >&6; }
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8225 test -n "$ac_ct_AR" && break
8228 if test "x$ac_ct_AR" = x; then
8231 case $cross_compiling:$ac_tool_warned in
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8235 ac_tool_warned=yes ;;
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8255 $as_echo_n "checking for archiver @FILE support... " >&6; }
8256 if ${lt_cv_ar_at_file+:} false; then :
8257 $as_echo_n "(cached) " >&6
8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8271 if ac_fn_c_try_compile "$LINENO"; then :
8272 echo conftest.$ac_objext > conftest.lst
8273 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8275 (eval $lt_ar_try) 2>&5
8277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8278 test $ac_status = 0; }
8279 if test 0 -eq "$ac_status"; then
8280 # Ensure the archiver fails upon bogus file names.
8281 rm -f conftest.$ac_objext libconftest.a
8282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8283 (eval $lt_ar_try) 2>&5
8285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8286 test $ac_status = 0; }
8287 if test 0 -ne "$ac_status"; then
8291 rm -f conftest.* libconftest.a
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8298 $as_echo "$lt_cv_ar_at_file" >&6; }
8300 if test no = "$lt_cv_ar_at_file"; then
8303 archiver_list_spec=$lt_cv_ar_at_file
8312 if test -n "$ac_tool_prefix"; then
8313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8314 set dummy ${ac_tool_prefix}strip; ac_word=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if ${ac_cv_prog_STRIP+:} false; then :
8318 $as_echo_n "(cached) " >&6
8320 if test -n "$STRIP"; then
8321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 STRIP=$ac_cv_prog_STRIP
8341 if test -n "$STRIP"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8343 $as_echo "$STRIP" >&6; }
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8351 if test -z "$ac_cv_prog_STRIP"; then
8353 # Extract the first word of "strip", so it can be a program name with args.
8354 set dummy strip; ac_word=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8358 $as_echo_n "(cached) " >&6
8360 if test -n "$ac_ct_STRIP"; then
8361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370 ac_cv_prog_ac_ct_STRIP="strip"
8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8381 if test -n "$ac_ct_STRIP"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8383 $as_echo "$ac_ct_STRIP" >&6; }
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8389 if test "x$ac_ct_STRIP" = x; then
8392 case $cross_compiling:$ac_tool_warned in
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8396 ac_tool_warned=yes ;;
8401 STRIP="$ac_cv_prog_STRIP"
8404 test -z "$STRIP" && STRIP=:
8411 if test -n "$ac_tool_prefix"; then
8412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if ${ac_cv_prog_RANLIB+:} false; then :
8417 $as_echo_n "(cached) " >&6
8419 if test -n "$RANLIB"; then
8420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8439 RANLIB=$ac_cv_prog_RANLIB
8440 if test -n "$RANLIB"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8442 $as_echo "$RANLIB" >&6; }
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8450 if test -z "$ac_cv_prog_RANLIB"; then
8451 ac_ct_RANLIB=$RANLIB
8452 # Extract the first word of "ranlib", so it can be a program name with args.
8453 set dummy ranlib; ac_word=$2
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8455 $as_echo_n "checking for $ac_word... " >&6; }
8456 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8457 $as_echo_n "(cached) " >&6
8459 if test -n "$ac_ct_RANLIB"; then
8460 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8469 ac_cv_prog_ac_ct_RANLIB="ranlib"
8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8480 if test -n "$ac_ct_RANLIB"; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8482 $as_echo "$ac_ct_RANLIB" >&6; }
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8488 if test "x$ac_ct_RANLIB" = x; then
8491 case $cross_compiling:$ac_tool_warned in
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8495 ac_tool_warned=yes ;;
8497 RANLIB=$ac_ct_RANLIB
8500 RANLIB="$ac_cv_prog_RANLIB"
8503 test -z "$RANLIB" && RANLIB=:
8510 # Determine commands to create old-style static archives.
8511 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8512 old_postinstall_cmds='chmod 644 $oldlib'
8513 old_postuninstall_cmds=
8515 if test -n "$RANLIB"; then
8518 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8521 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8524 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8529 lock_old_archive_extraction=yes ;;
8531 lock_old_archive_extraction=no ;;
8554 for ac_prog in gawk mawk nawk awk
8556 # Extract the first word of "$ac_prog", so it can be a program name with args.
8557 set dummy $ac_prog; ac_word=$2
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 $as_echo_n "checking for $ac_word... " >&6; }
8560 if ${ac_cv_prog_AWK+:} false; then :
8561 $as_echo_n "(cached) " >&6
8563 if test -n "$AWK"; then
8564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 test -z "$as_dir" && as_dir=.
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8573 ac_cv_prog_AWK="$ac_prog"
8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 if test -n "$AWK"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8586 $as_echo "$AWK" >&6; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8593 test -n "$AWK" && break
8614 # If no C compiler was specified, use CC.
8617 # If no C compiler flags were specified, use CFLAGS.
8618 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8620 # Allow CC to be a program name with arguments.
8624 # Check for command to grab the raw symbol name followed by C symbol from nm.
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8626 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8627 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8628 $as_echo_n "(cached) " >&6
8631 # These are sane defaults that work on at least a few old systems.
8632 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8634 # Character class describing NM global symbol codes.
8635 symcode='[BCDEGRST]'
8637 # Regexp to match symbols that can be accessed directly from C.
8638 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8640 # Define system-specific variables.
8645 cygwin* | mingw* | pw32* | cegcc*)
8646 symcode='[ABCDGISTW]'
8649 if test ia64 = "$host_cpu"; then
8650 symcode='[ABCDEGRST]'
8654 symcode='[BCDEGRST]'
8657 symcode='[BCDEGQRST]'
8668 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8676 # If we're using GNU nm, then use its standard symbol codes.
8677 case `$NM -V 2>&1` in
8678 *GNU* | *'with BFD'*)
8679 symcode='[ABCDGIRSTW]' ;;
8682 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8683 # Gets list of data symbols to import.
8684 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8685 # Adjust the below global symbol transforms to fixup imported variables.
8686 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8687 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8688 lt_c_name_lib_hook="\
8689 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8690 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8692 # Disable hooks by default.
8693 lt_cv_sys_global_symbol_to_import=
8699 # Transform an extracted symbol line into a proper C declaration.
8700 # Some systems (esp. on ia64) link data and code symbols differently,
8701 # so use this general approach.
8702 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8704 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8705 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8707 # Transform an extracted symbol line into symbol name and symbol address
8708 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8710 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8711 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8713 # Transform an extracted symbol line into symbol name with lib prefix and
8715 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8716 $lt_c_name_lib_hook\
8717 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8718 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8719 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8721 # Handle CRLF in mingw tool chain
8725 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8729 # Try without a prefix underscore, then with it.
8730 for ac_symprfx in "" "_"; do
8732 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8733 symxfrm="\\1 $ac_symprfx\\2 \\2"
8735 # Write the raw and C identifiers.
8736 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8737 # Fake it for dumpbin and say T for any non-static function,
8738 # D for any global variable and I for any imported variable.
8739 # Also find C++ and __fastcall symbols from MSVC++,
8740 # which start with @ or ?.
8741 lt_cv_sys_global_symbol_pipe="$AWK '"\
8742 " {last_section=section; section=\$ 3};"\
8743 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8744 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8745 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8746 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8747 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8748 " \$ 0!~/External *\|/{next};"\
8749 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8750 " {if(hide[section]) next};"\
8751 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8752 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8753 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8754 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8755 " ' prfx=^$ac_symprfx"
8757 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8759 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8761 # Check to see that the pipe works correctly.
8765 cat > conftest.$ac_ext <<_LT_EOF
8770 void nm_test_func(void);
8771 void nm_test_func(void){}
8775 int main(){nm_test_var='a';nm_test_func();return(0);}
8778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8779 (eval $ac_compile) 2>&5
8781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8782 test $ac_status = 0; }; then
8783 # Now try to grab the symbols.
8785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8786 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8789 test $ac_status = 0; } && test -s "$nlist"; then
8790 # Try sorting and uniquifying the output.
8791 if sort "$nlist" | uniq > "$nlist"T; then
8792 mv -f "$nlist"T "$nlist"
8797 # Make sure that we snagged all the symbols we need.
8798 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8799 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8800 cat <<_LT_EOF > conftest.$ac_ext
8801 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8802 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8803 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8804 relocations are performed -- see ld's documentation on pseudo-relocs. */
8805 # define LT_DLSYM_CONST
8806 #elif defined __osf__
8807 /* This system does not cope well with relocations in const data. */
8808 # define LT_DLSYM_CONST
8810 # define LT_DLSYM_CONST const
8818 # Now generate the symbol file.
8819 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8821 cat <<_LT_EOF >> conftest.$ac_ext
8823 /* The mapping between symbol names and symbols. */
8824 LT_DLSYM_CONST struct {
8828 lt__PROGRAM__LTX_preloaded_symbols[] =
8830 { "@PROGRAM@", (void *) 0 },
8832 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8833 cat <<\_LT_EOF >> conftest.$ac_ext
8837 /* This works around a problem in FreeBSD linker */
8838 #ifdef FREEBSD_WORKAROUND
8839 static const void *lt_preloaded_setup() {
8840 return lt__PROGRAM__LTX_preloaded_symbols;
8848 # Now try linking the two files.
8849 mv conftest.$ac_objext conftstm.$ac_objext
8850 lt_globsym_save_LIBS=$LIBS
8851 lt_globsym_save_CFLAGS=$CFLAGS
8852 LIBS=conftstm.$ac_objext
8853 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8855 (eval $ac_link) 2>&5
8857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8858 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8861 LIBS=$lt_globsym_save_LIBS
8862 CFLAGS=$lt_globsym_save_CFLAGS
8864 echo "cannot find nm_test_func in $nlist" >&5
8867 echo "cannot find nm_test_var in $nlist" >&5
8870 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8873 echo "$progname: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8876 rm -rf conftest* conftst*
8878 # Do not use the global_symbol_pipe unless it works.
8879 if test yes = "$pipe_works"; then
8882 lt_cv_sys_global_symbol_pipe=
8888 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8889 lt_cv_sys_global_symbol_to_cdecl=
8891 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8893 $as_echo "failed" >&6; }
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8896 $as_echo "ok" >&6; }
8899 # Response file support.
8900 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8901 nm_file_list_spec='@'
8902 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8903 nm_file_list_spec='@'
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8943 $as_echo_n "checking for sysroot... " >&6; }
8945 # Check whether --with-sysroot was given.
8946 if test "${with_sysroot+set}" = set; then :
8947 withval=$with_sysroot;
8954 case $with_sysroot in #(
8956 if test yes = "$GCC"; then
8957 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8961 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8967 $as_echo "$with_sysroot" >&6; }
8968 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8973 $as_echo "${lt_sysroot:-no}" >&6; }
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8980 $as_echo_n "checking for a working dd... " >&6; }
8981 if ${ac_cv_path_lt_DD+:} false; then :
8982 $as_echo_n "(cached) " >&6
8984 printf 0123456789abcdef0123456789abcdef >conftest.i
8985 cat conftest.i conftest.i >conftest2.i
8987 if test -z "$lt_DD"; then
8988 ac_path_lt_DD_found=false
8989 # Loop through the user's path and test for each of PROGNAME-LIST
8990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 test -z "$as_dir" && as_dir=.
8995 for ac_prog in dd; do
8996 for ac_exec_ext in '' $ac_executable_extensions; do
8997 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8998 as_fn_executable_p "$ac_path_lt_DD" || continue
8999 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9000 cmp -s conftest.i conftest.out \
9001 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9003 $ac_path_lt_DD_found && break 3
9008 if test -z "$ac_cv_path_lt_DD"; then
9012 ac_cv_path_lt_DD=$lt_DD
9015 rm -f conftest.i conftest2.i conftest.out
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9018 $as_echo "$ac_cv_path_lt_DD" >&6; }
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9022 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9023 if ${lt_cv_truncate_bin+:} false; then :
9024 $as_echo_n "(cached) " >&6
9026 printf 0123456789abcdef0123456789abcdef >conftest.i
9027 cat conftest.i conftest.i >conftest2.i
9029 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9030 cmp -s conftest.i conftest.out \
9031 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9033 rm -f conftest.i conftest2.i conftest.out
9034 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9037 $as_echo "$lt_cv_truncate_bin" >&6; }
9045 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9048 for cc_temp in $*""; do
9050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9056 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9059 # Check whether --enable-libtool-lock was given.
9060 if test "${enable_libtool_lock+set}" = set; then :
9061 enableval=$enable_libtool_lock;
9064 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9066 # Some flags need to be propagated to the compiler or linker for good
9070 # Find out what ABI is being produced by ac_compile, and set mode
9071 # options accordingly.
9072 echo 'int i;' > conftest.$ac_ext
9073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9074 (eval $ac_compile) 2>&5
9076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9077 test $ac_status = 0; }; then
9078 case `/usr/bin/file conftest.$ac_objext` in
9090 # Find out what ABI is being produced by ac_compile, and set linker
9091 # options accordingly.
9092 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9094 (eval $ac_compile) 2>&5
9096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9097 test $ac_status = 0; }; then
9098 if test yes = "$lt_cv_prog_gnu_ld"; then
9099 case `/usr/bin/file conftest.$ac_objext` in
9101 LD="${LD-ld} -melf32bsmip"
9104 LD="${LD-ld} -melf32bmipn32"
9107 LD="${LD-ld} -melf64bmip"
9111 case `/usr/bin/file conftest.$ac_objext` in
9128 # Find out what ABI is being produced by ac_compile, and set linker
9129 # options accordingly.
9130 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9132 (eval $ac_compile) 2>&5
9134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9135 test $ac_status = 0; }; then
9137 case `/usr/bin/file conftest.$ac_objext` in
9145 case `/usr/bin/file conftest.$ac_objext` in
9147 emul="${emul}btsmip"
9150 emul="${emul}ltsmip"
9153 case `/usr/bin/file conftest.$ac_objext` in
9158 LD="${LD-ld} -m $emul"
9163 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9164 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9165 # Find out what ABI is being produced by ac_compile, and set linker
9166 # options accordingly. Note that the listed cases only cover the
9167 # situations where additional linker options are needed (such as when
9168 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9169 # vice versa); the common cases where no linker options are needed do
9170 # not appear in the list.
9171 echo 'int i;' > conftest.$ac_ext
9172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9173 (eval $ac_compile) 2>&5
9175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9176 test $ac_status = 0; }; then
9177 case `/usr/bin/file conftest.o` in
9180 x86_64-*kfreebsd*-gnu)
9181 LD="${LD-ld} -m elf_i386_fbsd"
9184 case `/usr/bin/file conftest.o` in
9186 LD="${LD-ld} -m elf32_x86_64"
9189 LD="${LD-ld} -m elf_i386"
9193 powerpc64le-*linux*)
9194 LD="${LD-ld} -m elf32lppclinux"
9197 LD="${LD-ld} -m elf32ppclinux"
9200 LD="${LD-ld} -m elf_s390"
9203 LD="${LD-ld} -m elf32_sparc"
9209 x86_64-*kfreebsd*-gnu)
9210 LD="${LD-ld} -m elf_x86_64_fbsd"
9213 LD="${LD-ld} -m elf_x86_64"
9216 LD="${LD-ld} -m elf64lppc"
9219 LD="${LD-ld} -m elf64ppc"
9221 s390*-*linux*|s390*-*tpf*)
9222 LD="${LD-ld} -m elf64_s390"
9225 LD="${LD-ld} -m elf64_sparc"
9235 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9237 CFLAGS="$CFLAGS -belf"
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9239 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9240 if ${lt_cv_cc_needs_belf+:} false; then :
9241 $as_echo_n "(cached) " >&6
9244 ac_cpp='$CPP $CPPFLAGS'
9245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250 /* end confdefs.h. */
9260 if ac_fn_c_try_link "$LINENO"; then :
9261 lt_cv_cc_needs_belf=yes
9263 lt_cv_cc_needs_belf=no
9265 rm -f core conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
9268 ac_cpp='$CPP $CPPFLAGS'
9269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9275 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9276 if test yes != "$lt_cv_cc_needs_belf"; then
9277 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9282 # Find out what ABI is being produced by ac_compile, and set linker
9283 # options accordingly.
9284 echo 'int i;' > conftest.$ac_ext
9285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9286 (eval $ac_compile) 2>&5
9288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9289 test $ac_status = 0; }; then
9290 case `/usr/bin/file conftest.o` in
9292 case $lt_cv_prog_gnu_ld in
9295 i?86-*-solaris*|x86_64-*-solaris*)
9296 LD="${LD-ld} -m elf_x86_64"
9299 LD="${LD-ld} -m elf64_sparc"
9302 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9303 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9308 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9320 need_locks=$enable_libtool_lock
9322 if test -n "$ac_tool_prefix"; then
9323 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9324 set dummy ${ac_tool_prefix}mt; ac_word=$2
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326 $as_echo_n "checking for $ac_word... " >&6; }
9327 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9328 $as_echo_n "(cached) " >&6
9330 if test -n "$MANIFEST_TOOL"; then
9331 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 test -z "$as_dir" && as_dir=.
9338 for ac_exec_ext in '' $ac_executable_extensions; do
9339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9340 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9351 if test -n "$MANIFEST_TOOL"; then
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9353 $as_echo "$MANIFEST_TOOL" >&6; }
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356 $as_echo "no" >&6; }
9361 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9362 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9363 # Extract the first word of "mt", so it can be a program name with args.
9364 set dummy mt; ac_word=$2
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9366 $as_echo_n "checking for $ac_word... " >&6; }
9367 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9368 $as_echo_n "(cached) " >&6
9370 if test -n "$ac_ct_MANIFEST_TOOL"; then
9371 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9377 test -z "$as_dir" && as_dir=.
9378 for ac_exec_ext in '' $ac_executable_extensions; do
9379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9380 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9391 if test -n "$ac_ct_MANIFEST_TOOL"; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9393 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396 $as_echo "no" >&6; }
9399 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9402 case $cross_compiling:$ac_tool_warned in
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9406 ac_tool_warned=yes ;;
9408 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9411 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9414 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9416 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9417 if ${lt_cv_path_mainfest_tool+:} false; then :
9418 $as_echo_n "(cached) " >&6
9420 lt_cv_path_mainfest_tool=no
9421 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9422 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9423 cat conftest.err >&5
9424 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9425 lt_cv_path_mainfest_tool=yes
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9430 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9431 if test yes != "$lt_cv_path_mainfest_tool"; then
9441 rhapsody* | darwin*)
9442 if test -n "$ac_tool_prefix"; then
9443 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9444 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9446 $as_echo_n "checking for $ac_word... " >&6; }
9447 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9448 $as_echo_n "(cached) " >&6
9450 if test -n "$DSYMUTIL"; then
9451 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457 test -z "$as_dir" && as_dir=.
9458 for ac_exec_ext in '' $ac_executable_extensions; do
9459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9460 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9470 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9471 if test -n "$DSYMUTIL"; then
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9473 $as_echo "$DSYMUTIL" >&6; }
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 $as_echo "no" >&6; }
9481 if test -z "$ac_cv_prog_DSYMUTIL"; then
9482 ac_ct_DSYMUTIL=$DSYMUTIL
9483 # Extract the first word of "dsymutil", so it can be a program name with args.
9484 set dummy dsymutil; ac_word=$2
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9486 $as_echo_n "checking for $ac_word... " >&6; }
9487 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9488 $as_echo_n "(cached) " >&6
9490 if test -n "$ac_ct_DSYMUTIL"; then
9491 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9497 test -z "$as_dir" && as_dir=.
9498 for ac_exec_ext in '' $ac_executable_extensions; do
9499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9500 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9511 if test -n "$ac_ct_DSYMUTIL"; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9513 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516 $as_echo "no" >&6; }
9519 if test "x$ac_ct_DSYMUTIL" = x; then
9522 case $cross_compiling:$ac_tool_warned in
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9526 ac_tool_warned=yes ;;
9528 DSYMUTIL=$ac_ct_DSYMUTIL
9531 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9534 if test -n "$ac_tool_prefix"; then
9535 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9536 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9538 $as_echo_n "checking for $ac_word... " >&6; }
9539 if ${ac_cv_prog_NMEDIT+:} false; then :
9540 $as_echo_n "(cached) " >&6
9542 if test -n "$NMEDIT"; then
9543 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549 test -z "$as_dir" && as_dir=.
9550 for ac_exec_ext in '' $ac_executable_extensions; do
9551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9552 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9562 NMEDIT=$ac_cv_prog_NMEDIT
9563 if test -n "$NMEDIT"; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9565 $as_echo "$NMEDIT" >&6; }
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568 $as_echo "no" >&6; }
9573 if test -z "$ac_cv_prog_NMEDIT"; then
9574 ac_ct_NMEDIT=$NMEDIT
9575 # Extract the first word of "nmedit", so it can be a program name with args.
9576 set dummy nmedit; ac_word=$2
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9578 $as_echo_n "checking for $ac_word... " >&6; }
9579 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9580 $as_echo_n "(cached) " >&6
9582 if test -n "$ac_ct_NMEDIT"; then
9583 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 test -z "$as_dir" && as_dir=.
9590 for ac_exec_ext in '' $ac_executable_extensions; do
9591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9592 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9602 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9603 if test -n "$ac_ct_NMEDIT"; then
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9605 $as_echo "$ac_ct_NMEDIT" >&6; }
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608 $as_echo "no" >&6; }
9611 if test "x$ac_ct_NMEDIT" = x; then
9614 case $cross_compiling:$ac_tool_warned in
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9618 ac_tool_warned=yes ;;
9620 NMEDIT=$ac_ct_NMEDIT
9623 NMEDIT="$ac_cv_prog_NMEDIT"
9626 if test -n "$ac_tool_prefix"; then
9627 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9628 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9630 $as_echo_n "checking for $ac_word... " >&6; }
9631 if ${ac_cv_prog_LIPO+:} false; then :
9632 $as_echo_n "(cached) " >&6
9634 if test -n "$LIPO"; then
9635 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 test -z "$as_dir" && as_dir=.
9642 for ac_exec_ext in '' $ac_executable_extensions; do
9643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9644 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9654 LIPO=$ac_cv_prog_LIPO
9655 if test -n "$LIPO"; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9657 $as_echo "$LIPO" >&6; }
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9665 if test -z "$ac_cv_prog_LIPO"; then
9667 # Extract the first word of "lipo", so it can be a program name with args.
9668 set dummy lipo; ac_word=$2
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670 $as_echo_n "checking for $ac_word... " >&6; }
9671 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9672 $as_echo_n "(cached) " >&6
9674 if test -n "$ac_ct_LIPO"; then
9675 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 test -z "$as_dir" && as_dir=.
9682 for ac_exec_ext in '' $ac_executable_extensions; do
9683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9684 ac_cv_prog_ac_ct_LIPO="lipo"
9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9695 if test -n "$ac_ct_LIPO"; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9697 $as_echo "$ac_ct_LIPO" >&6; }
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700 $as_echo "no" >&6; }
9703 if test "x$ac_ct_LIPO" = x; then
9706 case $cross_compiling:$ac_tool_warned in
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9710 ac_tool_warned=yes ;;
9715 LIPO="$ac_cv_prog_LIPO"
9718 if test -n "$ac_tool_prefix"; then
9719 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9720 set dummy ${ac_tool_prefix}otool; ac_word=$2
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722 $as_echo_n "checking for $ac_word... " >&6; }
9723 if ${ac_cv_prog_OTOOL+:} false; then :
9724 $as_echo_n "(cached) " >&6
9726 if test -n "$OTOOL"; then
9727 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9736 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 OTOOL=$ac_cv_prog_OTOOL
9747 if test -n "$OTOOL"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9749 $as_echo "$OTOOL" >&6; }
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752 $as_echo "no" >&6; }
9757 if test -z "$ac_cv_prog_OTOOL"; then
9759 # Extract the first word of "otool", so it can be a program name with args.
9760 set dummy otool; ac_word=$2
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762 $as_echo_n "checking for $ac_word... " >&6; }
9763 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9764 $as_echo_n "(cached) " >&6
9766 if test -n "$ac_ct_OTOOL"; then
9767 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 test -z "$as_dir" && as_dir=.
9774 for ac_exec_ext in '' $ac_executable_extensions; do
9775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9776 ac_cv_prog_ac_ct_OTOOL="otool"
9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9787 if test -n "$ac_ct_OTOOL"; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9789 $as_echo "$ac_ct_OTOOL" >&6; }
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792 $as_echo "no" >&6; }
9795 if test "x$ac_ct_OTOOL" = x; then
9798 case $cross_compiling:$ac_tool_warned in
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9802 ac_tool_warned=yes ;;
9807 OTOOL="$ac_cv_prog_OTOOL"
9810 if test -n "$ac_tool_prefix"; then
9811 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9812 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if ${ac_cv_prog_OTOOL64+:} false; then :
9816 $as_echo_n "(cached) " >&6
9818 if test -n "$OTOOL64"; then
9819 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 test -z "$as_dir" && as_dir=.
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9828 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9838 OTOOL64=$ac_cv_prog_OTOOL64
9839 if test -n "$OTOOL64"; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9841 $as_echo "$OTOOL64" >&6; }
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 $as_echo "no" >&6; }
9849 if test -z "$ac_cv_prog_OTOOL64"; then
9850 ac_ct_OTOOL64=$OTOOL64
9851 # Extract the first word of "otool64", so it can be a program name with args.
9852 set dummy otool64; ac_word=$2
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854 $as_echo_n "checking for $ac_word... " >&6; }
9855 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9856 $as_echo_n "(cached) " >&6
9858 if test -n "$ac_ct_OTOOL64"; then
9859 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 test -z "$as_dir" && as_dir=.
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9868 ac_cv_prog_ac_ct_OTOOL64="otool64"
9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9878 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9879 if test -n "$ac_ct_OTOOL64"; then
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9881 $as_echo "$ac_ct_OTOOL64" >&6; }
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884 $as_echo "no" >&6; }
9887 if test "x$ac_ct_OTOOL64" = x; then
9890 case $cross_compiling:$ac_tool_warned in
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9894 ac_tool_warned=yes ;;
9896 OTOOL64=$ac_ct_OTOOL64
9899 OTOOL64="$ac_cv_prog_OTOOL64"
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9929 $as_echo_n "checking for -single_module linker flag... " >&6; }
9930 if ${lt_cv_apple_cc_single_mod+:} false; then :
9931 $as_echo_n "(cached) " >&6
9933 lt_cv_apple_cc_single_mod=no
9934 if test -z "$LT_MULTI_MODULE"; then
9935 # By default we will add the -single_module flag. You can override
9936 # by either setting the environment variable LT_MULTI_MODULE
9937 # non-empty at configure time, or by adding -multi_module to the
9939 rm -rf libconftest.dylib*
9940 echo "int foo(void){return 1;}" > conftest.c
9941 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9942 -dynamiclib -Wl,-single_module conftest.c" >&5
9943 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9944 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9946 # If there is a non-empty error log, and "single_module"
9947 # appears in it, assume the flag caused a linker warning
9948 if test -s conftest.err && $GREP single_module conftest.err; then
9949 cat conftest.err >&5
9950 # Otherwise, if the output was created with a 0 exit code from
9951 # the compiler, it worked.
9952 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9953 lt_cv_apple_cc_single_mod=yes
9955 cat conftest.err >&5
9957 rm -rf libconftest.dylib*
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9962 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9965 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9966 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9967 $as_echo_n "(cached) " >&6
9969 lt_cv_ld_exported_symbols_list=no
9970 save_LDFLAGS=$LDFLAGS
9971 echo "_main" > conftest.sym
9972 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9984 if ac_fn_c_try_link "$LINENO"; then :
9985 lt_cv_ld_exported_symbols_list=yes
9987 lt_cv_ld_exported_symbols_list=no
9989 rm -f core conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 LDFLAGS=$save_LDFLAGS
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9995 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9998 $as_echo_n "checking for -force_load linker flag... " >&6; }
9999 if ${lt_cv_ld_force_load+:} false; then :
10000 $as_echo_n "(cached) " >&6
10002 lt_cv_ld_force_load=no
10003 cat > conftest.c << _LT_EOF
10004 int forced_loaded() { return 2;}
10006 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10007 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10008 echo "$AR cru libconftest.a conftest.o" >&5
10009 $AR cru libconftest.a conftest.o 2>&5
10010 echo "$RANLIB libconftest.a" >&5
10011 $RANLIB libconftest.a 2>&5
10012 cat > conftest.c << _LT_EOF
10013 int main() { return 0;}
10015 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10016 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10018 if test -s conftest.err && $GREP force_load conftest.err; then
10019 cat conftest.err >&5
10020 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10021 lt_cv_ld_force_load=yes
10023 cat conftest.err >&5
10025 rm -f conftest.err libconftest.a conftest conftest.c
10026 rm -rf conftest.dSYM
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10030 $as_echo "$lt_cv_ld_force_load" >&6; }
10032 rhapsody* | darwin1.[012])
10033 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10035 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10036 darwin*) # darwin 5.x on
10037 # if running on 10.5 or later, the deployment target defaults
10038 # to the OS version, if on x86, and 10.4, the deployment
10039 # target defaults to 10.4. Don't you love it?
10040 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10041 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10042 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10044 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10046 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10050 if test yes = "$lt_cv_apple_cc_single_mod"; then
10051 _lt_dar_single_mod='$single_module'
10053 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10054 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10056 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10058 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10059 _lt_dsymutil='~$DSYMUTIL $lib || :'
10066 # func_munge_path_list VARIABLE PATH
10067 # -----------------------------------
10068 # VARIABLE is name of variable containing _space_ separated list of
10069 # directories to be munged by the contents of PATH, which is string
10072 # string "DIR[ DIR]" will be prepended to VARIABLE
10074 # string "DIR[ DIR]" will be appended to VARIABLE
10075 # "DIRP[:DIRP]::[DIRA:]DIRA"
10076 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10077 # "DIRA[ DIRA]" will be appended to VARIABLE
10079 # VARIABLE will be replaced by "DIR[ DIR]"
10080 func_munge_path_list ()
10086 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10089 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10092 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10093 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10096 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10101 for ac_header in dlfcn.h
10103 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10105 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10106 cat >>confdefs.h <<_ACEOF
10107 #define HAVE_DLFCN_H 1
10127 enable_win32_dll=no
10130 # Check whether --enable-shared was given.
10131 if test "${enable_shared+set}" = set; then :
10132 enableval=$enable_shared; p=${PACKAGE-default}
10134 yes) enable_shared=yes ;;
10135 no) enable_shared=no ;;
10138 # Look at the argument we got. We use all the common list separators.
10139 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10140 for pkg in $enableval; do
10142 if test "X$pkg" = "X$p"; then
10161 # Check whether --enable-static was given.
10162 if test "${enable_static+set}" = set; then :
10163 enableval=$enable_static; p=${PACKAGE-default}
10165 yes) enable_static=yes ;;
10166 no) enable_static=no ;;
10169 # Look at the argument we got. We use all the common list separators.
10170 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10171 for pkg in $enableval; do
10173 if test "X$pkg" = "X$p"; then
10193 # Check whether --with-pic was given.
10194 if test "${with_pic+set}" = set; then :
10195 withval=$with_pic; lt_p=${PACKAGE-default}
10197 yes|no) pic_mode=$withval ;;
10200 # Look at the argument we got. We use all the common list separators.
10201 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10202 for lt_pkg in $withval; do
10204 if test "X$lt_pkg" = "X$lt_p"; then
10222 # Check whether --enable-fast-install was given.
10223 if test "${enable_fast_install+set}" = set; then :
10224 enableval=$enable_fast_install; p=${PACKAGE-default}
10226 yes) enable_fast_install=yes ;;
10227 no) enable_fast_install=no ;;
10229 enable_fast_install=no
10230 # Look at the argument we got. We use all the common list separators.
10231 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10232 for pkg in $enableval; do
10234 if test "X$pkg" = "X$p"; then
10235 enable_fast_install=yes
10242 enable_fast_install=yes
10252 shared_archive_member_spec=
10253 case $host,$enable_shared in
10254 power*-*-aix[5-9]*,yes)
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10256 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10258 # Check whether --with-aix-soname was given.
10259 if test "${with_aix_soname+set}" = set; then :
10260 withval=$with_aix_soname; case $withval in
10264 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10267 lt_cv_with_aix_soname=$with_aix_soname
10269 if ${lt_cv_with_aix_soname+:} false; then :
10270 $as_echo_n "(cached) " >&6
10272 lt_cv_with_aix_soname=aix
10275 with_aix_soname=$lt_cv_with_aix_soname
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10279 $as_echo "$with_aix_soname" >&6; }
10280 if test aix != "$with_aix_soname"; then
10281 # For the AIX way of multilib, we name the shared archive member
10282 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10283 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10284 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10285 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10286 if test 64 = "${OBJECT_MODE-32}"; then
10287 shared_archive_member_spec=shr_64
10289 shared_archive_member_spec=shr
10294 with_aix_soname=aix
10307 # This can be used to rebuild libtool when needed
10308 LIBTOOL_DEPS=$ltmain
10310 # Always use our own libtool.
10311 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10342 test -z "$LN_S" && LN_S="ln -s"
10357 if test -n "${ZSH_VERSION+set}"; then
10358 setopt NO_GLOB_SUBST
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10362 $as_echo_n "checking for objdir... " >&6; }
10363 if ${lt_cv_objdir+:} false; then :
10364 $as_echo_n "(cached) " >&6
10366 rm -f .libs 2>/dev/null
10367 mkdir .libs 2>/dev/null
10368 if test -d .libs; then
10371 # MS-DOS does not allow filenames that begin with a dot.
10374 rmdir .libs 2>/dev/null
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10377 $as_echo "$lt_cv_objdir" >&6; }
10378 objdir=$lt_cv_objdir
10384 cat >>confdefs.h <<_ACEOF
10385 #define LT_OBJDIR "$lt_cv_objdir/"
10393 # AIX sometimes has problems with the GCC collect2 program. For some
10394 # reason, if we set the COLLECT_NAMES environment variable, the problems
10395 # vanish in a puff of smoke.
10396 if test set != "${COLLECT_NAMES+set}"; then
10398 export COLLECT_NAMES
10403 # Global variables:
10405 can_build_shared=yes
10407 # All known linkers require a '.a' archive for static linking (except MSVC,
10408 # which needs '.lib').
10411 with_gnu_ld=$lt_cv_prog_gnu_ld
10416 # Set sane defaults for various variables
10417 test -z "$CC" && CC=cc
10418 test -z "$LTCC" && LTCC=$CC
10419 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10420 test -z "$LD" && LD=ld
10421 test -z "$ac_objext" && ac_objext=o
10423 func_cc_basename $compiler
10424 cc_basename=$func_cc_basename_result
10427 # Only perform the check for file, if the check method requires it
10428 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10429 case $deplibs_check_method in
10431 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10433 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10434 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10435 $as_echo_n "(cached) " >&6
10439 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10442 lt_save_MAGIC_CMD=$MAGIC_CMD
10443 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10444 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10445 for ac_dir in $ac_dummy; do
10447 test -z "$ac_dir" && ac_dir=.
10448 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10449 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10450 if test -n "$file_magic_test_file"; then
10451 case $deplibs_check_method in
10453 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10454 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10455 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10456 $EGREP "$file_magic_regex" > /dev/null; then
10461 *** Warning: the command libtool uses to detect shared libraries,
10462 *** $file_magic_cmd, produces output that libtool cannot recognize.
10463 *** The result is that libtool may fail to recognize shared libraries
10464 *** as such. This will affect the creation of libtool libraries that
10465 *** depend on shared libraries, but programs linked with such libtool
10466 *** libraries will work regardless of this problem. Nevertheless, you
10467 *** may want to report the problem to your system manager and/or to
10468 *** bug-libtool@gnu.org
10478 MAGIC_CMD=$lt_save_MAGIC_CMD
10483 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10484 if test -n "$MAGIC_CMD"; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10486 $as_echo "$MAGIC_CMD" >&6; }
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; }
10496 if test -z "$lt_cv_path_MAGIC_CMD"; then
10497 if test -n "$ac_tool_prefix"; then
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10499 $as_echo_n "checking for file... " >&6; }
10500 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10501 $as_echo_n "(cached) " >&6
10505 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10508 lt_save_MAGIC_CMD=$MAGIC_CMD
10509 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10510 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10511 for ac_dir in $ac_dummy; do
10513 test -z "$ac_dir" && ac_dir=.
10514 if test -f "$ac_dir/file"; then
10515 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10516 if test -n "$file_magic_test_file"; then
10517 case $deplibs_check_method in
10519 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10520 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10521 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10522 $EGREP "$file_magic_regex" > /dev/null; then
10527 *** Warning: the command libtool uses to detect shared libraries,
10528 *** $file_magic_cmd, produces output that libtool cannot recognize.
10529 *** The result is that libtool may fail to recognize shared libraries
10530 *** as such. This will affect the creation of libtool libraries that
10531 *** depend on shared libraries, but programs linked with such libtool
10532 *** libraries will work regardless of this problem. Nevertheless, you
10533 *** may want to report the problem to your system manager and/or to
10534 *** bug-libtool@gnu.org
10544 MAGIC_CMD=$lt_save_MAGIC_CMD
10549 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10550 if test -n "$MAGIC_CMD"; then
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10552 $as_echo "$MAGIC_CMD" >&6; }
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555 $as_echo "no" >&6; }
10568 # Use C for the default configuration in the libtool script
10572 ac_cpp='$CPP $CPPFLAGS'
10573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10578 # Source file extension for C test sources.
10581 # Object file extension for compiled C test sources.
10585 # Code to be used in simple compile tests
10586 lt_simple_compile_test_code="int some_variable = 0;"
10588 # Code to be used in simple link tests
10589 lt_simple_link_test_code='int main(){return(0);}'
10597 # If no C compiler was specified, use CC.
10600 # If no C compiler flags were specified, use CFLAGS.
10601 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10603 # Allow CC to be a program name with arguments.
10606 # Save the default compiler, since it gets overwritten when the other
10607 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10608 compiler_DEFAULT=$CC
10610 # save warnings/boilerplate of simple test code
10611 ac_outfile=conftest.$ac_objext
10612 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10613 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10614 _lt_compiler_boilerplate=`cat conftest.err`
10617 ac_outfile=conftest.$ac_objext
10618 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10619 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10620 _lt_linker_boilerplate=`cat conftest.err`
10624 if test -n "$compiler"; then
10626 lt_prog_compiler_no_builtin_flag=
10628 if test yes = "$GCC"; then
10629 case $cc_basename in
10631 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10633 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10637 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10638 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10639 $as_echo_n "(cached) " >&6
10641 lt_cv_prog_compiler_rtti_exceptions=no
10642 ac_outfile=conftest.$ac_objext
10643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10644 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10645 # Insert the option either (1) after the last *FLAGS variable, or
10646 # (2) before a word containing "conftest.", or (3) at the end.
10647 # Note that $ac_compile itself does not contain backslashes and begins
10648 # with a dollar sign (not a hyphen), so the echo should work correctly.
10649 # The option is referenced via a variable to avoid confusing sed.
10650 lt_compile=`echo "$ac_compile" | $SED \
10651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10653 -e 's:$: $lt_compiler_flag:'`
10654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10655 (eval "$lt_compile" 2>conftest.err)
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 if (exit $ac_status) && test -s "$ac_outfile"; then
10660 # The compiler can only warn and ignore the option if not recognized
10661 # So say no if there are warnings other than the usual output.
10662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10664 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10665 lt_cv_prog_compiler_rtti_exceptions=yes
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10672 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10674 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10675 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10687 lt_prog_compiler_wl=
10688 lt_prog_compiler_pic=
10689 lt_prog_compiler_static=
10692 if test yes = "$GCC"; then
10693 lt_prog_compiler_wl='-Wl,'
10694 lt_prog_compiler_static='-static'
10698 # All AIX code is PIC.
10699 if test ia64 = "$host_cpu"; then
10700 # AIX 5 now supports IA64 processor
10701 lt_prog_compiler_static='-Bstatic'
10703 lt_prog_compiler_pic='-fPIC'
10709 # see comment about AmigaOS4 .so support
10710 lt_prog_compiler_pic='-fPIC'
10713 # FIXME: we need at least 68020 code to build shared libraries, but
10714 # adding the '-m68020' flag to GCC prevents building anything better,
10716 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10721 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10722 # PIC is the default for these OSes.
10725 mingw* | cygwin* | pw32* | os2* | cegcc*)
10726 # This hack is so that the source file can tell whether it is being
10727 # built for inclusion in a dll (and should export symbols for example).
10728 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10729 # (--disable-auto-import) libraries
10730 lt_prog_compiler_pic='-DDLL_EXPORT'
10733 lt_prog_compiler_static='$wl-static'
10738 darwin* | rhapsody*)
10739 # PIC is the default on this platform
10740 # Common symbols not allowed in MH_DYLIB files
10741 lt_prog_compiler_pic='-fno-common'
10745 # PIC is the default for Haiku.
10746 # The "-static" flag exists, but is broken.
10747 lt_prog_compiler_static=
10751 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10752 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10753 # sets the default TLS model and affects inlining.
10759 lt_prog_compiler_pic='-fPIC'
10765 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10766 # Instead, we relocate shared libraries at runtime.
10770 # Just because we use GCC doesn't mean we suddenly get shared libraries
10771 # on systems that don't support them.
10772 lt_prog_compiler_can_build_shared=no
10777 # QNX uses GNU C++, but need to define -shared option too, otherwise
10778 # it will coredump.
10779 lt_prog_compiler_pic='-fPIC -shared'
10783 if test -d /usr/nec; then
10784 lt_prog_compiler_pic=-Kconform_pic
10789 lt_prog_compiler_pic='-fPIC'
10793 case $cc_basename in
10794 nvcc*) # Cuda Compiler Driver 2.2
10795 lt_prog_compiler_wl='-Xlinker '
10796 if test -n "$lt_prog_compiler_pic"; then
10797 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10802 # PORTME Check for flag to pass linker flags through the system compiler.
10805 lt_prog_compiler_wl='-Wl,'
10806 if test ia64 = "$host_cpu"; then
10807 # AIX 5 now supports IA64 processor
10808 lt_prog_compiler_static='-Bstatic'
10810 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10814 darwin* | rhapsody*)
10815 # PIC is the default on this platform
10816 # Common symbols not allowed in MH_DYLIB files
10817 lt_prog_compiler_pic='-fno-common'
10818 case $cc_basename in
10820 # NAG Fortran compiler
10821 lt_prog_compiler_wl='-Wl,-Wl,,'
10822 lt_prog_compiler_pic='-PIC'
10823 lt_prog_compiler_static='-Bstatic'
10828 mingw* | cygwin* | pw32* | os2* | cegcc*)
10829 # This hack is so that the source file can tell whether it is being
10830 # built for inclusion in a dll (and should export symbols for example).
10831 lt_prog_compiler_pic='-DDLL_EXPORT'
10834 lt_prog_compiler_static='$wl-static'
10839 hpux9* | hpux10* | hpux11*)
10840 lt_prog_compiler_wl='-Wl,'
10841 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10842 # not for PA HP-UX.
10848 lt_prog_compiler_pic='+Z'
10851 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10852 lt_prog_compiler_static='$wl-a ${wl}archive'
10855 irix5* | irix6* | nonstopux*)
10856 lt_prog_compiler_wl='-Wl,'
10857 # PIC (with -KPIC) is the default.
10858 lt_prog_compiler_static='-non_shared'
10861 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10862 case $cc_basename in
10863 # old Intel for x86_64, which still supported -KPIC.
10865 lt_prog_compiler_wl='-Wl,'
10866 lt_prog_compiler_pic='-KPIC'
10867 lt_prog_compiler_static='-static'
10869 # icc used to be incompatible with GCC.
10870 # ICC 10 doesn't accept -KPIC any more.
10872 lt_prog_compiler_wl='-Wl,'
10873 lt_prog_compiler_pic='-fPIC'
10874 lt_prog_compiler_static='-static'
10876 # Lahey Fortran 8.1.
10878 lt_prog_compiler_wl='-Wl,'
10879 lt_prog_compiler_pic='--shared'
10880 lt_prog_compiler_static='--static'
10883 # NAG Fortran compiler
10884 lt_prog_compiler_wl='-Wl,-Wl,,'
10885 lt_prog_compiler_pic='-PIC'
10886 lt_prog_compiler_static='-Bstatic'
10889 # Fabrice Bellard et al's Tiny C Compiler
10890 lt_prog_compiler_wl='-Wl,'
10891 lt_prog_compiler_pic='-fPIC'
10892 lt_prog_compiler_static='-static'
10894 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10895 # Portland Group compilers (*not* the Pentium gcc compiler,
10896 # which looks to be a dead project)
10897 lt_prog_compiler_wl='-Wl,'
10898 lt_prog_compiler_pic='-fpic'
10899 lt_prog_compiler_static='-Bstatic'
10902 lt_prog_compiler_wl='-Wl,'
10903 # All Alpha code is PIC.
10904 lt_prog_compiler_static='-non_shared'
10906 xl* | bgxl* | bgf* | mpixl*)
10907 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10908 lt_prog_compiler_wl='-Wl,'
10909 lt_prog_compiler_pic='-qpic'
10910 lt_prog_compiler_static='-qstaticlink'
10913 case `$CC -V 2>&1 | sed 5q` in
10914 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10915 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10916 lt_prog_compiler_pic='-KPIC'
10917 lt_prog_compiler_static='-Bstatic'
10918 lt_prog_compiler_wl=''
10920 *Sun\ F* | *Sun*Fortran*)
10921 lt_prog_compiler_pic='-KPIC'
10922 lt_prog_compiler_static='-Bstatic'
10923 lt_prog_compiler_wl='-Qoption ld '
10927 lt_prog_compiler_pic='-KPIC'
10928 lt_prog_compiler_static='-Bstatic'
10929 lt_prog_compiler_wl='-Wl,'
10931 *Intel*\ [CF]*Compiler*)
10932 lt_prog_compiler_wl='-Wl,'
10933 lt_prog_compiler_pic='-fPIC'
10934 lt_prog_compiler_static='-static'
10937 lt_prog_compiler_wl='-Wl,'
10938 lt_prog_compiler_pic='-fpic'
10939 lt_prog_compiler_static='-Bstatic'
10947 lt_prog_compiler_pic='-KPIC'
10948 lt_prog_compiler_static='-Bstatic'
10952 # QNX uses GNU C++, but need to define -shared option too, otherwise
10953 # it will coredump.
10954 lt_prog_compiler_pic='-fPIC -shared'
10957 osf3* | osf4* | osf5*)
10958 lt_prog_compiler_wl='-Wl,'
10959 # All OSF/1 code is PIC.
10960 lt_prog_compiler_static='-non_shared'
10964 lt_prog_compiler_static='-non_shared'
10968 lt_prog_compiler_pic='-KPIC'
10969 lt_prog_compiler_static='-Bstatic'
10970 case $cc_basename in
10971 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10972 lt_prog_compiler_wl='-Qoption ld ';;
10974 lt_prog_compiler_wl='-Wl,';;
10979 lt_prog_compiler_wl='-Qoption ld '
10980 lt_prog_compiler_pic='-PIC'
10981 lt_prog_compiler_static='-Bstatic'
10984 sysv4 | sysv4.2uw2* | sysv4.3*)
10985 lt_prog_compiler_wl='-Wl,'
10986 lt_prog_compiler_pic='-KPIC'
10987 lt_prog_compiler_static='-Bstatic'
10991 if test -d /usr/nec; then
10992 lt_prog_compiler_pic='-Kconform_pic'
10993 lt_prog_compiler_static='-Bstatic'
10997 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10998 lt_prog_compiler_wl='-Wl,'
10999 lt_prog_compiler_pic='-KPIC'
11000 lt_prog_compiler_static='-Bstatic'
11004 lt_prog_compiler_wl='-Wl,'
11005 lt_prog_compiler_can_build_shared=no
11009 lt_prog_compiler_pic='-pic'
11010 lt_prog_compiler_static='-Bstatic'
11014 lt_prog_compiler_can_build_shared=no
11020 # For platforms that do not support PIC, -DPIC is meaningless:
11022 lt_prog_compiler_pic=
11025 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11030 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11031 if ${lt_cv_prog_compiler_pic+:} false; then :
11032 $as_echo_n "(cached) " >&6
11034 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11037 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11038 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11041 # Check to make sure the PIC flag actually works.
11043 if test -n "$lt_prog_compiler_pic"; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11045 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11046 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11047 $as_echo_n "(cached) " >&6
11049 lt_cv_prog_compiler_pic_works=no
11050 ac_outfile=conftest.$ac_objext
11051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11052 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11053 # Insert the option either (1) after the last *FLAGS variable, or
11054 # (2) before a word containing "conftest.", or (3) at the end.
11055 # Note that $ac_compile itself does not contain backslashes and begins
11056 # with a dollar sign (not a hyphen), so the echo should work correctly.
11057 # The option is referenced via a variable to avoid confusing sed.
11058 lt_compile=`echo "$ac_compile" | $SED \
11059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11061 -e 's:$: $lt_compiler_flag:'`
11062 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11063 (eval "$lt_compile" 2>conftest.err)
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 if (exit $ac_status) && test -s "$ac_outfile"; then
11068 # The compiler can only warn and ignore the option if not recognized
11069 # So say no if there are warnings other than the usual output.
11070 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11072 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11073 lt_cv_prog_compiler_pic_works=yes
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11080 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11082 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11083 case $lt_prog_compiler_pic in
11085 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11088 lt_prog_compiler_pic=
11089 lt_prog_compiler_can_build_shared=no
11105 # Check to make sure the static flag actually works.
11107 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11109 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11110 if ${lt_cv_prog_compiler_static_works+:} false; then :
11111 $as_echo_n "(cached) " >&6
11113 lt_cv_prog_compiler_static_works=no
11114 save_LDFLAGS=$LDFLAGS
11115 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11116 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11117 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11118 # The linker can only warn and ignore the option if not recognized
11119 # So say no if there are warnings
11120 if test -s conftest.err; then
11121 # Append any errors to the config.log.
11122 cat conftest.err 1>&5
11123 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11125 if diff conftest.exp conftest.er2 >/dev/null; then
11126 lt_cv_prog_compiler_static_works=yes
11129 lt_cv_prog_compiler_static_works=yes
11133 LDFLAGS=$save_LDFLAGS
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11137 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11139 if test yes = "$lt_cv_prog_compiler_static_works"; then
11142 lt_prog_compiler_static=
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11152 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11153 if ${lt_cv_prog_compiler_c_o+:} false; then :
11154 $as_echo_n "(cached) " >&6
11156 lt_cv_prog_compiler_c_o=no
11157 $RM -r conftest 2>/dev/null
11161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11163 lt_compiler_flag="-o out/conftest2.$ac_objext"
11164 # Insert the option either (1) after the last *FLAGS variable, or
11165 # (2) before a word containing "conftest.", or (3) at the end.
11166 # Note that $ac_compile itself does not contain backslashes and begins
11167 # with a dollar sign (not a hyphen), so the echo should work correctly.
11168 lt_compile=`echo "$ac_compile" | $SED \
11169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11171 -e 's:$: $lt_compiler_flag:'`
11172 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11173 (eval "$lt_compile" 2>out/conftest.err)
11175 cat out/conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11179 # The compiler can only warn and ignore the option if not recognized
11180 # So say no if there are warnings
11181 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11182 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11183 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11184 lt_cv_prog_compiler_c_o=yes
11189 # SGI C++ compiler will create directory out/ii_files/ for
11190 # template instantiation
11191 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11192 $RM out/* && rmdir out
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11199 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11207 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11208 if ${lt_cv_prog_compiler_c_o+:} false; then :
11209 $as_echo_n "(cached) " >&6
11211 lt_cv_prog_compiler_c_o=no
11212 $RM -r conftest 2>/dev/null
11216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11218 lt_compiler_flag="-o out/conftest2.$ac_objext"
11219 # Insert the option either (1) after the last *FLAGS variable, or
11220 # (2) before a word containing "conftest.", or (3) at the end.
11221 # Note that $ac_compile itself does not contain backslashes and begins
11222 # with a dollar sign (not a hyphen), so the echo should work correctly.
11223 lt_compile=`echo "$ac_compile" | $SED \
11224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11226 -e 's:$: $lt_compiler_flag:'`
11227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11228 (eval "$lt_compile" 2>out/conftest.err)
11230 cat out/conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11234 # The compiler can only warn and ignore the option if not recognized
11235 # So say no if there are warnings
11236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11239 lt_cv_prog_compiler_c_o=yes
11244 # SGI C++ compiler will create directory out/ii_files/ for
11245 # template instantiation
11246 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11247 $RM out/* && rmdir out
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11254 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11259 hard_links=nottested
11260 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11261 # do not overwrite the value of need_locks provided by the user
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11263 $as_echo_n "checking if we can lock with hard links... " >&6; }
11266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11268 ln conftest.a conftest.b 2>&5 || hard_links=no
11269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11271 $as_echo "$hard_links" >&6; }
11272 if test no = "$hard_links"; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11274 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11287 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11290 allow_undefined_flag=
11291 always_export_symbols=no
11293 archive_expsym_cmds=
11294 compiler_needs_object=no
11295 enable_shared_with_static_runtimes=no
11296 export_dynamic_flag_spec=
11297 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11298 hardcode_automatic=no
11300 hardcode_direct_absolute=no
11301 hardcode_libdir_flag_spec=
11302 hardcode_libdir_separator=
11303 hardcode_minus_L=no
11304 hardcode_shlibpath_var=unsupported
11306 link_all_deplibs=unknown
11308 module_expsym_cmds=
11309 old_archive_from_new_cmds=
11310 old_archive_from_expsyms_cmds=
11311 thread_safe_flag_spec=
11312 whole_archive_flag_spec=
11313 # include_expsyms should be a list of space-separated symbols to be *always*
11314 # included in the symbol list
11316 # exclude_expsyms can be an extended regexp of symbols to exclude
11317 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11318 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11319 # as well as any symbol that contains 'd'.
11320 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11321 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11322 # platforms (ab)use it in PIC code, but their linkers get confused if
11323 # the symbol is explicitly referenced. Since portable code cannot
11324 # rely on this symbol name, it's probably fine to never include it in
11325 # preloaded symbol tables.
11326 # Exclude shared library initialization/finalization symbols.
11327 extract_expsyms_cmds=
11330 cygwin* | mingw* | pw32* | cegcc*)
11331 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11332 # When not using gcc, we currently assume that we are using
11333 # Microsoft Visual C++.
11334 if test yes != "$GCC"; then
11339 # we just hope/assume this is gcc and not c89 (= MSVC++)
11342 openbsd* | bitrig*)
11349 # On some targets, GNU ld is compatible enough with the native linker
11350 # that we're better off using the native interface for both.
11351 lt_use_gnu_ld_interface=no
11352 if test yes = "$with_gnu_ld"; then
11355 # The AIX port of GNU ld has always aspired to compatibility
11356 # with the native linker. However, as the warning in the GNU ld
11357 # block says, versions before 2.19.5* couldn't really create working
11358 # shared libraries, regardless of the interface used.
11359 case `$LD -v 2>&1` in
11360 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11361 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11362 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11364 lt_use_gnu_ld_interface=yes
11369 lt_use_gnu_ld_interface=yes
11374 if test yes = "$lt_use_gnu_ld_interface"; then
11375 # If archive_cmds runs LD, not CC, wlarc should be empty
11378 # Set some defaults for GNU ld with shared library support. These
11379 # are reset later if shared libraries are not supported. Putting them
11380 # here allows them to be overridden if necessary.
11381 runpath_var=LD_RUN_PATH
11382 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11383 export_dynamic_flag_spec='$wl--export-dynamic'
11384 # ancient GNU ld didn't support --whole-archive et. al.
11385 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11386 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11388 whole_archive_flag_spec=
11390 supports_anon_versioning=no
11391 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11392 *GNU\ gold*) supports_anon_versioning=yes ;;
11393 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11394 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11395 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11396 *\ 2.11.*) ;; # other 2.11 versions
11397 *) supports_anon_versioning=yes ;;
11400 # See if GNU ld supports shared libraries.
11403 # On AIX/PPC, the GNU linker is very broken
11404 if test ia64 != "$host_cpu"; then
11408 *** Warning: the GNU linker, at least up to release 2.19, is reported
11409 *** to be unable to reliably create shared libraries on AIX.
11410 *** Therefore, libtool is disabling shared libraries support. If you
11411 *** really care for shared libraries, you may want to install binutils
11412 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11413 *** You will then need to restart the configuration process.
11422 # see comment about AmigaOS4 .so support
11423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11424 archive_expsym_cmds=''
11427 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)'
11428 hardcode_libdir_flag_spec='-L$libdir'
11429 hardcode_minus_L=yes
11435 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11436 allow_undefined_flag=unsupported
11437 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11438 # support --undefined. This deserves some investigation. FIXME
11439 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11445 cygwin* | mingw* | pw32* | cegcc*)
11446 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11447 # as there is no search path for DLLs.
11448 hardcode_libdir_flag_spec='-L$libdir'
11449 export_dynamic_flag_spec='$wl--export-all-symbols'
11450 allow_undefined_flag=unsupported
11451 always_export_symbols=no
11452 enable_shared_with_static_runtimes=yes
11453 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'
11454 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11456 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11458 # If the export-symbols file already is a .def file, use it as
11459 # is; otherwise, prepend EXPORTS...
11460 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11461 cp $export_symbols $output_objdir/$soname.def;
11463 echo EXPORTS > $output_objdir/$soname.def;
11464 cat $export_symbols >> $output_objdir/$soname.def;
11466 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11474 link_all_deplibs=yes
11478 hardcode_libdir_flag_spec='-L$libdir'
11479 hardcode_minus_L=yes
11480 allow_undefined_flag=unsupported
11482 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11483 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11484 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11485 $ECHO EXPORTS >> $output_objdir/$libname.def~
11486 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11487 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11488 emximp -o $lib $output_objdir/$libname.def'
11489 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11490 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11491 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11492 $ECHO EXPORTS >> $output_objdir/$libname.def~
11493 prefix_cmds="$SED"~
11494 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11495 prefix_cmds="$prefix_cmds -e 1d";
11497 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11498 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11499 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11500 emximp -o $lib $output_objdir/$libname.def'
11501 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11502 enable_shared_with_static_runtimes=yes
11507 hardcode_shlibpath_var=no
11508 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11509 export_dynamic_flag_spec='$wl-E'
11510 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11511 # Instead, shared libraries are loaded at an image base (0x10000000 by
11512 # default) and relocated if they conflict, which is a slow very memory
11513 # consuming and fragmenting process. To avoid this, we pick a random,
11514 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11515 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11516 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11517 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'
11520 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11522 if test linux-dietlibc = "$host_os"; then
11523 case $cc_basename in
11524 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11527 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11528 && test no = "$tmp_diet"
11530 tmp_addflag=' $pic_flag'
11531 tmp_sharedflag='-shared'
11532 case $cc_basename,$host_cpu in
11533 pgcc*) # Portland Group C compiler
11534 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'
11535 tmp_addflag=' $pic_flag'
11537 pgf77* | pgf90* | pgf95* | pgfortran*)
11538 # Portland Group f77 and f90 compilers
11539 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'
11540 tmp_addflag=' $pic_flag -Mnomain' ;;
11541 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11542 tmp_addflag=' -i_dynamic' ;;
11543 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11544 tmp_addflag=' -i_dynamic -nofor_main' ;;
11545 ifc* | ifort*) # Intel Fortran compiler
11546 tmp_addflag=' -nofor_main' ;;
11547 lf95*) # Lahey Fortran 8.1
11548 whole_archive_flag_spec=
11549 tmp_sharedflag='--shared' ;;
11550 nagfor*) # NAGFOR 5.3
11551 tmp_sharedflag='-Wl,-shared' ;;
11552 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11553 tmp_sharedflag='-qmkshrobj'
11555 nvcc*) # Cuda Compiler Driver 2.2
11556 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'
11557 compiler_needs_object=yes
11560 case `$CC -V 2>&1 | sed 5q` in
11561 *Sun\ C*) # Sun C 5.9
11562 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'
11563 compiler_needs_object=yes
11564 tmp_sharedflag='-G' ;;
11565 *Sun\ F*) # Sun Fortran 8.3
11566 tmp_sharedflag='-G' ;;
11568 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11570 if test yes = "$supports_anon_versioning"; then
11571 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11572 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11573 echo "local: *; };" >> $output_objdir/$libname.ver~
11574 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11577 case $cc_basename in
11579 export_dynamic_flag_spec='-rdynamic'
11581 xlf* | bgf* | bgxlf* | mpixlf*)
11582 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11583 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11584 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11585 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11586 if test yes = "$supports_anon_versioning"; then
11587 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11588 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11589 echo "local: *; };" >> $output_objdir/$libname.ver~
11590 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11600 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11601 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11604 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11605 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11610 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11614 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11615 *** create shared libraries on Solaris systems. Therefore, libtool
11616 *** is disabling shared libraries support. We urge you to upgrade GNU
11617 *** binutils to release 2.9.1 or newer. Another option is to modify
11618 *** your PATH or compiler configuration so that the native linker is
11619 *** used, and then restart.
11622 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11623 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11624 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11631 case `$LD -v 2>&1` in
11632 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11636 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11637 *** reliably create shared libraries on SCO systems. Therefore, libtool
11638 *** is disabling shared libraries support. We urge you to upgrade GNU
11639 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11640 *** your PATH or compiler configuration so that the native linker is
11641 *** used, and then restart.
11646 # For security reasons, it is highly recommended that you always
11647 # use absolute paths for naming shared libraries, and exclude the
11648 # DT_RUNPATH tag from executables and libraries. But doing so
11649 # requires that you compile everything twice, which is a pain.
11650 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11651 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11653 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11662 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11664 hardcode_direct=yes
11665 hardcode_shlibpath_var=no
11669 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11670 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11671 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11678 if test no = "$ld_shlibs"; then
11680 hardcode_libdir_flag_spec=
11681 export_dynamic_flag_spec=
11682 whole_archive_flag_spec=
11685 # PORTME fill in a description of your system's linker (not GNU ld)
11688 allow_undefined_flag=unsupported
11689 always_export_symbols=yes
11690 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'
11691 # Note: this linker hardcodes the directories in LIBPATH if there
11692 # are no directories specified by -L.
11693 hardcode_minus_L=yes
11694 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11695 # Neither direct hardcoding nor static linking is supported with a
11697 hardcode_direct=unsupported
11702 if test ia64 = "$host_cpu"; then
11703 # On IA64, the linker does run time linking by default, so we don't
11704 # have to do anything special.
11705 aix_use_runtimelinking=no
11706 exp_sym_flag='-Bexport'
11709 # If we're using GNU nm, then we don't want the "-C" option.
11710 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11711 # Without the "-l" option, or with the "-B" option, AIX nm treats
11712 # weak defined symbols like other global defined symbols, whereas
11713 # GNU nm marks them as "W".
11714 # While the 'weak' keyword is ignored in the Export File, we need
11715 # it in the Import File for the 'aix-soname' feature, so we have
11716 # to replace the "-B" option with "-P" for AIX nm.
11717 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11718 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'
11720 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'
11722 aix_use_runtimelinking=no
11724 # Test if we are trying to use run time linking or normal
11725 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11726 # have runtime linking enabled, and use it for executables.
11727 # For shared libraries, we enable/disable runtime linking
11728 # depending on the kind of the shared library created -
11729 # when "with_aix_soname,aix_use_runtimelinking" is:
11730 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11731 # "aix,yes" lib.so shared, rtl:yes, for executables
11732 # lib.a static archive
11733 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11734 # lib.a(lib.so.V) shared, rtl:no, for executables
11735 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11736 # lib.a(lib.so.V) shared, rtl:no
11737 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11738 # lib.a static archive
11739 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11740 for ld_flag in $LDFLAGS; do
11741 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11742 aix_use_runtimelinking=yes
11746 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11747 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11748 # so we don't have lib.a shared libs to link our executables.
11749 # We have to force runtime linking in this case.
11750 aix_use_runtimelinking=yes
11751 LDFLAGS="$LDFLAGS -Wl,-brtl"
11756 exp_sym_flag='-bexport'
11757 no_entry_flag='-bnoentry'
11760 # When large executables or shared objects are built, AIX ld can
11761 # have problems creating the table of contents. If linking a library
11762 # or program results in "error TOC overflow" add -mminimal-toc to
11763 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11764 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11767 hardcode_direct=yes
11768 hardcode_direct_absolute=yes
11769 hardcode_libdir_separator=':'
11770 link_all_deplibs=yes
11771 file_list_spec='$wl-f,'
11772 case $with_aix_soname,$aix_use_runtimelinking in
11773 aix,*) ;; # traditional, no import file
11774 svr4,* | *,yes) # use import file
11775 # The Import File defines what to hardcode.
11777 hardcode_direct_absolute=no
11781 if test yes = "$GCC"; then
11782 case $host_os in aix4.[012]|aix4.[012].*)
11783 # We only want to do this on AIX 4.2 and lower, the check
11784 # below for broken collect2 doesn't work under 4.3+
11785 collect2name=`$CC -print-prog-name=collect2`
11786 if test -f "$collect2name" &&
11787 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11789 # We have reworked collect2
11792 # We have old collect2
11793 hardcode_direct=unsupported
11794 # It fails to find uninstalled libraries when the uninstalled
11795 # path is not listed in the libpath. Setting hardcode_minus_L
11796 # to unsupported forces relinking
11797 hardcode_minus_L=yes
11798 hardcode_libdir_flag_spec='-L$libdir'
11799 hardcode_libdir_separator=
11803 shared_flag='-shared'
11804 if test yes = "$aix_use_runtimelinking"; then
11805 shared_flag="$shared_flag "'$wl-G'
11807 # Need to ensure runtime linking is disabled for the traditional
11808 # shared library, or the linker may eventually find shared libraries
11809 # /with/ Import File - we do not want to mix them.
11810 shared_flag_aix='-shared'
11811 shared_flag_svr4='-shared $wl-G'
11814 if test ia64 = "$host_cpu"; then
11815 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11816 # chokes on -Wl,-G. The following line is correct:
11819 if test yes = "$aix_use_runtimelinking"; then
11820 shared_flag='$wl-G'
11822 shared_flag='$wl-bM:SRE'
11824 shared_flag_aix='$wl-bM:SRE'
11825 shared_flag_svr4='$wl-G'
11829 export_dynamic_flag_spec='$wl-bexpall'
11830 # It seems that -bexpall does not export symbols beginning with
11831 # underscore (_), so it is better to generate a list of symbols to export.
11832 always_export_symbols=yes
11833 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11834 # Warning - without using the other runtime loading flags (-brtl),
11835 # -berok will link without error, but may produce a broken library.
11836 allow_undefined_flag='-berok'
11837 # Determine the default libpath from the value encoded in an
11838 # empty executable.
11839 if test set = "${lt_cv_aix_libpath+set}"; then
11840 aix_libpath=$lt_cv_aix_libpath
11842 if ${lt_cv_aix_libpath_+:} false; then :
11843 $as_echo_n "(cached) " >&6
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11856 if ac_fn_c_try_link "$LINENO"; then :
11858 lt_aix_libpath_sed='
11859 /Import File Strings/,/^$/ {
11861 s/^0 *\([^ ]*\) *$/\1/
11865 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11866 # Check for a 64-bit object if we didn't find anything.
11867 if test -z "$lt_cv_aix_libpath_"; then
11868 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11871 rm -f core conftest.err conftest.$ac_objext \
11872 conftest$ac_exeext conftest.$ac_ext
11873 if test -z "$lt_cv_aix_libpath_"; then
11874 lt_cv_aix_libpath_=/usr/lib:/lib
11879 aix_libpath=$lt_cv_aix_libpath_
11882 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11883 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
11885 if test ia64 = "$host_cpu"; then
11886 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11887 allow_undefined_flag="-z nodefs"
11888 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"
11890 # Determine the default libpath from the value encoded in an
11891 # empty executable.
11892 if test set = "${lt_cv_aix_libpath+set}"; then
11893 aix_libpath=$lt_cv_aix_libpath
11895 if ${lt_cv_aix_libpath_+:} false; then :
11896 $as_echo_n "(cached) " >&6
11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11909 if ac_fn_c_try_link "$LINENO"; then :
11911 lt_aix_libpath_sed='
11912 /Import File Strings/,/^$/ {
11914 s/^0 *\([^ ]*\) *$/\1/
11918 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11919 # Check for a 64-bit object if we didn't find anything.
11920 if test -z "$lt_cv_aix_libpath_"; then
11921 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11924 rm -f core conftest.err conftest.$ac_objext \
11925 conftest$ac_exeext conftest.$ac_ext
11926 if test -z "$lt_cv_aix_libpath_"; then
11927 lt_cv_aix_libpath_=/usr/lib:/lib
11932 aix_libpath=$lt_cv_aix_libpath_
11935 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11936 # Warning - without using the other run time loading flags,
11937 # -berok will link without error, but may produce a broken library.
11938 no_undefined_flag=' $wl-bernotok'
11939 allow_undefined_flag=' $wl-berok'
11940 if test yes = "$with_gnu_ld"; then
11941 # We only use this code for GNU lds that support --whole-archive.
11942 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11944 # Exported symbols can be pulled into shared objects from archives
11945 whole_archive_flag_spec='$convenience'
11947 archive_cmds_need_lc=yes
11948 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11949 # -brtl affects multiple linker settings, -berok does not and is overridden later
11950 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11951 if test svr4 != "$with_aix_soname"; then
11952 # This is similar to how AIX traditionally builds its shared libraries.
11953 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'
11955 if test aix != "$with_aix_soname"; then
11956 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'
11958 # used by -dlpreopen to get the symbols
11959 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11961 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11969 # see comment about AmigaOS4 .so support
11970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11971 archive_expsym_cmds=''
11974 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)'
11975 hardcode_libdir_flag_spec='-L$libdir'
11976 hardcode_minus_L=yes
11982 export_dynamic_flag_spec=-rdynamic
11985 cygwin* | mingw* | pw32* | cegcc*)
11986 # When not using gcc, we currently assume that we are using
11987 # Microsoft Visual C++.
11988 # hardcode_libdir_flag_spec is actually meaningless, as there is
11989 # no search path for DLLs.
11990 case $cc_basename in
11993 hardcode_libdir_flag_spec=' '
11994 allow_undefined_flag=unsupported
11995 always_export_symbols=yes
11997 # Tell ltmain to make .lib files, not .a files.
11999 # Tell ltmain to make .dll files, not .so files.
12001 # FIXME: Setting linknames here is a bad hack.
12002 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12003 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12004 cp "$export_symbols" "$output_objdir/$soname.def";
12005 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12007 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12009 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12011 # The linker will not automatically build a static lib if we build a DLL.
12012 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12013 enable_shared_with_static_runtimes=yes
12014 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12015 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12017 old_postinstall_cmds='chmod 644 $oldlib'
12018 postlink_cmds='lt_outputfile="@OUTPUT@"~
12019 lt_tool_outputfile="@TOOL_OUTPUT@"~
12020 case $lt_outputfile in
12023 lt_outputfile=$lt_outputfile.exe
12024 lt_tool_outputfile=$lt_tool_outputfile.exe
12027 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12028 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12029 $RM "$lt_outputfile.manifest";
12033 # Assume MSVC wrapper
12034 hardcode_libdir_flag_spec=' '
12035 allow_undefined_flag=unsupported
12036 # Tell ltmain to make .lib files, not .a files.
12038 # Tell ltmain to make .dll files, not .so files.
12040 # FIXME: Setting linknames here is a bad hack.
12041 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12042 # The linker will automatically build a .lib file if we build a DLL.
12043 old_archive_from_new_cmds='true'
12044 # FIXME: Should let the user specify the lib program.
12045 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12046 enable_shared_with_static_runtimes=yes
12051 darwin* | rhapsody*)
12054 archive_cmds_need_lc=no
12056 hardcode_automatic=yes
12057 hardcode_shlibpath_var=unsupported
12058 if test yes = "$lt_cv_ld_force_load"; then
12059 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\"`'
12062 whole_archive_flag_spec=''
12064 link_all_deplibs=yes
12065 allow_undefined_flag=$_lt_dar_allow_undefined
12066 case $cc_basename in
12067 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12068 *) _lt_dar_can_shared=$GCC ;;
12070 if test yes = "$_lt_dar_can_shared"; then
12071 output_verbose_link_cmd=func_echo_all
12072 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12073 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12074 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"
12075 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"
12084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12085 hardcode_libdir_flag_spec='-L$libdir'
12086 hardcode_shlibpath_var=no
12089 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12090 # support. Future versions do this automatically, but an explicit c++rt0.o
12091 # does not break anything, and helps significantly (at the cost of a little
12094 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12095 hardcode_libdir_flag_spec='-R$libdir'
12096 hardcode_direct=yes
12097 hardcode_shlibpath_var=no
12100 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12102 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12103 hardcode_direct=yes
12104 hardcode_minus_L=yes
12105 hardcode_shlibpath_var=no
12108 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12109 freebsd* | dragonfly*)
12110 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12111 hardcode_libdir_flag_spec='-R$libdir'
12112 hardcode_direct=yes
12113 hardcode_shlibpath_var=no
12117 if test yes = "$GCC"; then
12118 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'
12120 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'
12122 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12123 hardcode_libdir_separator=:
12124 hardcode_direct=yes
12126 # hardcode_minus_L: Not really in the search PATH,
12127 # but as the default location of the library.
12128 hardcode_minus_L=yes
12129 export_dynamic_flag_spec='$wl-E'
12133 if test yes,no = "$GCC,$with_gnu_ld"; then
12134 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12136 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12138 if test no = "$with_gnu_ld"; then
12139 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12140 hardcode_libdir_separator=:
12141 hardcode_direct=yes
12142 hardcode_direct_absolute=yes
12143 export_dynamic_flag_spec='$wl-E'
12144 # hardcode_minus_L: Not really in the search PATH,
12145 # but as the default location of the library.
12146 hardcode_minus_L=yes
12151 if test yes,no = "$GCC,$with_gnu_ld"; then
12154 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12157 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12160 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12166 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12169 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12173 # Older versions of the 11.00 compiler do not understand -b yet
12174 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12176 $as_echo_n "checking if $CC understands -b... " >&6; }
12177 if ${lt_cv_prog_compiler__b+:} false; then :
12178 $as_echo_n "(cached) " >&6
12180 lt_cv_prog_compiler__b=no
12181 save_LDFLAGS=$LDFLAGS
12182 LDFLAGS="$LDFLAGS -b"
12183 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12184 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12185 # The linker can only warn and ignore the option if not recognized
12186 # So say no if there are warnings
12187 if test -s conftest.err; then
12188 # Append any errors to the config.log.
12189 cat conftest.err 1>&5
12190 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12192 if diff conftest.exp conftest.er2 >/dev/null; then
12193 lt_cv_prog_compiler__b=yes
12196 lt_cv_prog_compiler__b=yes
12200 LDFLAGS=$save_LDFLAGS
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12204 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12206 if test yes = "$lt_cv_prog_compiler__b"; then
12207 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12209 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12215 if test no = "$with_gnu_ld"; then
12216 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12217 hardcode_libdir_separator=:
12222 hardcode_shlibpath_var=no
12225 hardcode_direct=yes
12226 hardcode_direct_absolute=yes
12227 export_dynamic_flag_spec='$wl-E'
12229 # hardcode_minus_L: Not really in the search PATH,
12230 # but as the default location of the library.
12231 hardcode_minus_L=yes
12237 irix5* | irix6* | nonstopux*)
12238 if test yes = "$GCC"; then
12239 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'
12240 # Try to use the -exported_symbol ld option, if it does not
12241 # work, assume that -exports_file does not work either and
12242 # implicitly export all symbols.
12243 # This should be the same for all languages, so no per-tag cache variable.
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12245 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12246 if ${lt_cv_irix_exported_symbol+:} false; then :
12247 $as_echo_n "(cached) " >&6
12249 save_LDFLAGS=$LDFLAGS
12250 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12253 int foo (void) { return 0; }
12255 if ac_fn_c_try_link "$LINENO"; then :
12256 lt_cv_irix_exported_symbol=yes
12258 lt_cv_irix_exported_symbol=no
12260 rm -f core conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
12262 LDFLAGS=$save_LDFLAGS
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12265 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12266 if test yes = "$lt_cv_irix_exported_symbol"; then
12267 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'
12270 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'
12271 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'
12273 archive_cmds_need_lc='no'
12274 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12275 hardcode_libdir_separator=:
12277 link_all_deplibs=yes
12281 case $cc_basename in
12283 # Fabrice Bellard et al's Tiny C Compiler
12285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12291 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12294 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12296 hardcode_libdir_flag_spec='-R$libdir'
12297 hardcode_direct=yes
12298 hardcode_shlibpath_var=no
12302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12303 hardcode_direct=yes
12304 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12305 hardcode_libdir_separator=:
12306 hardcode_shlibpath_var=no
12312 openbsd* | bitrig*)
12313 if test -f /usr/libexec/ld.so; then
12314 hardcode_direct=yes
12315 hardcode_shlibpath_var=no
12316 hardcode_direct_absolute=yes
12317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12319 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12320 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12321 export_dynamic_flag_spec='$wl-E'
12323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12324 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12332 hardcode_libdir_flag_spec='-L$libdir'
12333 hardcode_minus_L=yes
12334 allow_undefined_flag=unsupported
12336 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12337 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12338 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12339 $ECHO EXPORTS >> $output_objdir/$libname.def~
12340 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12341 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12342 emximp -o $lib $output_objdir/$libname.def'
12343 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12344 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12345 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12346 $ECHO EXPORTS >> $output_objdir/$libname.def~
12347 prefix_cmds="$SED"~
12348 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12349 prefix_cmds="$prefix_cmds -e 1d";
12351 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12352 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12353 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12354 emximp -o $lib $output_objdir/$libname.def'
12355 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12356 enable_shared_with_static_runtimes=yes
12360 if test yes = "$GCC"; then
12361 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12362 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'
12364 allow_undefined_flag=' -expect_unresolved \*'
12365 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'
12367 archive_cmds_need_lc='no'
12368 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12369 hardcode_libdir_separator=:
12372 osf4* | osf5*) # as osf3* with the addition of -msym flag
12373 if test yes = "$GCC"; then
12374 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12375 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'
12376 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12378 allow_undefined_flag=' -expect_unresolved \*'
12379 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'
12380 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~
12381 $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'
12383 # Both c and cxx compiler support -rpath directly
12384 hardcode_libdir_flag_spec='-rpath $libdir'
12386 archive_cmds_need_lc='no'
12387 hardcode_libdir_separator=:
12391 no_undefined_flag=' -z defs'
12392 if test yes = "$GCC"; then
12394 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12396 $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'
12398 case `$CC -V 2>&1` in
12401 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12402 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12403 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12407 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12408 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12409 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12413 hardcode_libdir_flag_spec='-R$libdir'
12414 hardcode_shlibpath_var=no
12416 solaris2.[0-5] | solaris2.[0-5].*) ;;
12418 # The compiler driver will combine and reorder linker options,
12419 # but understands '-z linker_flag'. GCC discards it without '$wl',
12420 # but is careful enough not to reorder.
12421 # Supported since Solaris 2.6 (maybe 2.5.1?)
12422 if test yes = "$GCC"; then
12423 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12425 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12429 link_all_deplibs=yes
12433 if test sequent = "$host_vendor"; then
12434 # Use $CC to link under sequent, because it throws in some extra .o
12435 # files that make .init and .fini sections work.
12436 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12438 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12440 hardcode_libdir_flag_spec='-L$libdir'
12441 hardcode_direct=yes
12442 hardcode_minus_L=yes
12443 hardcode_shlibpath_var=no
12447 case $host_vendor in
12449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12450 hardcode_direct=yes # is this really true???
12453 ## LD is ld it makes a PLAMLIB
12454 ## CC just makes a GrossModule.
12455 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12456 reload_cmds='$CC -r -o $output$reload_objs'
12460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12461 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12464 runpath_var='LD_RUN_PATH'
12465 hardcode_shlibpath_var=no
12469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12470 hardcode_shlibpath_var=no
12471 export_dynamic_flag_spec='-Bexport'
12475 if test -d /usr/nec; then
12476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12477 hardcode_shlibpath_var=no
12478 runpath_var=LD_RUN_PATH
12479 hardcode_runpath_var=yes
12484 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12485 no_undefined_flag='$wl-z,text'
12486 archive_cmds_need_lc=no
12487 hardcode_shlibpath_var=no
12488 runpath_var='LD_RUN_PATH'
12490 if test yes = "$GCC"; then
12491 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12492 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12494 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12495 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12499 sysv5* | sco3.2v5* | sco5v6*)
12500 # Note: We CANNOT use -z defs as we might desire, because we do not
12501 # link with -lc, and that would cause any symbols used from libc to
12502 # always be unresolved, which means just about no library would
12503 # ever link correctly. If we're not using GNU ld we use -z text
12504 # though, which does catch some bad symbols but isn't as heavy-handed
12506 no_undefined_flag='$wl-z,text'
12507 allow_undefined_flag='$wl-z,nodefs'
12508 archive_cmds_need_lc=no
12509 hardcode_shlibpath_var=no
12510 hardcode_libdir_flag_spec='$wl-R,$libdir'
12511 hardcode_libdir_separator=':'
12512 link_all_deplibs=yes
12513 export_dynamic_flag_spec='$wl-Bexport'
12514 runpath_var='LD_RUN_PATH'
12516 if test yes = "$GCC"; then
12517 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12518 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12520 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12521 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12527 hardcode_libdir_flag_spec='-L$libdir'
12528 hardcode_shlibpath_var=no
12536 if test sni = "$host_vendor"; then
12538 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12539 export_dynamic_flag_spec='$wl-Blargedynsym'
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12546 $as_echo "$ld_shlibs" >&6; }
12547 test no = "$ld_shlibs" && can_build_shared=no
12549 with_gnu_ld=$with_gnu_ld
12566 # Do we need to explicitly link libc?
12568 case "x$archive_cmds_need_lc" in
12570 # Assume -lc should be added
12571 archive_cmds_need_lc=yes
12573 if test yes,yes = "$GCC,$enable_shared"; then
12574 case $archive_cmds in
12576 # FIXME: we may have to deal with multi-command sequences.
12579 # Test whether the compiler implicitly links with -lc since on some
12580 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12581 # to ld, don't add -lc before -lgcc.
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12583 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12584 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12585 $as_echo_n "(cached) " >&6
12588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12591 (eval $ac_compile) 2>&5
12593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12594 test $ac_status = 0; } 2>conftest.err; then
12597 libobjs=conftest.$ac_objext
12599 wl=$lt_prog_compiler_wl
12600 pic_flag=$lt_prog_compiler_pic
12606 lt_save_allow_undefined_flag=$allow_undefined_flag
12607 allow_undefined_flag=
12608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12609 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12612 test $ac_status = 0; }
12614 lt_cv_archive_cmds_need_lc=no
12616 lt_cv_archive_cmds_need_lc=yes
12618 allow_undefined_flag=$lt_save_allow_undefined_flag
12620 cat conftest.err 1>&5
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12626 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12627 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12786 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12788 if test yes = "$GCC"; then
12790 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12791 *) lt_awk_arg='/^libraries:/' ;;
12794 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12795 *) lt_sed_strip_eq='s|=/|/|g' ;;
12797 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12798 case $lt_search_path_spec in
12800 # if the path contains ";" then we assume it to be the separator
12801 # otherwise default to the standard path separator (i.e. ":") - it is
12802 # assumed that no part of a normal pathname contains ";" but that should
12803 # okay in the real world where ";" in dirpaths is itself problematic.
12804 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12807 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12810 # Ok, now we have the path, separated by spaces, we can step through it
12811 # and add multilib dir if necessary...
12812 lt_tmp_lt_search_path_spec=
12813 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12814 # ...but if some path component already ends with the multilib dir we assume
12815 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12816 case "$lt_multi_os_dir; $lt_search_path_spec " in
12817 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12821 for lt_sys_path in $lt_search_path_spec; do
12822 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12823 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12824 elif test -n "$lt_multi_os_dir"; then
12825 test -d "$lt_sys_path" && \
12826 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12829 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12830 BEGIN {RS = " "; FS = "/|\n";} {
12833 for (lt_i = NF; lt_i > 0; lt_i--) {
12834 if ($lt_i != "" && $lt_i != ".") {
12835 if ($lt_i == "..") {
12838 if (lt_count == 0) {
12839 lt_foo = "/" $lt_i lt_foo;
12846 if (lt_foo != "") { lt_freq[lt_foo]++; }
12847 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12849 # AWK program above erroneously prepends '/' to C:/dos/paths
12852 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12853 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12855 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12857 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12859 library_names_spec=
12860 libname_spec='lib$name'
12864 postuninstall_cmds=
12868 shlibpath_overrides_runpath=unknown
12870 dynamic_linker="$host_os ld.so"
12871 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12872 need_lib_prefix=unknown
12873 hardcode_into_libs=no
12875 # when you set need_version to no, make sure it does not cause -set_version
12876 # flags to be left without arguments
12877 need_version=unknown
12883 version_type=linux # correct to gnu/linux during the next big refactor
12884 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12885 shlibpath_var=LIBPATH
12887 # AIX 3 has no versioning support, so we append a major version to the name.
12888 soname_spec='$libname$release$shared_ext$major'
12892 version_type=linux # correct to gnu/linux during the next big refactor
12895 hardcode_into_libs=yes
12896 if test ia64 = "$host_cpu"; then
12897 # AIX 5 supports IA64
12898 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12899 shlibpath_var=LD_LIBRARY_PATH
12901 # With GCC up to 2.95.x, collect2 would create an import file
12902 # for dependence libraries. The import file would start with
12903 # the line '#! .'. This would cause the generated library to
12904 # depend on '.', always an invalid library. This was fixed in
12905 # development snapshots of GCC prior to 3.0.
12907 aix4 | aix4.[01] | aix4.[01].*)
12908 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12910 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12913 can_build_shared=no
12917 # Using Import Files as archive members, it is possible to support
12918 # filename-based versioning of shared library archives on AIX. While
12919 # this would work for both with and without runtime linking, it will
12920 # prevent static linking of such archives. So we do filename-based
12921 # shared library versioning with .so extension only, which is used
12922 # when both runtime linking and shared linking is enabled.
12923 # Unfortunately, runtime linking may impact performance, so we do
12924 # not want this to be the default eventually. Also, we use the
12925 # versioned .so libs for executables only if there is the -brtl
12926 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12927 # To allow for filename-based versioning support, we need to create
12928 # libNAME.so.V as an archive file, containing:
12929 # *) an Import File, referring to the versioned filename of the
12930 # archive as well as the shared archive member, telling the
12931 # bitwidth (32 or 64) of that shared object, and providing the
12932 # list of exported symbols of that shared object, eventually
12933 # decorated with the 'weak' keyword
12934 # *) the shared object with the F_LOADONLY flag set, to really avoid
12935 # it being seen by the linker.
12936 # At run time we better use the real file rather than another symlink,
12937 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12939 case $with_aix_soname,$aix_use_runtimelinking in
12940 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12941 # soname into executable. Probably we can add versioning support to
12942 # collect2, so additional links can be useful in future.
12943 aix,yes) # traditional libtool
12944 dynamic_linker='AIX unversionable lib.so'
12945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12946 # instead of lib<name>.a to let people know that these are not
12947 # typical AIX shared libraries.
12948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12950 aix,no) # traditional AIX only
12951 dynamic_linker='AIX lib.a(lib.so.V)'
12952 # We preserve .a as extension for shared libraries through AIX4.2
12953 # and later when we are not doing run time linking.
12954 library_names_spec='$libname$release.a $libname.a'
12955 soname_spec='$libname$release$shared_ext$major'
12957 svr4,*) # full svr4 only
12958 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12959 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12960 # We do not specify a path in Import Files, so LIBPATH fires.
12961 shlibpath_overrides_runpath=yes
12963 *,yes) # both, prefer svr4
12964 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12965 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12966 # unpreferred sharedlib libNAME.a needs extra handling
12967 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"'
12968 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"'
12969 # We do not specify a path in Import Files, so LIBPATH fires.
12970 shlibpath_overrides_runpath=yes
12972 *,no) # both, prefer aix
12973 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12974 library_names_spec='$libname$release.a $libname.a'
12975 soname_spec='$libname$release$shared_ext$major'
12976 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12977 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)'
12978 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"'
12981 shlibpath_var=LIBPATH
12988 # Since July 2007 AmigaOS4 officially supports .so libraries.
12989 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12993 library_names_spec='$libname.ixlibrary $libname.a'
12994 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12995 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'
13001 library_names_spec='$libname$shared_ext'
13002 dynamic_linker="$host_os ld.so"
13003 shlibpath_var=LIBRARY_PATH
13007 version_type=linux # correct to gnu/linux during the next big refactor
13009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13010 soname_spec='$libname$release$shared_ext$major'
13011 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13012 shlibpath_var=LD_LIBRARY_PATH
13013 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13014 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13015 # the default ld.so.conf also contains /usr/contrib/lib and
13016 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13017 # libtool to hard-code these into programs
13020 cygwin* | mingw* | pw32* | cegcc*)
13021 version_type=windows
13026 case $GCC,$cc_basename in
13029 library_names_spec='$libname.dll.a'
13030 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13031 postinstall_cmds='base_file=`basename \$file`~
13032 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13033 dldir=$destdir/`dirname \$dlpath`~
13034 test -d \$dldir || mkdir -p \$dldir~
13035 $install_prog $dir/$dlname \$dldir/$dlname~
13036 chmod a+x \$dldir/$dlname~
13037 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13038 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13040 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13041 dlpath=$dir/\$dldll~
13043 shlibpath_overrides_runpath=yes
13047 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13048 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13050 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13053 # MinGW DLLs use traditional 'lib' prefix
13054 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13057 # pw32 DLLs use 'pw' prefix rather than 'lib'
13058 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13061 dynamic_linker='Win32 ld.exe'
13066 libname_spec='$name'
13067 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13068 library_names_spec='$libname.dll.lib'
13072 sys_lib_search_path_spec=
13075 for lt_path in $LIB
13078 # Let DOS variable expansion print the short 8.3 style file name.
13079 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13080 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13083 # Convert to MSYS style.
13084 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13087 # Convert to unix form, then to dos form, then back to unix form
13088 # but this time dos style (no spaces!) so that the unix form looks
13089 # like /cygdrive/c/PROGRA~1:/cygdr...
13090 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13091 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13092 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13095 sys_lib_search_path_spec=$LIB
13096 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13097 # It is most probably a Windows format PATH.
13098 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13100 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13102 # FIXME: find the short name or the path components, as spaces are
13103 # common. (e.g. "Program Files" -> "PROGRA~1")
13107 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13108 postinstall_cmds='base_file=`basename \$file`~
13109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13110 dldir=$destdir/`dirname \$dlpath`~
13111 test -d \$dldir || mkdir -p \$dldir~
13112 $install_prog $dir/$dlname \$dldir/$dlname'
13113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13114 dlpath=$dir/\$dldll~
13116 shlibpath_overrides_runpath=yes
13117 dynamic_linker='Win32 link.exe'
13121 # Assume MSVC wrapper
13122 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13123 dynamic_linker='Win32 ld.exe'
13126 # FIXME: first we should search . and the directory the executable is in
13130 darwin* | rhapsody*)
13131 dynamic_linker="$host_os dyld"
13132 version_type=darwin
13135 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13136 soname_spec='$libname$release$major$shared_ext'
13137 shlibpath_overrides_runpath=yes
13138 shlibpath_var=DYLD_LIBRARY_PATH
13139 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13141 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13142 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13146 version_type=linux # correct to gnu/linux during the next big refactor
13149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13150 soname_spec='$libname$release$shared_ext$major'
13151 shlibpath_var=LD_LIBRARY_PATH
13154 freebsd* | dragonfly*)
13155 # DragonFly does not have aout. When/if they implement a new
13156 # versioning mechanism, adjust this.
13157 if test -x /usr/bin/objformat; then
13158 objformat=`/usr/bin/objformat`
13161 freebsd[23].*) objformat=aout ;;
13162 *) objformat=elf ;;
13165 version_type=freebsd-$objformat
13166 case $version_type in
13168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13169 soname_spec='$libname$release$shared_ext$major'
13174 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13178 shlibpath_var=LD_LIBRARY_PATH
13181 shlibpath_overrides_runpath=yes
13183 freebsd3.[01]* | freebsdelf3.[01]*)
13184 shlibpath_overrides_runpath=yes
13185 hardcode_into_libs=yes
13187 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13188 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13189 shlibpath_overrides_runpath=no
13190 hardcode_into_libs=yes
13192 *) # from 4.6 on, and DragonFly
13193 shlibpath_overrides_runpath=yes
13194 hardcode_into_libs=yes
13200 version_type=linux # correct to gnu/linux during the next big refactor
13203 dynamic_linker="$host_os runtime_loader"
13204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13205 soname_spec='$libname$release$shared_ext$major'
13206 shlibpath_var=LIBRARY_PATH
13207 shlibpath_overrides_runpath=no
13208 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13209 hardcode_into_libs=yes
13212 hpux9* | hpux10* | hpux11*)
13213 # Give a soname corresponding to the major version so that dld.sl refuses to
13214 # link against other versions.
13221 hardcode_into_libs=yes
13222 dynamic_linker="$host_os dld.so"
13223 shlibpath_var=LD_LIBRARY_PATH
13224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13226 soname_spec='$libname$release$shared_ext$major'
13227 if test 32 = "$HPUX_IA64_MODE"; then
13228 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13229 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13231 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13232 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13237 hardcode_into_libs=yes
13238 dynamic_linker="$host_os dld.sl"
13239 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13242 soname_spec='$libname$release$shared_ext$major'
13243 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13244 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13248 dynamic_linker="$host_os dld.sl"
13249 shlibpath_var=SHLIB_PATH
13250 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13252 soname_spec='$libname$release$shared_ext$major'
13255 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13256 postinstall_cmds='chmod 555 $lib'
13257 # or fails outright, so override atomically:
13258 install_override_mode=555
13262 version_type=linux # correct to gnu/linux during the next big refactor
13265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13266 soname_spec='$libname$release$shared_ext$major'
13267 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13268 shlibpath_var=LD_LIBRARY_PATH
13269 shlibpath_overrides_runpath=no
13270 hardcode_into_libs=yes
13273 irix5* | irix6* | nonstopux*)
13275 nonstopux*) version_type=nonstopux ;;
13277 if test yes = "$lt_cv_prog_gnu_ld"; then
13278 version_type=linux # correct to gnu/linux during the next big refactor
13285 soname_spec='$libname$release$shared_ext$major'
13286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13288 irix5* | nonstopux*)
13289 libsuff= shlibsuff=
13292 case $LD in # libtool.m4 will add one of these switches to LD
13293 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13294 libsuff= shlibsuff= libmagic=32-bit;;
13295 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13296 libsuff=32 shlibsuff=N32 libmagic=N32;;
13297 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13298 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13299 *) libsuff= shlibsuff= libmagic=never-match;;
13303 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13304 shlibpath_overrides_runpath=no
13305 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13306 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13307 hardcode_into_libs=yes
13310 # No shared lib support for Linux oldld, aout, or coff.
13311 linux*oldld* | linux*aout* | linux*coff*)
13316 version_type=none # Android doesn't support versioned libraries.
13319 library_names_spec='$libname$release$shared_ext'
13320 soname_spec='$libname$release$shared_ext'
13322 shlibpath_var=LD_LIBRARY_PATH
13323 shlibpath_overrides_runpath=yes
13325 # This implies no fast_install, which is unacceptable.
13326 # Some rework will be needed to allow for fast_install
13327 # before this can be enabled.
13328 hardcode_into_libs=yes
13330 dynamic_linker='Android linker'
13331 # Don't embed -rpath directories since the linker doesn't support them.
13332 hardcode_libdir_flag_spec='-L$libdir'
13335 # This must be glibc/ELF.
13336 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13337 version_type=linux # correct to gnu/linux during the next big refactor
13340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13341 soname_spec='$libname$release$shared_ext$major'
13342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13343 shlibpath_var=LD_LIBRARY_PATH
13344 shlibpath_overrides_runpath=no
13346 # Some binutils ld are patched to set DT_RUNPATH
13347 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13348 $as_echo_n "(cached) " >&6
13350 lt_cv_shlibpath_overrides_runpath=no
13351 save_LDFLAGS=$LDFLAGS
13352 save_libdir=$libdir
13353 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13354 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13366 if ac_fn_c_try_link "$LINENO"; then :
13367 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13368 lt_cv_shlibpath_overrides_runpath=yes
13371 rm -f core conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13373 LDFLAGS=$save_LDFLAGS
13374 libdir=$save_libdir
13378 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13380 # This implies no fast_install, which is unacceptable.
13381 # Some rework will be needed to allow for fast_install
13382 # before this can be enabled.
13383 hardcode_into_libs=yes
13385 # Add ABI-specific directories to the system library path.
13386 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13388 # Ideally, we could use ldconfig to report *all* directores which are
13389 # searched for libraries, however this is still not possible. Aside from not
13390 # being certain /sbin/ldconfig is available, command
13391 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13392 # even though it is searched at run-time. Try to do the best guess by
13393 # appending ld.so.conf contents (and includes) to the search path.
13394 if test -f /etc/ld.so.conf; then
13395 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' ' '`
13396 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13399 # We used to test for /lib/ld.so.1 and disable shared libraries on
13400 # powerpc, because MkLinux only supported shared libraries with the
13401 # GNU dynamic linker. Since this was broken with cross compilers,
13402 # most powerpc-linux boxes support dynamic linking these days and
13403 # people can always --disable-shared, the test was removed, and we
13404 # assume the GNU/Linux dynamic linker is in use.
13405 dynamic_linker='GNU/Linux ld.so'
13412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13413 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13415 dynamic_linker='NetBSD (a.out) ld.so'
13417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13418 soname_spec='$libname$release$shared_ext$major'
13419 dynamic_linker='NetBSD ld.elf_so'
13421 shlibpath_var=LD_LIBRARY_PATH
13422 shlibpath_overrides_runpath=yes
13423 hardcode_into_libs=yes
13427 version_type=linux # correct to gnu/linux during the next big refactor
13428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13429 shlibpath_var=LD_LIBRARY_PATH
13430 shlibpath_overrides_runpath=yes
13437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13438 soname_spec='$libname$release$shared_ext$major'
13439 shlibpath_var=LD_LIBRARY_PATH
13440 shlibpath_overrides_runpath=no
13441 hardcode_into_libs=yes
13442 dynamic_linker='ldqnx.so'
13445 openbsd* | bitrig*)
13447 sys_lib_dlsearch_path_spec=/usr/lib
13449 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13454 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13456 shlibpath_var=LD_LIBRARY_PATH
13457 shlibpath_overrides_runpath=yes
13461 libname_spec='$name'
13462 version_type=windows
13466 # OS/2 can only load a DLL with a base name of 8 characters or less.
13467 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13468 v=$($ECHO $release$versuffix | tr -d .-);
13469 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13470 $ECHO $n$v`$shared_ext'
13471 library_names_spec='${libname}_dll.$libext'
13472 dynamic_linker='OS/2 ld.exe'
13473 shlibpath_var=BEGINLIBPATH
13474 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13476 postinstall_cmds='base_file=`basename \$file`~
13477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13478 dldir=$destdir/`dirname \$dlpath`~
13479 test -d \$dldir || mkdir -p \$dldir~
13480 $install_prog $dir/$dlname \$dldir/$dlname~
13481 chmod a+x \$dldir/$dlname~
13482 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13483 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13486 dlpath=$dir/\$dldll~
13490 osf3* | osf4* | osf5*)
13494 soname_spec='$libname$release$shared_ext$major'
13495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13496 shlibpath_var=LD_LIBRARY_PATH
13497 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13506 version_type=linux # correct to gnu/linux during the next big refactor
13509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13510 soname_spec='$libname$release$shared_ext$major'
13511 shlibpath_var=LD_LIBRARY_PATH
13512 shlibpath_overrides_runpath=yes
13513 hardcode_into_libs=yes
13514 # ldd complains unless libraries are executable
13515 postinstall_cmds='chmod +x $lib'
13520 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13521 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13522 shlibpath_var=LD_LIBRARY_PATH
13523 shlibpath_overrides_runpath=yes
13524 if test yes = "$with_gnu_ld"; then
13531 version_type=linux # correct to gnu/linux during the next big refactor
13532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13533 soname_spec='$libname$release$shared_ext$major'
13534 shlibpath_var=LD_LIBRARY_PATH
13535 case $host_vendor in
13537 shlibpath_overrides_runpath=no
13539 runpath_var=LD_RUN_PATH
13547 shlibpath_overrides_runpath=no
13548 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13554 if test -d /usr/nec; then
13555 version_type=linux # correct to gnu/linux during the next big refactor
13556 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13557 soname_spec='$libname$shared_ext.$major'
13558 shlibpath_var=LD_LIBRARY_PATH
13562 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13567 soname_spec='$libname$release$shared_ext$major'
13568 shlibpath_var=LD_LIBRARY_PATH
13569 shlibpath_overrides_runpath=yes
13570 hardcode_into_libs=yes
13571 if test yes = "$with_gnu_ld"; then
13572 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13574 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13577 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13581 sys_lib_dlsearch_path_spec='/usr/lib'
13585 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13586 version_type=linux # correct to gnu/linux during the next big refactor
13589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13590 shlibpath_var=LD_LIBRARY_PATH
13591 shlibpath_overrides_runpath=no
13592 hardcode_into_libs=yes
13596 version_type=linux # correct to gnu/linux during the next big refactor
13597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13598 soname_spec='$libname$release$shared_ext$major'
13599 shlibpath_var=LD_LIBRARY_PATH
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13607 $as_echo "$dynamic_linker" >&6; }
13608 test no = "$dynamic_linker" && can_build_shared=no
13610 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13611 if test yes = "$GCC"; then
13612 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13615 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13616 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13619 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13620 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13623 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13624 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13626 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13627 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13629 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13630 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13729 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13731 if test -n "$hardcode_libdir_flag_spec" ||
13732 test -n "$runpath_var" ||
13733 test yes = "$hardcode_automatic"; then
13735 # We can hardcode non-existent directories.
13736 if test no != "$hardcode_direct" &&
13737 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13738 # have to relink, otherwise we might link with an installed library
13739 # when we should be linking with a yet-to-be-installed one
13740 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13741 test no != "$hardcode_minus_L"; then
13742 # Linking always hardcodes the temporary library directory.
13743 hardcode_action=relink
13745 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13746 hardcode_action=immediate
13749 # We cannot hardcode anything, or else we can only hardcode existing
13751 hardcode_action=unsupported
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13754 $as_echo "$hardcode_action" >&6; }
13756 if test relink = "$hardcode_action" ||
13757 test yes = "$inherit_rpath"; then
13758 # Fast installation is not supported
13759 enable_fast_install=no
13760 elif test yes = "$shlibpath_overrides_runpath" ||
13761 test no = "$enable_shared"; then
13762 # Fast installation is not necessary
13763 enable_fast_install=needless
13771 if test yes != "$enable_dlopen"; then
13772 enable_dlopen=unknown
13773 enable_dlopen_self=unknown
13774 enable_dlopen_self_static=unknown
13781 lt_cv_dlopen=load_add_on
13783 lt_cv_dlopen_self=yes
13786 mingw* | pw32* | cegcc*)
13787 lt_cv_dlopen=LoadLibrary
13792 lt_cv_dlopen=dlopen
13797 # if libdl is installed we need to link against it
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13799 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13800 if ${ac_cv_lib_dl_dlopen+:} false; then :
13801 $as_echo_n "(cached) " >&6
13803 ac_check_lib_save_LIBS=$LIBS
13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h. */
13808 /* Override any GCC internal prototype to avoid an error.
13809 Use char because int might match the return type of a GCC
13810 builtin and then its argument prototype would still apply. */
13823 if ac_fn_c_try_link "$LINENO"; then :
13824 ac_cv_lib_dl_dlopen=yes
13826 ac_cv_lib_dl_dlopen=no
13828 rm -f core conftest.err conftest.$ac_objext \
13829 conftest$ac_exeext conftest.$ac_ext
13830 LIBS=$ac_check_lib_save_LIBS
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13833 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13834 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13835 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13840 lt_cv_dlopen_self=yes
13847 # Don't try to run any link tests for TPF. We know it's impossible
13848 # because TPF is a cross-compiler, and we know how we open DSOs.
13849 lt_cv_dlopen=dlopen
13851 lt_cv_dlopen_self=no
13855 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13856 if test "x$ac_cv_func_shl_load" = xyes; then :
13857 lt_cv_dlopen=shl_load
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13860 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13861 if ${ac_cv_lib_dld_shl_load+:} false; then :
13862 $as_echo_n "(cached) " >&6
13864 ac_check_lib_save_LIBS=$LIBS
13866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867 /* end confdefs.h. */
13869 /* Override any GCC internal prototype to avoid an error.
13870 Use char because int might match the return type of a GCC
13871 builtin and then its argument prototype would still apply. */
13879 return shl_load ();
13884 if ac_fn_c_try_link "$LINENO"; then :
13885 ac_cv_lib_dld_shl_load=yes
13887 ac_cv_lib_dld_shl_load=no
13889 rm -f core conftest.err conftest.$ac_objext \
13890 conftest$ac_exeext conftest.$ac_ext
13891 LIBS=$ac_check_lib_save_LIBS
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13894 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13895 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13896 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13898 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13899 if test "x$ac_cv_func_dlopen" = xyes; then :
13900 lt_cv_dlopen=dlopen
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13903 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13904 if ${ac_cv_lib_dl_dlopen+:} false; then :
13905 $as_echo_n "(cached) " >&6
13907 ac_check_lib_save_LIBS=$LIBS
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13912 /* Override any GCC internal prototype to avoid an error.
13913 Use char because int might match the return type of a GCC
13914 builtin and then its argument prototype would still apply. */
13927 if ac_fn_c_try_link "$LINENO"; then :
13928 ac_cv_lib_dl_dlopen=yes
13930 ac_cv_lib_dl_dlopen=no
13932 rm -f core conftest.err conftest.$ac_objext \
13933 conftest$ac_exeext conftest.$ac_ext
13934 LIBS=$ac_check_lib_save_LIBS
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13937 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13938 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13939 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13942 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13943 if ${ac_cv_lib_svld_dlopen+:} false; then :
13944 $as_echo_n "(cached) " >&6
13946 ac_check_lib_save_LIBS=$LIBS
13947 LIBS="-lsvld $LIBS"
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13951 /* Override any GCC internal prototype to avoid an error.
13952 Use char because int might match the return type of a GCC
13953 builtin and then its argument prototype would still apply. */
13966 if ac_fn_c_try_link "$LINENO"; then :
13967 ac_cv_lib_svld_dlopen=yes
13969 ac_cv_lib_svld_dlopen=no
13971 rm -f core conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
13973 LIBS=$ac_check_lib_save_LIBS
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13976 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13977 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13978 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13981 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13982 if ${ac_cv_lib_dld_dld_link+:} false; then :
13983 $as_echo_n "(cached) " >&6
13985 ac_check_lib_save_LIBS=$LIBS
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13990 /* Override any GCC internal prototype to avoid an error.
13991 Use char because int might match the return type of a GCC
13992 builtin and then its argument prototype would still apply. */
14000 return dld_link ();
14005 if ac_fn_c_try_link "$LINENO"; then :
14006 ac_cv_lib_dld_dld_link=yes
14008 ac_cv_lib_dld_dld_link=no
14010 rm -f core conftest.err conftest.$ac_objext \
14011 conftest$ac_exeext conftest.$ac_ext
14012 LIBS=$ac_check_lib_save_LIBS
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14015 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14016 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14017 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14038 if test no = "$lt_cv_dlopen"; then
14044 case $lt_cv_dlopen in
14046 save_CPPFLAGS=$CPPFLAGS
14047 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14049 save_LDFLAGS=$LDFLAGS
14050 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14053 LIBS="$lt_cv_dlopen_libs $LIBS"
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14056 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14057 if ${lt_cv_dlopen_self+:} false; then :
14058 $as_echo_n "(cached) " >&6
14060 if test yes = "$cross_compiling"; then :
14061 lt_cv_dlopen_self=cross
14063 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14064 lt_status=$lt_dlunknown
14065 cat > conftest.$ac_ext <<_LT_EOF
14066 #line $LINENO "configure"
14067 #include "confdefs.h"
14076 # define LT_DLGLOBAL RTLD_GLOBAL
14079 # define LT_DLGLOBAL DL_GLOBAL
14081 # define LT_DLGLOBAL 0
14085 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14086 find out it does not work in some platform. */
14087 #ifndef LT_DLLAZY_OR_NOW
14089 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14092 # define LT_DLLAZY_OR_NOW DL_LAZY
14095 # define LT_DLLAZY_OR_NOW RTLD_NOW
14098 # define LT_DLLAZY_OR_NOW DL_NOW
14100 # define LT_DLLAZY_OR_NOW 0
14107 /* When -fvisibility=hidden is used, assume the code has been annotated
14108 correspondingly for the symbols needed. */
14109 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14110 int fnord () __attribute__((visibility("default")));
14113 int fnord () { return 42; }
14116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14117 int status = $lt_dlunknown;
14121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14124 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14125 else puts (dlerror ());
14127 /* dlclose (self); */
14135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14136 (eval $ac_link) 2>&5
14138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14139 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14140 (./conftest; exit; ) >&5 2>/dev/null
14142 case x$lt_status in
14143 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14144 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14145 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14148 # compilation failed
14149 lt_cv_dlopen_self=no
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14157 $as_echo "$lt_cv_dlopen_self" >&6; }
14159 if test yes = "$lt_cv_dlopen_self"; then
14160 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14162 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14163 if ${lt_cv_dlopen_self_static+:} false; then :
14164 $as_echo_n "(cached) " >&6
14166 if test yes = "$cross_compiling"; then :
14167 lt_cv_dlopen_self_static=cross
14169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14170 lt_status=$lt_dlunknown
14171 cat > conftest.$ac_ext <<_LT_EOF
14172 #line $LINENO "configure"
14173 #include "confdefs.h"
14182 # define LT_DLGLOBAL RTLD_GLOBAL
14185 # define LT_DLGLOBAL DL_GLOBAL
14187 # define LT_DLGLOBAL 0
14191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14192 find out it does not work in some platform. */
14193 #ifndef LT_DLLAZY_OR_NOW
14195 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14198 # define LT_DLLAZY_OR_NOW DL_LAZY
14201 # define LT_DLLAZY_OR_NOW RTLD_NOW
14204 # define LT_DLLAZY_OR_NOW DL_NOW
14206 # define LT_DLLAZY_OR_NOW 0
14213 /* When -fvisibility=hidden is used, assume the code has been annotated
14214 correspondingly for the symbols needed. */
14215 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14216 int fnord () __attribute__((visibility("default")));
14219 int fnord () { return 42; }
14222 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14223 int status = $lt_dlunknown;
14227 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14230 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14231 else puts (dlerror ());
14233 /* dlclose (self); */
14241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14242 (eval $ac_link) 2>&5
14244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14245 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14246 (./conftest; exit; ) >&5 2>/dev/null
14248 case x$lt_status in
14249 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14250 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14251 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14254 # compilation failed
14255 lt_cv_dlopen_self_static=no
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14263 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14266 CPPFLAGS=$save_CPPFLAGS
14267 LDFLAGS=$save_LDFLAGS
14272 case $lt_cv_dlopen_self in
14273 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14274 *) enable_dlopen_self=unknown ;;
14277 case $lt_cv_dlopen_self_static in
14278 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14279 *) enable_dlopen_self_static=unknown ;;
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14302 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14303 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14304 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14305 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14307 $as_echo "yes" >&6; }
14309 # FIXME - insert some real tests, host_os isn't really good enough
14312 if test -n "$STRIP"; then
14313 striplib="$STRIP -x"
14314 old_striplib="$STRIP -S"
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14316 $as_echo "yes" >&6; }
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319 $as_echo "no" >&6; }
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14324 $as_echo "no" >&6; }
14340 # Report what library types will actually be built
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14342 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14344 $as_echo "$can_build_shared" >&6; }
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14347 $as_echo_n "checking whether to build shared libraries... " >&6; }
14348 test no = "$can_build_shared" && enable_shared=no
14350 # On AIX, shared libraries and static libraries use the same namespace, and
14351 # are all built from PIC.
14354 test yes = "$enable_shared" && enable_static=no
14355 if test -n "$RANLIB"; then
14356 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14357 postinstall_cmds='$RANLIB $lib'
14362 if test ia64 != "$host_cpu"; then
14363 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14364 yes,aix,yes) ;; # shared object as lib.so file only
14365 yes,svr4,*) ;; # shared object as lib.so archive member only
14366 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14372 $as_echo "$enable_shared" >&6; }
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14375 $as_echo_n "checking whether to build static libraries... " >&6; }
14376 # Make sure either enable_shared or enable_static is yes.
14377 test yes = "$enable_shared" || enable_static=yes
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14379 $as_echo "$enable_static" >&6; }
14386 ac_cpp='$CPP $CPPFLAGS'
14387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14407 ac_config_commands="$ac_config_commands libtool"
14412 # Only expand once:
14417 # pkg-config is only needed for these options, do not require it otherwise
14418 if test "$enable_systemd" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then
14426 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14427 if test -n "$ac_tool_prefix"; then
14428 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14429 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14431 $as_echo_n "checking for $ac_word... " >&6; }
14432 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14433 $as_echo_n "(cached) " >&6
14435 case $PKG_CONFIG in
14437 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
14446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14447 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14458 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14459 if test -n "$PKG_CONFIG"; then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14461 $as_echo "$PKG_CONFIG" >&6; }
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14464 $as_echo "no" >&6; }
14469 if test -z "$ac_cv_path_PKG_CONFIG"; then
14470 ac_pt_PKG_CONFIG=$PKG_CONFIG
14471 # Extract the first word of "pkg-config", so it can be a program name with args.
14472 set dummy pkg-config; ac_word=$2
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14474 $as_echo_n "checking for $ac_word... " >&6; }
14475 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14476 $as_echo_n "(cached) " >&6
14478 case $ac_pt_PKG_CONFIG in
14480 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14487 test -z "$as_dir" && as_dir=.
14488 for ac_exec_ext in '' $ac_executable_extensions; do
14489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14490 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14501 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14502 if test -n "$ac_pt_PKG_CONFIG"; then
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14504 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14507 $as_echo "no" >&6; }
14510 if test "x$ac_pt_PKG_CONFIG" = x; then
14513 case $cross_compiling:$ac_tool_warned in
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14517 ac_tool_warned=yes ;;
14519 PKG_CONFIG=$ac_pt_PKG_CONFIG
14522 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14526 if test -n "$PKG_CONFIG"; then
14527 _pkg_min_version=0.9.0
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14529 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14530 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14532 $as_echo "yes" >&6; }
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14535 $as_echo "no" >&6; }
14541 # Checks for header files.
14542 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
14544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14545 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14547 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14548 cat >>confdefs.h <<_ACEOF
14549 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14556 # net/if.h portability for Darwin see:
14557 # https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html
14558 for ac_header in net/if.h
14560 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
14562 #ifdef STDC_HEADERS
14563 # include <stdlib.h>
14564 # include <stddef.h>
14566 # ifdef HAVE_STDLIB_H
14567 # include <stdlib.h>
14570 #ifdef HAVE_SYS_SOCKET_H
14571 # include <sys/socket.h>
14575 if test "x$ac_cv_header_net_if_h" = xyes; then :
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_NET_IF_H 1
14585 # Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
14586 for ac_header in TargetConditionals.h
14588 ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default
14590 if test "x$ac_cv_header_TargetConditionals_h" = xyes; then :
14591 cat >>confdefs.h <<_ACEOF
14592 #define HAVE_TARGETCONDITIONALS_H 1
14599 for ac_header in netioapi.h
14601 ac_fn_c_check_header_compile "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" "$ac_includes_default
14602 #if HAVE_SYS_PARAM_H
14603 #include <sys/param.h>
14606 #ifdef HAVE_SYS_SOCKET_H
14607 #include <sys/socket.h>
14610 #ifdef HAVE_SYS_UIO_H
14611 #include <sys/uio.h>
14614 #ifdef HAVE_NETINET_IN_H
14615 #include <netinet/in.h>
14618 #ifdef HAVE_NETINET_TCP_H
14619 #include <netinet/tcp.h>
14622 #ifdef HAVE_ARPA_INET_H
14623 #include <arpa/inet.h>
14626 #ifdef HAVE_WINSOCK2_H
14627 #include <winsock2.h>
14630 #ifdef HAVE_WS2TCPIP_H
14631 #include <ws2tcpip.h>
14635 if test "x$ac_cv_header_netioapi_h" = xyes; then :
14636 cat >>confdefs.h <<_ACEOF
14637 #define HAVE_NETIOAPI_H 1
14645 # Check for Linux timestamping headers
14646 for ac_header in linux/net_tstamp.h
14648 ac_fn_c_check_header_compile "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default
14650 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
14651 cat >>confdefs.h <<_ACEOF
14652 #define HAVE_LINUX_NET_TSTAMP_H 1
14661 # Using own tests for int64* because autoconf builtin only give 32bit.
14662 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14663 if test "x$ac_cv_type_int8_t" = xyes; then :
14667 cat >>confdefs.h <<_ACEOF
14668 #define int8_t signed char
14673 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14674 if test "x$ac_cv_type_int16_t" = xyes; then :
14678 cat >>confdefs.h <<_ACEOF
14679 #define int16_t short
14684 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14685 if test "x$ac_cv_type_int32_t" = xyes; then :
14689 cat >>confdefs.h <<_ACEOF
14690 #define int32_t int
14695 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14696 if test "x$ac_cv_type_int64_t" = xyes; then :
14700 cat >>confdefs.h <<_ACEOF
14701 #define int64_t long long
14706 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14707 if test "x$ac_cv_type_uint8_t" = xyes; then :
14711 cat >>confdefs.h <<_ACEOF
14712 #define uint8_t unsigned char
14717 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14718 if test "x$ac_cv_type_uint16_t" = xyes; then :
14722 cat >>confdefs.h <<_ACEOF
14723 #define uint16_t unsigned short
14728 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14729 if test "x$ac_cv_type_uint32_t" = xyes; then :
14733 cat >>confdefs.h <<_ACEOF
14734 #define uint32_t unsigned int
14739 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14740 if test "x$ac_cv_type_uint64_t" = xyes; then :
14744 cat >>confdefs.h <<_ACEOF
14745 #define uint64_t unsigned long long
14750 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14751 if test "x$ac_cv_type_size_t" = xyes; then :
14755 cat >>confdefs.h <<_ACEOF
14756 #define size_t unsigned int
14761 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14762 if test "x$ac_cv_type_ssize_t" = xyes; then :
14766 cat >>confdefs.h <<_ACEOF
14767 #define ssize_t int
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14773 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14774 if ${ac_cv_type_uid_t+:} false; then :
14775 $as_echo_n "(cached) " >&6
14777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h. */
14779 #include <sys/types.h>
14782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14783 $EGREP "uid_t" >/dev/null 2>&1; then :
14784 ac_cv_type_uid_t=yes
14786 ac_cv_type_uid_t=no
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14792 $as_echo "$ac_cv_type_uid_t" >&6; }
14793 if test $ac_cv_type_uid_t = no; then
14795 $as_echo "#define uid_t int" >>confdefs.h
14798 $as_echo "#define gid_t int" >>confdefs.h
14802 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14803 if test "x$ac_cv_type_pid_t" = xyes; then :
14807 cat >>confdefs.h <<_ACEOF
14813 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14814 if test "x$ac_cv_type_off_t" = xyes; then :
14818 cat >>confdefs.h <<_ACEOF
14819 #define off_t long int
14824 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14825 $ac_includes_default
14826 #ifdef HAVE_WINSOCK2_H
14827 # include <winsock2.h>
14831 if test "x$ac_cv_type_u_char" = xyes; then :
14835 $as_echo "#define u_char unsigned char" >>confdefs.h
14839 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14840 $ac_includes_default
14841 #ifdef HAVE_SYS_RESOURCE_H
14842 # include <sys/resource.h>
14846 if test "x$ac_cv_type_rlim_t" = xyes; then :
14850 $as_echo "#define rlim_t unsigned long" >>confdefs.h
14855 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14856 $ac_includes_default
14857 #ifdef HAVE_SYS_SOCKET_H
14858 # include <sys/socket.h>
14860 #ifdef HAVE_WS2TCPIP_H
14861 # include <ws2tcpip.h>
14865 if test "x$ac_cv_type_socklen_t" = xyes; then :
14869 $as_echo "#define socklen_t int" >>confdefs.h
14873 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14874 $ac_includes_default
14875 #ifdef HAVE_SYS_TYPES_H
14876 # include <sys/types.h>
14878 #ifdef HAVE_NETINET_IN_H
14879 # include <netinet/in.h>
14883 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14887 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14891 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14892 $ac_includes_default
14893 #ifdef HAVE_SYS_TYPES_H
14894 # include <sys/types.h>
14896 #ifdef HAVE_NETINET_IN_H
14897 # include <netinet/in.h>
14901 if test "x$ac_cv_type_in_port_t" = xyes; then :
14905 $as_echo "#define in_port_t uint16_t" >>confdefs.h
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14910 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
14911 if test "$cross_compiling" = yes; then :
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14913 $as_echo "cross-compile no" >&6; }
14915 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14917 case " $LIBOBJS " in
14918 *" memcmp.$ac_objext "* ) ;;
14919 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14929 #include <stdlib.h>
14930 #include <string.h>
14933 char a = 255, b = 0;
14934 if(memcmp(&a, &b, 1) < 0)
14940 if ac_fn_c_try_run "$LINENO"; then :
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14942 $as_echo "yes" >&6; }
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14945 $as_echo "no" >&6; }
14947 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14949 case " $LIBOBJS " in
14950 *" memcmp.$ac_objext "* ) ;;
14951 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14958 conftest.$ac_objext conftest.beam conftest.$ac_ext
14962 # The cast to long int works around a bug in the HP C Compiler
14963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14965 # This bug is HP SR number 8606223364.
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14967 $as_echo_n "checking size of time_t... " >&6; }
14968 if ${ac_cv_sizeof_time_t+:} false; then :
14969 $as_echo_n "(cached) " >&6
14971 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14972 $ac_includes_default
14973 #ifdef TIME_WITH_SYS_TIME
14974 # include <sys/time.h>
14977 # ifdef HAVE_SYS_TIME_H
14978 # include <sys/time.h>
14987 if test "$ac_cv_type_time_t" = yes; then
14988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14990 as_fn_error 77 "cannot compute sizeof (time_t)
14991 See \`config.log' for more details" "$LINENO" 5; }
14993 ac_cv_sizeof_time_t=0
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14999 $as_echo "$ac_cv_sizeof_time_t" >&6; }
15003 cat >>confdefs.h <<_ACEOF
15004 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15008 # The cast to long int works around a bug in the HP C Compiler
15009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15011 # This bug is HP SR number 8606223364.
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15013 $as_echo_n "checking size of size_t... " >&6; }
15014 if ${ac_cv_sizeof_size_t+:} false; then :
15015 $as_echo_n "(cached) " >&6
15017 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15020 if test "$ac_cv_type_size_t" = yes; then
15021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15023 as_fn_error 77 "cannot compute sizeof (size_t)
15024 See \`config.log' for more details" "$LINENO" 5; }
15026 ac_cv_sizeof_size_t=0
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15032 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15036 cat >>confdefs.h <<_ACEOF
15037 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15042 # add option to disable the evil rpath
15044 # Check whether --enable-rpath was given.
15045 if test "${enable_rpath+set}" = set; then :
15046 enableval=$enable_rpath; enable_rpath=$enableval
15051 if test "x$enable_rpath" = xno; then
15052 ac_config_commands="$ac_config_commands disable-rpath"
15058 # check to see if libraries are needed for these functions.
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15060 $as_echo_n "checking for library containing inet_pton... " >&6; }
15061 if ${ac_cv_search_inet_pton+:} false; then :
15062 $as_echo_n "(cached) " >&6
15064 ac_func_search_save_LIBS=$LIBS
15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15068 /* Override any GCC internal prototype to avoid an error.
15069 Use char because int might match the return type of a GCC
15070 builtin and then its argument prototype would still apply. */
15078 return inet_pton ();
15083 for ac_lib in '' nsl; do
15084 if test -z "$ac_lib"; then
15085 ac_res="none required"
15088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15090 if ac_fn_c_try_link "$LINENO"; then :
15091 ac_cv_search_inet_pton=$ac_res
15093 rm -f core conftest.err conftest.$ac_objext \
15095 if ${ac_cv_search_inet_pton+:} false; then :
15099 if ${ac_cv_search_inet_pton+:} false; then :
15102 ac_cv_search_inet_pton=no
15104 rm conftest.$ac_ext
15105 LIBS=$ac_func_search_save_LIBS
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15108 $as_echo "$ac_cv_search_inet_pton" >&6; }
15109 ac_res=$ac_cv_search_inet_pton
15110 if test "$ac_res" != no; then :
15111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15116 $as_echo_n "checking for library containing socket... " >&6; }
15117 if ${ac_cv_search_socket+:} false; then :
15118 $as_echo_n "(cached) " >&6
15120 ac_func_search_save_LIBS=$LIBS
15121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15122 /* end confdefs.h. */
15124 /* Override any GCC internal prototype to avoid an error.
15125 Use char because int might match the return type of a GCC
15126 builtin and then its argument prototype would still apply. */
15139 for ac_lib in '' socket; do
15140 if test -z "$ac_lib"; then
15141 ac_res="none required"
15144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15146 if ac_fn_c_try_link "$LINENO"; then :
15147 ac_cv_search_socket=$ac_res
15149 rm -f core conftest.err conftest.$ac_objext \
15151 if ${ac_cv_search_socket+:} false; then :
15155 if ${ac_cv_search_socket+:} false; then :
15158 ac_cv_search_socket=no
15160 rm conftest.$ac_ext
15161 LIBS=$ac_func_search_save_LIBS
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15164 $as_echo "$ac_cv_search_socket" >&6; }
15165 ac_res=$ac_cv_search_socket
15166 if test "$ac_res" != no; then :
15167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15172 # check whether strptime also works
15174 # check some functions of the OS before linking libs (while still runnable).
15175 for ac_header in unistd.h
15177 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15178 if test "x$ac_cv_header_unistd_h" = xyes; then :
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE_UNISTD_H 1
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15188 $as_echo_n "checking for working chown... " >&6; }
15189 if ${ac_cv_func_chown_works+:} false; then :
15190 $as_echo_n "(cached) " >&6
15192 if test "$cross_compiling" = yes; then :
15193 ac_cv_func_chown_works=no
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15197 $ac_includes_default
15203 char *f = "conftest.chown";
15204 struct stat before, after;
15206 if (creat (f, 0600) < 0)
15208 if (stat (f, &before) < 0)
15210 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15212 if (stat (f, &after) < 0)
15214 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15220 if ac_fn_c_try_run "$LINENO"; then :
15221 ac_cv_func_chown_works=yes
15223 ac_cv_func_chown_works=no
15225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15226 conftest.$ac_objext conftest.beam conftest.$ac_ext
15229 rm -f conftest.chown
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15233 $as_echo "$ac_cv_func_chown_works" >&6; }
15234 if test $ac_cv_func_chown_works = yes; then
15236 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15240 for ac_header in vfork.h
15242 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15243 if test "x$ac_cv_header_vfork_h" = xyes; then :
15244 cat >>confdefs.h <<_ACEOF
15245 #define HAVE_VFORK_H 1
15252 for ac_func in fork vfork
15254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15255 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15256 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15257 cat >>confdefs.h <<_ACEOF
15258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15264 if test "x$ac_cv_func_fork" = xyes; then
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15266 $as_echo_n "checking for working fork... " >&6; }
15267 if ${ac_cv_func_fork_works+:} false; then :
15268 $as_echo_n "(cached) " >&6
15270 if test "$cross_compiling" = yes; then :
15271 ac_cv_func_fork_works=cross
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15275 $ac_includes_default
15280 /* By Ruediger Kuhlmann. */
15281 return fork () < 0;
15287 if ac_fn_c_try_run "$LINENO"; then :
15288 ac_cv_func_fork_works=yes
15290 ac_cv_func_fork_works=no
15292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15293 conftest.$ac_objext conftest.beam conftest.$ac_ext
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15298 $as_echo "$ac_cv_func_fork_works" >&6; }
15301 ac_cv_func_fork_works=$ac_cv_func_fork
15303 if test "x$ac_cv_func_fork_works" = xcross; then
15305 *-*-amigaos* | *-*-msdosdjgpp*)
15306 # Override, as these systems have only a dummy fork() stub
15307 ac_cv_func_fork_works=no
15310 ac_cv_func_fork_works=yes
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15314 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15316 ac_cv_func_vfork_works=$ac_cv_func_vfork
15317 if test "x$ac_cv_func_vfork" = xyes; then
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15319 $as_echo_n "checking for working vfork... " >&6; }
15320 if ${ac_cv_func_vfork_works+:} false; then :
15321 $as_echo_n "(cached) " >&6
15323 if test "$cross_compiling" = yes; then :
15324 ac_cv_func_vfork_works=cross
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15328 /* Thanks to Paul Eggert for this test. */
15329 $ac_includes_default
15330 #include <sys/wait.h>
15331 #ifdef HAVE_VFORK_H
15332 # include <vfork.h>
15334 /* On some sparc systems, changes by the child to local and incoming
15335 argument registers are propagated back to the parent. The compiler
15336 is told about this with #include <vfork.h>, but some compilers
15337 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15338 static variable whose address is put into a register that is
15339 clobbered by the vfork. */
15342 sparc_address_test (int arg)
15344 sparc_address_test (arg) int arg;
15347 static pid_t child;
15365 pid_t parent = getpid ();
15368 sparc_address_test (0);
15373 /* Here is another test for sparc vfork register problems. This
15374 test uses lots of local variables, at least as many local
15375 variables as main has allocated so far including compiler
15376 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15377 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15378 reuse the register of parent for one of the local variables,
15379 since it will think that parent can't possibly be used any more
15380 in this routine. Assigning to the local variable will thus
15381 munge parent in the parent process. */
15383 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15384 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15385 /* Convince the compiler that p..p7 are live; otherwise, it might
15386 use the same hardware register for all 8 local variables. */
15387 if (p != p1 || p != p2 || p != p3 || p != p4
15388 || p != p5 || p != p6 || p != p7)
15391 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15392 from child file descriptors. If the child closes a descriptor
15393 before it execs or exits, this munges the parent's descriptor
15394 as well. Test for this by closing stdout in the child. */
15395 _exit(close(fileno(stdout)) != 0);
15400 while (wait(&status) != child)
15403 /* Was there some problem with vforking? */
15406 /* Did the child fail? (This shouldn't happen.) */
15409 /* Did the vfork/compiler bug occur? */
15410 || parent != getpid()
15412 /* Did the file descriptor bug occur? */
15413 || fstat(fileno(stdout), &st) != 0
15418 if ac_fn_c_try_run "$LINENO"; then :
15419 ac_cv_func_vfork_works=yes
15421 ac_cv_func_vfork_works=no
15423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15424 conftest.$ac_objext conftest.beam conftest.$ac_ext
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15429 $as_echo "$ac_cv_func_vfork_works" >&6; }
15432 if test "x$ac_cv_func_fork_works" = xcross; then
15433 ac_cv_func_vfork_works=$ac_cv_func_vfork
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15435 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15438 if test "x$ac_cv_func_vfork_works" = xyes; then
15440 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15444 $as_echo "#define vfork fork" >>confdefs.h
15447 if test "x$ac_cv_func_fork_works" = xyes; then
15449 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15454 $as_echo "#define RETSIGTYPE void" >>confdefs.h
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15457 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15458 if ${ac_cv_sys_largefile_source+:} false; then :
15459 $as_echo_n "(cached) " >&6
15462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463 /* end confdefs.h. */
15464 #include <sys/types.h> /* for off_t */
15469 int (*fp) (FILE *, off_t, int) = fseeko;
15470 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15475 if ac_fn_c_try_link "$LINENO"; then :
15476 ac_cv_sys_largefile_source=no; break
15478 rm -f core conftest.err conftest.$ac_objext \
15479 conftest$ac_exeext conftest.$ac_ext
15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h. */
15482 #define _LARGEFILE_SOURCE 1
15483 #include <sys/types.h> /* for off_t */
15488 int (*fp) (FILE *, off_t, int) = fseeko;
15489 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15494 if ac_fn_c_try_link "$LINENO"; then :
15495 ac_cv_sys_largefile_source=1; break
15497 rm -f core conftest.err conftest.$ac_objext \
15498 conftest$ac_exeext conftest.$ac_ext
15499 ac_cv_sys_largefile_source=unknown
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15504 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15505 case $ac_cv_sys_largefile_source in #(
15508 cat >>confdefs.h <<_ACEOF
15509 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15515 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15516 # in glibc 2.1.3, but that breaks too many other things.
15517 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15518 if test $ac_cv_sys_largefile_source != unknown; then
15520 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15525 # Check whether --enable-largefile was given.
15526 if test "${enable_largefile+set}" = set; then :
15527 enableval=$enable_largefile;
15530 if test "$enable_largefile" != no; then
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15533 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15534 if ${ac_cv_sys_largefile_CC+:} false; then :
15535 $as_echo_n "(cached) " >&6
15537 ac_cv_sys_largefile_CC=no
15538 if test "$GCC" != yes; then
15541 # IRIX 6.2 and later do not support large files by default,
15542 # so use the C compiler's -n32 option if that helps.
15543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15544 /* end confdefs.h. */
15545 #include <sys/types.h>
15546 /* Check that off_t can represent 2**63 - 1 correctly.
15547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15548 since some C++ compilers masquerading as C compilers
15549 incorrectly reject 9223372036854775807. */
15550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15552 && LARGE_OFF_T % 2147483647 == 1)
15562 if ac_fn_c_try_compile "$LINENO"; then :
15565 rm -f core conftest.err conftest.$ac_objext
15567 if ac_fn_c_try_compile "$LINENO"; then :
15568 ac_cv_sys_largefile_CC=' -n32'; break
15570 rm -f core conftest.err conftest.$ac_objext
15574 rm -f conftest.$ac_ext
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15578 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15579 if test "$ac_cv_sys_largefile_CC" != no; then
15580 CC=$CC$ac_cv_sys_largefile_CC
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15584 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15585 if ${ac_cv_sys_file_offset_bits+:} false; then :
15586 $as_echo_n "(cached) " >&6
15589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15590 /* end confdefs.h. */
15591 #include <sys/types.h>
15592 /* Check that off_t can represent 2**63 - 1 correctly.
15593 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15594 since some C++ compilers masquerading as C compilers
15595 incorrectly reject 9223372036854775807. */
15596 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15598 && LARGE_OFF_T % 2147483647 == 1)
15608 if ac_fn_c_try_compile "$LINENO"; then :
15609 ac_cv_sys_file_offset_bits=no; break
15611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15613 /* end confdefs.h. */
15614 #define _FILE_OFFSET_BITS 64
15615 #include <sys/types.h>
15616 /* Check that off_t can represent 2**63 - 1 correctly.
15617 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15618 since some C++ compilers masquerading as C compilers
15619 incorrectly reject 9223372036854775807. */
15620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15621 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15622 && LARGE_OFF_T % 2147483647 == 1)
15632 if ac_fn_c_try_compile "$LINENO"; then :
15633 ac_cv_sys_file_offset_bits=64; break
15635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15636 ac_cv_sys_file_offset_bits=unknown
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15641 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15642 case $ac_cv_sys_file_offset_bits in #(
15645 cat >>confdefs.h <<_ACEOF
15646 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15651 if test $ac_cv_sys_file_offset_bits = unknown; then
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15653 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15654 if ${ac_cv_sys_large_files+:} false; then :
15655 $as_echo_n "(cached) " >&6
15658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659 /* end confdefs.h. */
15660 #include <sys/types.h>
15661 /* Check that off_t can represent 2**63 - 1 correctly.
15662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15663 since some C++ compilers masquerading as C compilers
15664 incorrectly reject 9223372036854775807. */
15665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15667 && LARGE_OFF_T % 2147483647 == 1)
15677 if ac_fn_c_try_compile "$LINENO"; then :
15678 ac_cv_sys_large_files=no; break
15680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15683 #define _LARGE_FILES 1
15684 #include <sys/types.h>
15685 /* Check that off_t can represent 2**63 - 1 correctly.
15686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15687 since some C++ compilers masquerading as C compilers
15688 incorrectly reject 9223372036854775807. */
15689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15691 && LARGE_OFF_T % 2147483647 == 1)
15701 if ac_fn_c_try_compile "$LINENO"; then :
15702 ac_cv_sys_large_files=1; break
15704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705 ac_cv_sys_large_files=unknown
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15710 $as_echo "$ac_cv_sys_large_files" >&6; }
15711 case $ac_cv_sys_large_files in #(
15714 cat >>confdefs.h <<_ACEOF
15715 #define _LARGE_FILES $ac_cv_sys_large_files
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15729 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15730 cache=_D_LARGEFILE_SOURCE_1
15731 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15732 $as_echo_n "(cached) " >&6
15738 int a = fseeko(stdin, 0, 0);
15742 echo 'void f(void){}' >>conftest.c
15743 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15744 eval "cv_prog_cc_flag_needed_$cache=no"
15747 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15748 eval "cv_prog_cc_flag_needed_$cache=yes"
15750 eval "cv_prog_cc_flag_needed_$cache=fail"
15751 #echo 'Test with flag fails too!'
15753 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15754 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15759 rm -f conftest conftest.c conftest.o
15763 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15765 $as_echo "yes" >&6; }
15767 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15769 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15771 $as_echo "no" >&6; }
15772 #echo 'Test with flag is no!'
15774 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15775 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15781 $as_echo "failed" >&6; }
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15790 $as_echo_n "checking if nonblocking sockets work... " >&6; }
15791 if echo $host | grep mingw >/dev/null; then
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15793 $as_echo "no (windows)" >&6; }
15795 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15798 if test "$cross_compiling" = yes; then :
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15801 $as_echo "crosscompile(yes)" >&6; }
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15809 #include <string.h>
15810 #include <stdlib.h>
15813 #ifdef HAVE_SYS_TYPES_H
15814 #include <sys/types.h>
15816 #ifdef HAVE_SYS_SELECT_H
15817 #include <sys/select.h>
15819 #ifdef HAVE_SYS_SOCKET_H
15820 #include <sys/socket.h>
15822 #ifdef HAVE_NETINET_IN_H
15823 #include <netinet/in.h>
15825 #ifdef HAVE_ARPA_INET_H
15826 #include <arpa/inet.h>
15828 #ifdef HAVE_UNISTD_H
15829 #include <unistd.h>
15841 struct sockaddr_in a;
15842 /* test if select and nonblocking reads work well together */
15844 fork child to send 10 messages.
15846 then try to nonblocking read the 10 messages
15847 then, nonblocking read must give EAGAIN
15850 port = 12345 + (time(0)%32);
15851 sfd = socket(PF_INET, SOCK_DGRAM, 0);
15856 memset(&a, 0, sizeof(a));
15857 a.sin_family = AF_INET;
15858 a.sin_port = htons(port);
15859 a.sin_addr.s_addr = inet_addr("127.0.0.1");
15860 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15864 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15869 cfd = socket(PF_INET, SOCK_DGRAM, 0);
15871 perror("client socket");
15875 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15876 perror("client bind");
15879 a.sin_port = htons(port);
15881 /* no handler, causes exit in 10 seconds */
15884 /* send and receive on the socket */
15885 if((p=fork()) == 0) {
15886 for(i=0; i<num; i++) {
15887 if(sendto(cfd, &i, sizeof(i), 0,
15888 (struct sockaddr*)&a, sizeof(a)) < 0) {
15902 FD_SET(sfd, &rset);
15903 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15909 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15910 if(errno == EAGAIN)
15917 /* now we want to get EAGAIN: nonblocking goodness */
15919 recv(sfd, &x, sizeof(x), 0);
15920 if(errno != EAGAIN) {
15921 perror("trying to recv again");
15924 /* EAGAIN encountered */
15933 if ac_fn_c_try_run "$LINENO"; then :
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15936 $as_echo "yes" >&6; }
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 $as_echo "no" >&6; }
15943 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15948 conftest.$ac_objext conftest.beam conftest.$ac_ext
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15955 $as_echo_n "checking whether mkdir has one arg... " >&6; }
15956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957 /* end confdefs.h. */
15960 #include <unistd.h>
15961 #ifdef HAVE_WINSOCK2_H
15962 #include <winsock2.h>
15964 #ifdef HAVE_SYS_STAT_H
15965 #include <sys/stat.h>
15972 (void)mkdir("directory");
15978 if ac_fn_c_try_compile "$LINENO"; then :
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15980 $as_echo "yes" >&6; }
15982 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15987 $as_echo "no" >&6; }
15990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15992 for ac_func in strptime
15994 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15995 if test "x$ac_cv_func_strptime" = xyes; then :
15996 cat >>confdefs.h <<_ACEOF
15997 #define HAVE_STRPTIME 1
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
16001 $as_echo_n "checking whether strptime works... " >&6; }
16002 if test c${cross_compiling} = cno; then
16003 if test "$cross_compiling" = yes; then :
16004 eval "ac_cv_c_strptime_works=maybe"
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16009 #define _XOPEN_SOURCE 600
16011 int main(void) { struct tm tm; char *res;
16012 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);
16013 if (!res) return 2;
16014 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
16015 if (!res) return 1; return 0; }
16018 if ac_fn_c_try_run "$LINENO"; then :
16019 eval "ac_cv_c_strptime_works=yes"
16021 eval "ac_cv_c_strptime_works=no"
16023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16024 conftest.$ac_objext conftest.beam conftest.$ac_ext
16028 eval "ac_cv_c_strptime_works=maybe"
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
16031 $as_echo "$ac_cv_c_strptime_works" >&6; }
16032 if test $ac_cv_c_strptime_works = no; then
16033 case " $LIBOBJS " in
16034 *" strptime.$ac_objext "* ) ;;
16035 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16041 cat >>confdefs.h <<_ACEOF
16042 #define STRPTIME_WORKS 1
16048 case " $LIBOBJS " in
16049 *" strptime.$ac_objext "* ) ;;
16050 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16058 # check if we can use SO_REUSEPORT
16059 reuseport_default=0
16060 if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi
16061 if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi
16062 if test "$reuseport_default" = 1; then
16064 $as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
16068 $as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
16072 # Include systemd.m4 - begin
16073 # macros for configuring systemd
16074 # Copyright 2015, Sami Kerola, CloudFlare.
16076 # Check whether --enable-systemd was given.
16077 if test "${enable_systemd+set}" = set; then :
16078 enableval=$enable_systemd;
16084 if test "x$enable_systemd" != xno; then :
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
16090 $as_echo_n "checking for SYSTEMD... " >&6; }
16092 if test -n "$SYSTEMD_CFLAGS"; then
16093 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
16094 elif test -n "$PKG_CONFIG"; then
16095 if test -n "$PKG_CONFIG" && \
16096 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16097 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16100 test $ac_status = 0; }; then
16101 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
16102 test "x$?" != "x0" && pkg_failed=yes
16109 if test -n "$SYSTEMD_LIBS"; then
16110 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
16111 elif test -n "$PKG_CONFIG"; then
16112 if test -n "$PKG_CONFIG" && \
16113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16114 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16117 test $ac_status = 0; }; then
16118 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
16119 test "x$?" != "x0" && pkg_failed=yes
16129 if test $pkg_failed = yes; then
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16131 $as_echo "no" >&6; }
16133 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16134 _pkg_short_errors_supported=yes
16136 _pkg_short_errors_supported=no
16138 if test $_pkg_short_errors_supported = yes; then
16139 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
16141 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
16143 # Put the nasty error message in config.log where it belongs
16144 echo "$SYSTEMD_PKG_ERRORS" >&5
16147 elif test $pkg_failed = untried; then
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149 $as_echo "no" >&6; }
16152 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
16153 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16155 $as_echo "yes" >&6; }
16158 if test "x$have_systemd" != "xyes"; then :
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
16163 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
16165 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
16166 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
16167 elif test -n "$PKG_CONFIG"; then
16168 if test -n "$PKG_CONFIG" && \
16169 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16170 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16173 test $ac_status = 0; }; then
16174 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16175 test "x$?" != "x0" && pkg_failed=yes
16182 if test -n "$SYSTEMD_DAEMON_LIBS"; then
16183 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
16184 elif test -n "$PKG_CONFIG"; then
16185 if test -n "$PKG_CONFIG" && \
16186 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16187 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16190 test $ac_status = 0; }; then
16191 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16192 test "x$?" != "x0" && pkg_failed=yes
16202 if test $pkg_failed = yes; then
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16204 $as_echo "no" >&6; }
16206 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16207 _pkg_short_errors_supported=yes
16209 _pkg_short_errors_supported=no
16211 if test $_pkg_short_errors_supported = yes; then
16212 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16214 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16216 # Put the nasty error message in config.log where it belongs
16217 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
16219 have_systemd_daemon=no
16220 elif test $pkg_failed = untried; then
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222 $as_echo "no" >&6; }
16223 have_systemd_daemon=no
16225 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
16226 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16228 $as_echo "yes" >&6; }
16229 have_systemd_daemon=yes
16231 if test "x$have_systemd_daemon" = "xyes"; then :
16236 case $enable_systemd:$have_systemd in #(
16238 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
16241 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
16243 LIBS="$LIBS $SYSTEMD_LIBS"
16252 if test "x$have_systemd" = xyes; then
16254 USE_SYSTEMD_FALSE='#'
16256 USE_SYSTEMD_TRUE='#'
16261 # Include systemd.m4 - end
16263 # set memory allocation checking if requested
16264 # Check whether --enable-alloc-checks was given.
16265 if test "${enable_alloc_checks+set}" = set; then :
16266 enableval=$enable_alloc_checks;
16269 # Check whether --enable-alloc-lite was given.
16270 if test "${enable_alloc_lite+set}" = set; then :
16271 enableval=$enable_alloc_lite;
16274 # Check whether --enable-alloc-nonregional was given.
16275 if test "${enable_alloc_nonregional+set}" = set; then :
16276 enableval=$enable_alloc_nonregional;
16279 if test x_$enable_alloc_nonregional = x_yes; then
16281 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
16284 if test x_$enable_alloc_checks = x_yes; then
16286 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
16288 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
16290 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
16293 if test x_$enable_alloc_lite = x_yes; then
16295 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16300 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16301 if test "$cross_compiling" = yes; then :
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
16303 $as_echo "no (crosscompile)" >&6; }
16304 case " $LIBOBJS " in
16305 *" malloc.$ac_objext "* ) ;;
16306 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16311 cat >>confdefs.h <<_ACEOF
16312 #define malloc rpl_malloc_unbound
16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317 /* end confdefs.h. */
16318 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16319 #include <stdlib.h>
16327 if(malloc(0) != 0) return 1;
16333 if ac_fn_c_try_run "$LINENO"; then :
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16335 $as_echo "no" >&6; }
16336 case " $LIBOBJS " in
16337 *" malloc.$ac_objext "* ) ;;
16338 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16343 cat >>confdefs.h <<_ACEOF
16344 #define malloc rpl_malloc_unbound
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16349 $as_echo "yes" >&6; }
16351 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16355 conftest.$ac_objext conftest.beam conftest.$ac_ext
16362 # check windows threads (we use them, not pthreads, on windows).
16363 if test "$on_mingw" = "yes"; then
16364 # check windows threads
16365 for ac_header in windows.h
16367 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16369 if test "x$ac_cv_header_windows_h" = xyes; then :
16370 cat >>confdefs.h <<_ACEOF
16371 #define HAVE_WINDOWS_H 1
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
16379 $as_echo_n "checking for CreateThread... " >&6; }
16380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381 /* end confdefs.h. */
16383 #ifdef HAVE_WINDOWS_H
16384 #include <windows.h>
16391 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16397 if ac_fn_c_try_compile "$LINENO"; then :
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16399 $as_echo "yes" >&6; }
16401 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16406 $as_echo "no" >&6; }
16409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 # not on mingw, check thread libraries.
16414 # check for thread library.
16415 # check this first, so that the pthread lib does not get linked in via
16416 # libssl or libpython, and thus distorts the tests, and we end up using
16417 # the non-threadsafe C libraries.
16419 # Check whether --with-pthreads was given.
16420 if test "${with_pthreads+set}" = set; then :
16421 withval=$with_pthreads;
16426 ub_have_pthreads=no
16427 if test x_$withval != x_no; then
16431 ac_cpp='$CPP $CPPFLAGS'
16432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16438 # We used to check for pthread.h first, but this fails if pthread.h
16439 # requires special compiler flags (e.g. on True64 or Sequent).
16440 # It gets checked for in the link test anyway.
16442 # First of all, check if the user has set any of the PTHREAD_LIBS,
16443 # etcetera environment variables, and if threads linking works using
16445 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16446 save_CFLAGS="$CFLAGS"
16447 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16449 LIBS="$PTHREAD_LIBS $LIBS"
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16451 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453 /* end confdefs.h. */
16455 /* Override any GCC internal prototype to avoid an error.
16456 Use char because int might match the return type of a GCC
16457 builtin and then its argument prototype would still apply. */
16461 char pthread_join ();
16465 return pthread_join ();
16470 if ac_fn_c_try_link "$LINENO"; then :
16473 rm -f core conftest.err conftest.$ac_objext \
16474 conftest$ac_exeext conftest.$ac_ext
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16476 $as_echo "$ax_pthread_ok" >&6; }
16477 if test x"$ax_pthread_ok" = xno; then
16482 CFLAGS="$save_CFLAGS"
16485 # We must check for the threads library under a number of different
16486 # names; the ordering is very important because some systems
16487 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16488 # libraries is broken (non-POSIX).
16490 # Create a list of thread flags to try. Items starting with a "-" are
16491 # C compiler flags, and other items are library names, except for "none"
16492 # which indicates that we try without any flags at all, and "pthread-config"
16493 # which is a program returning the flags for the Pth emulation library.
16495 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16497 # The ordering *is* (sometimes) important. Some notes on the
16498 # individual items follow:
16500 # pthreads: AIX (must check this before -lpthread)
16501 # none: in case threads are in libc; should be tried before -Kthread and
16502 # other compiler flags to prevent continual compiler warnings
16503 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16504 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16505 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16506 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16507 # -pthreads: Solaris/gcc
16508 # -mthreads: Mingw32/gcc, Lynx/gcc
16509 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16510 # doesn't hurt to check since this sometimes defines pthreads too;
16511 # also defines -D_REENTRANT)
16512 # ... -mt is also the pthreads flag for HP/aCC
16513 # pthread: Linux, etcetera
16514 # --thread-safe: KAI C++
16515 # pthread-config: use pthread-config program (for GNU Pth library)
16520 # On Solaris (at least, for some versions), libc contains stubbed
16521 # (non-functional) versions of the pthreads routines, so link-based
16522 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16523 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16524 # a function called by this macro, so we could check for that, but
16525 # who knows whether they'll stub that too in a future libc.) So,
16526 # we'll just look for -pthreads and -lpthread first:
16528 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16532 ax_pthread_flags="-pthread $ax_pthread_flags"
16536 # Clang doesn't consider unrecognized options an error unless we specify
16537 # -Werror. We throw in some extra Clang-specific options to ensure that
16538 # this doesn't happen for GCC, which also accepts -Werror.
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16541 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16542 save_CFLAGS="$CFLAGS"
16543 ax_pthread_extra_flags="-Werror"
16544 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h. */
16556 if ac_fn_c_try_compile "$LINENO"; then :
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16558 $as_echo "yes" >&6; }
16560 ax_pthread_extra_flags=
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16562 $as_echo "no" >&6; }
16564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565 CFLAGS="$save_CFLAGS"
16567 if test x"$ax_pthread_ok" = xno; then
16568 for flag in $ax_pthread_flags; do
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16573 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16578 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16579 PTHREAD_CFLAGS="$flag"
16583 # Extract the first word of "pthread-config", so it can be a program name with args.
16584 set dummy pthread-config; ac_word=$2
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16586 $as_echo_n "checking for $ac_word... " >&6; }
16587 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16588 $as_echo_n "(cached) " >&6
16590 if test -n "$ax_pthread_config"; then
16591 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16594 for as_dir in $PATH
16597 test -z "$as_dir" && as_dir=.
16598 for ac_exec_ext in '' $ac_executable_extensions; do
16599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16600 ac_cv_prog_ax_pthread_config="yes"
16601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16608 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16611 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16612 if test -n "$ax_pthread_config"; then
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16614 $as_echo "$ax_pthread_config" >&6; }
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16617 $as_echo "no" >&6; }
16621 if test x"$ax_pthread_config" = xno; then continue; fi
16622 PTHREAD_CFLAGS="`pthread-config --cflags`"
16623 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16628 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16629 PTHREAD_LIBS="-l$flag"
16634 save_CFLAGS="$CFLAGS"
16635 LIBS="$PTHREAD_LIBS $LIBS"
16636 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16638 # Check for various functions. We must include pthread.h,
16639 # since some functions may be macros. (On the Sequent, we
16640 # need a special flag -Kthread to make this header compile.)
16641 # We check for pthread_join because it is in -lpthread on IRIX
16642 # while pthread_create is in libc. We check for pthread_attr_init
16643 # due to DEC craziness with -lpthreads. We check for
16644 # pthread_cleanup_push because it is one of the few pthread
16645 # functions on Solaris that doesn't have a non-functional libc stub.
16646 # We try pthread_create on general principles.
16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648 /* end confdefs.h. */
16649 #include <pthread.h>
16650 static void routine(void *a) { *((int*)a) = 0; }
16651 static void *start_routine(void *a) { return a; }
16655 pthread_t th; pthread_attr_t attr;
16656 pthread_create(&th, 0, start_routine, 0);
16657 pthread_join(th, 0);
16658 pthread_attr_init(&attr);
16659 pthread_cleanup_push(routine, 0);
16660 pthread_cleanup_pop(0) /* ; */
16665 if ac_fn_c_try_link "$LINENO"; then :
16668 rm -f core conftest.err conftest.$ac_objext \
16669 conftest$ac_exeext conftest.$ac_ext
16672 CFLAGS="$save_CFLAGS"
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16675 $as_echo "$ax_pthread_ok" >&6; }
16676 if test "x$ax_pthread_ok" = xyes; then
16685 # Various other checks:
16686 if test "x$ax_pthread_ok" = xyes; then
16688 LIBS="$PTHREAD_LIBS $LIBS"
16689 save_CFLAGS="$CFLAGS"
16690 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16692 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16694 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16696 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698 /* end confdefs.h. */
16699 #include <pthread.h>
16703 int attr = $attr; return attr /* ; */
16708 if ac_fn_c_try_link "$LINENO"; then :
16709 attr_name=$attr; break
16711 rm -f core conftest.err conftest.$ac_objext \
16712 conftest$ac_exeext conftest.$ac_ext
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16715 $as_echo "$attr_name" >&6; }
16716 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16718 cat >>confdefs.h <<_ACEOF
16719 #define PTHREAD_CREATE_JOINABLE $attr_name
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16725 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16728 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16729 osf* | hpux*) flag="-D_REENTRANT";;
16731 if test "$GCC" = "yes"; then
16732 flag="-D_REENTRANT"
16734 # TODO: What about Clang on Solaris?
16735 flag="-mt -D_REENTRANT"
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16740 $as_echo "$flag" >&6; }
16741 if test "x$flag" != xno; then
16742 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16746 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16747 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16748 $as_echo_n "(cached) " >&6
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16753 #include <pthread.h>
16757 int i = PTHREAD_PRIO_INHERIT;
16762 if ac_fn_c_try_link "$LINENO"; then :
16763 ax_cv_PTHREAD_PRIO_INHERIT=yes
16765 ax_cv_PTHREAD_PRIO_INHERIT=no
16767 rm -f core conftest.err conftest.$ac_objext \
16768 conftest$ac_exeext conftest.$ac_ext
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16772 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16773 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16775 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16780 CFLAGS="$save_CFLAGS"
16782 # More AIX lossage: compile with *_r variant
16783 if test "x$GCC" != xyes; then
16787 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16788 #handle absolute path differently from PATH based program lookup
16791 if as_fn_executable_p ${CC}_r; then :
16792 PTHREAD_CC="${CC}_r"
16795 for ac_prog in ${CC}_r
16797 # Extract the first word of "$ac_prog", so it can be a program name with args.
16798 set dummy $ac_prog; ac_word=$2
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16800 $as_echo_n "checking for $ac_word... " >&6; }
16801 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16802 $as_echo_n "(cached) " >&6
16804 if test -n "$PTHREAD_CC"; then
16805 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16808 for as_dir in $PATH
16811 test -z "$as_dir" && as_dir=.
16812 for ac_exec_ext in '' $ac_executable_extensions; do
16813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16814 ac_cv_prog_PTHREAD_CC="$ac_prog"
16815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16824 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16825 if test -n "$PTHREAD_CC"; then
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16827 $as_echo "$PTHREAD_CC" >&6; }
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16830 $as_echo "no" >&6; }
16834 test -n "$PTHREAD_CC" && break
16836 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16847 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16853 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16854 if test x"$ax_pthread_ok" = xyes; then
16857 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16859 if test -n "$PTHREAD_LIBS"; then
16860 LIBS="$PTHREAD_LIBS $LIBS"
16862 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16864 ub_have_pthreads=yes
16865 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16867 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16869 cat >>confdefs.h <<_ACEOF
16870 #define HAVE_PTHREAD_SPINLOCK_T 1
16875 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16877 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16879 cat >>confdefs.h <<_ACEOF
16880 #define HAVE_PTHREAD_RWLOCK_T 1
16886 # The cast to long int works around a bug in the HP C Compiler
16887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16889 # This bug is HP SR number 8606223364.
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16891 $as_echo_n "checking size of unsigned long... " >&6; }
16892 if ${ac_cv_sizeof_unsigned_long+:} false; then :
16893 $as_echo_n "(cached) " >&6
16895 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
16898 if test "$ac_cv_type_unsigned_long" = yes; then
16899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16901 as_fn_error 77 "cannot compute sizeof (unsigned long)
16902 See \`config.log' for more details" "$LINENO" 5; }
16904 ac_cv_sizeof_unsigned_long=0
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16910 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16914 cat >>confdefs.h <<_ACEOF
16915 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16919 # The cast to long int works around a bug in the HP C Compiler
16920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16922 # This bug is HP SR number 8606223364.
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
16924 $as_echo_n "checking size of pthread_t... " >&6; }
16925 if ${ac_cv_sizeof_pthread_t+:} false; then :
16926 $as_echo_n "(cached) " >&6
16928 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default"; then :
16931 if test "$ac_cv_type_pthread_t" = yes; then
16932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16934 as_fn_error 77 "cannot compute sizeof (pthread_t)
16935 See \`config.log' for more details" "$LINENO" 5; }
16937 ac_cv_sizeof_pthread_t=0
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
16943 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
16947 cat >>confdefs.h <<_ACEOF
16948 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
16953 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
16955 $as_echo_n "checking if -pthread unused during linking... " >&6; }
16956 # catch clang warning 'argument unused during compilation'
16957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16958 /* end confdefs.h. */
16959 $ac_includes_default
16961 int main(void) {return 0;}
16964 pthread_unused="yes"
16966 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
16967 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
16968 if test $? = 0; then
16970 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
16971 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
16972 if test $? -ne 0; then
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16974 $as_echo "yes" >&6; }
16975 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
16976 PTHREAD_CFLAGS_ONLY="-pthread"
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16980 $as_echo "no" >&6; }
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16984 $as_echo "no" >&6; }
16985 fi # endif cc successful
16986 rm -f conftest conftest.c conftest.o
16987 fi # endif -pthread in CFLAGS
16996 ac_cpp='$CPP $CPPFLAGS'
16997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17004 # check solaris thread library
17006 # Check whether --with-solaris-threads was given.
17007 if test "${with_solaris_threads+set}" = set; then :
17008 withval=$with_solaris_threads;
17013 ub_have_sol_threads=no
17014 if test x_$withval != x_no; then
17015 if test x_$ub_have_pthreads != x_no; then
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
17017 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
17020 $as_echo_n "checking for library containing thr_create... " >&6; }
17021 if ${ac_cv_search_thr_create+:} false; then :
17022 $as_echo_n "(cached) " >&6
17024 ac_func_search_save_LIBS=$LIBS
17025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h. */
17028 /* Override any GCC internal prototype to avoid an error.
17029 Use char because int might match the return type of a GCC
17030 builtin and then its argument prototype would still apply. */
17034 char thr_create ();
17038 return thr_create ();
17043 for ac_lib in '' thread; do
17044 if test -z "$ac_lib"; then
17045 ac_res="none required"
17048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17050 if ac_fn_c_try_link "$LINENO"; then :
17051 ac_cv_search_thr_create=$ac_res
17053 rm -f core conftest.err conftest.$ac_objext \
17055 if ${ac_cv_search_thr_create+:} false; then :
17059 if ${ac_cv_search_thr_create+:} false; then :
17062 ac_cv_search_thr_create=no
17064 rm conftest.$ac_ext
17065 LIBS=$ac_func_search_save_LIBS
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
17068 $as_echo "$ac_cv_search_thr_create" >&6; }
17069 ac_res=$ac_cv_search_thr_create
17070 if test "$ac_res" != no; then :
17071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17074 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
17080 $as_echo_n "checking whether $CC supports -mt... " >&6; }
17081 cache=`echo mt | sed 'y%.=/+-%___p_%'`
17082 if eval \${cv_prog_cc_flag_$cache+:} false; then :
17083 $as_echo_n "(cached) " >&6
17086 echo 'void f(void){}' >conftest.c
17087 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
17088 eval "cv_prog_cc_flag_$cache=yes"
17090 eval "cv_prog_cc_flag_$cache=no"
17092 rm -f conftest conftest.o conftest.c
17096 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17098 $as_echo "yes" >&6; }
17100 CFLAGS="$CFLAGS -mt"
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17103 $as_echo "no" >&6; }
17105 CFLAGS="$CFLAGS -D_REENTRANT"
17108 ub_have_sol_threads=yes
17112 as_fn_error $? "no solaris threads found." "$LINENO" 5
17119 fi # end of non-mingw check of thread libraries
17121 # Check for SYSLOG_FACILITY
17123 # Check whether --with-syslog-facility was given.
17124 if test "${with_syslog_facility+set}" = set; then :
17125 withval=$with_syslog_facility; UNBOUND_SYSLOG_FACILITY="$withval"
17128 case "${UNBOUND_SYSLOG_FACILITY}" in
17130 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
17132 *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
17136 cat >>confdefs.h <<_ACEOF
17137 #define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}
17141 # Check for dynamic library module
17143 # Check whether --with-dynlibmodule was given.
17144 if test "${with_dynlibmodule+set}" = set; then :
17145 withval=$with_dynlibmodule;
17151 if test x_$withval != x_no; then
17153 $as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h
17155 WITH_DYNLIBMODULE=yes
17157 DYNLIBMOD_OBJ="dynlibmod.lo"
17159 DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h'
17161 if test $on_mingw = "no"; then
17162 # link with -ldl if not already there, for all executables because
17163 # dlopen call is in the dynlib module. For unbound executable, also
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17166 $as_echo_n "checking for library containing dlopen... " >&6; }
17167 if ${ac_cv_search_dlopen+:} false; then :
17168 $as_echo_n "(cached) " >&6
17170 ac_func_search_save_LIBS=$LIBS
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h. */
17174 /* Override any GCC internal prototype to avoid an error.
17175 Use char because int might match the return type of a GCC
17176 builtin and then its argument prototype would still apply. */
17189 for ac_lib in '' dl; do
17190 if test -z "$ac_lib"; then
17191 ac_res="none required"
17194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17196 if ac_fn_c_try_link "$LINENO"; then :
17197 ac_cv_search_dlopen=$ac_res
17199 rm -f core conftest.err conftest.$ac_objext \
17201 if ${ac_cv_search_dlopen+:} false; then :
17205 if ${ac_cv_search_dlopen+:} false; then :
17208 ac_cv_search_dlopen=no
17210 rm conftest.$ac_ext
17211 LIBS=$ac_func_search_save_LIBS
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17214 $as_echo "$ac_cv_search_dlopen" >&6; }
17215 ac_res=$ac_cv_search_dlopen
17216 if test "$ac_res" != no; then :
17217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17221 DYNLIBMOD_EXTRALIBS="-export-dynamic"
17223 DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a"
17228 # Check for PyUnbound
17230 # Check whether --with-pyunbound was given.
17231 if test "${with_pyunbound+set}" = set; then :
17232 withval=$with_pyunbound;
17239 ub_with_pyunbound=no
17240 if test x_$withval != x_no; then
17241 ub_with_pyunbound=yes
17245 # Check for Python module
17247 # Check whether --with-pythonmodule was given.
17248 if test "${with_pythonmodule+set}" = set; then :
17249 withval=$with_pythonmodule;
17255 ub_with_pythonmod=no
17256 if test x_$withval != x_no; then
17257 ub_with_pythonmod=yes
17261 # Check for Python & SWIG only on PyUnbound or PyModule
17262 if test x_$ub_test_python != x_no; then
17266 ac_save_LIBS="$LIBS"
17268 # Allow the use of a (user set) custom python version
17272 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17273 set dummy python$PYTHON_VERSION; ac_word=$2
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17275 $as_echo_n "checking for $ac_word... " >&6; }
17276 if ${ac_cv_path_PYTHON+:} false; then :
17277 $as_echo_n "(cached) " >&6
17281 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17285 for as_dir in $PATH
17288 test -z "$as_dir" && as_dir=.
17289 for ac_exec_ext in '' $ac_executable_extensions; do
17290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17291 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17302 PYTHON=$ac_cv_path_PYTHON
17303 if test -n "$PYTHON"; then
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17305 $as_echo "$PYTHON" >&6; }
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17308 $as_echo "no" >&6; }
17312 if test -z "$PYTHON"; then
17313 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
17317 if test -z "$PYTHON_VERSION"; then
17318 PYTHON_VERSION=`$PYTHON -c "import sys; \
17319 print(sys.version.split()[0])"`
17321 # calculate the version number components.
17323 v="$PYTHON_VERSION"
17324 PYTHON_VERSION_MAJOR=`echo $v | sed 's/[^0-9].*//'`
17325 if test -z "$PYTHON_VERSION_MAJOR"; then PYTHON_VERSION_MAJOR="0"; fi
17326 v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'`
17327 PYTHON_VERSION_MINOR=`echo $v | sed 's/[^0-9].*//'`
17328 if test -z "$PYTHON_VERSION_MINOR"; then PYTHON_VERSION_MINOR="0"; fi
17329 v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'`
17330 PYTHON_VERSION_PATCH=`echo $v | sed 's/[^0-9].*//'`
17331 if test -z "$PYTHON_VERSION_PATCH"; then PYTHON_VERSION_PATCH="0"; fi
17334 # For some systems, sysconfig exists, but has the wrong paths,
17335 # on Debian 10, for python 2.7 and 3.7. So, we check the version,
17336 # and for older versions try distutils.sysconfig first. For newer
17337 # versions>=3.10, where distutils.sysconfig is deprecated, use
17338 # sysconfig first and then attempt the other one.
17339 py_distutils_first="no"
17340 if test $PYTHON_VERSION_MAJOR -lt 3; then
17341 py_distutils_first="yes"
17343 if test $PYTHON_VERSION_MAJOR -eq 3 -a $PYTHON_VERSION_MINOR -lt 10; then
17344 py_distutils_first="yes"
17347 # Check if you have the first module
17348 if test "$py_distutils_first" = "yes"; then m="distutils"; else m="sysconfig"; fi
17349 sysconfig_module=""
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the $m Python module" >&5
17351 $as_echo_n "checking for the $m Python module... " >&6; }
17352 if ac_modulecheck_result1=`$PYTHON -c "import $m" 2>&1`; then
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17354 $as_echo "yes" >&6; }
17355 sysconfig_module="$m"
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17358 $as_echo "no" >&6; }
17361 # if not found, try the other one.
17362 if test -z "$sysconfig_module"; then
17363 if test "$py_distutils_first" = "yes"; then m2="sysconfig"; else m2="distutils"; fi
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the $m2 Python module" >&5
17365 $as_echo_n "checking for the $m2 Python module... " >&6; }
17366 if ac_modulecheck_result2=`$PYTHON -c "import $m2" 2>&1`; then
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17368 $as_echo "yes" >&6; }
17369 sysconfig_module="$m2"
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372 $as_echo "no" >&6; }
17373 as_fn_error $? "cannot import Python module \"$m\", or \"$m2\".
17374 Please check your Python installation. The errors are:
17376 $ac_modulecheck_result1
17378 $ac_modulecheck_result2" "$LINENO" 5
17382 if test "$sysconfig_module" = "distutils"; then sysconfig_module="distutils.sysconfig"; fi
17385 # Check for Python include path
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17388 $as_echo_n "checking for Python include path... " >&6; }
17389 if test -z "$PYTHON_CPPFLAGS"; then
17390 if test "$sysconfig_module" = "sysconfig"; then
17391 python_path=`$PYTHON -c 'import sysconfig; \
17392 print(sysconfig.get_path("include"));'`
17394 python_path=`$PYTHON -c "import distutils.sysconfig; \
17395 print(distutils.sysconfig.get_python_inc());"`
17397 if test -n "${python_path}"; then
17398 python_path="-I$python_path"
17400 PYTHON_CPPFLAGS=$python_path
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17403 $as_echo "$PYTHON_CPPFLAGS" >&6; }
17407 # Check for Python library path
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17410 $as_echo_n "checking for Python library path... " >&6; }
17411 if test -z "$PYTHON_LDFLAGS"; then
17412 PYTHON_LDFLAGS=`$PYTHON -c "from $sysconfig_module import *; \
17413 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17416 $as_echo "$PYTHON_LDFLAGS" >&6; }
17419 if test -z "$PYTHON_LIBDIR"; then
17420 PYTHON_LIBDIR=`$PYTHON -c "from $sysconfig_module import *; \
17421 print(get_config_var('LIBDIR'));"`
17425 # Check for site packages
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17428 $as_echo_n "checking for Python site-packages path... " >&6; }
17429 if test -z "$PYTHON_SITE_PKG"; then
17430 if test "$sysconfig_module" = "sysconfig"; then
17431 PYTHON_SITE_PKG=`$PYTHON -c 'import sysconfig; \
17432 print(sysconfig.get_path("platlib"));'`
17434 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17435 print(distutils.sysconfig.get_python_lib(1,0));"`
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17439 $as_echo "$PYTHON_SITE_PKG" >&6; }
17443 # final check to see if everything compiles alright
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17446 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
17448 ac_cpp='$CPP $CPPFLAGS'
17449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17453 # save current global flags
17454 ac_save_LIBS="$LIBS"
17455 ac_save_CPPFLAGS="$CPPFLAGS"
17457 LIBS="$LIBS $PYTHON_LDFLAGS"
17458 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17460 /* end confdefs.h. */
17462 #include <Python.h>
17474 if ac_fn_c_try_link "$LINENO"; then :
17479 rm -f core conftest.err conftest.$ac_objext \
17480 conftest$ac_exeext conftest.$ac_ext
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17483 $as_echo "$pythonexists" >&6; }
17485 if test ! "$pythonexists" = "yes"; then
17487 Could not link test program to Python. Maybe the main Python library has been
17488 installed in some non-standard library path. If so, pass it to configure,
17489 via the LDFLAGS environment variable.
17490 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17491 ============================================================================
17493 You probably have to install the development version of the Python package
17494 for your distribution. The exact name of this package varies among them.
17495 ============================================================================
17500 ac_cpp='$CPP $CPPFLAGS'
17501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17505 # turn back to default flags
17506 CPPFLAGS="$ac_save_CPPFLAGS"
17507 LIBS="$ac_save_LIBS"
17513 if test ! -z "$PYTHON_VERSION"; then
17515 if test "$PYTHON_VERSION_MAJOR" -lt 2; then
17518 if test "$PYTHON_VERSION_MAJOR" -eq 2 -a "$PYTHON_VERSION_MINOR" -lt 4; then
17521 if test "$badversion" = "yes"; then
17522 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
17525 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
17529 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
17531 if test x_$ub_with_pythonmod != x_no; then
17532 if test -n "$LIBS"; then
17533 LIBS="$PYTHON_LDFLAGS $LIBS"
17535 LIBS="$PYTHON_LDFLAGS"
17538 PYTHON_LIBS="$PYTHON_LDFLAGS"
17540 if test -n "$CPPFLAGS"; then
17541 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17543 CPPFLAGS="$PYTHON_CPPFLAGS"
17545 if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then
17547 if test "x$enable_rpath" = xyes; then
17548 if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then
17549 RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR"
17555 if test -n "$PKG_CONFIG" && \
17556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
17557 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
17559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17560 test $ac_status = 0; }; then
17561 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
17563 PC_PY_DEPENDENCY="python"
17569 # Check whether --enable-swig-version-check was given.
17570 if test "${enable_swig_version_check+set}" = set; then :
17571 enableval=$enable_swig_version_check;
17574 if test "$enable_swig_version_check" = "yes"; then
17576 # Extract the first word of "swig", so it can be a program name with args.
17577 set dummy swig; ac_word=$2
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17579 $as_echo_n "checking for $ac_word... " >&6; }
17580 if ${ac_cv_path_SWIG+:} false; then :
17581 $as_echo_n "(cached) " >&6
17585 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17589 for as_dir in $PATH
17592 test -z "$as_dir" && as_dir=.
17593 for ac_exec_ext in '' $ac_executable_extensions; do
17594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17595 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17606 SWIG=$ac_cv_path_SWIG
17607 if test -n "$SWIG"; then
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17609 $as_echo "$SWIG" >&6; }
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17612 $as_echo "no" >&6; }
17616 if test -z "$SWIG" ; then
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17618 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17619 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17620 elif test -n "2.0.1" ; then
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17622 $as_echo_n "checking for SWIG version... " >&6; }
17623 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'`
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17625 $as_echo "$swig_version" >&6; }
17626 if test -n "$swig_version" ; then
17627 # Calculate the required version number components
17629 required_major=`echo $required | sed 's/[^0-9].*//'`
17630 if test -z "$required_major" ; then
17633 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17634 required_minor=`echo $required | sed 's/[^0-9].*//'`
17635 if test -z "$required_minor" ; then
17638 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17639 required_patch=`echo $required | sed 's/[^0-9].*//'`
17640 if test -z "$required_patch" ; then
17643 # Calculate the available version number components
17644 available=$swig_version
17645 available_major=`echo $available | sed 's/[^0-9].*//'`
17646 if test -z "$available_major" ; then
17649 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17650 available_minor=`echo $available | sed 's/[^0-9].*//'`
17651 if test -z "$available_minor" ; then
17654 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17655 available_patch=`echo $available | sed 's/[^0-9].*//'`
17656 if test -z "$available_patch" ; then
17660 if test $available_major -lt $required_major ; then
17663 if test $available_major -eq $required_major \
17664 -a $available_minor -lt $required_minor ; then
17667 if test $available_major -eq $required_major \
17668 -a $available_minor -eq $required_minor \
17669 -a $available_patch -lt $required_patch ; then
17672 if test $badversion -eq 1 ; then
17673 { $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
17674 $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;}
17675 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17678 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17679 SWIG_LIB=`$SWIG -swiglib`
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17681 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17685 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17686 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17693 # Extract the first word of "swig", so it can be a program name with args.
17694 set dummy swig; ac_word=$2
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17696 $as_echo_n "checking for $ac_word... " >&6; }
17697 if ${ac_cv_path_SWIG+:} false; then :
17698 $as_echo_n "(cached) " >&6
17702 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17706 for as_dir in $PATH
17709 test -z "$as_dir" && as_dir=.
17710 for ac_exec_ext in '' $ac_executable_extensions; do
17711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17712 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17723 SWIG=$ac_cv_path_SWIG
17724 if test -n "$SWIG"; then
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17726 $as_echo "$SWIG" >&6; }
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17729 $as_echo "no" >&6; }
17733 if test -z "$SWIG" ; then
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17735 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17736 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17737 elif test -n "" ; then
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17739 $as_echo_n "checking for SWIG version... " >&6; }
17740 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'`
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17742 $as_echo "$swig_version" >&6; }
17743 if test -n "$swig_version" ; then
17744 # Calculate the required version number components
17746 required_major=`echo $required | sed 's/[^0-9].*//'`
17747 if test -z "$required_major" ; then
17750 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17751 required_minor=`echo $required | sed 's/[^0-9].*//'`
17752 if test -z "$required_minor" ; then
17755 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17756 required_patch=`echo $required | sed 's/[^0-9].*//'`
17757 if test -z "$required_patch" ; then
17760 # Calculate the available version number components
17761 available=$swig_version
17762 available_major=`echo $available | sed 's/[^0-9].*//'`
17763 if test -z "$available_major" ; then
17766 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17767 available_minor=`echo $available | sed 's/[^0-9].*//'`
17768 if test -z "$available_minor" ; then
17771 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17772 available_patch=`echo $available | sed 's/[^0-9].*//'`
17773 if test -z "$available_patch" ; then
17777 if test $available_major -lt $required_major ; then
17780 if test $available_major -eq $required_major \
17781 -a $available_minor -lt $required_minor ; then
17784 if test $available_major -eq $required_major \
17785 -a $available_minor -eq $required_minor \
17786 -a $available_patch -lt $required_patch ; then
17789 if test $badversion -eq 1 ; then
17790 { $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
17791 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
17792 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17795 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17796 SWIG_LIB=`$SWIG -swiglib`
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17798 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17802 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17803 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17810 $as_echo_n "checking SWIG... " >&6; }
17811 if test ! -x "$SWIG"; then
17812 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17815 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
17820 $as_echo "present" >&6; }
17822 # If have Python & SWIG
17823 # Declare PythonMod
17824 if test x_$ub_with_pythonmod != x_no; then
17826 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
17828 WITH_PYTHONMODULE=yes
17830 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
17832 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
17834 PYTHONMOD_INSTALL=pythonmod-install
17836 PYTHONMOD_UNINSTALL=pythonmod-uninstall
17840 # Declare PyUnbound
17841 if test x_$ub_with_pyunbound != x_no; then
17843 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
17847 PYUNBOUND_OBJ="libunbound_wrap.lo"
17849 PYUNBOUND_TARGET="_unbound.la"
17851 PYUNBOUND_INSTALL=pyunbound-install
17853 PYUNBOUND_UNINSTALL=pyunbound-uninstall
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
17859 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
17860 ub_with_pyunbound=no
17861 ub_with_pythonmod=no
17865 if test "`uname`" = "NetBSD"; then
17866 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
17870 if test "`uname`" = "Linux"; then
17871 # splint cannot parse modern c99 header files
17872 GCC_DOCKER_LINTFLAGS='-syntax'
17875 CONFIG_DATE=`date +%Y%m%d`
17878 # Checks for libraries.
17883 # Check whether --with-nss was given.
17884 if test "${with_nss+set}" = set; then :
17888 $as_echo "#define HAVE_NSS 1" >>confdefs.h
17890 if test "$withval" != "" -a "$withval" != "yes"; then
17891 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17892 LDFLAGS="$LDFLAGS -L$withval/lib"
17894 if test "x$enable_rpath" = xyes; then
17895 if echo "$withval/lib" | grep "^/" >/dev/null; then
17896 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17900 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17902 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17903 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17905 LIBS="$LIBS -lnss3 -lnspr4"
17907 PC_CRYPTO_DEPENDENCY="nss nspr"
17917 # Check whether --with-nettle was given.
17918 if test "${with_nettle+set}" = set; then :
17919 withval=$with_nettle;
17922 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17924 for ac_header in nettle/dsa-compat.h
17926 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17928 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17929 cat >>confdefs.h <<_ACEOF
17930 #define HAVE_NETTLE_DSA_COMPAT_H 1
17937 if test "$withval" != "" -a "$withval" != "yes"; then
17938 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17939 LDFLAGS="$LDFLAGS -L$withval/lib"
17941 if test "x$enable_rpath" = xyes; then
17942 if echo "$withval/lib" | grep "^/" >/dev/null; then
17943 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17948 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17950 LIBS="$LIBS -lhogweed -lnettle -lgmp"
17952 PC_CRYPTO_DEPENDENCY="hogweed nettle"
17960 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17963 # Check whether --with-ssl was given.
17964 if test "${with_ssl+set}" = set; then :
17973 if test x_$withval = x_no; then
17974 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17978 if test x_$withval != x_no; then
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17980 $as_echo_n "checking for SSL... " >&6; }
17981 if test -n "$withval"; then
17982 if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then
17986 ssldir_include="$ssldir"
17987 ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'`
17988 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
17991 ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'`
17992 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
17995 as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5
18000 if test x_$withval = x_ -o x_$withval = x_yes; then
18001 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
18003 for dir in $withval; do
18005 if test -f "$dir/include/openssl/ssl.h"; then
18007 ssldir_include="$ssldir/include"
18008 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
18009 ssldir_lib="$ssldir/lib64"
18011 ssldir_lib="$ssldir/lib"
18016 if test x_$found_ssl != x_yes; then
18017 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
18020 $as_echo "found in $ssldir" >&6; }
18022 cat >>confdefs.h <<_ACEOF
18023 #define HAVE_SSL /**/
18027 if test "$ssldir" != "/usr"; then
18028 CPPFLAGS="$CPPFLAGS -I$ssldir_include"
18029 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include"
18030 LDFLAGS="$LDFLAGS -L$ssldir_lib"
18031 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib"
18033 if test "x$enable_rpath" = xyes; then
18034 if echo "$ssldir_lib" | grep "^/" >/dev/null; then
18035 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib"
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
18042 $as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; }
18043 LIBS="$LIBS -lcrypto"
18044 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046 /* end confdefs.h. */
18052 int EVP_sha256(void);
18053 (void)EVP_sha256();
18059 if ac_fn_c_try_link "$LINENO"; then :
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18062 $as_echo "yes" >&6; }
18064 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18070 $as_echo "no" >&6; }
18071 # check if -lwsock32 or -lgdi32 are needed.
18073 BAKSSLLIBS="$LIBSSL_LIBS"
18074 LIBS="$LIBS -lgdi32 -lws2_32"
18075 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
18077 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h. */
18085 int EVP_sha256(void);
18086 (void)EVP_sha256();
18092 if ac_fn_c_try_link "$LINENO"; then :
18095 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18098 $as_echo "yes" >&6; }
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18103 $as_echo "no" >&6; }
18105 LIBSSL_LIBS="$BAKSSLLIBS"
18107 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
18109 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
18110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h. */
18117 int EVP_sha256(void);
18118 (void)EVP_sha256();
18124 if ac_fn_c_try_link "$LINENO"; then :
18127 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18130 $as_echo "yes" >&6; }
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18135 $as_echo "no" >&6; }
18137 LIBSSL_LIBS="$BAKSSLLIBS"
18138 LIBS="$LIBS -ldl -pthread"
18139 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
18141 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
18142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18143 /* end confdefs.h. */
18149 int EVP_sha256(void);
18150 (void)EVP_sha256();
18156 if ac_fn_c_try_link "$LINENO"; then :
18159 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18162 $as_echo "yes" >&6; }
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18167 $as_echo "no" >&6; }
18168 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
18171 rm -f core conftest.err conftest.$ac_objext \
18172 conftest$ac_exeext conftest.$ac_ext
18175 rm -f core conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18179 rm -f core conftest.err conftest.$ac_objext \
18180 conftest$ac_exeext conftest.$ac_ext
18183 rm -f core conftest.err conftest.$ac_objext \
18184 conftest$ac_exeext conftest.$ac_ext
18189 for ac_header in openssl/ssl.h
18191 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
18193 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
18194 cat >>confdefs.h <<_ACEOF
18195 #define HAVE_OPENSSL_SSL_H 1
18202 for ac_header in openssl/err.h
18204 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
18206 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
18207 cat >>confdefs.h <<_ACEOF
18208 #define HAVE_OPENSSL_ERR_H 1
18215 for ac_header in openssl/rand.h
18217 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
18219 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
18220 cat >>confdefs.h <<_ACEOF
18221 #define HAVE_OPENSSL_RAND_H 1
18231 # check if libssl needs libdl
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
18235 $as_echo_n "checking if libssl needs libdl... " >&6; }
18236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18237 /* end confdefs.h. */
18239 /* Override any GCC internal prototype to avoid an error.
18240 Use char because int might match the return type of a GCC
18241 builtin and then its argument prototype would still apply. */
18245 char SSL_CTX_new ();
18249 return SSL_CTX_new ();
18254 if ac_fn_c_try_link "$LINENO"; then :
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18257 $as_echo "no" >&6; }
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18263 $as_echo "yes" >&6; }
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18266 $as_echo_n "checking for library containing dlopen... " >&6; }
18267 if ${ac_cv_search_dlopen+:} false; then :
18268 $as_echo_n "(cached) " >&6
18270 ac_func_search_save_LIBS=$LIBS
18271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18272 /* end confdefs.h. */
18274 /* Override any GCC internal prototype to avoid an error.
18275 Use char because int might match the return type of a GCC
18276 builtin and then its argument prototype would still apply. */
18289 for ac_lib in '' dl; do
18290 if test -z "$ac_lib"; then
18291 ac_res="none required"
18294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18296 if ac_fn_c_try_link "$LINENO"; then :
18297 ac_cv_search_dlopen=$ac_res
18299 rm -f core conftest.err conftest.$ac_objext \
18301 if ${ac_cv_search_dlopen+:} false; then :
18305 if ${ac_cv_search_dlopen+:} false; then :
18308 ac_cv_search_dlopen=no
18310 rm conftest.$ac_ext
18311 LIBS=$ac_func_search_save_LIBS
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18314 $as_echo "$ac_cv_search_dlopen" >&6; }
18315 ac_res=$ac_cv_search_dlopen
18316 if test "$ac_res" != no; then :
18317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18323 rm -f core conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
18327 PC_CRYPTO_DEPENDENCY=""
18330 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
18334 $as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
18335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18336 /* end confdefs.h. */
18342 int EVP_sha256(void);
18343 (void)EVP_sha256();
18349 if ac_fn_c_try_link "$LINENO"; then :
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18352 $as_echo "no" >&6; }
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18358 $as_echo "yes" >&6; }
18360 LIBS="$LIBS -lcrypt32"
18363 rm -f core conftest.err conftest.$ac_objext \
18364 conftest$ac_exeext conftest.$ac_ext
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
18367 $as_echo_n "checking for LibreSSL... " >&6; }
18368 if grep VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18370 $as_echo "yes" >&6; }
18372 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
18374 # libressl provides these compat functions, but they may also be
18375 # declared by the OS in libc. See if they have been declared.
18376 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
18377 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
18383 cat >>confdefs.h <<_ACEOF
18384 #define HAVE_DECL_STRLCPY $ac_have_decl
18386 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
18387 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
18393 cat >>confdefs.h <<_ACEOF
18394 #define HAVE_DECL_STRLCAT $ac_have_decl
18396 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
18397 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
18403 cat >>confdefs.h <<_ACEOF
18404 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
18406 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
18407 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
18413 cat >>confdefs.h <<_ACEOF
18414 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18419 $as_echo "no" >&6; }
18421 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
18423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18424 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18426 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18427 cat >>confdefs.h <<_ACEOF
18428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18435 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
18437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18438 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18439 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18440 cat >>confdefs.h <<_ACEOF
18441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18448 # these check_funcs need -lssl
18451 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
18453 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18454 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18455 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18456 cat >>confdefs.h <<_ACEOF
18457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18465 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
18466 $ac_includes_default
18467 #ifdef HAVE_OPENSSL_ERR_H
18468 #include <openssl/err.h>
18471 #ifdef HAVE_OPENSSL_RAND_H
18472 #include <openssl/rand.h>
18475 #ifdef HAVE_OPENSSL_CONF_H
18476 #include <openssl/conf.h>
18479 #ifdef HAVE_OPENSSL_ENGINE_H
18480 #include <openssl/engine.h>
18482 #include <openssl/ssl.h>
18483 #include <openssl/evp.h>
18486 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
18492 cat >>confdefs.h <<_ACEOF
18493 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
18495 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
18496 $ac_includes_default
18497 #ifdef HAVE_OPENSSL_ERR_H
18498 #include <openssl/err.h>
18501 #ifdef HAVE_OPENSSL_RAND_H
18502 #include <openssl/rand.h>
18505 #ifdef HAVE_OPENSSL_CONF_H
18506 #include <openssl/conf.h>
18509 #ifdef HAVE_OPENSSL_ENGINE_H
18510 #include <openssl/engine.h>
18512 #include <openssl/ssl.h>
18513 #include <openssl/evp.h>
18516 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
18522 cat >>confdefs.h <<_ACEOF
18523 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
18525 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
18526 $ac_includes_default
18527 #ifdef HAVE_OPENSSL_ERR_H
18528 #include <openssl/err.h>
18531 #ifdef HAVE_OPENSSL_RAND_H
18532 #include <openssl/rand.h>
18535 #ifdef HAVE_OPENSSL_CONF_H
18536 #include <openssl/conf.h>
18539 #ifdef HAVE_OPENSSL_ENGINE_H
18540 #include <openssl/engine.h>
18542 #include <openssl/ssl.h>
18543 #include <openssl/evp.h>
18546 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
18552 cat >>confdefs.h <<_ACEOF
18553 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
18557 if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
18558 # check function return type.
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
18560 $as_echo_n "checking the return type of HMAC_Init_ex... " >&6; }
18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18564 #ifdef HAVE_OPENSSL_ERR_H
18565 #include <openssl/err.h>
18568 #ifdef HAVE_OPENSSL_RAND_H
18569 #include <openssl/rand.h>
18572 #ifdef HAVE_OPENSSL_CONF_H
18573 #include <openssl/conf.h>
18576 #ifdef HAVE_OPENSSL_ENGINE_H
18577 #include <openssl/engine.h>
18579 #include <openssl/ssl.h>
18580 #include <openssl/evp.h>
18586 HMAC_CTX* hmac_ctx = NULL;
18587 void* hmac_key = NULL;
18588 const EVP_MD* digest = NULL;
18589 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
18596 if ac_fn_c_try_compile "$LINENO"; then :
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18599 $as_echo "int" >&6; }
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
18604 $as_echo "void" >&6; }
18606 $as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
18610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18618 # Check whether --with-libbsd was given.
18619 if test "${with_libbsd+set}" = set; then :
18620 withval=$with_libbsd;
18621 for ac_header in bsd/string.h bsd/stdlib.h
18623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18624 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18626 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18627 cat >>confdefs.h <<_ACEOF
18628 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18635 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
18636 for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do
18637 as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh`
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
18639 $as_echo_n "checking for library containing $func... " >&6; }
18640 if eval \${$as_ac_Search+:} false; then :
18641 $as_echo_n "(cached) " >&6
18643 ac_func_search_save_LIBS=$LIBS
18644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18645 /* end confdefs.h. */
18647 /* Override any GCC internal prototype to avoid an error.
18648 Use char because int might match the return type of a GCC
18649 builtin and then its argument prototype would still apply. */
18662 for ac_lib in '' bsd; do
18663 if test -z "$ac_lib"; then
18664 ac_res="none required"
18667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18669 if ac_fn_c_try_link "$LINENO"; then :
18670 eval "$as_ac_Search=\$ac_res"
18672 rm -f core conftest.err conftest.$ac_objext \
18674 if eval \${$as_ac_Search+:} false; then :
18678 if eval \${$as_ac_Search+:} false; then :
18681 eval "$as_ac_Search=no"
18683 rm conftest.$ac_ext
18684 LIBS=$ac_func_search_save_LIBS
18686 eval ac_res=\$$as_ac_Search
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18688 $as_echo "$ac_res" >&6; }
18689 eval ac_res=\$$as_ac_Search
18690 if test "$ac_res" != no; then :
18691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18694 $as_echo "#define HAVE_LIBBSD 1" >>confdefs.h
18696 PC_LIBBSD_DEPENDENCY=libbsd
18707 # Check whether --enable-sha1 was given.
18708 if test "${enable_sha1+set}" = set; then :
18709 enableval=$enable_sha1;
18712 case "$enable_sha1" in
18717 $as_echo "#define USE_SHA1 1" >>confdefs.h
18723 # Check whether --enable-sha2 was given.
18724 if test "${enable_sha2+set}" = set; then :
18725 enableval=$enable_sha2;
18728 case "$enable_sha2" in
18733 $as_echo "#define USE_SHA2 1" >>confdefs.h
18738 # Check whether --enable-subnet was given.
18739 if test "${enable_subnet+set}" = set; then :
18740 enableval=$enable_subnet;
18743 case "$enable_subnet" in
18746 $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
18748 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
18750 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
18757 # check whether gost also works
18759 # Check whether --enable-gost was given.
18760 if test "${enable_gost+set}" = set; then :
18761 enableval=$enable_gost;
18765 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18766 case "$enable_gost" in
18770 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
18771 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
18774 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
18777 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
18778 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
18781 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
18786 $as_echo_n "checking if GOST works... " >&6; }
18787 if test c${cross_compiling} = cno; then
18788 BAKCFLAGS="$CFLAGS"
18789 if test -n "$ssldir"; then
18790 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib"
18792 if test "$cross_compiling" = yes; then :
18793 eval "ac_cv_c_gost_works=maybe"
18795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796 /* end confdefs.h. */
18798 #include <string.h>
18799 #include <openssl/ssl.h>
18800 #include <openssl/evp.h>
18801 #include <openssl/engine.h>
18802 #include <openssl/conf.h>
18803 /* routine to load gost (from sldns) */
18804 int load_gost_id(void)
18806 static int gost_id = 0;
18807 const EVP_PKEY_ASN1_METHOD* meth;
18810 if(gost_id) return gost_id;
18812 /* see if configuration loaded gost implementation from other engine*/
18813 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
18815 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18819 /* see if engine can be loaded already */
18820 e = ENGINE_by_id("gost");
18822 /* load it ourself, in case statically linked */
18823 ENGINE_load_builtin_engines();
18824 ENGINE_load_dynamic();
18825 e = ENGINE_by_id("gost");
18828 /* no gost engine in openssl */
18831 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
18837 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
18839 /* algo not found */
18844 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18850 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
18851 const char* str = "Hello world";
18852 const unsigned char check[] = {
18853 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
18854 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
18855 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
18856 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
18858 OPENSSL_config(NULL);
18859 (void)load_gost_id();
18860 md = EVP_get_digestbyname("md_gost94");
18862 memset(digest, 0, sizeof(digest));
18863 ctx = EVP_MD_CTX_create();
18865 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
18866 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
18867 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
18868 /* uncomment to see the hash calculated.
18870 for(i=0; i<32; i++)
18871 printf(" %2.2x", (int)digest[i]);
18874 if(memcmp(digest, check, sizeof(check)) != 0)
18880 if ac_fn_c_try_run "$LINENO"; then :
18881 eval "ac_cv_c_gost_works=yes"
18883 eval "ac_cv_c_gost_works=no"
18885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18886 conftest.$ac_objext conftest.beam conftest.$ac_ext
18889 CFLAGS="$BAKCFLAGS"
18891 eval "ac_cv_c_gost_works=maybe"
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
18894 $as_echo "$ac_cv_c_gost_works" >&6; }
18896 if test "$ac_cv_c_gost_works" != no; then
18899 $as_echo "#define USE_GOST 1" >>confdefs.h
18905 # Check whether --enable-ecdsa was given.
18906 if test "${enable_ecdsa+set}" = set; then :
18907 enableval=$enable_ecdsa;
18911 case "$enable_ecdsa" in
18915 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18916 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
18917 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
18920 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18923 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
18924 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
18927 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18930 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
18931 #include <openssl/evp.h>
18934 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
18940 cat >>confdefs.h <<_ACEOF
18941 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
18943 if test $ac_have_decl = 1; then :
18946 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18948 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
18949 #include <openssl/evp.h>
18952 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
18958 cat >>confdefs.h <<_ACEOF
18959 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
18961 if test $ac_have_decl = 1; then :
18964 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18967 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
18969 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
18970 if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
18971 if grep OPENSSL_VERSION_NUMBER $ssldir_include/openssl/opensslv.h | grep 0x0 >/dev/null; then
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18973 $as_echo "no" >&6; }
18975 cat >>confdefs.h <<_ACEOF
18976 #define USE_ECDSA_EVP_WORKAROUND 1
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18981 $as_echo "yes" >&6; }
18984 # not OpenSSL, thus likely LibreSSL, which supports it
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18986 $as_echo "yes" >&6; }
18989 # we now know we have ECDSA and the required curves.
18991 cat >>confdefs.h <<_ACEOF
18992 #define USE_ECDSA 1
18999 # Check whether --enable-dsa was given.
19000 if test "${enable_dsa+set}" = set; then :
19001 enableval=$enable_dsa;
19005 case "$enable_dsa" in
19007 # detect if DSA is supported, and turn it off if not.
19008 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19009 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
19010 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
19012 as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
19013 ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
19014 $ac_includes_default
19015 #ifdef HAVE_OPENSSL_ERR_H
19016 #include <openssl/err.h>
19019 #ifdef HAVE_OPENSSL_RAND_H
19020 #include <openssl/rand.h>
19023 #ifdef HAVE_OPENSSL_CONF_H
19024 #include <openssl/conf.h>
19027 #ifdef HAVE_OPENSSL_ENGINE_H
19028 #include <openssl/engine.h>
19032 if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
19035 cat >>confdefs.h <<_ACEOF
19041 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
19047 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
19053 cat >>confdefs.h <<_ACEOF
19060 # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT
19061 # support DSA for DNSSEC Validation.
19066 # Check whether --with-deprecate-rsa-1024 was given.
19067 if test "${with_deprecate_rsa_1024+set}" = set; then :
19068 withval=$with_deprecate_rsa_1024;
19071 if test "$with_deprecate_rsa_1024" = "yes"; then
19073 $as_echo "#define DEPRECATE_RSA_1024 1" >>confdefs.h
19077 # Check whether --enable-ed25519 was given.
19078 if test "${enable_ed25519+set}" = set; then :
19079 enableval=$enable_ed25519;
19083 case "$enable_ed25519" in
19087 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19088 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
19089 #include <openssl/evp.h>
19092 if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
19098 cat >>confdefs.h <<_ACEOF
19099 #define HAVE_DECL_NID_ED25519 $ac_have_decl
19101 if test $ac_have_decl = 1; then :
19106 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
19111 if test $USE_NETTLE = "yes"; then
19112 for ac_header in nettle/eddsa.h
19114 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
19116 if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
19117 cat >>confdefs.h <<_ACEOF
19118 #define HAVE_NETTLE_EDDSA_H 1
19126 if test $use_ed25519 = "yes"; then
19128 cat >>confdefs.h <<_ACEOF
19129 #define USE_ED25519 1
19136 # Check whether --enable-ed448 was given.
19137 if test "${enable_ed448+set}" = set; then :
19138 enableval=$enable_ed448;
19142 case "$enable_ed448" in
19146 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19147 ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
19148 #include <openssl/evp.h>
19151 if test "x$ac_cv_have_decl_NID_ED448" = xyes; then :
19157 cat >>confdefs.h <<_ACEOF
19158 #define HAVE_DECL_NID_ED448 $ac_have_decl
19160 if test $ac_have_decl = 1; then :
19165 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
19170 if test $use_ed448 = "yes"; then
19172 cat >>confdefs.h <<_ACEOF
19173 #define USE_ED448 1
19180 # Check whether --enable-event-api was given.
19181 if test "${enable_event_api+set}" = set; then :
19182 enableval=$enable_event_api;
19185 case "$enable_event_api" in
19187 UNBOUND_EVENT_INSTALL=unbound-event-install
19189 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
19196 # Check whether --enable-tfo-client was given.
19197 if test "${enable_tfo_client+set}" = set; then :
19198 enableval=$enable_tfo_client;
19201 case "$enable_tfo_client" in
19204 linux*) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
19205 #include <netinet/tcp.h>
19208 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19210 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19212 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19216 cat >>confdefs.h <<_ACEOF
19217 #define USE_MSG_FASTOPEN 1
19221 darwin*) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
19222 #include <sys/socket.h>
19225 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19227 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19229 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19233 cat >>confdefs.h <<_ACEOF
19234 #define USE_OSX_MSG_FASTOPEN 1
19244 # Check whether --enable-tfo-server was given.
19245 if test "${enable_tfo_server+set}" = set; then :
19246 enableval=$enable_tfo_server;
19249 case "$enable_tfo_server" in
19251 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
19252 #include <netinet/tcp.h>
19255 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
19257 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
19259 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
19263 cat >>confdefs.h <<_ACEOF
19264 #define USE_TCP_FASTOPEN 1
19272 # check for libevent
19274 # Check whether --with-libevent was given.
19275 if test "${with_libevent+set}" = set; then :
19276 withval=$with_libevent;
19281 if test "x_$with_libevent" != x_no; then
19283 $as_echo "#define USE_LIBEVENT 1" >>confdefs.h
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
19286 $as_echo_n "checking for libevent... " >&6; }
19287 if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then
19288 with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19290 for dir in $with_libevent; do
19292 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
19293 found_libevent="yes"
19294 if test "$thedir" != "/usr"; then
19295 CPPFLAGS="$CPPFLAGS -I$thedir/include"
19300 if test x_$found_libevent != x_yes; then
19301 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
19302 # libevent source directory
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19304 $as_echo "found in $thedir" >&6; }
19305 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
19306 BAK_LDFLAGS_SET="1"
19307 BAK_LDFLAGS="$LDFLAGS"
19308 # remove evdns from linking
19309 mkdir build >/dev/null 2>&1
19310 mkdir build/libevent >/dev/null 2>&1
19311 mkdir build/libevent/.libs >/dev/null 2>&1
19312 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19313 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
19314 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19315 cp $ev_files_o build/libevent
19316 cp $ev_files_lo build/libevent
19317 cp $ev_files_libso build/libevent/.libs
19318 LATE_LDFLAGS="build/libevent/*.lo -lm"
19319 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
19321 as_fn_error $? "Cannot find the libevent library in $with_libevent
19322 You can restart ./configure --with-libevent=no to use a builtin alternative.
19323 Please note that this alternative is not as capable as libevent when using
19324 large outgoing port ranges. " "$LINENO" 5
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19328 $as_echo "found in $thedir" >&6; }
19329 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
19330 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
19332 if test "x$enable_rpath" = xyes; then
19333 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
19334 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
19339 if test "$thedir" != "/usr" -a "$thedir" != ""; then
19340 LDFLAGS="$LDFLAGS -L$thedir/lib"
19342 if test "x$enable_rpath" = xyes; then
19343 if echo "$thedir/lib" | grep "^/" >/dev/null; then
19344 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
19351 # check for library used by libevent after 1.3c
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19353 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19354 if ${ac_cv_search_clock_gettime+:} false; then :
19355 $as_echo_n "(cached) " >&6
19357 ac_func_search_save_LIBS=$LIBS
19358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359 /* end confdefs.h. */
19361 /* Override any GCC internal prototype to avoid an error.
19362 Use char because int might match the return type of a GCC
19363 builtin and then its argument prototype would still apply. */
19367 char clock_gettime ();
19371 return clock_gettime ();
19376 for ac_lib in '' rt; do
19377 if test -z "$ac_lib"; then
19378 ac_res="none required"
19381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19383 if ac_fn_c_try_link "$LINENO"; then :
19384 ac_cv_search_clock_gettime=$ac_res
19386 rm -f core conftest.err conftest.$ac_objext \
19388 if ${ac_cv_search_clock_gettime+:} false; then :
19392 if ${ac_cv_search_clock_gettime+:} false; then :
19395 ac_cv_search_clock_gettime=no
19397 rm conftest.$ac_ext
19398 LIBS=$ac_func_search_save_LIBS
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19401 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19402 ac_res=$ac_cv_search_clock_gettime
19403 if test "$ac_res" != no; then :
19404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19409 # is the event.h header libev or libevent?
19410 for ac_header in event.h
19412 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
19414 if test "x$ac_cv_header_event_h" = xyes; then :
19415 cat >>confdefs.h <<_ACEOF
19416 #define HAVE_EVENT_H 1
19423 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
19427 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19430 $as_echo_n "checking for library containing event_set... " >&6; }
19431 if ${ac_cv_search_event_set+:} false; then :
19432 $as_echo_n "(cached) " >&6
19434 ac_func_search_save_LIBS=$LIBS
19435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19436 /* end confdefs.h. */
19438 /* Override any GCC internal prototype to avoid an error.
19439 Use char because int might match the return type of a GCC
19440 builtin and then its argument prototype would still apply. */
19448 return event_set ();
19453 for ac_lib in '' ev; do
19454 if test -z "$ac_lib"; then
19455 ac_res="none required"
19458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19460 if ac_fn_c_try_link "$LINENO"; then :
19461 ac_cv_search_event_set=$ac_res
19463 rm -f core conftest.err conftest.$ac_objext \
19465 if ${ac_cv_search_event_set+:} false; then :
19469 if ${ac_cv_search_event_set+:} false; then :
19472 ac_cv_search_event_set=no
19474 rm conftest.$ac_ext
19475 LIBS=$ac_func_search_save_LIBS
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19478 $as_echo "$ac_cv_search_event_set" >&6; }
19479 ac_res=$ac_cv_search_event_set
19480 if test "$ac_res" != no; then :
19481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19489 $as_echo_n "checking for library containing event_set... " >&6; }
19490 if ${ac_cv_search_event_set+:} false; then :
19491 $as_echo_n "(cached) " >&6
19493 ac_func_search_save_LIBS=$LIBS
19494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495 /* end confdefs.h. */
19497 /* Override any GCC internal prototype to avoid an error.
19498 Use char because int might match the return type of a GCC
19499 builtin and then its argument prototype would still apply. */
19507 return event_set ();
19512 for ac_lib in '' event; do
19513 if test -z "$ac_lib"; then
19514 ac_res="none required"
19517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19519 if ac_fn_c_try_link "$LINENO"; then :
19520 ac_cv_search_event_set=$ac_res
19522 rm -f core conftest.err conftest.$ac_objext \
19524 if ${ac_cv_search_event_set+:} false; then :
19528 if ${ac_cv_search_event_set+:} false; then :
19531 ac_cv_search_event_set=no
19533 rm conftest.$ac_ext
19534 LIBS=$ac_func_search_save_LIBS
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19537 $as_echo "$ac_cv_search_event_set" >&6; }
19538 ac_res=$ac_cv_search_event_set
19539 if test "$ac_res" != no; then :
19540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19547 for ac_func in event_base_free
19549 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
19550 if test "x$ac_cv_func_event_base_free" = xyes; then :
19551 cat >>confdefs.h <<_ACEOF
19552 #define HAVE_EVENT_BASE_FREE 1
19557 # only in libevent 1.2 and later
19558 for ac_func in event_base_once
19560 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
19561 if test "x$ac_cv_func_event_base_once" = xyes; then :
19562 cat >>confdefs.h <<_ACEOF
19563 #define HAVE_EVENT_BASE_ONCE 1
19568 # only in libevent 1.4.1 and later
19569 for ac_func in event_base_new
19571 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
19572 if test "x$ac_cv_func_event_base_new" = xyes; then :
19573 cat >>confdefs.h <<_ACEOF
19574 #define HAVE_EVENT_BASE_NEW 1
19579 # only in libevent 1.4.1 and later
19580 for ac_func in event_base_get_method
19582 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
19583 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
19584 cat >>confdefs.h <<_ACEOF
19585 #define HAVE_EVENT_BASE_GET_METHOD 1
19590 # only in libevent 1.4.3 and later
19591 for ac_func in ev_loop
19593 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
19594 if test "x$ac_cv_func_ev_loop" = xyes; then :
19595 cat >>confdefs.h <<_ACEOF
19596 #define HAVE_EV_LOOP 1
19601 # only in libev. (tested on 3.51)
19602 for ac_func in ev_default_loop
19604 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
19605 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
19606 cat >>confdefs.h <<_ACEOF
19607 #define HAVE_EV_DEFAULT_LOOP 1
19612 # only in libev. (tested on 4.00)
19613 for ac_func in event_assign
19615 ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
19616 if test "x$ac_cv_func_event_assign" = xyes; then :
19617 cat >>confdefs.h <<_ACEOF
19618 #define HAVE_EVENT_ASSIGN 1
19623 # in libevent, for thread-safety
19624 ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
19625 #ifdef HAVE_EVENT_H
19626 # include <event.h>
19628 # include \"event2/event.h\"
19632 if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then :
19638 cat >>confdefs.h <<_ACEOF
19639 #define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl
19642 PC_LIBEVENT_DEPENDENCY="libevent"
19644 if test -n "$BAK_LDFLAGS_SET"; then
19645 LDFLAGS="$BAK_LDFLAGS"
19649 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
19653 # check for libexpat
19655 # Check whether --with-libexpat was given.
19656 if test "${with_libexpat+set}" = set; then :
19657 withval=$with_libexpat;
19659 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
19663 $as_echo_n "checking for libexpat... " >&6; }
19664 found_libexpat="no"
19665 for dir in $withval ; do
19666 if test -f "$dir/include/expat.h"; then
19667 found_libexpat="yes"
19668 if test "$dir" != "/usr"; then
19669 CPPFLAGS="$CPPFLAGS -I$dir/include"
19670 LDFLAGS="$LDFLAGS -L$dir/lib"
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19673 $as_echo "found in $dir" >&6; }
19677 if test x_$found_libexpat != x_yes; then
19678 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
19680 for ac_header in expat.h
19682 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
19684 if test "x$ac_cv_header_expat_h" = xyes; then :
19685 cat >>confdefs.h <<_ACEOF
19686 #define HAVE_EXPAT_H 1
19693 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
19697 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
19703 cat >>confdefs.h <<_ACEOF
19704 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
19708 # hiredis (redis C client for cachedb)
19710 # Check whether --with-libhiredis was given.
19711 if test "${with_libhiredis+set}" = set; then :
19712 withval=$with_libhiredis;
19717 found_libhiredis="no"
19718 if test x_$withval = x_yes -o x_$withval != x_no; then
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
19720 $as_echo_n "checking for libhiredis... " >&6; }
19721 if test x_$withval = x_ -o x_$withval = x_yes; then
19722 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19724 for dir in $withval ; do
19725 if test -f "$dir/include/hiredis/hiredis.h"; then
19726 found_libhiredis="yes"
19727 if test "$dir" != "/usr"; then
19728 CPPFLAGS="$CPPFLAGS -I$dir/include"
19729 LDFLAGS="$LDFLAGS -L$dir/lib"
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19732 $as_echo "found in $dir" >&6; }
19734 $as_echo "#define USE_REDIS 1" >>confdefs.h
19736 LIBS="$LIBS -lhiredis"
19740 if test x_$found_libhiredis != x_yes; then
19741 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
19743 for ac_header in hiredis/hiredis.h
19745 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
19747 if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
19748 cat >>confdefs.h <<_ACEOF
19749 #define HAVE_HIREDIS_HIREDIS_H 1
19756 ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
19757 #include <hiredis/hiredis.h>
19760 if test "x$ac_cv_have_decl_redisConnect" = xyes; then :
19766 cat >>confdefs.h <<_ACEOF
19767 #define HAVE_DECL_REDISCONNECT $ac_have_decl
19774 # Check whether --with-libnghttp2 was given.
19775 if test "${with_libnghttp2+set}" = set; then :
19776 withval=$with_libnghttp2;
19781 found_libnghttp2="no"
19782 if test x_$withval = x_yes -o x_$withval != x_no; then
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5
19784 $as_echo_n "checking for libnghttp2... " >&6; }
19785 if test x_$withval = x_ -o x_$withval = x_yes; then
19786 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19788 for dir in $withval ; do
19789 if test -f "$dir/include/nghttp2/nghttp2.h"; then
19790 found_libnghttp2="yes"
19791 if test "$dir" != "/usr"; then
19792 CPPFLAGS="$CPPFLAGS -I$dir/include"
19793 LDFLAGS="$LDFLAGS -L$dir/lib"
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19796 $as_echo "found in $dir" >&6; }
19798 $as_echo "#define HAVE_NGHTTP2 1" >>confdefs.h
19800 LIBS="$LIBS -lnghttp2"
19804 if test x_$found_libnghttp2 != x_yes; then
19805 as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5
19807 for ac_header in nghttp2/nghttp2.h
19809 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default
19811 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
19812 cat >>confdefs.h <<_ACEOF
19813 #define HAVE_NGHTTP2_NGHTTP2_H 1
19820 ac_fn_c_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default
19821 #include <nghttp2/nghttp2.h>
19824 if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes; then :
19830 cat >>confdefs.h <<_ACEOF
19831 #define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl
19836 # set static linking for uninstalled libraries if requested
19839 # Check whether --enable-static-exe was given.
19840 if test "${enable_static_exe+set}" = set; then :
19841 enableval=$enable_static_exe;
19844 if test x_$enable_static_exe = x_yes; then
19845 staticexe="-static"
19846 if test "$on_mingw" = yes; then
19847 staticexe="-all-static"
19848 # for static compile, include gdi32 and zlib here.
19849 if echo $LIBS | grep 'lgdi32' >/dev/null; then
19852 LIBS="$LIBS -lgdi32"
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
19855 $as_echo_n "checking for compress in -lz... " >&6; }
19856 if ${ac_cv_lib_z_compress+:} false; then :
19857 $as_echo_n "(cached) " >&6
19859 ac_check_lib_save_LIBS=$LIBS
19861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862 /* end confdefs.h. */
19864 /* Override any GCC internal prototype to avoid an error.
19865 Use char because int might match the return type of a GCC
19866 builtin and then its argument prototype would still apply. */
19874 return compress ();
19879 if ac_fn_c_try_link "$LINENO"; then :
19880 ac_cv_lib_z_compress=yes
19882 ac_cv_lib_z_compress=no
19884 rm -f core conftest.err conftest.$ac_objext \
19885 conftest$ac_exeext conftest.$ac_ext
19886 LIBS=$ac_check_lib_save_LIBS
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
19889 $as_echo "$ac_cv_lib_z_compress" >&6; }
19890 if test "x$ac_cv_lib_z_compress" = xyes; then :
19894 LIBS="$LIBS -l:libssp.a"
19898 # set full static linking if requested
19899 # Check whether --enable-fully-static was given.
19900 if test "${enable_fully_static+set}" = set; then :
19901 enableval=$enable_fully_static;
19904 if test x_$enable_fully_static = x_yes; then
19905 staticexe="-all-static"
19906 if test "$on_mingw" = yes; then
19907 # for static compile, include gdi32 and zlib here.
19908 if echo $LIBS | grep 'lgdi32' >/dev/null; then
19911 LIBS="$LIBS -lgdi32"
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
19914 $as_echo_n "checking for compress in -lz... " >&6; }
19915 if ${ac_cv_lib_z_compress+:} false; then :
19916 $as_echo_n "(cached) " >&6
19918 ac_check_lib_save_LIBS=$LIBS
19920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921 /* end confdefs.h. */
19923 /* Override any GCC internal prototype to avoid an error.
19924 Use char because int might match the return type of a GCC
19925 builtin and then its argument prototype would still apply. */
19933 return compress ();
19938 if ac_fn_c_try_link "$LINENO"; then :
19939 ac_cv_lib_z_compress=yes
19941 ac_cv_lib_z_compress=no
19943 rm -f core conftest.err conftest.$ac_objext \
19944 conftest$ac_exeext conftest.$ac_ext
19945 LIBS=$ac_check_lib_save_LIBS
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
19948 $as_echo "$ac_cv_lib_z_compress" >&6; }
19949 if test "x$ac_cv_lib_z_compress" = xyes; then :
19953 LIBS="$LIBS -l:libssp.a"
19957 # set lock checking if requested
19958 # Check whether --enable-lock_checks was given.
19959 if test "${enable_lock_checks+set}" = set; then :
19960 enableval=$enable_lock_checks;
19963 if test x_$enable_lock_checks = x_yes; then
19965 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
19967 CHECKLOCK_OBJ="checklocks.lo"
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
19973 $as_echo_n "checking for getaddrinfo... " >&6; }
19974 ac_cv_func_getaddrinfo=no
19975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19976 /* end confdefs.h. */
19982 char* getaddrinfo();
19983 char* (*f) () = getaddrinfo;
19993 if ac_fn_c_try_link "$LINENO"; then :
19994 ac_cv_func_getaddrinfo="yes"
19995 if test "$ac_cv_header_windows_h" = "yes"; then
19997 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
20000 if echo $LIBS | grep 'lws2_32' >/dev/null; then
20003 LIBS="$LIBS -lws2_32"
20009 LIBS="$LIBS -lws2_32"
20010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20011 /* end confdefs.h. */
20013 #ifdef HAVE_WS2TCPIP_H
20014 #include <ws2tcpip.h>
20021 (void)getaddrinfo(NULL, NULL, NULL, NULL);
20028 if ac_fn_c_try_link "$LINENO"; then :
20030 ac_cv_func_getaddrinfo="yes"
20032 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
20038 ac_cv_func_getaddrinfo="no"
20042 rm -f core conftest.err conftest.$ac_objext \
20043 conftest$ac_exeext conftest.$ac_ext
20046 rm -f core conftest.err conftest.$ac_objext \
20047 conftest$ac_exeext conftest.$ac_ext
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
20050 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
20051 if test $ac_cv_func_getaddrinfo = yes; then
20053 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
20057 if test "$USE_WINSOCK" = 1; then
20059 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
20061 for ac_header in iphlpapi.h
20063 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
20064 #include <windows.h>
20067 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
20068 cat >>confdefs.h <<_ACEOF
20069 #define HAVE_IPHLPAPI_H 1
20076 if test -n "$ac_tool_prefix"; then
20077 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20078 set dummy ${ac_tool_prefix}windres; ac_word=$2
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20080 $as_echo_n "checking for $ac_word... " >&6; }
20081 if ${ac_cv_prog_WINDRES+:} false; then :
20082 $as_echo_n "(cached) " >&6
20084 if test -n "$WINDRES"; then
20085 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20088 for as_dir in $PATH
20091 test -z "$as_dir" && as_dir=.
20092 for ac_exec_ext in '' $ac_executable_extensions; do
20093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20094 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20104 WINDRES=$ac_cv_prog_WINDRES
20105 if test -n "$WINDRES"; then
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20107 $as_echo "$WINDRES" >&6; }
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20110 $as_echo "no" >&6; }
20115 if test -z "$ac_cv_prog_WINDRES"; then
20116 ac_ct_WINDRES=$WINDRES
20117 # Extract the first word of "windres", so it can be a program name with args.
20118 set dummy windres; ac_word=$2
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20120 $as_echo_n "checking for $ac_word... " >&6; }
20121 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
20122 $as_echo_n "(cached) " >&6
20124 if test -n "$ac_ct_WINDRES"; then
20125 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20128 for as_dir in $PATH
20131 test -z "$as_dir" && as_dir=.
20132 for ac_exec_ext in '' $ac_executable_extensions; do
20133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20134 ac_cv_prog_ac_ct_WINDRES="windres"
20135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20144 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20145 if test -n "$ac_ct_WINDRES"; then
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
20147 $as_echo "$ac_ct_WINDRES" >&6; }
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20150 $as_echo "no" >&6; }
20153 if test "x$ac_ct_WINDRES" = x; then
20156 case $cross_compiling:$ac_tool_warned in
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20160 ac_tool_warned=yes ;;
20162 WINDRES=$ac_ct_WINDRES
20165 WINDRES="$ac_cv_prog_WINDRES"
20168 LIBS="$LIBS -liphlpapi -lcrypt32"
20169 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
20171 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
20173 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
20175 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
20177 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
20179 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
20181 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
20183 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
20186 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
20189 if test $ac_cv_func_getaddrinfo = no; then
20190 case " $LIBOBJS " in
20191 *" fake-rfc2553.$ac_objext "* ) ;;
20192 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
20197 # check after getaddrinfo for its libraries
20199 # check ioctlsocket
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
20201 $as_echo_n "checking for ioctlsocket... " >&6; }
20202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20203 /* end confdefs.h. */
20205 #ifdef HAVE_WINSOCK2_H
20206 #include <winsock2.h>
20213 (void)ioctlsocket(0, 0, NULL);
20219 if ac_fn_c_try_link "$LINENO"; then :
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20222 $as_echo "yes" >&6; }
20224 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20229 $as_echo "no" >&6; }
20231 rm -f core conftest.err conftest.$ac_objext \
20232 conftest$ac_exeext conftest.$ac_ext
20235 # see if daemon(3) exists, and if it is deprecated.
20236 for ac_func in daemon
20238 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
20239 if test "x$ac_cv_func_daemon" = xyes; then :
20240 cat >>confdefs.h <<_ACEOF
20241 #define HAVE_DAEMON 1
20247 if test $ac_cv_func_daemon = yes; then
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
20251 $as_echo_n "checking if daemon is deprecated... " >&6; }
20252 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
20253 if eval \${cv_cc_deprecated_$cache+:} false; then :
20254 $as_echo_n "(cached) " >&6
20258 #include <stdlib.h>
20259 #include <unistd.h>
20261 echo 'void f(void){ (void)daemon(0, 0); }' >>conftest.c
20262 if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then
20263 eval "cv_cc_deprecated_$cache=no"
20265 eval "cv_cc_deprecated_$cache=yes"
20267 rm -f conftest conftest.o conftest.c
20271 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20273 $as_echo "yes" >&6; }
20275 cat >>confdefs.h <<_ACEOF
20276 #define DEPRECATED_DAEMON 1
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20283 $as_echo "no" >&6; }
20290 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
20291 $ac_includes_default
20292 #ifdef HAVE_SYS_UN_H
20293 #include <sys/un.h>
20297 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
20299 cat >>confdefs.h <<_ACEOF
20300 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
20306 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
20307 $ac_includes_default
20308 #if HAVE_SYS_PARAM_H
20309 #include <sys/param.h>
20312 #ifdef HAVE_SYS_SOCKET_H
20313 #include <sys/socket.h>
20316 #ifdef HAVE_SYS_UIO_H
20317 #include <sys/uio.h>
20320 #ifdef HAVE_NETINET_IN_H
20321 #include <netinet/in.h>
20324 #ifdef HAVE_NETINET_TCP_H
20325 #include <netinet/tcp.h>
20328 #ifdef HAVE_ARPA_INET_H
20329 #include <arpa/inet.h>
20332 #ifdef HAVE_WINSOCK2_H
20333 #include <winsock2.h>
20336 #ifdef HAVE_WS2TCPIP_H
20337 #include <ws2tcpip.h>
20341 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
20343 cat >>confdefs.h <<_ACEOF
20344 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
20352 $as_echo_n "checking for htobe64... " >&6; }
20353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20354 /* end confdefs.h. */
20357 #ifdef HAVE_ENDIAN_H
20358 # include <endian.h>
20360 #ifdef HAVE_SYS_ENDIAN_H
20361 # include <sys/endian.h>
20367 unsigned long long x = htobe64(0); printf("%u", (unsigned)x);
20372 if ac_fn_c_try_link "$LINENO"; then :
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20374 $as_echo "yes" >&6; }
20376 $as_echo "#define HAVE_HTOBE64 1" >>confdefs.h
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20380 $as_echo "no" >&6; }
20382 rm -f core conftest.err conftest.$ac_objext \
20383 conftest$ac_exeext conftest.$ac_ext
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
20386 $as_echo_n "checking for be64toh... " >&6; }
20387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20388 /* end confdefs.h. */
20391 #ifdef HAVE_ENDIAN_H
20392 # include <endian.h>
20394 #ifdef HAVE_SYS_ENDIAN_H
20395 # include <sys/endian.h>
20401 unsigned long long x = be64toh(0); printf("%u", (unsigned)x);
20406 if ac_fn_c_try_link "$LINENO"; then :
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20408 $as_echo "yes" >&6; }
20410 $as_echo "#define HAVE_BE64TOH 1" >>confdefs.h
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20414 $as_echo "no" >&6; }
20416 rm -f core conftest.err conftest.$ac_objext \
20417 conftest$ac_exeext conftest.$ac_ext
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
20420 $as_echo_n "checking for library containing setusercontext... " >&6; }
20421 if ${ac_cv_search_setusercontext+:} false; then :
20422 $as_echo_n "(cached) " >&6
20424 ac_func_search_save_LIBS=$LIBS
20425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20426 /* end confdefs.h. */
20428 /* Override any GCC internal prototype to avoid an error.
20429 Use char because int might match the return type of a GCC
20430 builtin and then its argument prototype would still apply. */
20434 char setusercontext ();
20438 return setusercontext ();
20443 for ac_lib in '' util; do
20444 if test -z "$ac_lib"; then
20445 ac_res="none required"
20448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20450 if ac_fn_c_try_link "$LINENO"; then :
20451 ac_cv_search_setusercontext=$ac_res
20453 rm -f core conftest.err conftest.$ac_objext \
20455 if ${ac_cv_search_setusercontext+:} false; then :
20459 if ${ac_cv_search_setusercontext+:} false; then :
20462 ac_cv_search_setusercontext=no
20464 rm conftest.$ac_ext
20465 LIBS=$ac_func_search_save_LIBS
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20468 $as_echo "$ac_cv_search_setusercontext" >&6; }
20469 ac_res=$ac_cv_search_setusercontext
20470 if test "$ac_res" != no; then :
20471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20475 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
20477 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20478 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20479 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20480 cat >>confdefs.h <<_ACEOF
20481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20487 for ac_func in setresuid
20489 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
20490 if test "x$ac_cv_func_setresuid" = xyes; then :
20491 cat >>confdefs.h <<_ACEOF
20492 #define HAVE_SETRESUID 1
20496 for ac_func in setreuid
20498 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
20499 if test "x$ac_cv_func_setreuid" = xyes; then :
20500 cat >>confdefs.h <<_ACEOF
20501 #define HAVE_SETREUID 1
20510 for ac_func in setresgid
20512 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
20513 if test "x$ac_cv_func_setresgid" = xyes; then :
20514 cat >>confdefs.h <<_ACEOF
20515 #define HAVE_SETRESGID 1
20519 for ac_func in setregid
20521 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
20522 if test "x$ac_cv_func_setregid" = xyes; then :
20523 cat >>confdefs.h <<_ACEOF
20524 #define HAVE_SETREGID 1
20534 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
20535 if echo $host_os | grep darwin8 > /dev/null; then
20537 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
20540 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
20541 $ac_includes_default
20542 #ifdef HAVE_NETINET_IN_H
20543 #include <netinet/in.h>
20546 #ifdef HAVE_NETINET_TCP_H
20547 #include <netinet/tcp.h>
20550 #ifdef HAVE_ARPA_INET_H
20551 #include <arpa/inet.h>
20554 #ifdef HAVE_WINSOCK2_H
20555 #include <winsock2.h>
20558 #ifdef HAVE_WS2TCPIP_H
20559 #include <ws2tcpip.h>
20563 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
20569 cat >>confdefs.h <<_ACEOF
20570 #define HAVE_DECL_INET_PTON $ac_have_decl
20572 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
20573 $ac_includes_default
20574 #ifdef HAVE_NETINET_IN_H
20575 #include <netinet/in.h>
20578 #ifdef HAVE_NETINET_TCP_H
20579 #include <netinet/tcp.h>
20582 #ifdef HAVE_ARPA_INET_H
20583 #include <arpa/inet.h>
20586 #ifdef HAVE_WINSOCK2_H
20587 #include <winsock2.h>
20590 #ifdef HAVE_WS2TCPIP_H
20591 #include <ws2tcpip.h>
20595 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
20601 cat >>confdefs.h <<_ACEOF
20602 #define HAVE_DECL_INET_NTOP $ac_have_decl
20605 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
20606 if test "x$ac_cv_func_inet_aton" = xyes; then :
20607 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
20610 case " $LIBOBJS " in
20611 *" inet_aton.$ac_objext "* ) ;;
20612 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20619 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
20620 if test "x$ac_cv_func_inet_pton" = xyes; then :
20621 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
20624 case " $LIBOBJS " in
20625 *" inet_pton.$ac_objext "* ) ;;
20626 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
20633 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20634 if test "x$ac_cv_func_inet_ntop" = xyes; then :
20635 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
20638 case " $LIBOBJS " in
20639 *" inet_ntop.$ac_objext "* ) ;;
20640 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20647 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20648 if test "x$ac_cv_func_snprintf" = xyes; then :
20649 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20652 case " $LIBOBJS " in
20653 *" snprintf.$ac_objext "* ) ;;
20654 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20661 # test if snprintf return the proper length
20662 if test "x$ac_cv_func_snprintf" = xyes; then
20663 if test c${cross_compiling} = cno; then
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
20665 $as_echo_n "checking for correct snprintf return value... " >&6; }
20666 if test "$cross_compiling" = yes; then :
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
20668 $as_echo "maybe" >&6; }
20670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20671 /* end confdefs.h. */
20672 $ac_includes_default
20674 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
20677 if ac_fn_c_try_run "$LINENO"; then :
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20679 $as_echo "yes" >&6; }
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20683 $as_echo "no" >&6; }
20685 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
20687 case " $LIBOBJS " in
20688 *" snprintf.$ac_objext "* ) ;;
20689 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20696 conftest.$ac_objext conftest.beam conftest.$ac_ext
20701 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20702 if test "x$ac_cv_func_strlcat" = xyes; then :
20703 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
20706 case " $LIBOBJS " in
20707 *" strlcat.$ac_objext "* ) ;;
20708 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20715 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20716 if test "x$ac_cv_func_strlcpy" = xyes; then :
20717 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
20720 case " $LIBOBJS " in
20721 *" strlcpy.$ac_objext "* ) ;;
20722 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20729 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20730 if test "x$ac_cv_func_memmove" = xyes; then :
20731 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20734 case " $LIBOBJS " in
20735 *" memmove.$ac_objext "* ) ;;
20736 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
20743 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
20744 if test "x$ac_cv_func_gmtime_r" = xyes; then :
20745 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20748 case " $LIBOBJS " in
20749 *" gmtime_r.$ac_objext "* ) ;;
20750 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
20757 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
20758 if test "x$ac_cv_func_isblank" = xyes; then :
20759 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
20762 case " $LIBOBJS " in
20763 *" isblank.$ac_objext "* ) ;;
20764 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
20771 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20772 if test "x$ac_cv_func_explicit_bzero" = xyes; then :
20773 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20776 case " $LIBOBJS " in
20777 *" explicit_bzero.$ac_objext "* ) ;;
20778 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
20785 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
20788 $as_echo_n "checking for reallocarray... " >&6; }
20789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20790 /* end confdefs.h. */
20791 $ac_includes_default
20793 #ifndef _OPENBSD_SOURCE
20794 #define _OPENBSD_SOURCE 1
20796 #include <stdlib.h>
20798 void* p = reallocarray(NULL, 10, 100);
20804 if ac_fn_c_try_link "$LINENO"; then :
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20806 $as_echo "yes" >&6; }
20808 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20814 $as_echo "no" >&6; }
20815 case " $LIBOBJS " in
20816 *" reallocarray.$ac_objext "* ) ;;
20817 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20823 rm -f core conftest.err conftest.$ac_objext \
20824 conftest$ac_exeext conftest.$ac_ext
20825 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
20826 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
20832 cat >>confdefs.h <<_ACEOF
20833 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
20836 if test "$USE_NSS" = "no"; then
20837 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
20838 if test "x$ac_cv_func_arc4random" = xyes; then :
20839 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
20842 case " $LIBOBJS " in
20843 *" arc4random.$ac_objext "* ) ;;
20844 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
20851 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
20852 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
20853 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
20856 case " $LIBOBJS " in
20857 *" arc4random_uniform.$ac_objext "* ) ;;
20858 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
20865 if test "$ac_cv_func_arc4random" = "no"; then
20866 case " $LIBOBJS " in
20867 *" arc4_lock.$ac_objext "* ) ;;
20868 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
20872 for ac_func in getentropy
20874 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
20875 if test "x$ac_cv_func_getentropy" = xyes; then :
20876 cat >>confdefs.h <<_ACEOF
20877 #define HAVE_GETENTROPY 1
20882 if test "$USE_WINSOCK" = 1; then
20883 case " $LIBOBJS " in
20884 *" getentropy_win.$ac_objext "* ) ;;
20885 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
20892 case " $LIBOBJS " in
20893 *" getentropy_osx.$ac_objext "* ) ;;
20894 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
20899 *solaris*|*sunos*|SunOS)
20900 case " $LIBOBJS " in
20901 *" getentropy_solaris.$ac_objext "* ) ;;
20902 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
20906 for ac_header in sys/sha2.h
20908 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
20910 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
20911 cat >>confdefs.h <<_ACEOF
20912 #define HAVE_SYS_SHA2_H 1
20917 for ac_func in SHA512_Update
20919 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20920 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20921 cat >>confdefs.h <<_ACEOF
20922 #define HAVE_SHA512_UPDATE 1
20927 case " $LIBOBJS " in
20928 *" sha512.$ac_objext "* ) ;;
20929 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20942 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
20943 # this lib needed for sha2 on solaris
20946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20947 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20948 if ${ac_cv_search_clock_gettime+:} false; then :
20949 $as_echo_n "(cached) " >&6
20951 ac_func_search_save_LIBS=$LIBS
20952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20953 /* end confdefs.h. */
20955 /* Override any GCC internal prototype to avoid an error.
20956 Use char because int might match the return type of a GCC
20957 builtin and then its argument prototype would still apply. */
20961 char clock_gettime ();
20965 return clock_gettime ();
20970 for ac_lib in '' rt; do
20971 if test -z "$ac_lib"; then
20972 ac_res="none required"
20975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20977 if ac_fn_c_try_link "$LINENO"; then :
20978 ac_cv_search_clock_gettime=$ac_res
20980 rm -f core conftest.err conftest.$ac_objext \
20982 if ${ac_cv_search_clock_gettime+:} false; then :
20986 if ${ac_cv_search_clock_gettime+:} false; then :
20989 ac_cv_search_clock_gettime=no
20991 rm conftest.$ac_ext
20992 LIBS=$ac_func_search_save_LIBS
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20995 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20996 ac_res=$ac_cv_search_clock_gettime
20997 if test "$ac_res" != no; then :
20998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21003 *freebsd*|*FreeBSD)
21004 case " $LIBOBJS " in
21005 *" getentropy_freebsd.$ac_objext "* ) ;;
21006 *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
21012 case " $LIBOBJS " in
21013 *" getentropy_linux.$ac_objext "* ) ;;
21014 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
21018 for ac_func in SHA512_Update
21020 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
21021 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
21022 cat >>confdefs.h <<_ACEOF
21023 #define HAVE_SHA512_UPDATE 1
21029 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
21031 case " $LIBOBJS " in
21032 *" sha512.$ac_objext "* ) ;;
21033 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
21041 for ac_header in sys/sysctl.h
21043 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
21045 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
21046 cat >>confdefs.h <<_ACEOF
21047 #define HAVE_SYS_SYSCTL_H 1
21054 for ac_func in getauxval
21056 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
21057 if test "x$ac_cv_func_getauxval" = xyes; then :
21058 cat >>confdefs.h <<_ACEOF
21059 #define HAVE_GETAUXVAL 1
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21066 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21067 if ${ac_cv_search_clock_gettime+:} false; then :
21068 $as_echo_n "(cached) " >&6
21070 ac_func_search_save_LIBS=$LIBS
21071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072 /* end confdefs.h. */
21074 /* Override any GCC internal prototype to avoid an error.
21075 Use char because int might match the return type of a GCC
21076 builtin and then its argument prototype would still apply. */
21080 char clock_gettime ();
21084 return clock_gettime ();
21089 for ac_lib in '' rt; do
21090 if test -z "$ac_lib"; then
21091 ac_res="none required"
21094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21096 if ac_fn_c_try_link "$LINENO"; then :
21097 ac_cv_search_clock_gettime=$ac_res
21099 rm -f core conftest.err conftest.$ac_objext \
21101 if ${ac_cv_search_clock_gettime+:} false; then :
21105 if ${ac_cv_search_clock_gettime+:} false; then :
21108 ac_cv_search_clock_gettime=no
21110 rm conftest.$ac_ext
21111 LIBS=$ac_func_search_save_LIBS
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21114 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21115 ac_res=$ac_cv_search_clock_gettime
21116 if test "$ac_res" != no; then :
21117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21130 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
21132 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
21133 if test "x$ac_cv_func_ctime_r" = xyes; then :
21134 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
21137 case " $LIBOBJS " in
21138 *" ctime_r.$ac_objext "* ) ;;
21139 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
21146 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
21147 if test "x$ac_cv_func_strsep" = xyes; then :
21148 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
21151 case " $LIBOBJS " in
21152 *" strsep.$ac_objext "* ) ;;
21153 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
21161 # Check whether --enable-allsymbols was given.
21162 if test "${enable_allsymbols+set}" = set; then :
21163 enableval=$enable_allsymbols;
21166 case "$enable_allsymbols" in
21168 COMMON_OBJ_ALL_SYMBOLS=""
21170 EXTRALINK="libunbound.la"
21172 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
21176 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
21177 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
21184 if test x_$enable_lock_checks = x_yes; then
21185 UBSYMS="-export-symbols clubsyms.def"
21186 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
21187 echo lock_protect >> clubsyms.def
21188 echo lock_unprotect >> clubsyms.def
21189 echo lock_get_mem >> clubsyms.def
21190 echo checklock_start >> clubsyms.def
21191 echo checklock_stop >> clubsyms.def
21192 echo checklock_lock >> clubsyms.def
21193 echo checklock_unlock >> clubsyms.def
21194 echo checklock_init >> clubsyms.def
21195 echo checklock_thrcreate >> clubsyms.def
21196 echo checklock_thrjoin >> clubsyms.def
21199 # check for dnstap if requested
21201 # Check whether --enable-dnstap was given.
21202 if test "${enable_dnstap+set}" = set; then :
21203 enableval=$enable_dnstap; opt_dnstap=$enableval
21210 # Check whether --with-dnstap-socket-path was given.
21211 if test "${with_dnstap_socket_path+set}" = set; then :
21212 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
21214 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
21218 if test "x$opt_dnstap" != "xno"; then
21219 # Extract the first word of "protoc-c", so it can be a program name with args.
21220 set dummy protoc-c; ac_word=$2
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21222 $as_echo_n "checking for $ac_word... " >&6; }
21223 if ${ac_cv_path_PROTOC_C+:} false; then :
21224 $as_echo_n "(cached) " >&6
21228 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
21231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21232 for as_dir in $PATH
21235 test -z "$as_dir" && as_dir=.
21236 for ac_exec_ext in '' $ac_executable_extensions; do
21237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21238 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
21239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21249 PROTOC_C=$ac_cv_path_PROTOC_C
21250 if test -n "$PROTOC_C"; then
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
21252 $as_echo "$PROTOC_C" >&6; }
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21255 $as_echo "no" >&6; }
21259 if test -z "$PROTOC_C"; then
21260 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
21263 # Check whether --with-protobuf-c was given.
21264 if test "${with_protobuf_c+set}" = set; then :
21265 withval=$with_protobuf_c;
21266 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21267 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
21268 CFLAGS="$CFLAGS -I$withval/include/google"
21270 CFLAGS="$CFLAGS -I$withval/include"
21272 LDFLAGS="$LDFLAGS -L$withval/lib"
21276 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21277 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
21278 CFLAGS="$CFLAGS -I/usr/include/google"
21280 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
21281 CFLAGS="$CFLAGS -I/usr/local/include/google"
21282 LDFLAGS="$LDFLAGS -L/usr/local/lib"
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
21289 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
21290 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21291 $as_echo_n "(cached) " >&6
21293 ac_func_search_save_LIBS=$LIBS
21294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21295 /* end confdefs.h. */
21297 /* Override any GCC internal prototype to avoid an error.
21298 Use char because int might match the return type of a GCC
21299 builtin and then its argument prototype would still apply. */
21303 char protobuf_c_message_pack ();
21307 return protobuf_c_message_pack ();
21312 for ac_lib in '' protobuf-c; do
21313 if test -z "$ac_lib"; then
21314 ac_res="none required"
21317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21319 if ac_fn_c_try_link "$LINENO"; then :
21320 ac_cv_search_protobuf_c_message_pack=$ac_res
21322 rm -f core conftest.err conftest.$ac_objext \
21324 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21328 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21331 ac_cv_search_protobuf_c_message_pack=no
21333 rm conftest.$ac_ext
21334 LIBS=$ac_func_search_save_LIBS
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
21337 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
21338 ac_res=$ac_cv_search_protobuf_c_message_pack
21339 if test "$ac_res" != no; then :
21340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21343 as_fn_error $? "The protobuf-c library was not found. Please install the development libraries for protobuf-c!" "$LINENO" 5
21348 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
21354 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
21357 cat >>confdefs.h <<_ACEOF
21358 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
21361 DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path"
21363 DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)'
21365 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c"
21367 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo"
21379 # check for dnscrypt if requested
21381 # Check whether --enable-dnscrypt was given.
21382 if test "${enable_dnscrypt+set}" = set; then :
21383 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
21389 if test "x$opt_dnscrypt" != "xno"; then
21391 # Check whether --with-libsodium was given.
21392 if test "${with_libsodium+set}" = set; then :
21393 withval=$with_libsodium;
21394 CFLAGS="$CFLAGS -I$withval/include"
21395 LDFLAGS="$LDFLAGS -L$withval/lib"
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
21400 $as_echo_n "checking for library containing sodium_init... " >&6; }
21401 if ${ac_cv_search_sodium_init+:} false; then :
21402 $as_echo_n "(cached) " >&6
21404 ac_func_search_save_LIBS=$LIBS
21405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21406 /* end confdefs.h. */
21408 /* Override any GCC internal prototype to avoid an error.
21409 Use char because int might match the return type of a GCC
21410 builtin and then its argument prototype would still apply. */
21414 char sodium_init ();
21418 return sodium_init ();
21423 for ac_lib in '' sodium; do
21424 if test -z "$ac_lib"; then
21425 ac_res="none required"
21428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21430 if ac_fn_c_try_link "$LINENO"; then :
21431 ac_cv_search_sodium_init=$ac_res
21433 rm -f core conftest.err conftest.$ac_objext \
21435 if ${ac_cv_search_sodium_init+:} false; then :
21439 if ${ac_cv_search_sodium_init+:} false; then :
21442 ac_cv_search_sodium_init=no
21444 rm conftest.$ac_ext
21445 LIBS=$ac_func_search_save_LIBS
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
21448 $as_echo "$ac_cv_search_sodium_init" >&6; }
21449 ac_res=$ac_cv_search_sodium_init
21450 if test "$ac_res" != no; then :
21451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21454 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21458 $as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
21459 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21460 $as_echo_n "(cached) " >&6
21462 ac_func_search_save_LIBS=$LIBS
21463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21464 /* end confdefs.h. */
21466 /* Override any GCC internal prototype to avoid an error.
21467 Use char because int might match the return type of a GCC
21468 builtin and then its argument prototype would still apply. */
21472 char crypto_box_curve25519xchacha20poly1305_beforenm ();
21476 return crypto_box_curve25519xchacha20poly1305_beforenm ();
21481 for ac_lib in '' sodium; do
21482 if test -z "$ac_lib"; then
21483 ac_res="none required"
21486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21488 if ac_fn_c_try_link "$LINENO"; then :
21489 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
21491 rm -f core conftest.err conftest.$ac_objext \
21493 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21497 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21500 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
21502 rm conftest.$ac_ext
21503 LIBS=$ac_func_search_save_LIBS
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21506 $as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
21507 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
21508 if test "$ac_res" != no; then :
21509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21511 ENABLE_DNSCRYPT_XCHACHA20=1
21514 $as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
21519 ENABLE_DNSCRYPT_XCHACHA20=0
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
21525 $as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
21526 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21527 $as_echo_n "(cached) " >&6
21529 ac_func_search_save_LIBS=$LIBS
21530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21531 /* end confdefs.h. */
21533 /* Override any GCC internal prototype to avoid an error.
21534 Use char because int might match the return type of a GCC
21535 builtin and then its argument prototype would still apply. */
21539 char sodium_set_misuse_handler ();
21543 return sodium_set_misuse_handler ();
21548 for ac_lib in '' sodium; do
21549 if test -z "$ac_lib"; then
21550 ac_res="none required"
21553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21555 if ac_fn_c_try_link "$LINENO"; then :
21556 ac_cv_search_sodium_set_misuse_handler=$ac_res
21558 rm -f core conftest.err conftest.$ac_objext \
21560 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21564 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21567 ac_cv_search_sodium_set_misuse_handler=no
21569 rm conftest.$ac_ext
21570 LIBS=$ac_func_search_save_LIBS
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
21573 $as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
21574 ac_res=$ac_cv_search_sodium_set_misuse_handler
21575 if test "$ac_res" != no; then :
21576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21579 $as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
21586 $as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
21591 DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
21593 DNSCRYPT_OBJ="dnscrypt.lo"
21597 ENABLE_DNSCRYPT_XCHACHA20=0
21607 # check for cachedb if requested
21608 # Check whether --enable-cachedb was given.
21609 if test "${enable_cachedb+set}" = set; then :
21610 enableval=$enable_cachedb;
21613 # turn on cachedb when hiredis support is enabled.
21614 if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
21615 case "$enable_cachedb" in
21618 $as_echo "#define USE_CACHEDB 1" >>confdefs.h
21620 CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c"
21622 CACHEDB_OBJ="cachedb.lo redis.lo"
21630 # check for ipsecmod if requested
21631 # Check whether --enable-ipsecmod was given.
21632 if test "${enable_ipsecmod+set}" = set; then :
21633 enableval=$enable_ipsecmod;
21636 case "$enable_ipsecmod" in
21639 $as_echo "#define USE_IPSECMOD 1" >>confdefs.h
21641 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
21643 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
21651 # check for ipset if requested
21652 # Check whether --enable-ipset was given.
21653 if test "${enable_ipset+set}" = set; then :
21654 enableval=$enable_ipset;
21657 case "$enable_ipset" in
21660 $as_echo "#define USE_IPSET 1" >>confdefs.h
21662 IPSET_SRC="ipset/ipset.c"
21664 IPSET_OBJ="ipset.lo"
21669 # Check whether --with-libmnl was given.
21670 if test "${with_libmnl+set}" = set; then :
21671 withval=$with_libmnl;
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
21678 $as_echo_n "checking for libmnl... " >&6; }
21679 if test x_$withval = x_ -o x_$withval = x_yes; then
21680 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21682 for dir in $withval ; do
21683 if test -f "$dir/include/libmnl/libmnl.h" -o -f "$dir/include/libmnl/libmnl/libmnl.h"; then
21686 if test -f "$dir/include/libmnl/libmnl/libmnl.h"; then
21687 extralibmnl="/libmnl"
21689 if test "$dir" != "/usr" -o -n "$extralibmnl"; then
21690 CPPFLAGS="$CPPFLAGS -I$dir/include$extralibmnl"
21692 if test "$dir" != "/usr"; then
21693 LDFLAGS="$LDFLAGS -L$dir/lib"
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21696 $as_echo "found in $dir" >&6; }
21701 if test x_$found_libmnl != x_yes; then
21702 as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
21709 # Check whether --enable-explicit-port-randomisation was given.
21710 if test "${enable_explicit_port_randomisation+set}" = set; then :
21711 enableval=$enable_explicit_port_randomisation;
21714 case "$enable_explicit_port_randomisation" in
21717 $as_echo "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h
21724 if echo "$host" | $GREP -i -e linux >/dev/null; then
21725 # Check whether --enable-linux-ip-local-port-range was given.
21726 if test "${enable_linux_ip_local_port_range+set}" = set; then :
21727 enableval=$enable_linux_ip_local_port_range;
21730 case "$enable_linux_ip_local_port_range" in
21733 $as_echo "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
21743 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
21744 # on openBSD, the implicit rule make $< work.
21745 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
21747 cat >conftest.make <<EOF
21750 conftest.lo foo.lo bla.lo:
21751 if test -f "\$<"; then touch \$@; fi
21755 if test -f "\$<"; then touch \$@; fi
21757 conftest.lo: conftest.dir/conftest.c
21760 touch conftest.dir/conftest.c
21761 rm -f conftest.lo conftest.c
21762 ${MAKE:-make} -f conftest.make >/dev/null
21763 rm -f conftest.make conftest.c conftest.dir/conftest.c
21764 rm -rf conftest.dir
21765 if test ! -f conftest.lo; then
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21767 $as_echo "no" >&6; }
21768 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
21769 SOURCEFILE='`cat .source`'
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21772 $as_echo "yes" >&6; }
21773 SOURCEDETERMINE=':'
21780 # see if we want to build the library or everything
21781 ALLTARGET="alltargets"
21782 INSTALLTARGET="install-all"
21784 # Check whether --with-libunbound-only was given.
21785 if test "${with_libunbound_only+set}" = set; then :
21786 withval=$with_libunbound_only;
21787 if test "$withval" = "yes"; then
21789 INSTALLTARGET="install-lib"
21794 if test $ALLTARGET = "alltargets"; then
21795 if test $USE_NSS = "yes"; then
21796 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
21798 if test $USE_NETTLE = "yes"; then
21799 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
21808 $as_echo "$as_me: Stripping extension flags..." >&6;}
21810 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
21811 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
21813 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
21818 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
21819 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
21821 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
21826 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
21827 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
21829 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
21834 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
21835 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
21837 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
21842 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
21843 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
21845 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
21850 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
21851 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
21853 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
21858 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
21859 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
21861 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
21866 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
21867 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
21869 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
21874 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
21875 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
21877 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
21882 if test -n "$LATE_LDFLAGS"; then
21883 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
21885 # remove start spaces
21886 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
21887 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
21890 cat >>confdefs.h <<_ACEOF
21891 #define MAXSYSLOGMSGLEN 10240
21899 date=`date +'%b %e, %Y'`
21902 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"
21904 ac_config_headers="$ac_config_headers config.h"
21906 cat >confcache <<\_ACEOF
21907 # This file is a shell script that caches the results of configure
21908 # tests run on this system so they can be shared between configure
21909 # scripts and configure runs, see configure's option --config-cache.
21910 # It is not useful on other systems. If it contains results you don't
21911 # want to keep, you may remove or edit it.
21913 # config.status only pays attention to the cache file if you give it
21914 # the --recheck option to rerun configure.
21916 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21917 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21918 # following values.
21922 # The following way of writing the cache mishandles newlines in values,
21923 # but we know of no workaround that is simple, portable, and efficient.
21924 # So, we kill variables containing newlines.
21925 # Ultrix sh set writes to stderr and can't be redirected directly,
21926 # and sets the high bit in the cache file unless we assign to the vars.
21928 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21929 eval ac_val=\$$ac_var
21933 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21934 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21937 _ | IFS | as_nl) ;; #(
21938 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21939 *) { eval $ac_var=; unset $ac_var;} ;;
21945 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21946 *${as_nl}ac_space=\ *)
21947 # `set' does not quote correctly, so add quotes: double-quote
21948 # substitution turns \\\\ into \\, and sed turns \\ into \.
21951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21954 # `set' quotes correctly as required by POSIX, so do not add quotes.
21955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21964 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21966 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21968 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21969 if test -w "$cache_file"; then
21970 if test "x$cache_file" != "x/dev/null"; then
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21972 $as_echo "$as_me: updating cache $cache_file" >&6;}
21973 if test ! -f "$cache_file" || test -h "$cache_file"; then
21974 cat confcache >"$cache_file"
21976 case $cache_file in #(
21978 mv -f confcache "$cache_file"$$ &&
21979 mv -f "$cache_file"$$ "$cache_file" ;; #(
21981 mv -f confcache "$cache_file" ;;
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21987 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21993 # Let make expand exec_prefix.
21994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21996 DEFS=-DHAVE_CONFIG_H
22001 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22002 # 1. Remove the extension, and $U if already installed.
22003 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22004 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22005 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22006 # will be set to the directory where LIBOBJS objects are built.
22007 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22008 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22010 LIBOBJS=$ac_libobjs
22012 LTLIBOBJS=$ac_ltlibobjs
22015 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
22016 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
22017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22020 : "${CONFIG_STATUS=./config.status}"
22022 ac_clean_files_save=$ac_clean_files
22023 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22025 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22027 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22029 # Generated by $as_me.
22030 # Run this file to recreate the current configuration.
22031 # Compiler output produced by configure, useful for debugging
22032 # configure, is in config.log if it exists.
22035 ac_cs_recheck=false
22038 SHELL=\${CONFIG_SHELL-$SHELL}
22041 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22042 ## -------------------- ##
22043 ## M4sh Initialization. ##
22044 ## -------------------- ##
22046 # Be more Bourne compatible
22047 DUALCASE=1; export DUALCASE # for MKS sh
22048 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22051 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22052 # is contrary to our usage. Disable this feature.
22053 alias -g '${1+"$@"}'='"$@"'
22054 setopt NO_GLOB_SUBST
22056 case `(set -o) 2>/dev/null` in #(
22068 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22069 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22070 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22071 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22072 # Prefer a ksh shell builtin over an external printf program on Solaris,
22073 # but without wasting forks for bash or zsh.
22074 if test -z "$BASH_VERSION$ZSH_VERSION" \
22075 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22076 as_echo='print -r --'
22077 as_echo_n='print -rn --'
22078 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22079 as_echo='printf %s\n'
22080 as_echo_n='printf %s'
22082 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22083 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22084 as_echo_n='/usr/ucb/echo -n'
22086 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22087 as_echo_n_body='eval
22091 expr "X$arg" : "X\\(.*\\)$as_nl";
22092 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22094 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22096 export as_echo_n_body
22097 as_echo_n='sh -c $as_echo_n_body as_echo'
22099 export as_echo_body
22100 as_echo='sh -c $as_echo_body as_echo'
22103 # The user is always right.
22104 if test "${PATH_SEPARATOR+set}" != set; then
22106 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22107 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22114 # We need space, tab and new line, in precisely that order. Quoting is
22115 # there to prevent editors from complaining about space-tab.
22116 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22117 # splitting by setting IFS to empty value.)
22120 # Find who we are. Look in the path if we contain no directory separator.
22123 *[\\/]* ) as_myself=$0 ;;
22124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22125 for as_dir in $PATH
22128 test -z "$as_dir" && as_dir=.
22129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22135 # We did not find ourselves, most probably we were run as `sh COMMAND'
22136 # in which case we are not to be found in the path.
22137 if test "x$as_myself" = x; then
22140 if test ! -f "$as_myself"; then
22141 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22145 # Unset variables that we do not need and which cause bugs (e.g. in
22146 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22147 # suppresses any "Segmentation fault" message there. '((' could
22148 # trigger a bug in pdksh 5.2.14.
22149 for as_var in BASH_ENV ENV MAIL MAILPATH
22150 do eval test x\${$as_var+set} = xset \
22151 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22164 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22167 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22168 # ----------------------------------------
22169 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22170 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22171 # script with STATUS, using 1 if that was 0.
22174 as_status=$1; test $as_status -eq 0 && as_status=1
22176 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22177 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22179 $as_echo "$as_me: error: $2" >&2
22180 as_fn_exit $as_status
22184 # as_fn_set_status STATUS
22185 # -----------------------
22186 # Set $? to STATUS, without forking.
22187 as_fn_set_status ()
22190 } # as_fn_set_status
22192 # as_fn_exit STATUS
22193 # -----------------
22194 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22198 as_fn_set_status $1
22204 # Portably unset VAR.
22207 { eval $1=; unset $1;}
22209 as_unset=as_fn_unset
22210 # as_fn_append VAR VALUE
22211 # ----------------------
22212 # Append the text in VALUE to the end of the definition contained in VAR. Take
22213 # advantage of any shell optimizations that allow amortized linear growth over
22214 # repeated appends, instead of the typical quadratic growth present in naive
22216 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22217 eval 'as_fn_append ()
22228 # as_fn_arith ARG...
22229 # ------------------
22230 # Perform arithmetic evaluation on the ARGs, and store the result in the
22231 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22232 # must be portable across $(()) and expr.
22233 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22234 eval 'as_fn_arith ()
22241 as_val=`expr "$@" || test $? -eq 1`
22246 if expr a : '\(a\)' >/dev/null 2>&1 &&
22247 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22253 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22254 as_basename=basename
22259 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22265 as_me=`$as_basename -- "$0" ||
22266 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22267 X"$0" : 'X\(//\)$' \| \
22268 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22270 sed '/^.*\/\([^/][^/]*\)\/*$/{
22284 # Avoid depending upon Character Ranges.
22285 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22286 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22287 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22288 as_cr_digits='0123456789'
22289 as_cr_alnum=$as_cr_Letters$as_cr_digits
22291 ECHO_C= ECHO_N= ECHO_T=
22292 case `echo -n x` in #(((((
22294 case `echo 'xy\c'` in
22295 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22297 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22304 rm -f conf$$ conf$$.exe conf$$.file
22305 if test -d conf$$.dir; then
22306 rm -f conf$$.dir/conf$$.file
22309 mkdir conf$$.dir 2>/dev/null
22311 if (echo >conf$$.file) 2>/dev/null; then
22312 if ln -s conf$$.file conf$$ 2>/dev/null; then
22314 # ... but there are two gotchas:
22315 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22316 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22317 # In both cases, we have to default to `cp -pR'.
22318 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22320 elif ln conf$$.file conf$$ 2>/dev/null; then
22328 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22329 rmdir conf$$.dir 2>/dev/null
22334 # Create "$as_dir" as a directory, including parents if necessary.
22339 -*) as_dir=./$as_dir;;
22341 test -d "$as_dir" || eval $as_mkdir_p || {
22345 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22346 *) as_qdir=$as_dir;;
22348 as_dirs="'$as_qdir' $as_dirs"
22349 as_dir=`$as_dirname -- "$as_dir" ||
22350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22351 X"$as_dir" : 'X\(//\)[^/]' \| \
22352 X"$as_dir" : 'X\(//\)$' \| \
22353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22354 $as_echo X"$as_dir" |
22355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22359 /^X\(\/\/\)[^/].*/{
22372 test -d "$as_dir" && break
22374 test -z "$as_dirs" || eval "mkdir $as_dirs"
22375 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22379 if mkdir -p . 2>/dev/null; then
22380 as_mkdir_p='mkdir -p "$as_dir"'
22382 test -d ./-p && rmdir ./-p
22387 # as_fn_executable_p FILE
22388 # -----------------------
22389 # Test if FILE is an executable regular file.
22390 as_fn_executable_p ()
22392 test -f "$1" && test -x "$1"
22393 } # as_fn_executable_p
22394 as_test_x='test -x'
22395 as_executable_p=as_fn_executable_p
22397 # Sed expression to map a string onto a valid CPP name.
22398 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22400 # Sed expression to map a string onto a valid variable name.
22401 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22405 ## ----------------------------------- ##
22406 ## Main body of $CONFIG_STATUS script. ##
22407 ## ----------------------------------- ##
22409 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22412 # Save the log message, to keep $0 and so on meaningful, and to
22413 # report actual input values of CONFIG_FILES etc. instead of their
22414 # values after options handling.
22416 This file was extended by unbound $as_me 1.19.0, which was
22417 generated by GNU Autoconf 2.69. Invocation command line was
22419 CONFIG_FILES = $CONFIG_FILES
22420 CONFIG_HEADERS = $CONFIG_HEADERS
22421 CONFIG_LINKS = $CONFIG_LINKS
22422 CONFIG_COMMANDS = $CONFIG_COMMANDS
22425 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22430 case $ac_config_files in *"
22431 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22434 case $ac_config_headers in *"
22435 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22440 # Files that config.status was made for.
22441 config_files="$ac_config_files"
22442 config_headers="$ac_config_headers"
22443 config_commands="$ac_config_commands"
22447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22449 \`$as_me' instantiates files and other configuration actions
22450 from templates according to the current configuration. Unless the files
22451 and actions are specified as TAGs, all are instantiated by default.
22453 Usage: $0 [OPTION]... [TAG]...
22455 -h, --help print this help, then exit
22456 -V, --version print version number and configuration settings, then exit
22457 --config print configuration, then exit
22458 -q, --quiet, --silent
22459 do not print progress messages
22460 -d, --debug don't remove temporary files
22461 --recheck update $as_me by reconfiguring in the same conditions
22462 --file=FILE[:TEMPLATE]
22463 instantiate the configuration file FILE
22464 --header=FILE[:TEMPLATE]
22465 instantiate the configuration header FILE
22467 Configuration files:
22470 Configuration headers:
22473 Configuration commands:
22476 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
22479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22480 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22482 unbound config.status 1.19.0
22483 configured by $0, generated by GNU Autoconf 2.69,
22484 with options \\"\$ac_cs_config\\"
22486 Copyright (C) 2012 Free Software Foundation, Inc.
22487 This config.status script is free software; the Free Software Foundation
22488 gives unlimited permission to copy, distribute and modify it."
22493 test -n "\$AWK" || AWK=awk
22496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22497 # The default lists apply if the user does not specify any file.
22503 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22504 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22508 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22520 # Handling of the options.
22521 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22523 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22524 $as_echo "$ac_cs_version"; exit ;;
22525 --config | --confi | --conf | --con | --co | --c )
22526 $as_echo "$ac_cs_config"; exit ;;
22527 --debug | --debu | --deb | --de | --d | -d )
22529 --file | --fil | --fi | --f )
22532 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22533 '') as_fn_error $? "missing file argument" ;;
22535 as_fn_append CONFIG_FILES " '$ac_optarg'"
22536 ac_need_defaults=false;;
22537 --header | --heade | --head | --hea )
22540 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22542 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22543 ac_need_defaults=false;;
22545 # Conflict between --help and --header
22546 as_fn_error $? "ambiguous option: \`$1'
22547 Try \`$0 --help' for more information.";;
22548 --help | --hel | -h )
22549 $as_echo "$ac_cs_usage"; exit ;;
22550 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22551 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22554 # This is an error.
22555 -*) as_fn_error $? "unrecognized option: \`$1'
22556 Try \`$0 --help' for more information." ;;
22558 *) as_fn_append ac_config_targets " $1"
22559 ac_need_defaults=false ;;
22565 ac_configure_extra_args=
22567 if $ac_cs_silent; then
22569 ac_configure_extra_args="$ac_configure_extra_args --silent"
22573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22574 if \$ac_cs_recheck; then
22575 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22577 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22578 CONFIG_SHELL='$SHELL'
22579 export CONFIG_SHELL
22584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22588 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22589 ## Running $as_me. ##
22595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22601 # The HP-UX ksh and POSIX shell print the target directory to stdout
22602 # if CDPATH is set.
22603 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22605 sed_quote_subst='$sed_quote_subst'
22606 double_quote_subst='$double_quote_subst'
22607 delay_variable_subst='$delay_variable_subst'
22608 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22609 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22610 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22611 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22612 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22613 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22614 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22615 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22616 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22617 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22618 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22619 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22620 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22621 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22622 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22623 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22624 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22625 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22626 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22627 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22628 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22629 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22630 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22631 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22632 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22633 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22634 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22635 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22636 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22637 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22638 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22639 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22640 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22641 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22642 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22643 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22644 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22645 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22646 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22647 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22648 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22649 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22650 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22651 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22652 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22653 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22654 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22655 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22656 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22657 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22658 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22659 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22660 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22661 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22662 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22663 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22664 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22665 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22666 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"`'
22667 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22668 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22669 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22670 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22671 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22672 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22673 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22674 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22675 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22676 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22677 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22678 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22679 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22680 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22681 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22682 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22683 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22684 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22685 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22686 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22687 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22688 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22689 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22690 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22691 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22692 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22693 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22694 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22695 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22696 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22697 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22698 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22699 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22700 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22701 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22702 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22703 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22704 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22705 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22706 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22707 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22708 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22709 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22710 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22711 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22712 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22713 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22714 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22715 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22716 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22717 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22718 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22719 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22720 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22721 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22722 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22723 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22724 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22725 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22726 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22727 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22728 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22729 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22730 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22731 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22732 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22733 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22734 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22735 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22736 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22737 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22738 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22739 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22740 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22741 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22742 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22745 LTCFLAGS='$LTCFLAGS'
22746 compiler='$compiler_DEFAULT'
22748 # A function that is used when there is no print builtin or printf.
22749 func_fallback_echo ()
22751 eval 'cat <<_LTECHO_EOF
22756 # Quote evaled strings.
22771 deplibs_check_method \
22776 sharedlib_from_linklib_cmd \
22779 archiver_list_spec \
22785 lt_cv_sys_global_symbol_pipe \
22786 lt_cv_sys_global_symbol_to_cdecl \
22787 lt_cv_sys_global_symbol_to_import \
22788 lt_cv_sys_global_symbol_to_c_name_address \
22789 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22790 lt_cv_nm_interface \
22791 nm_file_list_spec \
22792 lt_cv_truncate_bin \
22793 lt_prog_compiler_no_builtin_flag \
22794 lt_prog_compiler_pic \
22795 lt_prog_compiler_wl \
22796 lt_prog_compiler_static \
22797 lt_cv_prog_compiler_c_o \
22806 export_dynamic_flag_spec \
22807 whole_archive_flag_spec \
22808 compiler_needs_object \
22810 allow_undefined_flag \
22811 no_undefined_flag \
22812 hardcode_libdir_flag_spec \
22813 hardcode_libdir_separator \
22817 variables_saved_for_relink \
22819 library_names_spec \
22821 install_override_mode \
22825 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22826 *[\\\\\\\`\\"\\\$]*)
22827 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22830 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22835 # Double-quote double-evaled strings.
22836 for var in reload_cmds \
22837 old_postinstall_cmds \
22838 old_postuninstall_cmds \
22840 extract_expsyms_cmds \
22841 old_archive_from_new_cmds \
22842 old_archive_from_expsyms_cmds \
22844 archive_expsym_cmds \
22846 module_expsym_cmds \
22847 export_symbols_cmds \
22851 postuninstall_cmds \
22853 sys_lib_search_path_spec \
22854 configure_time_dlsearch_path \
22855 configure_time_lt_sys_library_path; do
22856 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22857 *[\\\\\\\`\\"\\\$]*)
22858 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22861 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22866 ac_aux_dir='$ac_aux_dir'
22868 # See if we are running on zsh, and set the options that allow our
22869 # commands through without removal of \ escapes INIT.
22870 if test -n "\${ZSH_VERSION+set}"; then
22871 setopt NO_GLOB_SUBST
22885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22887 # Handling of arguments.
22888 for ac_config_target in $ac_config_targets
22890 case $ac_config_target in
22891 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22892 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
22893 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22894 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
22895 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
22896 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
22897 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
22898 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
22899 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
22900 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
22901 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
22902 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
22903 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
22904 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
22905 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
22906 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
22907 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
22908 "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;;
22909 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22911 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22916 # If the user did not use the arguments to specify the items to instantiate,
22917 # then the envvar interface is used. Set only those that are not.
22918 # We use the long form for the default assignment because of an extremely
22919 # bizarre bug on SunOS 4.1.3.
22920 if $ac_need_defaults; then
22921 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22922 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22923 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22926 # Have a temporary directory for convenience. Make it in the build tree
22927 # simply because there is no reason against having it here, and in addition,
22928 # creating and moving files from /tmp can sometimes cause problems.
22929 # Hook for its removal unless debugging.
22930 # Note that there is a small window in which the directory will not be cleaned:
22931 # after its creation but before its name has been assigned to `$tmp'.
22935 trap 'exit_status=$?
22936 : "${ac_tmp:=$tmp}"
22937 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22939 trap 'as_fn_exit 1' 1 2 13 15
22941 # Create a (secure) tmp directory for tmp files.
22944 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22948 tmp=./conf$$-$RANDOM
22949 (umask 077 && mkdir "$tmp")
22950 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22953 # Set up the scripts for CONFIG_FILES section.
22954 # No need to generate them if there are no CONFIG_FILES.
22955 # This happens for instance with `./config.status config.h'.
22956 if test -n "$CONFIG_FILES"; then
22959 ac_cr=`echo X | tr X '\015'`
22960 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22961 # But we know of no other shell where ac_cr would be empty at this
22962 # point, so we can use a bashism as a fallback.
22963 if test "x$ac_cr" = x; then
22964 eval ac_cr=\$\'\\r\'
22966 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22967 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22970 ac_cs_awk_cr=$ac_cr
22973 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22978 echo "cat >conf$$subs.awk <<_ACEOF" &&
22979 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22981 } >conf$$subs.sh ||
22982 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22983 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22985 for ac_last_try in false false false false false :; do
22986 . ./conf$$subs.sh ||
22987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22989 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22990 if test $ac_delim_n = $ac_delim_num; then
22992 elif $ac_last_try; then
22993 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22998 rm -f conf$$subs.sh
23000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23001 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23005 s/^/S["/; s/!.*/"]=/
23015 s/\(.\{148\}\)..*/\1/
23017 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23022 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23029 s/\(.\{148\}\)..*/\1/
23031 s/["\\]/\\&/g; s/^/"/; s/$/"/
23035 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23040 ' <conf$$subs.awk | sed '
23045 ' >>$CONFIG_STATUS || ac_write_fail=1
23046 rm -f conf$$subs.awk
23047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23049 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23050 for (key in S) S_is_set[key] = 1
23056 nfields = split(line, field, "@")
23058 len = length(field[1])
23059 for (i = 2; i < nfields; i++) {
23061 keylen = length(key)
23062 if (S_is_set[key]) {
23064 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23065 len += length(value) + length(field[++i])
23076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23077 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23078 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23081 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23082 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23085 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23086 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23087 # trailing colons and then remove the whole line if VPATH becomes empty
23088 # (actually we leave an empty line to preserve line numbers).
23089 if test "x$srcdir" = x.; then
23090 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23109 fi # test -n "$CONFIG_FILES"
23111 # Set up the scripts for CONFIG_HEADERS section.
23112 # No need to generate them if there are no CONFIG_HEADERS.
23113 # This happens for instance with `./config.status Makefile'.
23114 if test -n "$CONFIG_HEADERS"; then
23115 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23119 # Transform confdefs.h into an awk script `defines.awk', embedded as
23120 # here-document in config.status, that substitutes the proper values into
23121 # config.h.in to produce config.h.
23123 # Create a delimiter string that does not exist in confdefs.h, to ease
23124 # handling of long lines.
23126 for ac_last_try in false false :; do
23127 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23128 if test -z "$ac_tt"; then
23130 elif $ac_last_try; then
23131 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23137 # For the awk script, D is an array of macro values keyed by name,
23138 # likewise P contains macro parameters if any. Preserve backslash
23139 # newline sequences.
23141 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23143 s/.\{148\}/&'"$ac_delim"'/g
23146 s/^[ ]*#[ ]*define[ ][ ]*/ /
23153 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23155 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23159 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23160 D["\1"]=" \3\\\\\\n"\\/p
23162 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23167 s/.\{148\}/&'"$ac_delim"'/g
23172 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23175 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23177 ' <confdefs.h | sed '
23178 s/'"$ac_delim"'/"\\\
23179 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23182 for (key in D) D_is_set[key] = 1
23185 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23187 split(line, arg, " ")
23188 if (arg[1] == "#") {
23192 defundef = substr(arg[1], 2)
23195 split(mac1, mac2, "(") #)
23197 prefix = substr(line, 1, index(line, defundef) - 1)
23198 if (D_is_set[macro]) {
23199 # Preserve the white space surrounding the "#".
23200 print prefix "define", macro P[macro] D[macro]
23203 # Replace #undef with comments. This is necessary, for example,
23204 # in the case of _POSIX_SOURCE, which is predefined and required
23205 # on some systems where configure will not decide to define it.
23206 if (defundef == "undef") {
23207 print "/*", prefix defundef, macro, "*/"
23215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23216 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23217 fi # test -n "$CONFIG_HEADERS"
23220 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23225 :[FHLC]) ac_mode=$ac_tag; continue;;
23227 case $ac_mode$ac_tag in
23229 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23230 :[FH]-) ac_tag=-:-;;
23231 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23248 -) ac_f="$ac_tmp/stdin";;
23249 *) # Look for the file first in the build tree, then in the source tree
23250 # (if the path is not absolute). The absolute path cannot be DOS-style,
23251 # because $ac_f cannot contain `:'.
23255 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23257 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23259 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23260 as_fn_append ac_file_inputs " '$ac_f'"
23263 # Let's still pretend it is `configure' which instantiates (i.e., don't
23264 # use $as_me), people would be surprised to read:
23265 # /* config.h. Generated by config.status. */
23266 configure_input='Generated from '`
23267 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23269 if test x"$ac_file" != x-; then
23270 configure_input="$ac_file. $configure_input"
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23272 $as_echo "$as_me: creating $ac_file" >&6;}
23274 # Neutralize special characters interpreted by sed in replacement strings.
23275 case $configure_input in #(
23276 *\&* | *\|* | *\\* )
23277 ac_sed_conf_input=`$as_echo "$configure_input" |
23278 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23279 *) ac_sed_conf_input=$configure_input;;
23283 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23289 ac_dir=`$as_dirname -- "$ac_file" ||
23290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23291 X"$ac_file" : 'X\(//\)[^/]' \| \
23292 X"$ac_file" : 'X\(//\)$' \| \
23293 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23294 $as_echo X"$ac_file" |
23295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23299 /^X\(\/\/\)[^/].*/{
23312 as_dir="$ac_dir"; as_fn_mkdir_p
23316 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23318 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23319 # A ".." for each directory in $ac_dir_suffix.
23320 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23321 case $ac_top_builddir_sub in
23322 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23323 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23326 ac_abs_top_builddir=$ac_pwd
23327 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23328 # for backward compatibility:
23329 ac_top_builddir=$ac_top_build_prefix
23332 .) # We are building in place.
23334 ac_top_srcdir=$ac_top_builddir_sub
23335 ac_abs_top_srcdir=$ac_pwd ;;
23336 [\\/]* | ?:[\\/]* ) # Absolute name.
23337 ac_srcdir=$srcdir$ac_dir_suffix;
23338 ac_top_srcdir=$srcdir
23339 ac_abs_top_srcdir=$srcdir ;;
23340 *) # Relative name.
23341 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23342 ac_top_srcdir=$ac_top_build_prefix$srcdir
23343 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23345 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23357 # If the template does not know about datarootdir, expand it.
23358 # FIXME: This hack should be removed a few years after 2.60.
23359 ac_datarootdir_hack=; ac_datarootdir_seen=
23370 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23371 *datarootdir*) ac_datarootdir_seen=yes;;
23372 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23374 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23377 ac_datarootdir_hack='
23378 s&@datadir@&$datadir&g
23379 s&@docdir@&$docdir&g
23380 s&@infodir@&$infodir&g
23381 s&@localedir@&$localedir&g
23382 s&@mandir@&$mandir&g
23383 s&\\\${datarootdir}&$datarootdir&g' ;;
23387 # Neutralize VPATH when `$srcdir' = `.'.
23388 # Shell code in configure.ac might set extrasub.
23389 # FIXME: do we really want to maintain this feature?
23390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23391 ac_sed_extra="$ac_vpsub
23394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23396 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23397 s|@configure_input@|$ac_sed_conf_input|;t t
23398 s&@top_builddir@&$ac_top_builddir_sub&;t t
23399 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23400 s&@srcdir@&$ac_srcdir&;t t
23401 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23402 s&@top_srcdir@&$ac_top_srcdir&;t t
23403 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23404 s&@builddir@&$ac_builddir&;t t
23405 s&@abs_builddir@&$ac_abs_builddir&;t t
23406 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23407 $ac_datarootdir_hack
23409 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23410 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23412 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23413 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23414 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23415 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23417 which seems to be undefined. Please make sure it is defined" >&5
23418 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23419 which seems to be undefined. Please make sure it is defined" >&2;}
23421 rm -f "$ac_tmp/stdin"
23423 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23424 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23426 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23432 if test x"$ac_file" != x-; then
23434 $as_echo "/* $configure_input */" \
23435 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23436 } >"$ac_tmp/config.h" \
23437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23438 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23440 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23443 mv "$ac_tmp/config.h" "$ac_file" \
23444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23447 $as_echo "/* $configure_input */" \
23448 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23449 || as_fn_error $? "could not create -" "$LINENO" 5
23453 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23454 $as_echo "$as_me: executing $ac_file commands" >&6;}
23459 case $ac_file$ac_mode in
23462 # See if we are running on zsh, and set the options that allow our
23463 # commands through without removal of \ escapes.
23464 if test -n "${ZSH_VERSION+set}"; then
23465 setopt NO_GLOB_SUBST
23469 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23472 cat <<_LT_EOF >> "$cfgfile"
23474 # Generated automatically by $as_me ($PACKAGE) $VERSION
23475 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23476 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23478 # Provide generalized library-building support services.
23479 # Written by Gordon Matzigkeit, 1996
23481 # Copyright (C) 2014 Free Software Foundation, Inc.
23482 # This is free software; see the source for copying conditions. There is NO
23483 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23485 # GNU Libtool is free software; you can redistribute it and/or modify
23486 # it under the terms of the GNU General Public License as published by
23487 # the Free Software Foundation; either version 2 of of the License, or
23488 # (at your option) any later version.
23490 # As a special exception to the GNU General Public License, if you
23491 # distribute this file as part of a program or library that is built
23492 # using GNU Libtool, you may include this file under the same
23493 # distribution terms that you use for the rest of that program.
23495 # GNU Libtool is distributed in the hope that it will be useful, but
23496 # WITHOUT ANY WARRANTY; without even the implied warranty of
23497 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23498 # GNU General Public License for more details.
23500 # You should have received a copy of the GNU General Public License
23501 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23504 # The names of the tagged configurations supported by this script.
23507 # Configured defaults for sys_lib_dlsearch_path munging.
23508 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23510 # ### BEGIN LIBTOOL CONFIG
23512 # Which release of libtool.m4 was used?
23513 macro_version=$macro_version
23514 macro_revision=$macro_revision
23516 # Whether or not to build shared libraries.
23517 build_libtool_libs=$enable_shared
23519 # Whether or not to build static libraries.
23520 build_old_libs=$enable_static
23522 # What type of objects to build.
23525 # Whether or not to optimize for fast installation.
23526 fast_install=$enable_fast_install
23528 # Shared archive member basename,for filename based shared library versioning on AIX.
23529 shared_archive_member_spec=$shared_archive_member_spec
23531 # Shell to use when invoking shell scripts.
23534 # An echo program that protects backslashes.
23537 # The PATH separator for the build system.
23538 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23541 host_alias=$host_alias
23545 # The build system.
23546 build_alias=$build_alias
23550 # A sed program that does not truncate output.
23553 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23554 Xsed="\$SED -e 1s/^X//"
23556 # A grep program that handles long lines.
23562 # A literal string matcher.
23565 # A BSD- or MS-compatible name lister.
23568 # Whether we need soft or hard links.
23571 # What is the maximum length of a command?
23572 max_cmd_len=$max_cmd_len
23574 # Object file suffix (normally "o").
23577 # Executable file suffix (normally "").
23580 # whether the shell understands "unset".
23583 # turn spaces into newlines.
23586 # turn newlines into spaces.
23589 # convert \$build file names to \$host format.
23590 to_host_file_cmd=$lt_cv_to_host_file_cmd
23592 # convert \$build files to toolchain format.
23593 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23595 # An object symbol dumper.
23596 OBJDUMP=$lt_OBJDUMP
23598 # Method to check whether dependent libraries are shared objects.
23599 deplibs_check_method=$lt_deplibs_check_method
23601 # Command to use when deplibs_check_method = "file_magic".
23602 file_magic_cmd=$lt_file_magic_cmd
23604 # How to find potential files when deplibs_check_method = "file_magic".
23605 file_magic_glob=$lt_file_magic_glob
23607 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23608 want_nocaseglob=$lt_want_nocaseglob
23610 # DLL creation program.
23611 DLLTOOL=$lt_DLLTOOL
23613 # Command to associate shared and link libraries.
23614 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23619 # Flags to create an archive.
23620 AR_FLAGS=$lt_AR_FLAGS
23622 # How to feed a file listing to the archiver.
23623 archiver_list_spec=$lt_archiver_list_spec
23625 # A symbol stripping program.
23628 # Commands used to install an old-style archive.
23630 old_postinstall_cmds=$lt_old_postinstall_cmds
23631 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23633 # Whether to use a lock for old archive extraction.
23634 lock_old_archive_extraction=$lock_old_archive_extraction
23639 # LTCC compiler flags.
23640 LTCFLAGS=$lt_CFLAGS
23642 # Take the output of nm and produce a listing of raw symbols and C names.
23643 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23645 # Transform the output of nm in a proper C declaration.
23646 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23648 # Transform the output of nm into a list of symbols to manually relocate.
23649 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23651 # Transform the output of nm in a C name address pair.
23652 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23654 # Transform the output of nm in a C name address pair when lib prefix is needed.
23655 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23657 # The name lister interface.
23658 nm_interface=$lt_lt_cv_nm_interface
23660 # Specify filename containing input files for \$NM.
23661 nm_file_list_spec=$lt_nm_file_list_spec
23663 # The root where to search for dependent libraries,and where our libraries should be installed.
23664 lt_sysroot=$lt_sysroot
23666 # Command to truncate a binary pipe.
23667 lt_truncate_bin=$lt_lt_cv_truncate_bin
23669 # The name of the directory that contains temporary libtool files.
23672 # Used to examine libraries when file_magic_cmd begins with "file".
23673 MAGIC_CMD=$MAGIC_CMD
23675 # Must we lock files when doing compilation?
23676 need_locks=$lt_need_locks
23679 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23681 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23682 DSYMUTIL=$lt_DSYMUTIL
23684 # Tool to change global to local symbols on Mac OS X.
23687 # Tool to manipulate fat objects and archives on Mac OS X.
23690 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23693 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23694 OTOOL64=$lt_OTOOL64
23696 # Old archive suffix (normally "a").
23699 # Shared library suffix (normally ".so").
23700 shrext_cmds=$lt_shrext_cmds
23702 # The commands to extract the exported symbol list from a shared archive.
23703 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23705 # Variables whose values should be saved in libtool wrapper scripts and
23706 # restored at link time.
23707 variables_saved_for_relink=$lt_variables_saved_for_relink
23709 # Do we need the "lib" prefix for modules?
23710 need_lib_prefix=$need_lib_prefix
23712 # Do we need a version for libraries?
23713 need_version=$need_version
23715 # Library versioning type.
23716 version_type=$version_type
23718 # Shared library runtime path variable.
23719 runpath_var=$runpath_var
23721 # Shared library path variable.
23722 shlibpath_var=$shlibpath_var
23724 # Is shlibpath searched before the hard-coded library search path?
23725 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23727 # Format of library name prefix.
23728 libname_spec=$lt_libname_spec
23730 # List of archive names. First name is the real one, the rest are links.
23731 # The last name is the one that the linker finds with -lNAME
23732 library_names_spec=$lt_library_names_spec
23734 # The coded name of the library, if different from the real name.
23735 soname_spec=$lt_soname_spec
23737 # Permission mode override for installation of shared libraries.
23738 install_override_mode=$lt_install_override_mode
23740 # Command to use after installation of a shared archive.
23741 postinstall_cmds=$lt_postinstall_cmds
23743 # Command to use after uninstallation of a shared archive.
23744 postuninstall_cmds=$lt_postuninstall_cmds
23746 # Commands used to finish a libtool library installation in a directory.
23747 finish_cmds=$lt_finish_cmds
23749 # As "finish_cmds", except a single script fragment to be evaled but
23751 finish_eval=$lt_finish_eval
23753 # Whether we should hardcode library paths into libraries.
23754 hardcode_into_libs=$hardcode_into_libs
23756 # Compile-time system search path for libraries.
23757 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23759 # Detected run-time system search path for libraries.
23760 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23762 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23763 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23765 # Whether dlopen is supported.
23766 dlopen_support=$enable_dlopen
23768 # Whether dlopen of programs is supported.
23769 dlopen_self=$enable_dlopen_self
23771 # Whether dlopen of statically linked programs is supported.
23772 dlopen_self_static=$enable_dlopen_self_static
23774 # Commands to strip libraries.
23775 old_striplib=$lt_old_striplib
23776 striplib=$lt_striplib
23779 # The linker used to build libraries.
23782 # How to create reloadable object files.
23783 reload_flag=$lt_reload_flag
23784 reload_cmds=$lt_reload_cmds
23786 # Commands used to build an old-style archive.
23787 old_archive_cmds=$lt_old_archive_cmds
23789 # A language specific compiler.
23792 # Is the compiler the GNU compiler?
23795 # Compiler flag to turn off builtin functions.
23796 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23798 # Additional compiler flags for building library objects.
23799 pic_flag=$lt_lt_prog_compiler_pic
23801 # How to pass a linker flag through the compiler.
23802 wl=$lt_lt_prog_compiler_wl
23804 # Compiler flag to prevent dynamic linking.
23805 link_static_flag=$lt_lt_prog_compiler_static
23807 # Does compiler simultaneously support -c and -o options?
23808 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23810 # Whether or not to add -lc for building shared libraries.
23811 build_libtool_need_lc=$archive_cmds_need_lc
23813 # Whether or not to disallow shared libs when runtime libs are static.
23814 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23816 # Compiler flag to allow reflexive dlopens.
23817 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23819 # Compiler flag to generate shared objects directly from archives.
23820 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23822 # Whether the compiler copes with passing no objects directly.
23823 compiler_needs_object=$lt_compiler_needs_object
23825 # Create an old-style archive from a shared archive.
23826 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23828 # Create a temporary old-style archive to link instead of a shared archive.
23829 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23831 # Commands used to build a shared archive.
23832 archive_cmds=$lt_archive_cmds
23833 archive_expsym_cmds=$lt_archive_expsym_cmds
23835 # Commands used to build a loadable module if different from building
23836 # a shared archive.
23837 module_cmds=$lt_module_cmds
23838 module_expsym_cmds=$lt_module_expsym_cmds
23840 # Whether we are building with GNU ld or not.
23841 with_gnu_ld=$lt_with_gnu_ld
23843 # Flag that allows shared libraries with undefined symbols to be built.
23844 allow_undefined_flag=$lt_allow_undefined_flag
23846 # Flag that enforces no undefined symbols.
23847 no_undefined_flag=$lt_no_undefined_flag
23849 # Flag to hardcode \$libdir into a binary during linking.
23850 # This must work even if \$libdir does not exist
23851 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23853 # Whether we need a single "-rpath" flag with a separated argument.
23854 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23856 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23857 # DIR into the resulting binary.
23858 hardcode_direct=$hardcode_direct
23860 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23861 # DIR into the resulting binary and the resulting library dependency is
23862 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23863 # library is relocated.
23864 hardcode_direct_absolute=$hardcode_direct_absolute
23866 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23867 # into the resulting binary.
23868 hardcode_minus_L=$hardcode_minus_L
23870 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23871 # into the resulting binary.
23872 hardcode_shlibpath_var=$hardcode_shlibpath_var
23874 # Set to "yes" if building a shared library automatically hardcodes DIR
23875 # into the library and all subsequent libraries and executables linked
23877 hardcode_automatic=$hardcode_automatic
23879 # Set to yes if linker adds runtime paths of dependent libraries
23880 # to runtime path list.
23881 inherit_rpath=$inherit_rpath
23883 # Whether libtool must link a program against all its dependency libraries.
23884 link_all_deplibs=$link_all_deplibs
23886 # Set to "yes" if exported symbols are required.
23887 always_export_symbols=$always_export_symbols
23889 # The commands to list exported symbols.
23890 export_symbols_cmds=$lt_export_symbols_cmds
23892 # Symbols that should not be listed in the preloaded symbols.
23893 exclude_expsyms=$lt_exclude_expsyms
23895 # Symbols that must always be exported.
23896 include_expsyms=$lt_include_expsyms
23898 # Commands necessary for linking programs (against libraries) with templates.
23899 prelink_cmds=$lt_prelink_cmds
23901 # Commands necessary for finishing linking programs.
23902 postlink_cmds=$lt_postlink_cmds
23904 # Specify filename containing input files.
23905 file_list_spec=$lt_file_list_spec
23907 # How to hardcode a shared library path into an executable.
23908 hardcode_action=$hardcode_action
23910 # ### END LIBTOOL CONFIG
23914 cat <<'_LT_EOF' >> "$cfgfile"
23916 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23918 # func_munge_path_list VARIABLE PATH
23919 # -----------------------------------
23920 # VARIABLE is name of variable containing _space_ separated list of
23921 # directories to be munged by the contents of PATH, which is string
23924 # string "DIR[ DIR]" will be prepended to VARIABLE
23926 # string "DIR[ DIR]" will be appended to VARIABLE
23927 # "DIRP[:DIRP]::[DIRA:]DIRA"
23928 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23929 # "DIRA[ DIRA]" will be appended to VARIABLE
23931 # VARIABLE will be replaced by "DIR[ DIR]"
23932 func_munge_path_list ()
23938 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23941 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23944 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23945 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23948 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23954 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23955 func_cc_basename ()
23957 for cc_temp in $*""; do
23959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23965 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23969 # ### END FUNCTIONS SHARED WITH CONFIGURE
23975 cat <<\_LT_EOF >> "$cfgfile"
23976 # AIX sometimes has problems with the GCC collect2 program. For some
23977 # reason, if we set the COLLECT_NAMES environment variable, the problems
23978 # vanish in a puff of smoke.
23979 if test set != "${COLLECT_NAMES+set}"; then
23981 export COLLECT_NAMES
23988 ltmain=$ac_aux_dir/ltmain.sh
23991 # We use sed instead of cat because bash on DJGPP gets confused if
23992 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23993 # text mode, it properly converts lines to CR/LF. This bash problem
23994 # is reportedly fixed, but why not run on old versions too?
23995 sed '$q' "$ltmain" >> "$cfgfile" \
23996 || (rm -f "$cfgfile"; exit 1)
23998 mv -f "$cfgfile" "$ofile" ||
23999 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24004 sed < libtool > libtool-2 \
24005 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
24006 mv libtool-2 libtool
24008 libtool="./libtool"
24017 ac_clean_files=$ac_clean_files_save
24019 test $ac_write_fail = 0 ||
24020 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24023 # configure is writing to config.log, and then calls config.status.
24024 # config.status does its own redirection, appending to config.log.
24025 # Unfortunately, on DOS this fails, as config.log is still kept open
24026 # by configure, so config.status won't be able to write to it; its
24027 # output is simply discarded. So we exec the FD to /dev/null,
24028 # effectively closing config.log, so it can be properly (re)opened and
24029 # appended to by config.status. When coming back to configure, we
24030 # need to make the FD available again.
24031 if test "$no_create" != yes; then
24033 ac_config_status_args=
24034 test "$silent" = yes &&
24035 ac_config_status_args="$ac_config_status_args --quiet"
24037 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24040 # would make configure fail if this is the last instruction.
24041 $ac_cs_success || as_fn_exit 1
24043 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24045 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}