2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.12.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.12.0'
595 PACKAGE_STRING='unbound 1.12.0'
596 PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues'
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='LTLIBOBJS
649 ENABLE_DNSCRYPT_XCHACHA20
653 opt_dnstap_socket_path
658 COMMON_OBJ_ALL_SYMBOLS
660 LIBOBJ_WITHOUT_CTIMEARC4
661 WIN_CHECKCONF_OBJ_LINK
663 WIN_UBANCHOR_OBJ_LINK
672 PC_LIBEVENT_DEPENDENCY
673 UNBOUND_EVENT_UNINSTALL
674 UNBOUND_EVENT_INSTALL
712 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ
713 SLDNS_ALLOCCHECK_EXTRA_OBJ
717 SYSTEMD_DAEMON_CFLAGS
765 UNBOUND_ROOTCERT_FILE
773 UNBOUND_LOCALSTATE_DIR
789 UNBOUND_VERSION_MICRO
790 UNBOUND_VERSION_MINOR
791 UNBOUND_VERSION_MAJOR
819 program_transform_name
832 enable_option_checking
859 enable_alloc_nonregional
866 enable_swig_version_check
891 with_dnstap_socket_path
899 enable_explicit_port_randomisation
902 ac_precious_vars='build_alias
919 SYSTEMD_DAEMON_CFLAGS
924 # Initialize some variables set by options.
926 ac_init_version=false
927 ac_unrecognized_opts=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
938 program_transform_name=s,x,x,
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
963 infodir='${datarootdir}/info'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989 # Accept the important Cygnus configure options, so we can diagnose typos.
991 case $ac_dashdash$ac_option in
995 -bindir | --bindir | --bindi | --bind | --bin | --bi)
997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000 -build | --build | --buil | --bui | --bu)
1001 ac_prev=build_alias ;;
1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003 build_alias=$ac_optarg ;;
1005 -cache-file | --cache-file | --cache-fil | --cache-fi \
1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007 ac_prev=cache_file ;;
1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010 cache_file=$ac_optarg ;;
1012 --config-cache | -C)
1013 cache_file=config.cache ;;
1015 -datadir | --datadir | --datadi | --datad)
1017 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018 datadir=$ac_optarg ;;
1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021 | --dataroo | --dataro | --datar)
1022 ac_prev=datarootdir ;;
1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025 datarootdir=$ac_optarg ;;
1027 -disable-* | --disable-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error $? "invalid feature name: $ac_useropt"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1036 "enable_$ac_useropt"
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1041 eval enable_$ac_useropt=no ;;
1043 -docdir | --docdir | --docdi | --doc | --do)
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1053 -enable-* | --enable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1067 eval enable_$ac_useropt=\$ac_optarg ;;
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
1076 exec_prefix=$ac_optarg ;;
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
1089 -host | --host | --hos | --ho)
1090 ac_prev=host_alias ;;
1091 -host=* | --host=* | --hos=* | --ho=*)
1092 host_alias=$ac_optarg ;;
1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098 htmldir=$ac_optarg ;;
1100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
1105 includedir=$ac_optarg ;;
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110 infodir=$ac_optarg ;;
1112 -libdir | --libdir | --libdi | --libd)
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115 libdir=$ac_optarg ;;
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
1122 libexecdir=$ac_optarg ;;
1124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1129 -localstatedir | --localstatedir | --localstatedi | --localstated \
1130 | --localstate | --localstat | --localsta | --localst | --locals)
1131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134 localstatedir=$ac_optarg ;;
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139 mandir=$ac_optarg ;;
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146 | --no-cr | --no-c | -n)
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160 oldincludedir=$ac_optarg ;;
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165 prefix=$ac_optarg ;;
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172 program_prefix=$ac_optarg ;;
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179 program_suffix=$ac_optarg ;;
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
1196 program_transform_name=$ac_optarg ;;
1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1203 -psdir | --psdir | --psdi | --psd | --ps)
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216 sbindir=$ac_optarg ;;
1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220 | --sharedst | --shareds | --shared | --share | --shar \
1222 ac_prev=sharedstatedir ;;
1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227 sharedstatedir=$ac_optarg ;;
1229 -site | --site | --sit)
1231 -site=* | --site=* | --sit=*)
1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237 srcdir=$ac_optarg ;;
1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240 | --syscon | --sysco | --sysc | --sys | --sy)
1241 ac_prev=sysconfdir ;;
1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244 sysconfdir=$ac_optarg ;;
1246 -target | --target | --targe | --targ | --tar | --ta | --t)
1247 ac_prev=target_alias ;;
1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249 target_alias=$ac_optarg ;;
1251 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254 -version | --version | --versio | --versi | --vers | -V)
1255 ac_init_version=: ;;
1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1271 eval with_$ac_useropt=\$ac_optarg ;;
1273 -without-* | --without-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error $? "invalid package name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1287 eval with_$ac_useropt=no ;;
1290 # Obsolete; use --with-x.
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298 x_includes=$ac_optarg ;;
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305 x_libraries=$ac_optarg ;;
1307 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1308 Try \`$0 --help' for more information"
1312 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313 # Reject names that are not valid shell variable names.
1314 case $ac_envvar in #(
1315 '' | [0-9]* | *[!_$as_cr_alnum]* )
1316 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1318 eval $ac_envvar=\$ac_optarg
1319 export $ac_envvar ;;
1322 # FIXME: should be removed in autoconf 3.0.
1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1332 if test -n "$ac_prev"; then
1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334 as_fn_error $? "missing argument to $ac_option"
1337 if test -n "$ac_unrecognized_opts"; then
1338 case $enable_option_checking in
1340 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1341 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1345 # Check all directory arguments for consistency.
1346 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
1351 eval ac_val=\$$ac_var
1352 # Remove trailing slashes.
1355 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356 eval $ac_var=\$ac_val;;
1358 # Be sure to have absolute directory names.
1360 [\\/$]* | ?:[\\/]* ) continue;;
1361 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1363 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1366 # There might be people who depend on the old broken behavior: `$host'
1367 # used to hold the argument of --host etc.
1368 # FIXME: To remove some day.
1371 target=$target_alias
1373 # FIXME: To remove some day.
1374 if test "x$host_alias" != x; then
1375 if test "x$build_alias" = x; then
1376 cross_compiling=maybe
1377 elif test "x$build_alias" != "x$host_alias"; then
1383 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385 test "$silent" = yes && exec 6>/dev/null
1388 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di=`ls -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 as_fn_error $? "working directory cannot be determined"
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 as_fn_error $? "pwd does not report name of working directory"
1396 # Find the source files, if location was not specified.
1397 if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$as_myself" ||
1401 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405 $as_echo X"$as_myself" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1428 ac_srcdir_defaulted=no
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456 # Report the --help message.
1458 if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1462 \`configure' configures unbound 1.12.0 to adapt to many kinds of systems.
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE. See below for descriptions of some of the useful variables.
1469 Defaults for the options are specified in brackets.
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking ...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482 Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1493 For better control, use the options below.
1495 Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive ) echo "Configuration of unbound 1.12.0:";;
1532 --disable-option-checking ignore unrecognized --enable/--with options
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1535 --enable-checking Enable warnings, asserts, makefile-dependencies
1536 --enable-debug same as enable-checking
1537 --disable-flto Disable link-time optimization (gcc specific option)
1538 --enable-pie Enable Position-Independent Executable (eg. to fully
1539 benefit from ASLR, small performance penalty)
1540 --enable-relro-now Enable full relocation binding at load-time (RELRO
1541 NOW, to protect GOT and .dtor areas)
1542 --enable-shared[=PKGS] build shared libraries [default=yes]
1543 --enable-static[=PKGS] build static libraries [default=yes]
1544 --enable-fast-install[=PKGS]
1545 optimize for fast installation [default=yes]
1546 --disable-libtool-lock avoid locking (might break parallel builds)
1547 --disable-rpath disable hardcoded rpath (default=enabled)
1548 --disable-largefile omit support for large files
1549 --enable-systemd compile with systemd support
1550 --enable-alloc-checks enable to memory allocation statistics, for debug
1552 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1554 --enable-alloc-nonregional
1555 enable nonregional allocs, slow but exposes regional
1556 allocations to other memory purifiers, for debug
1558 --disable-swig-version-check
1559 Disable swig version check to build python modules
1560 with older swig even though that is unreliable
1561 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3
1563 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1564 --enable-subnet Enable client subnet
1565 --disable-gost Disable GOST support
1566 --disable-ecdsa Disable ECDSA support
1567 --disable-dsa Disable DSA support
1568 --disable-ed25519 Disable ED25519 support
1569 --disable-ed448 Disable ED448 support
1570 --enable-event-api Enable (experimental) pluggable event base
1571 libunbound API installed to unbound-event.h
1572 --enable-tfo-client Enable TCP Fast Open for client mode
1573 --enable-tfo-server Enable TCP Fast Open for server mode
1574 --enable-static-exe enable to compile executables statically against
1575 (event) uninstalled libs, for debug purposes
1576 --enable-fully-static enable to compile fully static
1577 --enable-lock-checks enable to check lock and unlock calls, for debug
1579 --enable-allsymbols export all symbols from libunbound and link binaries
1580 to it, smaller install size but libunbound export
1581 table is polluted by internal symbols
1582 --enable-dnstap Enable dnstap support (requires protobuf-c)
1583 --enable-dnscrypt Enable dnscrypt support (requires libsodium)
1584 --enable-cachedb enable cachedb module that can use external cache
1586 --enable-ipsecmod Enable ipsecmod module that facilitates
1588 --enable-ipset enable ipset module
1589 --disable-explicit-port-randomisation
1590 disable explicit source port randomisation and rely
1591 on the kernel to provide random source ports
1594 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1595 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1596 --with-conf-file=path Pathname to the Unbound configuration file
1597 --with-run-dir=path set default directory to chdir to (by default dir
1599 --with-chroot-dir=path set default directory to chroot to (by default same
1601 --with-share-dir=path set default directory with shared data (by default
1602 same as share/unbound)
1603 --with-pidfile=filename set default pathname to unbound pidfile (default
1604 run-dir/unbound.pid)
1605 --with-rootkey-file=filename
1606 set default pathname to root key file (default
1607 run-dir/root.key). This file is read and written.
1608 --with-rootcert-file=filename
1609 set default pathname to root update certificate file
1610 (default run-dir/icannbundle.pem). This file need
1611 not exist if you are content with the builtin.
1612 --with-username=user set default user that unbound changes to (default
1614 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1616 --with-aix-soname=aix|svr4|both
1617 shared library versioning (aka "SONAME") variant to
1618 provide on AIX, [default=aix].
1619 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1620 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1621 compiler's sysroot if not specified).
1622 --with-pthreads use pthreads library, or --without-pthreads to
1623 disable threading support.
1624 --with-solaris-threads use solaris native thread library.
1625 --with-syslog-facility=LOCAL0 - LOCAL7
1626 set SYSLOG_FACILITY, default DAEMON
1627 --with-dynlibmodule build dynamic library module, or
1628 --without-dynlibmodule to disable it. (default=no)
1629 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1631 --with-pythonmodule build Python module, or --without-pythonmodule to
1632 disable script engine. (default=no)
1633 --with-nss=path use libnss instead of openssl, installed at path.
1634 --with-nettle=path use libnettle as crypto library, installed at path.
1635 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1636 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1638 --with-libbsd Use portable libbsd functions
1639 --with-libevent=pathname
1640 use libevent (will check /usr/local /opt/local
1641 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1642 an explicit path). Slower, but allows use of large
1643 outgoing port ranges.
1644 --with-libexpat=path specify explicit path for libexpat.
1645 --with-libhiredis=path specify explicit path for libhiredis.
1646 --with-libnghttp2=path specify explicit path for libnghttp2.
1647 --with-dnstap-socket-path=pathname
1648 set default dnstap socket path
1649 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1650 --with-libsodium=path Path where libsodium is installed, for dnscrypt
1651 --with-libmnl=path specify explicit path for libmnl.
1652 --with-libunbound-only do not build daemon and tool programs
1654 Some influential environment variables:
1655 CC C compiler command
1656 CFLAGS C compiler flags
1657 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1658 nonstandard directory <lib dir>
1659 LIBS libraries to pass to the linker, e.g. -l<library>
1660 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1661 you have headers in a nonstandard directory <include dir>
1663 YACC The `Yet Another Compiler Compiler' implementation to use.
1664 Defaults to the first program found out of: `bison -y', `byacc',
1666 YFLAGS The list of arguments that will be passed by default to $YACC.
1667 This script will default YFLAGS to the empty string to avoid a
1668 default value of `-d' given by some make applications.
1670 User-defined run-time library search path.
1671 PKG_CONFIG path to pkg-config utility
1673 directories to add to pkg-config's search path
1675 path overriding pkg-config's built-in search path
1677 C compiler flags for SYSTEMD, overriding pkg-config
1679 linker flags for SYSTEMD, overriding pkg-config
1680 SYSTEMD_DAEMON_CFLAGS
1681 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1683 linker flags for SYSTEMD_DAEMON, overriding pkg-config
1685 The installed Python version to use, for example '2.3'. This
1686 string will be appended to the Python interpreter canonical
1689 Use these variables to override the choices made by `configure' or to help
1690 it to find libraries and programs with nonstandard names/locations.
1692 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
1697 if test "$ac_init_help" = "recursive"; then
1698 # If there are subdirs, report their specific --help.
1699 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1700 test -d "$ac_dir" ||
1701 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1709 # A ".." for each directory in $ac_dir_suffix.
1710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1711 case $ac_top_builddir_sub in
1712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716 ac_abs_top_builddir=$ac_pwd
1717 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1718 # for backward compatibility:
1719 ac_top_builddir=$ac_top_build_prefix
1722 .) # We are building in place.
1724 ac_top_srcdir=$ac_top_builddir_sub
1725 ac_abs_top_srcdir=$ac_pwd ;;
1726 [\\/]* | ?:[\\/]* ) # Absolute name.
1727 ac_srcdir=$srcdir$ac_dir_suffix;
1728 ac_top_srcdir=$srcdir
1729 ac_abs_top_srcdir=$srcdir ;;
1731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1732 ac_top_srcdir=$ac_top_build_prefix$srcdir
1733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1735 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1737 cd "$ac_dir" || { ac_status=$?; continue; }
1738 # Check for guested configure.
1739 if test -f "$ac_srcdir/configure.gnu"; then
1741 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742 elif test -f "$ac_srcdir/configure"; then
1744 $SHELL "$ac_srcdir/configure" --help=recursive
1746 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1748 cd "$ac_pwd" || { ac_status=$?; break; }
1752 test -n "$ac_init_help" && exit $ac_status
1753 if $ac_init_version; then
1755 unbound configure 1.12.0
1756 generated by GNU Autoconf 2.69
1758 Copyright (C) 2012 Free Software Foundation, Inc.
1759 This configure script is free software; the Free Software Foundation
1760 gives unlimited permission to copy, distribute and modify it.
1765 ## ------------------------ ##
1766 ## Autoconf initialization. ##
1767 ## ------------------------ ##
1769 # ac_fn_c_try_compile LINENO
1770 # --------------------------
1771 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext
1776 if { { ac_try="$ac_compile"
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext; then :
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1805 } # ac_fn_c_try_compile
1807 # ac_fn_c_try_cpp LINENO
1808 # ----------------------
1809 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_cpp conftest.$ac_ext"
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } > conftest.i && {
1829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1844 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1847 # the include files in INCLUDES and setting the cache variable VAR
1849 ac_fn_c_check_header_mongrel ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if eval \${$3+:} false; then :
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1862 # Is the header compilable?
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1864 $as_echo_n "checking $2 usability... " >&6; }
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871 ac_header_compiler=yes
1873 ac_header_compiler=no
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1877 $as_echo "$ac_header_compiler" >&6; }
1879 # Is the header present?
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1881 $as_echo_n "checking $2 presence... " >&6; }
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1886 if ac_fn_c_try_cpp "$LINENO"; then :
1887 ac_header_preproc=yes
1889 ac_header_preproc=no
1891 rm -f conftest.err conftest.i conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1893 $as_echo "$ac_header_preproc" >&6; }
1895 # So? What about this header?
1896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1899 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1905 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1907 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1909 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1911 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1914 ( $as_echo "## --------------------------------------------------------------------------------------- ##
1915 ## Report this to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ##
1916 ## --------------------------------------------------------------------------------------- ##"
1917 ) | sed "s/^/$as_me: WARNING: /" >&2
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1925 eval "$3=\$ac_header_compiler"
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 } # ac_fn_c_check_header_mongrel
1935 # ac_fn_c_try_run LINENO
1936 # ----------------------
1937 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1938 # that executables *can* be run.
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if { { ac_try="$ac_link"
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>&5
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1953 { { case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_try") 2>&5
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; }; }; then :
1965 $as_echo "$as_me: program exited with status $ac_status" >&5
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1969 ac_retval=$ac_status
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1977 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1978 # -------------------------------------------------------
1979 # Tests whether HEADER exists and can be compiled using the include files in
1980 # INCLUDES, setting the cache variable VAR accordingly.
1981 ac_fn_c_check_header_compile ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1994 if ac_fn_c_try_compile "$LINENO"; then :
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 } # ac_fn_c_check_header_compile
2008 # ac_fn_c_try_link LINENO
2009 # -----------------------
2010 # Try to link conftest.$ac_ext, and return whether this succeeded.
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 rm -f conftest.$ac_objext conftest$ac_exeext
2015 if { { ac_try="$ac_link"
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_link") 2>conftest.err
2024 if test -s conftest.err; then
2025 grep -v '^ *+' conftest.err >conftest.er1
2026 cat conftest.er1 >&5
2027 mv -f conftest.er1 conftest.err
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; } && {
2031 test -z "$ac_c_werror_flag" ||
2032 test ! -s conftest.err
2033 } && test -s conftest$ac_exeext && {
2034 test "$cross_compiling" = yes ||
2035 test -x conftest$ac_exeext
2039 $as_echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2044 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2045 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2046 # interfere with the next link command; also delete a directory that is
2047 # left behind by Apple's compiler. We do this before executing the actions.
2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 as_fn_set_status $ac_retval
2052 } # ac_fn_c_try_link
2054 # ac_fn_c_check_func LINENO FUNC VAR
2055 # ----------------------------------
2056 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2057 ac_fn_c_check_func ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval \${$3+:} false; then :
2063 $as_echo_n "(cached) " >&6
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2069 #define $2 innocuous_$2
2071 /* System header to define __stub macros and hopefully few prototypes,
2072 which can conflict with char $2 (); below.
2073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2074 <limits.h> exists even on freestanding compilers. */
2077 # include <limits.h>
2079 # include <assert.h>
2084 /* Override any GCC internal prototype to avoid an error.
2085 Use char because int might match the return type of a GCC
2086 builtin and then its argument prototype would still apply. */
2091 /* The GNU C library defines this for functions which it implements
2092 to always fail with ENOSYS. Some functions are actually named
2093 something starting with __ and the normal name is an alias. */
2094 #if defined __stub_$2 || defined __stub___$2
2106 if ac_fn_c_try_link "$LINENO"; then :
2111 rm -f core conftest.err conftest.$ac_objext \
2112 conftest$ac_exeext conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119 } # ac_fn_c_check_func
2121 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2122 # -------------------------------------------
2123 # Tests whether TYPE exists after having included INCLUDES, setting cache
2124 # variable VAR accordingly.
2125 ac_fn_c_check_type ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval \${$3+:} false; then :
2131 $as_echo_n "(cached) " >&6
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2159 if ac_fn_c_try_compile "$LINENO"; then :
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 } # ac_fn_c_check_type
2175 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2176 # --------------------------------------------
2177 # Tries to find the compile-time value of EXPR in a program that includes
2178 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2180 ac_fn_c_compute_int ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 if test "$cross_compiling" = yes; then
2184 # Depending upon the size, compute the lo and hi bounds.
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2191 static int test_array [1 - 2 * !(($2) >= 0)];
2193 return test_array [0];
2199 if ac_fn_c_try_compile "$LINENO"; then :
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2208 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2210 return test_array [0];
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217 ac_hi=$ac_mid; break
2219 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2220 if test $ac_lo -le $ac_mid; then
2224 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2235 static int test_array [1 - 2 * !(($2) < 0)];
2237 return test_array [0];
2243 if ac_fn_c_try_compile "$LINENO"; then :
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2252 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2254 return test_array [0];
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261 ac_lo=$ac_mid; break
2263 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2264 if test $ac_mid -le $ac_hi; then
2268 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 # Binary search between lo and hi bounds.
2279 while test "x$ac_lo" != "x$ac_hi"; do
2280 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2287 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2289 return test_array [0];
2295 if ac_fn_c_try_compile "$LINENO"; then :
2298 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2310 static long int longval () { return $2; }
2311 static unsigned long int ulongval () { return $2; }
2318 FILE *f = fopen ("conftest.val", "w");
2323 long int i = longval ();
2326 fprintf (f, "%ld", i);
2330 unsigned long int i = ulongval ();
2333 fprintf (f, "%lu", i);
2335 /* Do not output a trailing newline, as this causes \r\n confusion
2336 on some platforms. */
2337 return ferror (f) || fclose (f) != 0;
2343 if ac_fn_c_try_run "$LINENO"; then :
2344 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2349 conftest.$ac_objext conftest.beam conftest.$ac_ext
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354 as_fn_set_status $ac_retval
2356 } # ac_fn_c_compute_int
2358 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2359 # ---------------------------------------------
2360 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2362 ac_fn_c_check_decl ()
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365 as_decl_name=`echo $2|sed 's/ *(.*//'`
2366 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2368 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2369 if eval \${$3+:} false; then :
2370 $as_echo_n "(cached) " >&6
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2378 #ifndef $as_decl_name
2380 (void) $as_decl_use;
2382 (void) $as_decl_name;
2390 if ac_fn_c_try_compile "$LINENO"; then :
2395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2399 $as_echo "$ac_res" >&6; }
2400 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2402 } # ac_fn_c_check_decl
2404 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2405 # ----------------------------------------------------
2406 # Tries to find if the field MEMBER exists in type AGGR, after including
2407 # INCLUDES, setting cache variable VAR accordingly.
2408 ac_fn_c_check_member ()
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2412 $as_echo_n "checking for $2.$3... " >&6; }
2413 if eval \${$4+:} false; then :
2414 $as_echo_n "(cached) " >&6
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2429 if ac_fn_c_try_compile "$LINENO"; then :
2432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2433 /* end confdefs.h. */
2439 if (sizeof ac_aggr.$3)
2445 if ac_fn_c_try_compile "$LINENO"; then :
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459 } # ac_fn_c_check_member
2460 cat >config.log <<_ACEOF
2461 This file contains any messages produced by compilers while
2462 running configure, to aid debugging if configure makes a mistake.
2464 It was created by unbound $as_me 1.12.0, which was
2465 generated by GNU Autoconf 2.69. Invocation command line was
2477 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2478 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2479 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2480 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2481 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2483 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2484 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2486 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2487 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2488 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2489 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2490 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2491 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2492 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 test -z "$as_dir" && as_dir=.
2501 $as_echo "PATH: $as_dir"
2517 # Keep a trace of the command line.
2518 # Strip out --no-create and --no-recursion so they do not pile up.
2519 # Strip out --silent because we don't want to record it for future runs.
2520 # Also quote any args containing shell meta-characters.
2521 # Make two passes to allow for proper duplicate-argument suppression.
2525 ac_must_keep_next=false
2531 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2533 | -silent | --silent | --silen | --sile | --sil)
2536 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2539 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2541 as_fn_append ac_configure_args1 " '$ac_arg'"
2542 if test $ac_must_keep_next = true; then
2543 ac_must_keep_next=false # Got value, back to normal.
2546 *=* | --config-cache | -C | -disable-* | --disable-* \
2547 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2548 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2549 | -with-* | --with-* | -without-* | --without-* | --x)
2550 case "$ac_configure_args0 " in
2551 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2554 -* ) ac_must_keep_next=true ;;
2557 as_fn_append ac_configure_args " '$ac_arg'"
2562 { ac_configure_args0=; unset ac_configure_args0;}
2563 { ac_configure_args1=; unset ac_configure_args1;}
2565 # When interrupted or exit'd, cleanup temporary files, and complete
2566 # config.log. We remove comments because anyway the quotes in there
2567 # would cause problems or look ugly.
2568 # WARNING: Use '\'' to represent an apostrophe within the trap.
2569 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2570 trap 'exit_status=$?
2571 # Save into config.log some information that might help in debugging.
2575 $as_echo "## ---------------- ##
2576 ## Cache variables. ##
2577 ## ---------------- ##"
2579 # The following way of writing the cache mishandles newlines in values,
2581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2582 eval ac_val=\$$ac_var
2586 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2587 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2590 _ | IFS | as_nl) ;; #(
2591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2592 *) { eval $ac_var=; unset $ac_var;} ;;
2597 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2598 *${as_nl}ac_space=\ *)
2600 "s/'\''/'\''\\\\'\'''\''/g;
2601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2611 $as_echo "## ----------------- ##
2612 ## Output variables. ##
2613 ## ----------------- ##"
2615 for ac_var in $ac_subst_vars
2617 eval ac_val=\$$ac_var
2619 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2621 $as_echo "$ac_var='\''$ac_val'\''"
2625 if test -n "$ac_subst_files"; then
2626 $as_echo "## ------------------- ##
2627 ## File substitutions. ##
2628 ## ------------------- ##"
2630 for ac_var in $ac_subst_files
2632 eval ac_val=\$$ac_var
2634 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2636 $as_echo "$ac_var='\''$ac_val'\''"
2641 if test -s confdefs.h; then
2642 $as_echo "## ----------- ##
2649 test "$ac_signal" != 0 &&
2650 $as_echo "$as_me: caught signal $ac_signal"
2651 $as_echo "$as_me: exit $exit_status"
2653 rm -f core *.core core.conftest.* &&
2654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2657 for ac_signal in 1 2 13 15; do
2658 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2663 rm -f -r conftest* confdefs.h
2665 $as_echo "/* confdefs.h */" > confdefs.h
2667 # Predefined preprocessor variables.
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE_NAME "$PACKAGE_NAME"
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2681 cat >>confdefs.h <<_ACEOF
2682 #define PACKAGE_STRING "$PACKAGE_STRING"
2685 cat >>confdefs.h <<_ACEOF
2686 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2689 cat >>confdefs.h <<_ACEOF
2690 #define PACKAGE_URL "$PACKAGE_URL"
2694 # Let the site file select an alternate cache file if it wants to.
2695 # Prefer an explicitly selected file to automatically selected ones.
2698 if test -n "$CONFIG_SITE"; then
2699 # We do not want a PATH search for config.site.
2700 case $CONFIG_SITE in #((
2701 -*) ac_site_file1=./$CONFIG_SITE;;
2702 */*) ac_site_file1=$CONFIG_SITE;;
2703 *) ac_site_file1=./$CONFIG_SITE;;
2705 elif test "x$prefix" != xNONE; then
2706 ac_site_file1=$prefix/share/config.site
2707 ac_site_file2=$prefix/etc/config.site
2709 ac_site_file1=$ac_default_prefix/share/config.site
2710 ac_site_file2=$ac_default_prefix/etc/config.site
2712 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2714 test "x$ac_site_file" = xNONE && continue
2715 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2717 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2718 sed 's/^/| /' "$ac_site_file" >&5
2720 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2722 as_fn_error $? "failed to load site script $ac_site_file
2723 See \`config.log' for more details" "$LINENO" 5; }
2727 if test -r "$cache_file"; then
2728 # Some versions of bash will fail to source /dev/null (special files
2729 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2730 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2732 $as_echo "$as_me: loading cache $cache_file" >&6;}
2734 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2735 *) . "./$cache_file";;
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2740 $as_echo "$as_me: creating cache $cache_file" >&6;}
2744 # Check that the precious variables saved in the cache have kept the same
2746 ac_cache_corrupted=false
2747 for ac_var in $ac_precious_vars; do
2748 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2749 eval ac_new_set=\$ac_env_${ac_var}_set
2750 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2751 eval ac_new_val=\$ac_env_${ac_var}_value
2752 case $ac_old_set,$ac_new_set in
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2755 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2756 ac_cache_corrupted=: ;;
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2759 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2760 ac_cache_corrupted=: ;;
2763 if test "x$ac_old_val" != "x$ac_new_val"; then
2764 # differences in whitespace do not lead to failure.
2765 ac_old_val_w=`echo x $ac_old_val`
2766 ac_new_val_w=`echo x $ac_new_val`
2767 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2769 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2770 ac_cache_corrupted=:
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2773 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2774 eval $ac_var=\$ac_old_val
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2777 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2779 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2782 # Pass precious variables to config.status.
2783 if test "$ac_new_set" = set; then
2785 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2786 *) ac_arg=$ac_var=$ac_new_val ;;
2788 case " $ac_configure_args " in
2789 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2790 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2794 if $ac_cache_corrupted; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2798 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2799 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2801 ## -------------------- ##
2802 ## Main body of script. ##
2803 ## -------------------- ##
2806 ac_cpp='$CPP $CPPFLAGS'
2807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812 UNBOUND_VERSION_MAJOR=1
2814 UNBOUND_VERSION_MINOR=12
2816 UNBOUND_VERSION_MICRO=0
2819 LIBUNBOUND_CURRENT=9
2820 LIBUNBOUND_REVISION=10
2829 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2834 # 1.4.0-snapshots had 1:5:0
2835 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2849 # and 1.4.13p1 and 1.4.13.p2
2851 # 1.4.15 had 3:0:1 # adds ub_version()
2856 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2859 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2867 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2871 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2883 # 1.8.0 had 8:0:0 # changes the event callback function signature
2887 # 1.9.0 had 9:0:1 # add ub_ctx_set_tls
2899 # Current -- the number of the binary API that we're implementing
2900 # Revision -- which iteration of the implementation of the binary
2901 # API are we supplying?
2902 # Age -- How many previous binary API versions do we also
2905 # If we release a new version that does not change the binary API,
2906 # increment Revision.
2908 # If we release a new version that changes the binary API, but does
2909 # not break programs compiled against the old binary API, increment
2910 # Current and Age. Set Revision to 0, since this is the first
2911 # implementation of the new API.
2913 # Otherwise, we're changing the binary API and breaking backward
2914 # compatibility with old binaries. Increment Current. Set Age to 0,
2915 # since we're backward compatible with no previous APIs. Set Revision
2922 cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
2924 cat >>confdefs.h <<_ACEOF
2925 #define CONFCMDLINE "$cmdln"
2931 ac_cpp='$CPP $CPPFLAGS'
2932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935 if test -n "$ac_tool_prefix"; then
2936 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2937 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_CC+:} false; then :
2941 $as_echo_n "(cached) " >&6
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 if test -n "$CC"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966 $as_echo "$CC" >&6; }
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2974 if test -z "$ac_cv_prog_CC"; then
2976 # Extract the first word of "gcc", so it can be a program name with args.
2977 set dummy gcc; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2981 $as_echo_n "(cached) " >&6
2983 if test -n "$ac_ct_CC"; then
2984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_ac_ct_CC="gcc"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3004 if test -n "$ac_ct_CC"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3006 $as_echo "$ac_ct_CC" >&6; }
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3012 if test "x$ac_ct_CC" = x; then
3015 case $cross_compiling:$ac_tool_warned in
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3019 ac_tool_warned=yes ;;
3027 if test -z "$CC"; then
3028 if test -n "$ac_tool_prefix"; then
3029 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3030 set dummy ${ac_tool_prefix}cc; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if ${ac_cv_prog_CC+:} false; then :
3034 $as_echo_n "(cached) " >&6
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046 ac_cv_prog_CC="${ac_tool_prefix}cc"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 if test -n "$CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 $as_echo "$CC" >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3068 if test -z "$CC"; then
3069 # Extract the first word of "cc", so it can be a program name with args.
3070 set dummy cc; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_CC+:} false; then :
3074 $as_echo_n "(cached) " >&6
3076 if test -n "$CC"; then
3077 ac_cv_prog_CC="$CC" # Let the user override the test.
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3088 ac_prog_rejected=yes
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 if test $ac_prog_rejected = yes; then
3100 # We found a bogon in the path, so make sure we never use it.
3101 set dummy $ac_cv_prog_CC
3103 if test $# != 0; then
3104 # We chose a different compiler from the bogus one.
3105 # However, it has the same basename, so the bogon will be chosen
3106 # first if we set CC to just the basename; use the full file name.
3108 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3124 if test -z "$CC"; then
3125 if test -n "$ac_tool_prefix"; then
3126 for ac_prog in cl.exe
3128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_CC+:} false; then :
3133 $as_echo_n "(cached) " >&6
3135 if test -n "$CC"; then
3136 ac_cv_prog_CC="$CC" # Let the user override the test.
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 if test -n "$CC"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158 $as_echo "$CC" >&6; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3165 test -n "$CC" && break
3168 if test -z "$CC"; then
3170 for ac_prog in cl.exe
3172 # Extract the first word of "$ac_prog", so it can be a program name with args.
3173 set dummy $ac_prog; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3177 $as_echo_n "(cached) " >&6
3179 if test -n "$ac_ct_CC"; then
3180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_ac_ct_CC="$ac_prog"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3200 if test -n "$ac_ct_CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3202 $as_echo "$ac_ct_CC" >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3209 test -n "$ac_ct_CC" && break
3212 if test "x$ac_ct_CC" = x; then
3215 case $cross_compiling:$ac_tool_warned in
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3219 ac_tool_warned=yes ;;
3228 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 as_fn_error $? "no acceptable C compiler found in \$PATH
3231 See \`config.log' for more details" "$LINENO" 5; }
3233 # Provide some information about the compiler.
3234 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3237 for ac_option in --version -v -V -qversion; do
3238 { { ac_try="$ac_compiler $ac_option >&5"
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3247 if test -s conftest.err; then
3249 ... rest of stderr output deleted ...
3250 10q' conftest.err >conftest.er1
3251 cat conftest.er1 >&5
3253 rm -f conftest.er1 conftest.err
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3269 ac_clean_files_save=$ac_clean_files
3270 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3271 # Try to create an executable without -o first, disregard a.out.
3272 # It will help us diagnose broken compilers, and finding out an intuition
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3275 $as_echo_n "checking whether the C compiler works... " >&6; }
3276 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3278 # The possible output files:
3279 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3282 for ac_file in $ac_files
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3286 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3291 if { { ac_try="$ac_link_default"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298 (eval "$ac_link_default") 2>&5
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }; then :
3302 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3303 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3304 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3305 # so that the user can short-circuit this test for compilers unknown to
3307 for ac_file in $ac_files ''
3309 test -f "$ac_file" || continue
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3314 # We found the default executable, but exeext='' is most
3318 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3320 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 # We set ac_cv_exeext here because the later test for it is not
3323 # safe: cross compilers may not add the suffix if given an `-o'
3324 # argument, so we may need to know it at that point already.
3325 # Even if this section looks crufty: it has the advantage of
3332 test "$ac_cv_exeext" = no && ac_cv_exeext=
3337 if test -z "$ac_file"; then :
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 $as_echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error 77 "C compiler cannot create executables
3346 See \`config.log' for more details" "$LINENO" 5; }
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3349 $as_echo "yes" >&6; }
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3352 $as_echo_n "checking for C compiler default output file name... " >&6; }
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3354 $as_echo "$ac_file" >&6; }
3355 ac_exeext=$ac_cv_exeext
3357 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3358 ac_clean_files=$ac_clean_files_save
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3360 $as_echo_n "checking for suffix of executables... " >&6; }
3361 if { { ac_try="$ac_link"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_link") 2>&5
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; then :
3372 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3373 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3374 # work properly (i.e., refer to `conftest.exe'), while it won't with
3376 for ac_file in conftest.exe conftest conftest.*; do
3377 test -f "$ac_file" || continue
3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3380 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3389 See \`config.log' for more details" "$LINENO" 5; }
3391 rm -f conftest conftest$ac_cv_exeext
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3393 $as_echo "$ac_cv_exeext" >&6; }
3395 rm -f conftest.$ac_ext
3396 EXEEXT=$ac_cv_exeext
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3404 FILE *f = fopen ("conftest.out", "w");
3405 return ferror (f) || fclose (f) != 0;
3411 ac_clean_files="$ac_clean_files conftest.out"
3412 # Check that the compiler produces executables we can run. If not, either
3413 # the compiler is broken, or we cross compile.
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3415 $as_echo_n "checking whether we are cross compiling... " >&6; }
3416 if test "$cross_compiling" != yes; then
3417 { { ac_try="$ac_link"
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424 (eval "$ac_link") 2>&5
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }
3428 if { ac_try='./conftest$ac_cv_exeext'
3429 { { case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_try") 2>&5
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; }; then
3441 if test "$cross_compiling" = maybe; then
3444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error $? "cannot run C compiled programs.
3447 If you meant to cross compile, use \`--host'.
3448 See \`config.log' for more details" "$LINENO" 5; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3453 $as_echo "$cross_compiling" >&6; }
3455 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3456 ac_clean_files=$ac_clean_files_save
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3458 $as_echo_n "checking for suffix of object files... " >&6; }
3459 if ${ac_cv_objext+:} false; then :
3460 $as_echo_n "(cached) " >&6
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3473 rm -f conftest.o conftest.obj
3474 if { { ac_try="$ac_compile"
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_compile") 2>&5
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; then :
3485 for ac_file in conftest.o conftest.obj conftest.*; do
3486 test -f "$ac_file" || continue;
3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3489 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3494 $as_echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error $? "cannot compute suffix of object files: cannot compile
3500 See \`config.log' for more details" "$LINENO" 5; }
3502 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3505 $as_echo "$ac_cv_objext" >&6; }
3506 OBJEXT=$ac_cv_objext
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3509 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3510 if ${ac_cv_c_compiler_gnu+:} false; then :
3511 $as_echo_n "(cached) " >&6
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3527 if ac_fn_c_try_compile "$LINENO"; then :
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3537 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3538 if test $ac_compiler_gnu = yes; then
3543 ac_test_CFLAGS=${CFLAGS+set}
3544 ac_save_CFLAGS=$CFLAGS
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3546 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3547 if ${ac_cv_prog_cc_g+:} false; then :
3548 $as_echo_n "(cached) " >&6
3550 ac_save_c_werror_flag=$ac_c_werror_flag
3551 ac_c_werror_flag=yes
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3565 if ac_fn_c_try_compile "$LINENO"; then :
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3580 if ac_fn_c_try_compile "$LINENO"; then :
3583 ac_c_werror_flag=$ac_save_c_werror_flag
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3596 if ac_fn_c_try_compile "$LINENO"; then :
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 ac_c_werror_flag=$ac_save_c_werror_flag
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3607 $as_echo "$ac_cv_prog_cc_g" >&6; }
3608 if test "$ac_test_CFLAGS" = set; then
3609 CFLAGS=$ac_save_CFLAGS
3610 elif test $ac_cv_prog_cc_g = yes; then
3611 if test "$GCC" = yes; then
3617 if test "$GCC" = yes; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3624 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3625 if ${ac_cv_prog_cc_c89+:} false; then :
3626 $as_echo_n "(cached) " >&6
3628 ac_cv_prog_cc_c89=no
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3635 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3636 struct buf { int x; };
3637 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3638 static char *e (p, i)
3644 static char *f (char * (*g) (char **, int), char **p, ...)
3649 s = g (p, va_arg (v,int));
3654 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3655 function prototypes and stuff, but not '\xHH' hex character constants.
3656 These don't provoke an error unfortunately, instead are silently treated
3657 as 'x'. The following induces an error, until -std is added to get
3658 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3659 array size at least. It's necessary to write '\x00'==0 to get something
3660 that's true only with -std. */
3661 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3663 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3664 inside strings and character constants. */
3666 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3668 int test (int i, double x);
3669 struct s1 {int (*f) (int a);};
3670 struct s2 {int (*f) (double a);};
3671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3677 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3682 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3683 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3685 CC="$ac_save_CC $ac_arg"
3686 if ac_fn_c_try_compile "$LINENO"; then :
3687 ac_cv_prog_cc_c89=$ac_arg
3689 rm -f core conftest.err conftest.$ac_objext
3690 test "x$ac_cv_prog_cc_c89" != "xno" && break
3692 rm -f conftest.$ac_ext
3697 case "x$ac_cv_prog_cc_c89" in
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3700 $as_echo "none needed" >&6; } ;;
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3703 $as_echo "unsupported" >&6; } ;;
3705 CC="$CC $ac_cv_prog_cc_c89"
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3707 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3709 if test "x$ac_cv_prog_cc_c89" != xno; then :
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3726 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3727 # On Suns, sometimes $CPP names a directory.
3728 if test -n "$CPP" && test -d "$CPP"; then
3731 if test -z "$CPP"; then
3732 if ${ac_cv_prog_CPP+:} false; then :
3733 $as_echo_n "(cached) " >&6
3735 # Double quotes because CPP needs to be expanded
3736 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3739 for ac_c_preproc_warn_flag in '' yes
3741 # Use a header file that comes with gcc, so configuring glibc
3742 # with a fresh cross-compiler works.
3743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744 # <limits.h> exists even on freestanding compilers.
3745 # On the NeXT, cc -E runs the code through the compiler's parser,
3746 # not just through cpp. "Syntax error" is here to catch this case.
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3750 # include <limits.h>
3752 # include <assert.h>
3756 if ac_fn_c_try_cpp "$LINENO"; then :
3759 # Broken: fails on valid input.
3762 rm -f conftest.err conftest.i conftest.$ac_ext
3764 # OK, works on sane cases. Now check whether nonexistent headers
3765 # can be detected and how.
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #include <ac_nonexistent.h>
3770 if ac_fn_c_try_cpp "$LINENO"; then :
3771 # Broken: success on invalid input.
3774 # Passes both tests.
3778 rm -f conftest.err conftest.i conftest.$ac_ext
3781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782 rm -f conftest.i conftest.err conftest.$ac_ext
3783 if $ac_preproc_ok; then :
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3796 $as_echo "$CPP" >&6; }
3798 for ac_c_preproc_warn_flag in '' yes
3800 # Use a header file that comes with gcc, so configuring glibc
3801 # with a fresh cross-compiler works.
3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 # <limits.h> exists even on freestanding compilers.
3804 # On the NeXT, cc -E runs the code through the compiler's parser,
3805 # not just through cpp. "Syntax error" is here to catch this case.
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3809 # include <limits.h>
3811 # include <assert.h>
3815 if ac_fn_c_try_cpp "$LINENO"; then :
3818 # Broken: fails on valid input.
3821 rm -f conftest.err conftest.i conftest.$ac_ext
3823 # OK, works on sane cases. Now check whether nonexistent headers
3824 # can be detected and how.
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827 #include <ac_nonexistent.h>
3829 if ac_fn_c_try_cpp "$LINENO"; then :
3830 # Broken: success on invalid input.
3833 # Passes both tests.
3837 rm -f conftest.err conftest.i conftest.$ac_ext
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.i conftest.err conftest.$ac_ext
3842 if $ac_preproc_ok; then :
3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3848 See \`config.log' for more details" "$LINENO" 5; }
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3859 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3860 if ${ac_cv_path_GREP+:} false; then :
3861 $as_echo_n "(cached) " >&6
3863 if test -z "$GREP"; then
3864 ac_path_GREP_found=false
3865 # Loop through the user's path and test for each of PROGNAME-LIST
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3870 test -z "$as_dir" && as_dir=.
3871 for ac_prog in grep ggrep; do
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3874 as_fn_executable_p "$ac_path_GREP" || continue
3875 # Check for GNU ac_path_GREP and select it if it is found.
3876 # Check for GNU $ac_path_GREP
3877 case `"$ac_path_GREP" --version 2>&1` in
3879 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3882 $as_echo_n 0123456789 >"conftest.in"
3885 cat "conftest.in" "conftest.in" >"conftest.tmp"
3886 mv "conftest.tmp" "conftest.in"
3887 cp "conftest.in" "conftest.nl"
3888 $as_echo 'GREP' >> "conftest.nl"
3889 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3891 as_fn_arith $ac_count + 1 && ac_count=$as_val
3892 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3893 # Best one so far, save it but keep looking for a better one
3894 ac_cv_path_GREP="$ac_path_GREP"
3895 ac_path_GREP_max=$ac_count
3897 # 10*(2^10) chars as input seems more than enough
3898 test $ac_count -gt 10 && break
3900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903 $ac_path_GREP_found && break 3
3908 if test -z "$ac_cv_path_GREP"; then
3909 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3912 ac_cv_path_GREP=$GREP
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3917 $as_echo "$ac_cv_path_GREP" >&6; }
3918 GREP="$ac_cv_path_GREP"
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3922 $as_echo_n "checking for egrep... " >&6; }
3923 if ${ac_cv_path_EGREP+:} false; then :
3924 $as_echo_n "(cached) " >&6
3926 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3927 then ac_cv_path_EGREP="$GREP -E"
3929 if test -z "$EGREP"; then
3930 ac_path_EGREP_found=false
3931 # Loop through the user's path and test for each of PROGNAME-LIST
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3936 test -z "$as_dir" && as_dir=.
3937 for ac_prog in egrep; do
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3940 as_fn_executable_p "$ac_path_EGREP" || continue
3941 # Check for GNU ac_path_EGREP and select it if it is found.
3942 # Check for GNU $ac_path_EGREP
3943 case `"$ac_path_EGREP" --version 2>&1` in
3945 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3948 $as_echo_n 0123456789 >"conftest.in"
3951 cat "conftest.in" "conftest.in" >"conftest.tmp"
3952 mv "conftest.tmp" "conftest.in"
3953 cp "conftest.in" "conftest.nl"
3954 $as_echo 'EGREP' >> "conftest.nl"
3955 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3957 as_fn_arith $ac_count + 1 && ac_count=$as_val
3958 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3959 # Best one so far, save it but keep looking for a better one
3960 ac_cv_path_EGREP="$ac_path_EGREP"
3961 ac_path_EGREP_max=$ac_count
3963 # 10*(2^10) chars as input seems more than enough
3964 test $ac_count -gt 10 && break
3966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3969 $ac_path_EGREP_found && break 3
3974 if test -z "$ac_cv_path_EGREP"; then
3975 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3978 ac_cv_path_EGREP=$EGREP
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3984 $as_echo "$ac_cv_path_EGREP" >&6; }
3985 EGREP="$ac_cv_path_EGREP"
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3989 $as_echo_n "checking for ANSI C header files... " >&6; }
3990 if ${ac_cv_header_stdc+:} false; then :
3991 $as_echo_n "(cached) " >&6
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009 ac_cv_header_stdc=yes
4011 ac_cv_header_stdc=no
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 if test $ac_cv_header_stdc = yes; then
4016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4023 $EGREP "memchr" >/dev/null 2>&1; then :
4026 ac_cv_header_stdc=no
4032 if test $ac_cv_header_stdc = yes; then
4033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040 $EGREP "free" >/dev/null 2>&1; then :
4043 ac_cv_header_stdc=no
4049 if test $ac_cv_header_stdc = yes; then
4050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4051 if test "$cross_compiling" = yes; then :
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4058 #if ((' ' & 0x0FF) == 0x020)
4059 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4060 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4062 # define ISLOWER(c) \
4063 (('a' <= (c) && (c) <= 'i') \
4064 || ('j' <= (c) && (c) <= 'r') \
4065 || ('s' <= (c) && (c) <= 'z'))
4066 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4074 for (i = 0; i < 256; i++)
4075 if (XOR (islower (i), ISLOWER (i))
4076 || toupper (i) != TOUPPER (i))
4081 if ac_fn_c_try_run "$LINENO"; then :
4084 ac_cv_header_stdc=no
4086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4087 conftest.$ac_objext conftest.beam conftest.$ac_ext
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4093 $as_echo "$ac_cv_header_stdc" >&6; }
4094 if test $ac_cv_header_stdc = yes; then
4096 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4100 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4101 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4102 inttypes.h stdint.h unistd.h
4104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4105 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4107 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4108 cat >>confdefs.h <<_ACEOF
4109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4118 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4119 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4126 if test "$MINIX" = yes; then
4128 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4131 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4134 $as_echo "#define _MINIX 1" >>confdefs.h
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4140 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4141 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4142 $as_echo_n "(cached) " >&6
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4147 # define __EXTENSIONS__ 1
4148 $ac_includes_default
4157 if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_cv_safe_to_define___extensions__=yes
4160 ac_cv_safe_to_define___extensions__=no
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4165 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4166 test $ac_cv_safe_to_define___extensions__ = yes &&
4167 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4169 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4171 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4173 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4175 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4179 if test "$ac_cv_header_minix_config_h" = "yes"; then
4181 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4190 case "$exec_prefix" in
4192 exec_prefix="$prefix"
4197 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4199 if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes"
4200 else on_mingw="no"; fi
4204 # Determine configuration file
4205 # the eval is to evaluate shell expansion twice
4206 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4208 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4210 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4212 if test $on_mingw = "no"; then
4213 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4215 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4218 # Check whether --with-conf_file was given.
4219 if test "${with_conf_file+set}" = set; then :
4220 withval=$with_conf_file; ub_conf_file="$withval"
4224 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4227 cat >>confdefs.h <<_ACEOF
4228 #define CONFIGFILE "$hdr_config"
4231 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4232 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4233 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4234 X"$ub_conf_file" : 'X\(//\)$' \| \
4235 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4236 $as_echo X"$ub_conf_file" |
4237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4256 # Determine run, chroot directory and pidfile locations
4258 # Check whether --with-run-dir was given.
4259 if test "${with_run_dir+set}" = set; then :
4260 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4262 if test $on_mingw = no; then
4263 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4271 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4274 cat >>confdefs.h <<_ACEOF
4275 #define RUN_DIR "$hdr_run"
4280 # Check whether --with-chroot-dir was given.
4281 if test "${with_chroot_dir+set}" = set; then :
4282 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4284 if test $on_mingw = no; then
4285 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4287 UNBOUND_CHROOT_DIR=""
4293 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4296 cat >>confdefs.h <<_ACEOF
4297 #define CHROOT_DIR "$hdr_chroot"
4302 # Check whether --with-share-dir was given.
4303 if test "${with_share_dir+set}" = set; then :
4304 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4306 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4311 cat >>confdefs.h <<_ACEOF
4312 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4317 # Check whether --with-pidfile was given.
4318 if test "${with_pidfile+set}" = set; then :
4319 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4321 if test $on_mingw = no; then
4322 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4330 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4333 cat >>confdefs.h <<_ACEOF
4334 #define PIDFILE "$hdr_pid"
4339 # Check whether --with-rootkey-file was given.
4340 if test "${with_rootkey_file+set}" = set; then :
4341 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4343 if test $on_mingw = no; then
4344 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4346 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4352 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4355 cat >>confdefs.h <<_ACEOF
4356 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4361 # Check whether --with-rootcert-file was given.
4362 if test "${with_rootcert_file+set}" = set; then :
4363 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4365 if test $on_mingw = no; then
4366 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4368 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4374 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4377 cat >>confdefs.h <<_ACEOF
4378 #define ROOT_CERT_FILE "$hdr_rpem"
4383 # Check whether --with-username was given.
4384 if test "${with_username+set}" = set; then :
4385 withval=$with_username; UNBOUND_USERNAME="$withval"
4387 UNBOUND_USERNAME="unbound"
4392 cat >>confdefs.h <<_ACEOF
4393 #define UB_USERNAME "$UNBOUND_USERNAME"
4398 $as_echo "#define WINVER 0x0502" >>confdefs.h
4400 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/' `
4403 cat >>confdefs.h <<_ACEOF
4404 #define RSRC_PACKAGE_VERSION $wnvs
4408 # Checks for typedefs, structures, and compiler characteristics.
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4410 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4411 if ${ac_cv_c_const+:} false; then :
4412 $as_echo_n "(cached) " >&6
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4422 /* Ultrix mips cc rejects this sort of thing. */
4423 typedef int charset[2];
4424 const charset cs = { 0, 0 };
4425 /* SunOS 4.1.1 cc rejects this. */
4426 char const *const *pcpcc;
4428 /* NEC SVR4.0.2 mips cc rejects this. */
4429 struct point {int x, y;};
4430 static struct point const zero = {0,0};
4431 /* AIX XL C 1.02.0.0 rejects this.
4432 It does not let you subtract one const X* pointer from another in
4433 an arm of an if-expression whose if-part is not a constant
4435 const char *g = "string";
4436 pcpcc = &g + (g ? g-g : 0);
4437 /* HPUX 7.0 cc rejects these. */
4439 ppc = (char**) pcpcc;
4440 pcpcc = (char const *const *) ppc;
4441 { /* SCO 3.2v4 cc rejects this sort of thing. */
4444 char const *s = 0 ? (char *) 0 : (char const *) 0;
4449 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4451 const int *foo = &x[0];
4454 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4455 typedef const int *iptr;
4459 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4460 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4461 struct s { int j; const int *ap[3]; } bx;
4462 struct s *b = &bx; b->j = 5;
4464 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4468 return !cs[0] && !zero.x;
4475 if ac_fn_c_try_compile "$LINENO"; then :
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4483 $as_echo "$ac_cv_c_const" >&6; }
4484 if test $ac_cv_c_const = no; then
4486 $as_echo "#define const /**/" >>confdefs.h
4491 ac_cpp='$CPP $CPPFLAGS'
4492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496 # allow user to override the -g -O2 flags.
4498 if test "x$CFLAGS" = "x" ; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4502 $as_echo_n "checking whether $CC supports -g... " >&6; }
4503 cache=`echo g | sed 'y%.=/+-%___p_%'`
4504 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4505 $as_echo_n "(cached) " >&6
4508 echo 'void f(void){}' >conftest.c
4509 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4510 eval "cv_prog_cc_flag_$cache=yes"
4512 eval "cv_prog_cc_flag_$cache=no"
4514 rm -f conftest conftest.o conftest.c
4518 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4520 $as_echo "yes" >&6; }
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4533 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4534 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4535 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4536 $as_echo_n "(cached) " >&6
4539 echo 'void f(void){}' >conftest.c
4540 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4541 eval "cv_prog_cc_flag_$cache=yes"
4543 eval "cv_prog_cc_flag_$cache=no"
4545 rm -f conftest conftest.o conftest.c
4549 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4551 $as_echo "yes" >&6; }
4553 CFLAGS="$CFLAGS -O2"
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4564 ac_cpp='$CPP $CPPFLAGS'
4565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568 if test -n "$ac_tool_prefix"; then
4569 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4570 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if ${ac_cv_prog_CC+:} false; then :
4574 $as_echo_n "(cached) " >&6
4576 if test -n "$CC"; then
4577 ac_cv_prog_CC="$CC" # Let the user override the test.
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 if test -n "$CC"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4599 $as_echo "$CC" >&6; }
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4607 if test -z "$ac_cv_prog_CC"; then
4609 # Extract the first word of "gcc", so it can be a program name with args.
4610 set dummy gcc; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4614 $as_echo_n "(cached) " >&6
4616 if test -n "$ac_ct_CC"; then
4617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4626 ac_cv_prog_ac_ct_CC="gcc"
4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4637 if test -n "$ac_ct_CC"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4639 $as_echo "$ac_ct_CC" >&6; }
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4645 if test "x$ac_ct_CC" = x; then
4648 case $cross_compiling:$ac_tool_warned in
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4652 ac_tool_warned=yes ;;
4660 if test -z "$CC"; then
4661 if test -n "$ac_tool_prefix"; then
4662 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4663 set dummy ${ac_tool_prefix}cc; ac_word=$2
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665 $as_echo_n "checking for $ac_word... " >&6; }
4666 if ${ac_cv_prog_CC+:} false; then :
4667 $as_echo_n "(cached) " >&6
4669 if test -n "$CC"; then
4670 ac_cv_prog_CC="$CC" # Let the user override the test.
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679 ac_cv_prog_CC="${ac_tool_prefix}cc"
4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 if test -n "$CC"; then
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4692 $as_echo "$CC" >&6; }
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4701 if test -z "$CC"; then
4702 # Extract the first word of "cc", so it can be a program name with args.
4703 set dummy cc; ac_word=$2
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705 $as_echo_n "checking for $ac_word... " >&6; }
4706 if ${ac_cv_prog_CC+:} false; then :
4707 $as_echo_n "(cached) " >&6
4709 if test -n "$CC"; then
4710 ac_cv_prog_CC="$CC" # Let the user override the test.
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4721 ac_prog_rejected=yes
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 if test $ac_prog_rejected = yes; then
4733 # We found a bogon in the path, so make sure we never use it.
4734 set dummy $ac_cv_prog_CC
4736 if test $# != 0; then
4737 # We chose a different compiler from the bogus one.
4738 # However, it has the same basename, so the bogon will be chosen
4739 # first if we set CC to just the basename; use the full file name.
4741 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4747 if test -n "$CC"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4749 $as_echo "$CC" >&6; }
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4757 if test -z "$CC"; then
4758 if test -n "$ac_tool_prefix"; then
4759 for ac_prog in cl.exe
4761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if ${ac_cv_prog_CC+:} false; then :
4766 $as_echo_n "(cached) " >&6
4768 if test -n "$CC"; then
4769 ac_cv_prog_CC="$CC" # Let the user override the test.
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 if test -n "$CC"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4791 $as_echo "$CC" >&6; }
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4798 test -n "$CC" && break
4801 if test -z "$CC"; then
4803 for ac_prog in cl.exe
4805 # Extract the first word of "$ac_prog", so it can be a program name with args.
4806 set dummy $ac_prog; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4810 $as_echo_n "(cached) " >&6
4812 if test -n "$ac_ct_CC"; then
4813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822 ac_cv_prog_ac_ct_CC="$ac_prog"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4833 if test -n "$ac_ct_CC"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4835 $as_echo "$ac_ct_CC" >&6; }
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4842 test -n "$ac_ct_CC" && break
4845 if test "x$ac_ct_CC" = x; then
4848 case $cross_compiling:$ac_tool_warned in
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4852 ac_tool_warned=yes ;;
4861 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4863 as_fn_error $? "no acceptable C compiler found in \$PATH
4864 See \`config.log' for more details" "$LINENO" 5; }
4866 # Provide some information about the compiler.
4867 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4870 for ac_option in --version -v -V -qversion; do
4871 { { ac_try="$ac_compiler $ac_option >&5"
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4877 $as_echo "$ac_try_echo"; } >&5
4878 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4880 if test -s conftest.err; then
4882 ... rest of stderr output deleted ...
4883 10q' conftest.err >conftest.er1
4884 cat conftest.er1 >&5
4886 rm -f conftest.er1 conftest.err
4887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4888 test $ac_status = 0; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4892 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4893 if ${ac_cv_c_compiler_gnu+:} false; then :
4894 $as_echo_n "(cached) " >&6
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4910 if ac_fn_c_try_compile "$LINENO"; then :
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4920 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4921 if test $ac_compiler_gnu = yes; then
4926 ac_test_CFLAGS=${CFLAGS+set}
4927 ac_save_CFLAGS=$CFLAGS
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4929 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4930 if ${ac_cv_prog_cc_g+:} false; then :
4931 $as_echo_n "(cached) " >&6
4933 ac_save_c_werror_flag=$ac_c_werror_flag
4934 ac_c_werror_flag=yes
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4948 if ac_fn_c_try_compile "$LINENO"; then :
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4963 if ac_fn_c_try_compile "$LINENO"; then :
4966 ac_c_werror_flag=$ac_save_c_werror_flag
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4979 if ac_fn_c_try_compile "$LINENO"; then :
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 ac_c_werror_flag=$ac_save_c_werror_flag
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4990 $as_echo "$ac_cv_prog_cc_g" >&6; }
4991 if test "$ac_test_CFLAGS" = set; then
4992 CFLAGS=$ac_save_CFLAGS
4993 elif test $ac_cv_prog_cc_g = yes; then
4994 if test "$GCC" = yes; then
5000 if test "$GCC" = yes; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5007 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5008 if ${ac_cv_prog_cc_c89+:} false; then :
5009 $as_echo_n "(cached) " >&6
5011 ac_cv_prog_cc_c89=no
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5018 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5019 struct buf { int x; };
5020 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5021 static char *e (p, i)
5027 static char *f (char * (*g) (char **, int), char **p, ...)
5032 s = g (p, va_arg (v,int));
5037 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5038 function prototypes and stuff, but not '\xHH' hex character constants.
5039 These don't provoke an error unfortunately, instead are silently treated
5040 as 'x'. The following induces an error, until -std is added to get
5041 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5042 array size at least. It's necessary to write '\x00'==0 to get something
5043 that's true only with -std. */
5044 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5046 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5047 inside strings and character constants. */
5049 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5051 int test (int i, double x);
5052 struct s1 {int (*f) (int a);};
5053 struct s2 {int (*f) (double a);};
5054 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5060 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5065 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5066 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5068 CC="$ac_save_CC $ac_arg"
5069 if ac_fn_c_try_compile "$LINENO"; then :
5070 ac_cv_prog_cc_c89=$ac_arg
5072 rm -f core conftest.err conftest.$ac_objext
5073 test "x$ac_cv_prog_cc_c89" != "xno" && break
5075 rm -f conftest.$ac_ext
5080 case "x$ac_cv_prog_cc_c89" in
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5083 $as_echo "none needed" >&6; } ;;
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5086 $as_echo "unsupported" >&6; } ;;
5088 CC="$CC $ac_cv_prog_cc_c89"
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5090 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5092 if test "x$ac_cv_prog_cc_c89" != xno; then :
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5104 $as_echo_n "checking $CC dependency flag... " >&6; }
5105 echo 'void f(){}' >conftest.c
5106 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5109 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5112 DEPFLAG="-MM" # dunno do something
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5116 $as_echo "$DEPFLAG" >&6; }
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5124 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
5125 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5126 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5127 $as_echo_n "(cached) " >&6
5130 echo 'void f(void){}' >conftest.c
5131 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5132 eval "cv_prog_cc_flag_$cache=yes"
5134 eval "cv_prog_cc_flag_$cache=no"
5136 rm -f conftest conftest.o conftest.c
5140 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5142 $as_echo "yes" >&6; }
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5155 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5156 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5157 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5158 $as_echo_n "(cached) " >&6
5161 echo 'void f(void){}' >conftest.c
5162 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5163 eval "cv_prog_cc_flag_$cache=yes"
5165 eval "cv_prog_cc_flag_$cache=no"
5167 rm -f conftest conftest.o conftest.c
5171 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5173 $as_echo "yes" >&6; }
5175 ERRFLAG="$ERRFLAG -Wall"
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5180 ERRFLAG="$ERRFLAG -errfmt"
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5188 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5189 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5190 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5191 $as_echo_n "(cached) " >&6
5194 echo 'void f(void){}' >conftest.c
5195 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5196 eval "cv_prog_cc_flag_$cache=yes"
5198 eval "cv_prog_cc_flag_$cache=no"
5200 rm -f conftest conftest.o conftest.c
5204 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5206 $as_echo "yes" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5219 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5220 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5221 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5222 $as_echo_n "(cached) " >&6
5225 echo 'void f(void){}' >conftest.c
5226 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5227 eval "cv_prog_cc_flag_$cache=yes"
5229 eval "cv_prog_cc_flag_$cache=no"
5231 rm -f conftest conftest.o conftest.c
5235 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5237 $as_echo "yes" >&6; }
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5248 for ac_header in getopt.h time.h
5250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5251 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5253 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5254 cat >>confdefs.h <<_ACEOF
5255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5266 { $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
5267 $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; }
5268 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`
5269 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5270 $as_echo_n "(cached) " >&6
5274 #include "confdefs.h"
5277 #include <sys/time.h>
5283 #ifdef HAVE_GETOPT_H
5294 const char* str = NULL;
5296 msg.msg_control = 0;
5297 t = ctime_r(&time, buf);
5300 a = getopt(2, opts, "a");
5302 str = gai_strerror(0);
5303 if(str && t && tv.tv_usec && msg.msg_control)
5308 echo 'void f(){}' >>conftest.c
5309 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5310 eval "cv_prog_cc_flag_needed_$cache=no"
5313 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
5314 eval "cv_prog_cc_flag_needed_$cache=yes"
5316 eval "cv_prog_cc_flag_needed_$cache=fail"
5317 #echo 'Test with flag fails too!'
5319 #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"
5320 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5325 rm -f conftest conftest.c conftest.o
5329 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5331 $as_echo "yes" >&6; }
5333 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"
5335 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5338 #echo 'Test with flag is no!'
5340 #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"
5341 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5347 $as_echo "failed" >&6; }
5357 { $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
5358 $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; }
5359 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`
5360 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5361 $as_echo_n "(cached) " >&6
5365 #include "confdefs.h"
5368 #include <sys/time.h>
5374 #ifdef HAVE_GETOPT_H
5385 const char* str = NULL;
5387 msg.msg_control = 0;
5388 t = ctime_r(&time, buf);
5391 a = getopt(2, opts, "a");
5393 str = gai_strerror(0);
5394 if(str && t && tv.tv_usec && msg.msg_control)
5399 echo 'void f(){}' >>conftest.c
5400 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5401 eval "cv_prog_cc_flag_needed_$cache=no"
5404 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
5405 eval "cv_prog_cc_flag_needed_$cache=yes"
5407 eval "cv_prog_cc_flag_needed_$cache=fail"
5408 #echo 'Test with flag fails too!'
5410 #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"
5411 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5416 rm -f conftest conftest.c conftest.o
5420 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5422 $as_echo "yes" >&6; }
5424 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5426 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5429 #echo 'Test with flag is no!'
5431 #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"
5432 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5438 $as_echo "failed" >&6; }
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5449 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5450 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5451 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5452 $as_echo_n "(cached) " >&6
5456 #include <stdbool.h>
5463 echo 'void f(){}' >>conftest.c
5464 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5465 eval "cv_prog_cc_flag_needed_$cache=no"
5468 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5469 eval "cv_prog_cc_flag_needed_$cache=yes"
5471 eval "cv_prog_cc_flag_needed_$cache=fail"
5472 #echo 'Test with flag fails too!'
5474 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5475 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5480 rm -f conftest conftest.c conftest.o
5484 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5486 $as_echo "yes" >&6; }
5488 CFLAGS="$CFLAGS $C99FLAG"
5490 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 #echo 'Test with flag is no!'
5495 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5496 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5502 $as_echo "failed" >&6; }
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5513 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5514 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5515 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5516 $as_echo_n "(cached) " >&6
5528 echo 'void f(){}' >>conftest.c
5529 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5530 eval "cv_prog_cc_flag_needed_$cache=no"
5533 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5534 eval "cv_prog_cc_flag_needed_$cache=yes"
5536 eval "cv_prog_cc_flag_needed_$cache=fail"
5537 #echo 'Test with flag fails too!'
5539 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5540 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5545 rm -f conftest conftest.c conftest.o
5549 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5551 $as_echo "yes" >&6; }
5553 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5555 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5558 #echo 'Test with flag is no!'
5560 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5561 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5567 $as_echo "failed" >&6; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5578 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5580 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5581 $as_echo_n "(cached) " >&6
5585 #include <netinet/in.h>
5588 struct in6_pktinfo inf;
5589 int a = (int)sizeof(inf);
5593 echo 'void f(){}' >>conftest.c
5594 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5595 eval "cv_prog_cc_flag_needed_$cache=no"
5598 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5599 eval "cv_prog_cc_flag_needed_$cache=yes"
5601 eval "cv_prog_cc_flag_needed_$cache=fail"
5602 #echo 'Test with flag fails too!'
5604 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5605 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5610 rm -f conftest conftest.c conftest.o
5614 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5616 $as_echo "yes" >&6; }
5618 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5620 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5623 #echo 'Test with flag is no!'
5625 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5626 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5632 $as_echo "failed" >&6; }
5639 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5640 # is not available at all. -D_FRSRESGID is to make this check unique.
5641 # otherwise we would get the previous cached result.
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5646 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5647 cache=_D_GNU_SOURCE__D_FRSRESGID
5648 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5649 $as_echo_n "(cached) " >&6
5656 int a = setresgid(0,0,0);
5657 a = setresuid(0,0,0);
5661 echo 'void f(){}' >>conftest.c
5662 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5663 eval "cv_prog_cc_flag_needed_$cache=no"
5666 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5667 eval "cv_prog_cc_flag_needed_$cache=yes"
5669 eval "cv_prog_cc_flag_needed_$cache=fail"
5670 #echo 'Test with flag fails too!'
5672 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5673 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5678 rm -f conftest conftest.c conftest.o
5682 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5684 $as_echo "yes" >&6; }
5686 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5688 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691 #echo 'Test with flag is no!'
5693 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5694 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5700 $as_echo "failed" >&6; }
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5711 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5712 cache=_D_POSIX_C_SOURCE_200112
5713 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5714 $as_echo_n "(cached) " >&6
5718 #include "confdefs.h"
5729 const char* str = NULL;
5730 t = ctime_r(&time, buf);
5731 str = gai_strerror(0);
5737 echo 'void f(){}' >>conftest.c
5738 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5739 eval "cv_prog_cc_flag_needed_$cache=no"
5742 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5743 eval "cv_prog_cc_flag_needed_$cache=yes"
5745 eval "cv_prog_cc_flag_needed_$cache=fail"
5746 #echo 'Test with flag fails too!'
5748 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5749 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5754 rm -f conftest conftest.c conftest.o
5758 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5760 $as_echo "yes" >&6; }
5762 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5764 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5767 #echo 'Test with flag is no!'
5769 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5770 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5776 $as_echo "failed" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5787 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5788 cache=_D__EXTENSIONS__
5789 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5790 $as_echo_n "(cached) " >&6
5794 #include "confdefs.h"
5797 #include <sys/time.h>
5802 #ifdef HAVE_GETOPT_H
5812 a = getopt(2, opts, "a");
5819 echo 'void f(){}' >>conftest.c
5820 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5821 eval "cv_prog_cc_flag_needed_$cache=no"
5824 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5825 eval "cv_prog_cc_flag_needed_$cache=yes"
5827 eval "cv_prog_cc_flag_needed_$cache=fail"
5828 #echo 'Test with flag fails too!'
5830 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5831 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5836 rm -f conftest conftest.c conftest.o
5840 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5842 $as_echo "yes" >&6; }
5844 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5846 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5849 #echo 'Test with flag is no!'
5851 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5852 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5858 $as_echo "failed" >&6; }
5867 # debug mode flags warnings
5868 # Check whether --enable-checking was given.
5869 if test "${enable_checking+set}" = set; then :
5870 enableval=$enable_checking;
5873 # Check whether --enable-debug was given.
5874 if test "${enable_debug+set}" = set; then :
5875 enableval=$enable_debug;
5878 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5879 else debug_enabled="$enable_checking"; fi
5881 case "$debug_enabled" in
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5886 $as_echo_n "checking whether $CC supports -W... " >&6; }
5887 cache=`echo W | sed 'y%.=/+-%___p_%'`
5888 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5889 $as_echo_n "(cached) " >&6
5892 echo 'void f(void){}' >conftest.c
5893 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5894 eval "cv_prog_cc_flag_$cache=yes"
5896 eval "cv_prog_cc_flag_$cache=no"
5898 rm -f conftest conftest.o conftest.c
5902 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5904 $as_echo "yes" >&6; }
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5917 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5918 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5919 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5920 $as_echo_n "(cached) " >&6
5923 echo 'void f(void){}' >conftest.c
5924 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5925 eval "cv_prog_cc_flag_$cache=yes"
5927 eval "cv_prog_cc_flag_$cache=no"
5929 rm -f conftest conftest.o conftest.c
5933 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5935 $as_echo "yes" >&6; }
5937 CFLAGS="$CFLAGS -Wall"
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940 $as_echo "no" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5948 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5949 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5950 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5951 $as_echo_n "(cached) " >&6
5954 echo 'void f(void){}' >conftest.c
5955 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5956 eval "cv_prog_cc_flag_$cache=yes"
5958 eval "cv_prog_cc_flag_$cache=no"
5960 rm -f conftest conftest.o conftest.c
5964 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5966 $as_echo "yes" >&6; }
5968 CFLAGS="$CFLAGS -Wextra"
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5979 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5980 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5981 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5982 $as_echo_n "(cached) " >&6
5985 echo 'void f(void){}' >conftest.c
5986 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5987 eval "cv_prog_cc_flag_$cache=yes"
5989 eval "cv_prog_cc_flag_$cache=no"
5991 rm -f conftest conftest.o conftest.c
5995 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5997 $as_echo "yes" >&6; }
5999 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6008 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
6015 if test "$default_cflags" = "yes"; then
6016 # only when CFLAGS was "" at the start, if the users wants to
6017 # override we shouldn't add default cflags, because they wouldn't
6018 # be able to turn off these options and set the CFLAGS wanted.
6020 # Check whether --enable-flto was given.
6021 if test "${enable_flto+set}" = set; then :
6022 enableval=$enable_flto;
6025 if test "x$enable_flto" != "xno"; then :
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
6028 $as_echo_n "checking if $CC supports -flto... " >&6; }
6030 CFLAGS="$CFLAGS -flto"
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6042 if ac_fn_c_try_link "$LINENO"; then :
6044 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6050 $as_echo "yes" >&6; }
6052 rm -f conftest conftest.c conftest.o
6055 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6058 rm -f core conftest.err conftest.$ac_objext \
6059 conftest$ac_exeext conftest.$ac_ext
6064 # Check whether --enable-pie was given.
6065 if test "${enable_pie+set}" = set; then :
6066 enableval=$enable_pie;
6069 if test "x$enable_pie" = "xyes"; then :
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
6072 $as_echo_n "checking if $CC supports PIE... " >&6; }
6073 BAKLDFLAGS="$LDFLAGS"
6075 LDFLAGS="$LDFLAGS -pie"
6076 CFLAGS="$CFLAGS -fPIE"
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6088 if ac_fn_c_try_link "$LINENO"; then :
6090 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6091 LDFLAGS="$BAKLDFLAGS"
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6096 $as_echo "yes" >&6; }
6098 rm -f conftest conftest.c conftest.o
6101 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6104 rm -f core conftest.err conftest.$ac_objext \
6105 conftest$ac_exeext conftest.$ac_ext
6110 # Check whether --enable-relro_now was given.
6111 if test "${enable_relro_now+set}" = set; then :
6112 enableval=$enable_relro_now;
6115 if test "x$enable_relro_now" = "xyes"; then :
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6118 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6119 BAKLDFLAGS="$LDFLAGS"
6120 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6132 if ac_fn_c_try_link "$LINENO"; then :
6134 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6135 LDFLAGS="$BAKLDFLAGS"
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6140 $as_echo "yes" >&6; }
6142 rm -f conftest conftest.c conftest.o
6145 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6148 rm -f core conftest.err conftest.$ac_objext \
6149 conftest$ac_exeext conftest.$ac_ext
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6156 $as_echo_n "checking for inline... " >&6; }
6157 if ${ac_cv_c_inline+:} false; then :
6158 $as_echo_n "(cached) " >&6
6161 for ac_kw in inline __inline__ __inline; do
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6166 static $ac_kw foo_t static_foo () {return 0; }
6167 $ac_kw foo_t foo () {return 0; }
6171 if ac_fn_c_try_compile "$LINENO"; then :
6172 ac_cv_c_inline=$ac_kw
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 test "$ac_cv_c_inline" != no && break
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6180 $as_echo "$ac_cv_c_inline" >&6; }
6182 case $ac_cv_c_inline in
6185 case $ac_cv_c_inline in
6187 *) ac_val=$ac_cv_c_inline;;
6189 cat >>confdefs.h <<_ACEOF
6191 #define inline $ac_val
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6199 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6200 if ${ac_cv_c_format_attribute+:} false; then :
6201 $as_echo_n "(cached) " >&6
6203 ac_cv_c_format_attribute=no
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6207 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6208 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6220 if ac_fn_c_try_compile "$LINENO"; then :
6221 ac_cv_c_format_attribute="yes"
6223 ac_cv_c_format_attribute="no"
6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6231 $as_echo "$ac_cv_c_format_attribute" >&6; }
6232 if test $ac_cv_c_format_attribute = yes; then
6234 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6240 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6241 if ${ac_cv_c_unused_attribute+:} false; then :
6242 $as_echo_n "(cached) " >&6
6244 ac_cv_c_unused_attribute=no
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6248 void f (char *u __attribute__((unused)));
6260 if ac_fn_c_try_compile "$LINENO"; then :
6261 ac_cv_c_unused_attribute="yes"
6263 ac_cv_c_unused_attribute="no"
6265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6273 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6274 if test $ac_cv_c_unused_attribute = yes; then
6276 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6284 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6285 if ${ac_cv_c_weak_attribute+:} false; then :
6286 $as_echo_n "(cached) " >&6
6288 ac_cv_c_weak_attribute=no
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6292 __attribute__((weak)) void f(int x) { printf("%d", x); }
6304 if ac_fn_c_try_compile "$LINENO"; then :
6305 ac_cv_c_weak_attribute="yes"
6307 ac_cv_c_weak_attribute="no"
6309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6315 $as_echo "$ac_cv_c_weak_attribute" >&6; }
6316 if test $ac_cv_c_weak_attribute = yes; then
6318 $as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6321 $as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6329 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6330 if ${ac_cv_c_noreturn_attribute+:} false; then :
6331 $as_echo_n "(cached) " >&6
6333 ac_cv_c_noreturn_attribute=no
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6337 __attribute__((noreturn)) void f(int x) { printf("%d", x); }
6349 if ac_fn_c_try_compile "$LINENO"; then :
6350 ac_cv_c_noreturn_attribute="yes"
6352 ac_cv_c_noreturn_attribute="no"
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
6360 $as_echo "$ac_cv_c_noreturn_attribute" >&6; }
6361 if test $ac_cv_c_noreturn_attribute = yes; then
6363 $as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
6366 $as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
6371 if test "$srcdir" != "."; then
6372 CPPFLAGS="$CPPFLAGS -I$srcdir"
6379 for ac_prog in flex lex
6381 # Extract the first word of "$ac_prog", so it can be a program name with args.
6382 set dummy $ac_prog; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if ${ac_cv_prog_LEX+:} false; then :
6386 $as_echo_n "(cached) " >&6
6388 if test -n "$LEX"; then
6389 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398 ac_cv_prog_LEX="$ac_prog"
6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 if test -n "$LEX"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6411 $as_echo "$LEX" >&6; }
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6418 test -n "$LEX" && break
6420 test -n "$LEX" || LEX=":"
6422 if test "x$LEX" != "x:"; then
6423 cat >conftest.l <<_ACEOF
6429 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6430 yyless ((input () != 0)); }
6431 f { unput (yytext[0]); }
6432 . { BEGIN INITIAL; }
6434 #ifdef YYTEXT_POINTER
6435 extern char *yytext;
6440 return ! yylex () + ! yywrap ();
6443 { { ac_try="$LEX conftest.l"
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6449 $as_echo "$ac_try_echo"; } >&5
6450 (eval "$LEX conftest.l") 2>&5
6452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6453 test $ac_status = 0; }
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6455 $as_echo_n "checking lex output file root... " >&6; }
6456 if ${ac_cv_prog_lex_root+:} false; then :
6457 $as_echo_n "(cached) " >&6
6460 if test -f lex.yy.c; then
6461 ac_cv_prog_lex_root=lex.yy
6462 elif test -f lexyy.c; then
6463 ac_cv_prog_lex_root=lexyy
6465 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6469 $as_echo "$ac_cv_prog_lex_root" >&6; }
6470 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6472 if test -z "${LEXLIB+set}"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6474 $as_echo_n "checking lex library... " >&6; }
6475 if ${ac_cv_lib_lex+:} false; then :
6476 $as_echo_n "(cached) " >&6
6480 ac_cv_lib_lex='none needed'
6481 for ac_lib in '' -lfl -ll; do
6482 LIBS="$ac_lib $ac_save_LIBS"
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6485 `cat $LEX_OUTPUT_ROOT.c`
6487 if ac_fn_c_try_link "$LINENO"; then :
6488 ac_cv_lib_lex=$ac_lib
6490 rm -f core conftest.err conftest.$ac_objext \
6491 conftest$ac_exeext conftest.$ac_ext
6492 test "$ac_cv_lib_lex" != 'none needed' && break
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6498 $as_echo "$ac_cv_lib_lex" >&6; }
6499 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6504 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6505 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6506 $as_echo_n "(cached) " >&6
6508 # POSIX says lex can declare yytext either as a pointer or an array; the
6509 # default is implementation-dependent. Figure out which it is, since
6510 # not all implementations provide the %pointer and %array declarations.
6511 ac_cv_prog_lex_yytext_pointer=no
6513 LIBS="$LEXLIB $ac_save_LIBS"
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6517 #define YYTEXT_POINTER 1
6518 `cat $LEX_OUTPUT_ROOT.c`
6520 if ac_fn_c_try_link "$LINENO"; then :
6521 ac_cv_prog_lex_yytext_pointer=yes
6523 rm -f core conftest.err conftest.$ac_objext \
6524 conftest$ac_exeext conftest.$ac_ext
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6529 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6530 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6532 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6535 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6538 if test "$LEX" != "" -a "$LEX" != ":"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6541 $as_echo_n "checking for yylex_destroy... " >&6; }
6542 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6544 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6547 $as_echo "yes" >&6; }
6548 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 $as_echo "no" >&6; };
6554 if test "$LEX" != "" -a "$LEX" != ":"; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
6557 $as_echo_n "checking for lex %option... " >&6; }
6558 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563 $as_echo "yes" >&6; }
6564 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; };
6570 for ac_prog in 'bison -y' byacc
6572 # Extract the first word of "$ac_prog", so it can be a program name with args.
6573 set dummy $ac_prog; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if ${ac_cv_prog_YACC+:} false; then :
6577 $as_echo_n "(cached) " >&6
6579 if test -n "$YACC"; then
6580 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_YACC="$ac_prog"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 YACC=$ac_cv_prog_YACC
6600 if test -n "$YACC"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6602 $as_echo "$YACC" >&6; }
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6609 test -n "$YACC" && break
6611 test -n "$YACC" || YACC="yacc"
6613 # Extract the first word of "doxygen", so it can be a program name with args.
6614 set dummy doxygen; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_doxygen+:} false; then :
6618 $as_echo_n "(cached) " >&6
6620 if test -n "$doxygen"; then
6621 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630 ac_cv_prog_doxygen="doxygen"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 doxygen=$ac_cv_prog_doxygen
6641 if test -n "$doxygen"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6643 $as_echo "$doxygen" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6650 if test -n "$ac_tool_prefix"; then
6651 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6652 set dummy ${ac_tool_prefix}strip; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_STRIP+:} false; then :
6656 $as_echo_n "(cached) " >&6
6658 if test -n "$STRIP"; then
6659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 STRIP=$ac_cv_prog_STRIP
6679 if test -n "$STRIP"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6681 $as_echo "$STRIP" >&6; }
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6689 if test -z "$ac_cv_prog_STRIP"; then
6691 # Extract the first word of "strip", so it can be a program name with args.
6692 set dummy strip; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6696 $as_echo_n "(cached) " >&6
6698 if test -n "$ac_ct_STRIP"; then
6699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708 ac_cv_prog_ac_ct_STRIP="strip"
6709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6719 if test -n "$ac_ct_STRIP"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6721 $as_echo "$ac_ct_STRIP" >&6; }
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6727 if test "x$ac_ct_STRIP" = x; then
6730 case $cross_compiling:$ac_tool_warned in
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6734 ac_tool_warned=yes ;;
6739 STRIP="$ac_cv_prog_STRIP"
6743 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6744 if test -f "$ac_dir/install-sh"; then
6746 ac_install_sh="$ac_aux_dir/install-sh -c"
6748 elif test -f "$ac_dir/install.sh"; then
6750 ac_install_sh="$ac_aux_dir/install.sh -c"
6752 elif test -f "$ac_dir/shtool"; then
6754 ac_install_sh="$ac_aux_dir/shtool install -c"
6758 if test -z "$ac_aux_dir"; then
6759 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6762 # These three variables are undocumented and unsupported,
6763 # and are intended to be withdrawn in a future Autoconf release.
6764 # They can cause serious problems if a builder's source tree is in a directory
6765 # whose full name contains unusual characters.
6766 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6767 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6768 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6771 # Make sure we can run config.sub.
6772 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6773 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6776 $as_echo_n "checking build system type... " >&6; }
6777 if ${ac_cv_build+:} false; then :
6778 $as_echo_n "(cached) " >&6
6780 ac_build_alias=$build_alias
6781 test "x$ac_build_alias" = x &&
6782 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6783 test "x$ac_build_alias" = x &&
6784 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6785 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6790 $as_echo "$ac_cv_build" >&6; }
6791 case $ac_cv_build in
6793 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6796 ac_save_IFS=$IFS; IFS='-'
6802 # Remember, the first character of IFS is used to create $*,
6803 # except with old shells:
6806 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6810 $as_echo_n "checking host system type... " >&6; }
6811 if ${ac_cv_host+:} false; then :
6812 $as_echo_n "(cached) " >&6
6814 if test "x$host_alias" = x; then
6815 ac_cv_host=$ac_cv_build
6817 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6818 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6823 $as_echo "$ac_cv_host" >&6; }
6826 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6829 ac_save_IFS=$IFS; IFS='-'
6835 # Remember, the first character of IFS is used to create $*,
6836 # except with old shells:
6839 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6843 # skip these tests, we do not need them.
6852 # always use ./libtool unless override from commandline (libtool=mylibtool)
6853 if test -z "$libtool"; then
6857 # avoid libtool max commandline length test on systems that fork slowly.
6859 if echo "$host_os" | grep "sunos4" >/dev/null; then
6860 lt_cv_sys_max_cmd_len=32750;
6862 if test -n "$ac_tool_prefix"; then
6863 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6864 set dummy ${ac_tool_prefix}ar; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if ${ac_cv_path_AR+:} false; then :
6868 $as_echo_n "(cached) " >&6
6872 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 if test -n "$AR"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6896 $as_echo "$AR" >&6; }
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6904 if test -z "$ac_cv_path_AR"; then
6906 # Extract the first word of "ar", so it can be a program name with args.
6907 set dummy ar; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_path_ac_pt_AR+:} false; then :
6911 $as_echo_n "(cached) " >&6
6915 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6925 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 ac_pt_AR=$ac_cv_path_ac_pt_AR
6937 if test -n "$ac_pt_AR"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6939 $as_echo "$ac_pt_AR" >&6; }
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6945 if test "x$ac_pt_AR" = x; then
6948 case $cross_compiling:$ac_tool_warned in
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952 ac_tool_warned=yes ;;
6960 if test $AR = false; then
6961 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6967 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6972 macro_version='2.4.6'
6973 macro_revision='2.4.6'
6987 ltmain=$ac_aux_dir/ltmain.sh
6989 # Backslashify metacharacters that are still active within
6990 # double-quoted strings.
6991 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6993 # Same as above, but do not quote variable references.
6994 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6996 # Sed substitution to delay expansion of an escaped shell variable in a
6997 # double_quote_subst'ed string.
6998 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7000 # Sed substitution to delay expansion of an escaped single quote.
7001 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7003 # Sed substitution to avoid accidental globbing in evaled expressions
7004 no_glob_subst='s/\*/\\\*/g'
7006 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7007 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7008 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7011 $as_echo_n "checking how to print strings... " >&6; }
7012 # Test print first, because it will be a builtin if present.
7013 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7014 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7016 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7019 # Use this function as a fallback that always works.
7020 func_fallback_echo ()
7022 eval 'cat <<_LTECHO_EOF
7026 ECHO='func_fallback_echo'
7029 # func_echo_all arg...
7030 # Invoke $ECHO with all args, space-separated.
7037 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7038 $as_echo "printf" >&6; } ;;
7039 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7040 $as_echo "print -r" >&6; } ;;
7041 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7042 $as_echo "cat" >&6; } ;;
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7059 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7060 if ${ac_cv_path_SED+:} false; then :
7061 $as_echo_n "(cached) " >&6
7063 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7064 for ac_i in 1 2 3 4 5 6 7; do
7065 ac_script="$ac_script$as_nl$ac_script"
7067 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7068 { ac_script=; unset ac_script;}
7069 if test -z "$SED"; then
7070 ac_path_SED_found=false
7071 # Loop through the user's path and test for each of PROGNAME-LIST
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 test -z "$as_dir" && as_dir=.
7077 for ac_prog in sed gsed; do
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7080 as_fn_executable_p "$ac_path_SED" || continue
7081 # Check for GNU ac_path_SED and select it if it is found.
7082 # Check for GNU $ac_path_SED
7083 case `"$ac_path_SED" --version 2>&1` in
7085 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7088 $as_echo_n 0123456789 >"conftest.in"
7091 cat "conftest.in" "conftest.in" >"conftest.tmp"
7092 mv "conftest.tmp" "conftest.in"
7093 cp "conftest.in" "conftest.nl"
7094 $as_echo '' >> "conftest.nl"
7095 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7097 as_fn_arith $ac_count + 1 && ac_count=$as_val
7098 if test $ac_count -gt ${ac_path_SED_max-0}; then
7099 # Best one so far, save it but keep looking for a better one
7100 ac_cv_path_SED="$ac_path_SED"
7101 ac_path_SED_max=$ac_count
7103 # 10*(2^10) chars as input seems more than enough
7104 test $ac_count -gt 10 && break
7106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7109 $ac_path_SED_found && break 3
7114 if test -z "$ac_cv_path_SED"; then
7115 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7123 $as_echo "$ac_cv_path_SED" >&6; }
7124 SED="$ac_cv_path_SED"
7127 test -z "$SED" && SED=sed
7128 Xsed="$SED -e 1s/^X//"
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7141 $as_echo_n "checking for fgrep... " >&6; }
7142 if ${ac_cv_path_FGREP+:} false; then :
7143 $as_echo_n "(cached) " >&6
7145 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7146 then ac_cv_path_FGREP="$GREP -F"
7148 if test -z "$FGREP"; then
7149 ac_path_FGREP_found=false
7150 # Loop through the user's path and test for each of PROGNAME-LIST
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7155 test -z "$as_dir" && as_dir=.
7156 for ac_prog in fgrep; do
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7159 as_fn_executable_p "$ac_path_FGREP" || continue
7160 # Check for GNU ac_path_FGREP and select it if it is found.
7161 # Check for GNU $ac_path_FGREP
7162 case `"$ac_path_FGREP" --version 2>&1` in
7164 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7167 $as_echo_n 0123456789 >"conftest.in"
7170 cat "conftest.in" "conftest.in" >"conftest.tmp"
7171 mv "conftest.tmp" "conftest.in"
7172 cp "conftest.in" "conftest.nl"
7173 $as_echo 'FGREP' >> "conftest.nl"
7174 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7176 as_fn_arith $ac_count + 1 && ac_count=$as_val
7177 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7178 # Best one so far, save it but keep looking for a better one
7179 ac_cv_path_FGREP="$ac_path_FGREP"
7180 ac_path_FGREP_max=$ac_count
7182 # 10*(2^10) chars as input seems more than enough
7183 test $ac_count -gt 10 && break
7185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7188 $ac_path_FGREP_found && break 3
7193 if test -z "$ac_cv_path_FGREP"; then
7194 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7197 ac_cv_path_FGREP=$FGREP
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7203 $as_echo "$ac_cv_path_FGREP" >&6; }
7204 FGREP="$ac_cv_path_FGREP"
7207 test -z "$GREP" && GREP=grep
7227 # Check whether --with-gnu-ld was given.
7228 if test "${with_gnu_ld+set}" = set; then :
7229 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7235 if test yes = "$GCC"; then
7236 # Check if gcc -print-prog-name=ld gives a path.
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7238 $as_echo_n "checking for ld used by $CC... " >&6; }
7241 # gcc leaves a trailing carriage return, which upsets mingw
7242 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7244 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7247 # Accept absolute paths.
7249 re_direlt='/[^/][^/]*/\.\./'
7250 # Canonicalize the pathname of ld
7251 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7252 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7253 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7255 test -z "$LD" && LD=$ac_prog
7258 # If it fails, then pretend we aren't using GCC.
7262 # If it is relative, then search for the first ld in PATH.
7266 elif test yes = "$with_gnu_ld"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7268 $as_echo_n "checking for GNU ld... " >&6; }
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7271 $as_echo_n "checking for non-GNU ld... " >&6; }
7273 if ${lt_cv_path_LD+:} false; then :
7274 $as_echo_n "(cached) " >&6
7276 if test -z "$LD"; then
7277 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7278 for ac_dir in $PATH; do
7280 test -z "$ac_dir" && ac_dir=.
7281 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7282 lt_cv_path_LD=$ac_dir/$ac_prog
7283 # Check to see if the program is GNU ld. I'd rather use --version,
7284 # but apparently some variants of GNU ld only accept -v.
7285 # Break only if it was the GNU/non-GNU ld that we prefer.
7286 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7287 *GNU* | *'with BFD'*)
7288 test no != "$with_gnu_ld" && break
7291 test yes != "$with_gnu_ld" && break
7298 lt_cv_path_LD=$LD # Let the user override the test with a path.
7303 if test -n "$LD"; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7305 $as_echo "$LD" >&6; }
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 $as_echo "no" >&6; }
7310 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7312 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7313 if ${lt_cv_prog_gnu_ld+:} false; then :
7314 $as_echo_n "(cached) " >&6
7316 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7317 case `$LD -v 2>&1 </dev/null` in
7318 *GNU* | *'with BFD'*)
7319 lt_cv_prog_gnu_ld=yes
7322 lt_cv_prog_gnu_ld=no
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7327 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7328 with_gnu_ld=$lt_cv_prog_gnu_ld
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7339 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7340 if ${lt_cv_path_NM+:} false; then :
7341 $as_echo_n "(cached) " >&6
7343 if test -n "$NM"; then
7344 # Let the user override the test.
7347 lt_nm_to_check=${ac_tool_prefix}nm
7348 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7349 lt_nm_to_check="$lt_nm_to_check nm"
7351 for lt_tmp_nm in $lt_nm_to_check; do
7352 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7353 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7355 test -z "$ac_dir" && ac_dir=.
7356 tmp_nm=$ac_dir/$lt_tmp_nm
7357 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7358 # Check to see if the nm accepts a BSD-compat flag.
7359 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7360 # nm: unknown option "B" ignored
7361 # Tru64's nm complains that /dev/null is an invalid object file
7362 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7364 mingw*) lt_bad_file=conftest.nm/nofile ;;
7365 *) lt_bad_file=/dev/null ;;
7367 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7368 *$lt_bad_file* | *'Invalid file or object type'*)
7369 lt_cv_path_NM="$tmp_nm -B"
7373 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7375 lt_cv_path_NM="$tmp_nm -p"
7379 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7380 continue # so that we can try to find one that supports BSD flags
7389 : ${lt_cv_path_NM=no}
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7393 $as_echo "$lt_cv_path_NM" >&6; }
7394 if test no != "$lt_cv_path_NM"; then
7397 # Didn't find any BSD compatible name lister, look for dumpbin.
7398 if test -n "$DUMPBIN"; then :
7399 # Let the user override the test.
7401 if test -n "$ac_tool_prefix"; then
7402 for ac_prog in dumpbin "link -dump"
7404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_DUMPBIN+:} false; then :
7409 $as_echo_n "(cached) " >&6
7411 if test -n "$DUMPBIN"; then
7412 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 DUMPBIN=$ac_cv_prog_DUMPBIN
7432 if test -n "$DUMPBIN"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7434 $as_echo "$DUMPBIN" >&6; }
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7441 test -n "$DUMPBIN" && break
7444 if test -z "$DUMPBIN"; then
7445 ac_ct_DUMPBIN=$DUMPBIN
7446 for ac_prog in dumpbin "link -dump"
7448 # Extract the first word of "$ac_prog", so it can be a program name with args.
7449 set dummy $ac_prog; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7453 $as_echo_n "(cached) " >&6
7455 if test -n "$ac_ct_DUMPBIN"; then
7456 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7476 if test -n "$ac_ct_DUMPBIN"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7478 $as_echo "$ac_ct_DUMPBIN" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7485 test -n "$ac_ct_DUMPBIN" && break
7488 if test "x$ac_ct_DUMPBIN" = x; then
7491 case $cross_compiling:$ac_tool_warned in
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7495 ac_tool_warned=yes ;;
7497 DUMPBIN=$ac_ct_DUMPBIN
7501 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7503 DUMPBIN="$DUMPBIN -symbols -headers"
7511 if test : != "$DUMPBIN"; then
7515 test -z "$NM" && NM=nm
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7523 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7524 if ${lt_cv_nm_interface+:} false; then :
7525 $as_echo_n "(cached) " >&6
7527 lt_cv_nm_interface="BSD nm"
7528 echo "int some_variable = 0;" > conftest.$ac_ext
7529 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7530 (eval "$ac_compile" 2>conftest.err)
7531 cat conftest.err >&5
7532 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7533 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7534 cat conftest.err >&5
7535 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7536 cat conftest.out >&5
7537 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7538 lt_cv_nm_interface="MS dumpbin"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7543 $as_echo "$lt_cv_nm_interface" >&6; }
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7546 $as_echo_n "checking whether ln -s works... " >&6; }
7548 if test "$LN_S" = "ln -s"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7550 $as_echo "yes" >&6; }
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7553 $as_echo "no, using $LN_S" >&6; }
7556 # find the maximum length of command line arguments
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7558 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7559 if ${lt_cv_sys_max_cmd_len+:} false; then :
7560 $as_echo_n "(cached) " >&6
7567 # On DJGPP, this test can blow up pretty badly due to problems in libc
7568 # (any single argument exceeding 2000 bytes causes a buffer overrun
7569 # during glob expansion). Even if it were fixed, the result of this
7570 # check would be larger than it should be.
7571 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7575 # Under GNU Hurd, this test is not required because there is
7576 # no limit to the length of command line arguments.
7577 # Libtool will interpret -1 as no limit whatsoever
7578 lt_cv_sys_max_cmd_len=-1;
7581 cygwin* | mingw* | cegcc*)
7582 # On Win9x/ME, this test blows up -- it succeeds, but takes
7583 # about 5 minutes as the teststring grows exponentially.
7584 # Worse, since 9x/ME are not pre-emptively multitasking,
7585 # you end up with a "frozen" computer, even though with patience
7586 # the test eventually succeeds (with a max line length of 256k).
7587 # Instead, let's just punt: use the minimum linelength reported by
7588 # all of the supported platforms: 8192 (on NT/2K/XP).
7589 lt_cv_sys_max_cmd_len=8192;
7593 # On MiNT this can take a long time and run out of memory.
7594 lt_cv_sys_max_cmd_len=8192;
7598 # On AmigaOS with pdksh, this test takes hours, literally.
7599 # So we just punt and use a minimum line length of 8192.
7600 lt_cv_sys_max_cmd_len=8192;
7603 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7604 # This has been around since 386BSD, at least. Likely further.
7605 if test -x /sbin/sysctl; then
7606 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7607 elif test -x /usr/sbin/sysctl; then
7608 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7610 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7612 # And add a safety zone
7613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7618 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7619 lt_cv_sys_max_cmd_len=196608
7623 # The test takes a long time on OS/2.
7624 lt_cv_sys_max_cmd_len=8192
7628 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7629 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7630 # nice to cause kernel panics so lets avoid the loop below.
7631 # First set a reasonable default.
7632 lt_cv_sys_max_cmd_len=16384
7634 if test -x /sbin/sysconfig; then
7635 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7636 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7641 lt_cv_sys_max_cmd_len=102400
7643 sysv5* | sco5v6* | sysv4.2uw2*)
7644 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7645 if test -n "$kargmax"; then
7646 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7648 lt_cv_sys_max_cmd_len=32768
7652 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7653 if test -n "$lt_cv_sys_max_cmd_len" && \
7654 test undefined != "$lt_cv_sys_max_cmd_len"; then
7655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7658 # Make teststring a little bigger before we do anything with it.
7659 # a 1K string should be a reasonable start.
7660 for i in 1 2 3 4 5 6 7 8; do
7661 teststring=$teststring$teststring
7663 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7664 # If test is not a shell built-in, we'll probably end up computing a
7665 # maximum length that is only half of the actual maximum length, but
7667 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7668 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7669 test 17 != "$i" # 1/2 MB should be enough
7672 teststring=$teststring$teststring
7674 # Only check the string length outside the loop.
7675 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7677 # Add a significant safety factor because C++ compilers can tack on
7678 # massive amounts of additional arguments before passing them to the
7679 # linker. It appears as though 1/2 is a usable value.
7680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7687 if test -n "$lt_cv_sys_max_cmd_len"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7689 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7692 $as_echo "none" >&6; }
7694 max_cmd_len=$lt_cv_sys_max_cmd_len
7705 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7715 # test EBCDIC or ASCII
7716 case `echo X|tr X '\101'` in
7717 A) # ASCII based system
7718 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7719 lt_SP2NL='tr \040 \012'
7720 lt_NL2SP='tr \015\012 \040\040'
7722 *) # EBCDIC based system
7723 lt_SP2NL='tr \100 \n'
7724 lt_NL2SP='tr \r\n \100\100'
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7737 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7738 if ${lt_cv_to_host_file_cmd+:} false; then :
7739 $as_echo_n "(cached) " >&6
7744 *-*-mingw* ) # actually msys
7745 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7748 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7750 * ) # otherwise, assume *nix
7751 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7757 *-*-mingw* ) # actually msys
7758 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7761 lt_cv_to_host_file_cmd=func_convert_file_noop
7763 * ) # otherwise, assume *nix
7764 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7768 * ) # unhandled hosts (and "normal" native builds)
7769 lt_cv_to_host_file_cmd=func_convert_file_noop
7775 to_host_file_cmd=$lt_cv_to_host_file_cmd
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7777 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7784 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7785 if ${lt_cv_to_tool_file_cmd+:} false; then :
7786 $as_echo_n "(cached) " >&6
7788 #assume ordinary cross tools, or native build.
7789 lt_cv_to_tool_file_cmd=func_convert_file_noop
7793 *-*-mingw* ) # actually msys
7794 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7802 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7804 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7811 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7812 if ${lt_cv_ld_reload_flag+:} false; then :
7813 $as_echo_n "(cached) " >&6
7815 lt_cv_ld_reload_flag='-r'
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7818 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7819 reload_flag=$lt_cv_ld_reload_flag
7820 case $reload_flag in
7822 *) reload_flag=" $reload_flag" ;;
7824 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7826 cygwin* | mingw* | pw32* | cegcc*)
7827 if test yes != "$GCC"; then
7832 if test yes = "$GCC"; then
7833 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7835 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7848 if test -n "$ac_tool_prefix"; then
7849 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7850 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_prog_OBJDUMP+:} false; then :
7854 $as_echo_n "(cached) " >&6
7856 if test -n "$OBJDUMP"; then
7857 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 OBJDUMP=$ac_cv_prog_OBJDUMP
7877 if test -n "$OBJDUMP"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7879 $as_echo "$OBJDUMP" >&6; }
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7887 if test -z "$ac_cv_prog_OBJDUMP"; then
7888 ac_ct_OBJDUMP=$OBJDUMP
7889 # Extract the first word of "objdump", so it can be a program name with args.
7890 set dummy objdump; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7894 $as_echo_n "(cached) " >&6
7896 if test -n "$ac_ct_OBJDUMP"; then
7897 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7917 if test -n "$ac_ct_OBJDUMP"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7919 $as_echo "$ac_ct_OBJDUMP" >&6; }
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7925 if test "x$ac_ct_OBJDUMP" = x; then
7928 case $cross_compiling:$ac_tool_warned in
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932 ac_tool_warned=yes ;;
7934 OBJDUMP=$ac_ct_OBJDUMP
7937 OBJDUMP="$ac_cv_prog_OBJDUMP"
7940 test -z "$OBJDUMP" && OBJDUMP=objdump
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7951 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7952 if ${lt_cv_deplibs_check_method+:} false; then :
7953 $as_echo_n "(cached) " >&6
7955 lt_cv_file_magic_cmd='$MAGIC_CMD'
7956 lt_cv_file_magic_test_file=
7957 lt_cv_deplibs_check_method='unknown'
7958 # Need to set the preceding variable on all platforms that support
7959 # interlibrary dependencies.
7960 # 'none' -- dependencies not supported.
7961 # 'unknown' -- same as none, but documents that we really don't know.
7962 # 'pass_all' -- all dependencies passed with no checks.
7963 # 'test_compile' -- check by making test program.
7964 # 'file_magic [[regex]]' -- check by looking for files in library path
7965 # that responds to the $file_magic_cmd with a given extended regex.
7966 # If you have 'file' or equivalent on your system and you're not sure
7967 # whether 'pass_all' will *always* work, you probably want this one.
7971 lt_cv_deplibs_check_method=pass_all
7975 lt_cv_deplibs_check_method=pass_all
7979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7980 lt_cv_file_magic_cmd='/usr/bin/file -L'
7981 lt_cv_file_magic_test_file=/shlib/libc.so
7985 # func_win32_libid is a shell function defined in ltmain.sh
7986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7987 lt_cv_file_magic_cmd='func_win32_libid'
7991 # Base MSYS/MinGW do not provide the 'file' command needed by
7992 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7993 # unless we find 'file', for example because we are cross-compiling.
7994 if ( file / ) >/dev/null 2>&1; then
7995 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7996 lt_cv_file_magic_cmd='func_win32_libid'
7998 # Keep this pattern in sync with the one in func_win32_libid.
7999 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8000 lt_cv_file_magic_cmd='$OBJDUMP -f'
8005 # use the weaker test based on 'objdump'. See mingw*.
8006 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8007 lt_cv_file_magic_cmd='$OBJDUMP -f'
8010 darwin* | rhapsody*)
8011 lt_cv_deplibs_check_method=pass_all
8014 freebsd* | dragonfly*)
8015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8018 # Not sure whether the presence of OpenBSD here was a mistake.
8019 # Let's accept both of them until this is cleared up.
8020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8021 lt_cv_file_magic_cmd=/usr/bin/file
8022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8026 lt_cv_deplibs_check_method=pass_all
8031 lt_cv_deplibs_check_method=pass_all
8034 hpux10.20* | hpux11*)
8035 lt_cv_file_magic_cmd=/usr/bin/file
8038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8039 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8042 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]'
8043 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8047 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8053 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8057 irix5* | irix6* | nonstopux*)
8059 *-32|*"-32 ") libmagic=32-bit;;
8060 *-n32|*"-n32 ") libmagic=N32;;
8061 *-64|*"-64 ") libmagic=64-bit;;
8062 *) libmagic=never-match;;
8064 lt_cv_deplibs_check_method=pass_all
8067 # This must be glibc/ELF.
8068 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8069 lt_cv_deplibs_check_method=pass_all
8073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8082 lt_cv_file_magic_cmd=/usr/bin/file
8083 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8087 lt_cv_deplibs_check_method=pass_all
8091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8098 osf3* | osf4* | osf5*)
8099 lt_cv_deplibs_check_method=pass_all
8103 lt_cv_deplibs_check_method=pass_all
8107 lt_cv_deplibs_check_method=pass_all
8110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8111 lt_cv_deplibs_check_method=pass_all
8115 case $host_vendor in
8117 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]'
8118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8121 lt_cv_deplibs_check_method=pass_all
8124 lt_cv_file_magic_cmd='/bin/file'
8125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8128 lt_cv_file_magic_cmd='/bin/file'
8129 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8130 lt_cv_file_magic_test_file=/lib/libc.so
8133 lt_cv_deplibs_check_method=pass_all
8136 lt_cv_deplibs_check_method=pass_all
8142 lt_cv_deplibs_check_method=pass_all
8145 lt_cv_deplibs_check_method=pass_all
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8151 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8155 if test "$build" = "$host"; then
8158 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8161 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8167 file_magic_cmd=$lt_cv_file_magic_cmd
8168 deplibs_check_method=$lt_cv_deplibs_check_method
8169 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8192 if test -n "$ac_tool_prefix"; then
8193 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8194 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if ${ac_cv_prog_DLLTOOL+:} false; then :
8198 $as_echo_n "(cached) " >&6
8200 if test -n "$DLLTOOL"; then
8201 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 DLLTOOL=$ac_cv_prog_DLLTOOL
8221 if test -n "$DLLTOOL"; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8223 $as_echo "$DLLTOOL" >&6; }
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8231 if test -z "$ac_cv_prog_DLLTOOL"; then
8232 ac_ct_DLLTOOL=$DLLTOOL
8233 # Extract the first word of "dlltool", so it can be a program name with args.
8234 set dummy dlltool; ac_word=$2
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 $as_echo_n "checking for $ac_word... " >&6; }
8237 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8238 $as_echo_n "(cached) " >&6
8240 if test -n "$ac_ct_DLLTOOL"; then
8241 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 test -z "$as_dir" && as_dir=.
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8250 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8261 if test -n "$ac_ct_DLLTOOL"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8263 $as_echo "$ac_ct_DLLTOOL" >&6; }
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8269 if test "x$ac_ct_DLLTOOL" = x; then
8272 case $cross_compiling:$ac_tool_warned in
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8276 ac_tool_warned=yes ;;
8278 DLLTOOL=$ac_ct_DLLTOOL
8281 DLLTOOL="$ac_cv_prog_DLLTOOL"
8284 test -z "$DLLTOOL" && DLLTOOL=dlltool
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8296 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8297 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8298 $as_echo_n "(cached) " >&6
8300 lt_cv_sharedlib_from_linklib_cmd='unknown'
8303 cygwin* | mingw* | pw32* | cegcc*)
8304 # two different shell functions defined in ltmain.sh;
8305 # decide which one to use based on capabilities of $DLLTOOL
8306 case `$DLLTOOL --help 2>&1` in
8307 *--identify-strict*)
8308 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8311 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8316 # fallback: assume linklib IS sharedlib
8317 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8323 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8324 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8325 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8333 if test -n "$ac_tool_prefix"; then
8336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_prog_AR+:} false; then :
8341 $as_echo_n "(cached) " >&6
8343 if test -n "$AR"; then
8344 ac_cv_prog_AR="$AR" # Let the user override the test.
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8353 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 if test -n "$AR"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8366 $as_echo "$AR" >&6; }
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8373 test -n "$AR" && break
8376 if test -z "$AR"; then
8380 # Extract the first word of "$ac_prog", so it can be a program name with args.
8381 set dummy $ac_prog; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8385 $as_echo_n "(cached) " >&6
8387 if test -n "$ac_ct_AR"; then
8388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8397 ac_cv_prog_ac_ct_AR="$ac_prog"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8408 if test -n "$ac_ct_AR"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8410 $as_echo "$ac_ct_AR" >&6; }
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8417 test -n "$ac_ct_AR" && break
8420 if test "x$ac_ct_AR" = x; then
8423 case $cross_compiling:$ac_tool_warned in
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8447 $as_echo_n "checking for archiver @FILE support... " >&6; }
8448 if ${lt_cv_ar_at_file+:} false; then :
8449 $as_echo_n "(cached) " >&6
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8463 if ac_fn_c_try_compile "$LINENO"; then :
8464 echo conftest.$ac_objext > conftest.lst
8465 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8467 (eval $lt_ar_try) 2>&5
8469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8470 test $ac_status = 0; }
8471 if test 0 -eq "$ac_status"; then
8472 # Ensure the archiver fails upon bogus file names.
8473 rm -f conftest.$ac_objext libconftest.a
8474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8475 (eval $lt_ar_try) 2>&5
8477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8478 test $ac_status = 0; }
8479 if test 0 -ne "$ac_status"; then
8483 rm -f conftest.* libconftest.a
8486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8490 $as_echo "$lt_cv_ar_at_file" >&6; }
8492 if test no = "$lt_cv_ar_at_file"; then
8495 archiver_list_spec=$lt_cv_ar_at_file
8504 if test -n "$ac_tool_prefix"; then
8505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8506 set dummy ${ac_tool_prefix}strip; ac_word=$2
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 $as_echo_n "checking for $ac_word... " >&6; }
8509 if ${ac_cv_prog_STRIP+:} false; then :
8510 $as_echo_n "(cached) " >&6
8512 if test -n "$STRIP"; then
8513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 test -z "$as_dir" && as_dir=.
8520 for ac_exec_ext in '' $ac_executable_extensions; do
8521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8522 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 STRIP=$ac_cv_prog_STRIP
8533 if test -n "$STRIP"; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8535 $as_echo "$STRIP" >&6; }
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8543 if test -z "$ac_cv_prog_STRIP"; then
8545 # Extract the first word of "strip", so it can be a program name with args.
8546 set dummy strip; ac_word=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8550 $as_echo_n "(cached) " >&6
8552 if test -n "$ac_ct_STRIP"; then
8553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 test -z "$as_dir" && as_dir=.
8560 for ac_exec_ext in '' $ac_executable_extensions; do
8561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8562 ac_cv_prog_ac_ct_STRIP="strip"
8563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8573 if test -n "$ac_ct_STRIP"; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8575 $as_echo "$ac_ct_STRIP" >&6; }
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8581 if test "x$ac_ct_STRIP" = x; then
8584 case $cross_compiling:$ac_tool_warned in
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8588 ac_tool_warned=yes ;;
8593 STRIP="$ac_cv_prog_STRIP"
8596 test -z "$STRIP" && STRIP=:
8603 if test -n "$ac_tool_prefix"; then
8604 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8605 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607 $as_echo_n "checking for $ac_word... " >&6; }
8608 if ${ac_cv_prog_RANLIB+:} false; then :
8609 $as_echo_n "(cached) " >&6
8611 if test -n "$RANLIB"; then
8612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618 test -z "$as_dir" && as_dir=.
8619 for ac_exec_ext in '' $ac_executable_extensions; do
8620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 RANLIB=$ac_cv_prog_RANLIB
8632 if test -n "$RANLIB"; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8634 $as_echo "$RANLIB" >&6; }
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637 $as_echo "no" >&6; }
8642 if test -z "$ac_cv_prog_RANLIB"; then
8643 ac_ct_RANLIB=$RANLIB
8644 # Extract the first word of "ranlib", so it can be a program name with args.
8645 set dummy ranlib; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8649 $as_echo_n "(cached) " >&6
8651 if test -n "$ac_ct_RANLIB"; then
8652 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661 ac_cv_prog_ac_ct_RANLIB="ranlib"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8672 if test -n "$ac_ct_RANLIB"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8674 $as_echo "$ac_ct_RANLIB" >&6; }
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8680 if test "x$ac_ct_RANLIB" = x; then
8683 case $cross_compiling:$ac_tool_warned in
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8687 ac_tool_warned=yes ;;
8689 RANLIB=$ac_ct_RANLIB
8692 RANLIB="$ac_cv_prog_RANLIB"
8695 test -z "$RANLIB" && RANLIB=:
8702 # Determine commands to create old-style static archives.
8703 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8704 old_postinstall_cmds='chmod 644 $oldlib'
8705 old_postuninstall_cmds=
8707 if test -n "$RANLIB"; then
8710 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8713 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8716 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8721 lock_old_archive_extraction=yes ;;
8723 lock_old_archive_extraction=no ;;
8746 for ac_prog in gawk mawk nawk awk
8748 # Extract the first word of "$ac_prog", so it can be a program name with args.
8749 set dummy $ac_prog; ac_word=$2
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751 $as_echo_n "checking for $ac_word... " >&6; }
8752 if ${ac_cv_prog_AWK+:} false; then :
8753 $as_echo_n "(cached) " >&6
8755 if test -n "$AWK"; then
8756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 test -z "$as_dir" && as_dir=.
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8765 ac_cv_prog_AWK="$ac_prog"
8766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8776 if test -n "$AWK"; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8778 $as_echo "$AWK" >&6; }
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8785 test -n "$AWK" && break
8806 # If no C compiler was specified, use CC.
8809 # If no C compiler flags were specified, use CFLAGS.
8810 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8812 # Allow CC to be a program name with arguments.
8816 # Check for command to grab the raw symbol name followed by C symbol from nm.
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8818 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8819 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8820 $as_echo_n "(cached) " >&6
8823 # These are sane defaults that work on at least a few old systems.
8824 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8826 # Character class describing NM global symbol codes.
8827 symcode='[BCDEGRST]'
8829 # Regexp to match symbols that can be accessed directly from C.
8830 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8832 # Define system-specific variables.
8837 cygwin* | mingw* | pw32* | cegcc*)
8838 symcode='[ABCDGISTW]'
8841 if test ia64 = "$host_cpu"; then
8842 symcode='[ABCDEGRST]'
8846 symcode='[BCDEGRST]'
8849 symcode='[BCDEGQRST]'
8860 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8868 # If we're using GNU nm, then use its standard symbol codes.
8869 case `$NM -V 2>&1` in
8870 *GNU* | *'with BFD'*)
8871 symcode='[ABCDGIRSTW]' ;;
8874 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8875 # Gets list of data symbols to import.
8876 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8877 # Adjust the below global symbol transforms to fixup imported variables.
8878 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8879 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8880 lt_c_name_lib_hook="\
8881 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8882 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8884 # Disable hooks by default.
8885 lt_cv_sys_global_symbol_to_import=
8891 # Transform an extracted symbol line into a proper C declaration.
8892 # Some systems (esp. on ia64) link data and code symbols differently,
8893 # so use this general approach.
8894 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8896 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8897 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8899 # Transform an extracted symbol line into symbol name and symbol address
8900 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8902 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8903 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8905 # Transform an extracted symbol line into symbol name with lib prefix and
8907 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8908 $lt_c_name_lib_hook\
8909 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8910 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8911 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8913 # Handle CRLF in mingw tool chain
8917 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8921 # Try without a prefix underscore, then with it.
8922 for ac_symprfx in "" "_"; do
8924 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8925 symxfrm="\\1 $ac_symprfx\\2 \\2"
8927 # Write the raw and C identifiers.
8928 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8929 # Fake it for dumpbin and say T for any non-static function,
8930 # D for any global variable and I for any imported variable.
8931 # Also find C++ and __fastcall symbols from MSVC++,
8932 # which start with @ or ?.
8933 lt_cv_sys_global_symbol_pipe="$AWK '"\
8934 " {last_section=section; section=\$ 3};"\
8935 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8936 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8937 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8938 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8939 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8940 " \$ 0!~/External *\|/{next};"\
8941 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8942 " {if(hide[section]) next};"\
8943 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8944 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8945 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8946 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8947 " ' prfx=^$ac_symprfx"
8949 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8951 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8953 # Check to see that the pipe works correctly.
8957 cat > conftest.$ac_ext <<_LT_EOF
8962 void nm_test_func(void);
8963 void nm_test_func(void){}
8967 int main(){nm_test_var='a';nm_test_func();return(0);}
8970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8971 (eval $ac_compile) 2>&5
8973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8974 test $ac_status = 0; }; then
8975 # Now try to grab the symbols.
8977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8978 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8981 test $ac_status = 0; } && test -s "$nlist"; then
8982 # Try sorting and uniquifying the output.
8983 if sort "$nlist" | uniq > "$nlist"T; then
8984 mv -f "$nlist"T "$nlist"
8989 # Make sure that we snagged all the symbols we need.
8990 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8991 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8992 cat <<_LT_EOF > conftest.$ac_ext
8993 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8994 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8995 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8996 relocations are performed -- see ld's documentation on pseudo-relocs. */
8997 # define LT_DLSYM_CONST
8998 #elif defined __osf__
8999 /* This system does not cope well with relocations in const data. */
9000 # define LT_DLSYM_CONST
9002 # define LT_DLSYM_CONST const
9010 # Now generate the symbol file.
9011 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9013 cat <<_LT_EOF >> conftest.$ac_ext
9015 /* The mapping between symbol names and symbols. */
9016 LT_DLSYM_CONST struct {
9020 lt__PROGRAM__LTX_preloaded_symbols[] =
9022 { "@PROGRAM@", (void *) 0 },
9024 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9025 cat <<\_LT_EOF >> conftest.$ac_ext
9029 /* This works around a problem in FreeBSD linker */
9030 #ifdef FREEBSD_WORKAROUND
9031 static const void *lt_preloaded_setup() {
9032 return lt__PROGRAM__LTX_preloaded_symbols;
9040 # Now try linking the two files.
9041 mv conftest.$ac_objext conftstm.$ac_objext
9042 lt_globsym_save_LIBS=$LIBS
9043 lt_globsym_save_CFLAGS=$CFLAGS
9044 LIBS=conftstm.$ac_objext
9045 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9047 (eval $ac_link) 2>&5
9049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9050 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9053 LIBS=$lt_globsym_save_LIBS
9054 CFLAGS=$lt_globsym_save_CFLAGS
9056 echo "cannot find nm_test_func in $nlist" >&5
9059 echo "cannot find nm_test_var in $nlist" >&5
9062 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9065 echo "$progname: failed program was:" >&5
9066 cat conftest.$ac_ext >&5
9068 rm -rf conftest* conftst*
9070 # Do not use the global_symbol_pipe unless it works.
9071 if test yes = "$pipe_works"; then
9074 lt_cv_sys_global_symbol_pipe=
9080 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9081 lt_cv_sys_global_symbol_to_cdecl=
9083 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9085 $as_echo "failed" >&6; }
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9088 $as_echo "ok" >&6; }
9091 # Response file support.
9092 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9093 nm_file_list_spec='@'
9094 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9095 nm_file_list_spec='@'
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9135 $as_echo_n "checking for sysroot... " >&6; }
9137 # Check whether --with-sysroot was given.
9138 if test "${with_sysroot+set}" = set; then :
9139 withval=$with_sysroot;
9146 case $with_sysroot in #(
9148 if test yes = "$GCC"; then
9149 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9153 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9159 $as_echo "$with_sysroot" >&6; }
9160 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9165 $as_echo "${lt_sysroot:-no}" >&6; }
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9172 $as_echo_n "checking for a working dd... " >&6; }
9173 if ${ac_cv_path_lt_DD+:} false; then :
9174 $as_echo_n "(cached) " >&6
9176 printf 0123456789abcdef0123456789abcdef >conftest.i
9177 cat conftest.i conftest.i >conftest2.i
9179 if test -z "$lt_DD"; then
9180 ac_path_lt_DD_found=false
9181 # Loop through the user's path and test for each of PROGNAME-LIST
9182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186 test -z "$as_dir" && as_dir=.
9187 for ac_prog in dd; do
9188 for ac_exec_ext in '' $ac_executable_extensions; do
9189 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9190 as_fn_executable_p "$ac_path_lt_DD" || continue
9191 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9192 cmp -s conftest.i conftest.out \
9193 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9195 $ac_path_lt_DD_found && break 3
9200 if test -z "$ac_cv_path_lt_DD"; then
9204 ac_cv_path_lt_DD=$lt_DD
9207 rm -f conftest.i conftest2.i conftest.out
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9210 $as_echo "$ac_cv_path_lt_DD" >&6; }
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9214 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9215 if ${lt_cv_truncate_bin+:} false; then :
9216 $as_echo_n "(cached) " >&6
9218 printf 0123456789abcdef0123456789abcdef >conftest.i
9219 cat conftest.i conftest.i >conftest2.i
9221 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9222 cmp -s conftest.i conftest.out \
9223 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9225 rm -f conftest.i conftest2.i conftest.out
9226 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9229 $as_echo "$lt_cv_truncate_bin" >&6; }
9237 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9240 for cc_temp in $*""; do
9242 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9243 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9248 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9251 # Check whether --enable-libtool-lock was given.
9252 if test "${enable_libtool_lock+set}" = set; then :
9253 enableval=$enable_libtool_lock;
9256 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9258 # Some flags need to be propagated to the compiler or linker for good
9262 # Find out what ABI is being produced by ac_compile, and set mode
9263 # options accordingly.
9264 echo 'int i;' > conftest.$ac_ext
9265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9266 (eval $ac_compile) 2>&5
9268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9269 test $ac_status = 0; }; then
9270 case `/usr/bin/file conftest.$ac_objext` in
9282 # Find out what ABI is being produced by ac_compile, and set linker
9283 # options accordingly.
9284 echo '#line '$LINENO' "configure"' > 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 if test yes = "$lt_cv_prog_gnu_ld"; then
9291 case `/usr/bin/file conftest.$ac_objext` in
9293 LD="${LD-ld} -melf32bsmip"
9296 LD="${LD-ld} -melf32bmipn32"
9299 LD="${LD-ld} -melf64bmip"
9303 case `/usr/bin/file conftest.$ac_objext` in
9320 # Find out what ABI is being produced by ac_compile, and set linker
9321 # options accordingly.
9322 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9324 (eval $ac_compile) 2>&5
9326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9327 test $ac_status = 0; }; then
9329 case `/usr/bin/file conftest.$ac_objext` in
9337 case `/usr/bin/file conftest.$ac_objext` in
9339 emul="${emul}btsmip"
9342 emul="${emul}ltsmip"
9345 case `/usr/bin/file conftest.$ac_objext` in
9350 LD="${LD-ld} -m $emul"
9355 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9356 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9357 # Find out what ABI is being produced by ac_compile, and set linker
9358 # options accordingly. Note that the listed cases only cover the
9359 # situations where additional linker options are needed (such as when
9360 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9361 # vice versa); the common cases where no linker options are needed do
9362 # not appear in the list.
9363 echo 'int i;' > conftest.$ac_ext
9364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9365 (eval $ac_compile) 2>&5
9367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9368 test $ac_status = 0; }; then
9369 case `/usr/bin/file conftest.o` in
9372 x86_64-*kfreebsd*-gnu)
9373 LD="${LD-ld} -m elf_i386_fbsd"
9376 case `/usr/bin/file conftest.o` in
9378 LD="${LD-ld} -m elf32_x86_64"
9381 LD="${LD-ld} -m elf_i386"
9385 powerpc64le-*linux*)
9386 LD="${LD-ld} -m elf32lppclinux"
9389 LD="${LD-ld} -m elf32ppclinux"
9392 LD="${LD-ld} -m elf_s390"
9395 LD="${LD-ld} -m elf32_sparc"
9401 x86_64-*kfreebsd*-gnu)
9402 LD="${LD-ld} -m elf_x86_64_fbsd"
9405 LD="${LD-ld} -m elf_x86_64"
9408 LD="${LD-ld} -m elf64lppc"
9411 LD="${LD-ld} -m elf64ppc"
9413 s390*-*linux*|s390*-*tpf*)
9414 LD="${LD-ld} -m elf64_s390"
9417 LD="${LD-ld} -m elf64_sparc"
9427 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9429 CFLAGS="$CFLAGS -belf"
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9431 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9432 if ${lt_cv_cc_needs_belf+:} false; then :
9433 $as_echo_n "(cached) " >&6
9436 ac_cpp='$CPP $CPPFLAGS'
9437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9452 if ac_fn_c_try_link "$LINENO"; then :
9453 lt_cv_cc_needs_belf=yes
9455 lt_cv_cc_needs_belf=no
9457 rm -f core conftest.err conftest.$ac_objext \
9458 conftest$ac_exeext conftest.$ac_ext
9460 ac_cpp='$CPP $CPPFLAGS'
9461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9467 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9468 if test yes != "$lt_cv_cc_needs_belf"; then
9469 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9474 # Find out what ABI is being produced by ac_compile, and set linker
9475 # options accordingly.
9476 echo 'int i;' > conftest.$ac_ext
9477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9478 (eval $ac_compile) 2>&5
9480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9481 test $ac_status = 0; }; then
9482 case `/usr/bin/file conftest.o` in
9484 case $lt_cv_prog_gnu_ld in
9487 i?86-*-solaris*|x86_64-*-solaris*)
9488 LD="${LD-ld} -m elf_x86_64"
9491 LD="${LD-ld} -m elf64_sparc"
9494 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9495 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9500 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9512 need_locks=$enable_libtool_lock
9514 if test -n "$ac_tool_prefix"; then
9515 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9516 set dummy ${ac_tool_prefix}mt; ac_word=$2
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9518 $as_echo_n "checking for $ac_word... " >&6; }
9519 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9520 $as_echo_n "(cached) " >&6
9522 if test -n "$MANIFEST_TOOL"; then
9523 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529 test -z "$as_dir" && as_dir=.
9530 for ac_exec_ext in '' $ac_executable_extensions; do
9531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9532 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9543 if test -n "$MANIFEST_TOOL"; then
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9545 $as_echo "$MANIFEST_TOOL" >&6; }
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9553 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9554 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9555 # Extract the first word of "mt", so it can be a program name with args.
9556 set dummy mt; ac_word=$2
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9558 $as_echo_n "checking for $ac_word... " >&6; }
9559 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9560 $as_echo_n "(cached) " >&6
9562 if test -n "$ac_ct_MANIFEST_TOOL"; then
9563 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 test -z "$as_dir" && as_dir=.
9570 for ac_exec_ext in '' $ac_executable_extensions; do
9571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9572 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9582 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9583 if test -n "$ac_ct_MANIFEST_TOOL"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9585 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9591 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9594 case $cross_compiling:$ac_tool_warned in
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9598 ac_tool_warned=yes ;;
9600 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9603 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9606 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9608 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9609 if ${lt_cv_path_mainfest_tool+:} false; then :
9610 $as_echo_n "(cached) " >&6
9612 lt_cv_path_mainfest_tool=no
9613 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9614 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9615 cat conftest.err >&5
9616 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9617 lt_cv_path_mainfest_tool=yes
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9622 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9623 if test yes != "$lt_cv_path_mainfest_tool"; then
9633 rhapsody* | darwin*)
9634 if test -n "$ac_tool_prefix"; then
9635 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9636 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638 $as_echo_n "checking for $ac_word... " >&6; }
9639 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9640 $as_echo_n "(cached) " >&6
9642 if test -n "$DSYMUTIL"; then
9643 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649 test -z "$as_dir" && as_dir=.
9650 for ac_exec_ext in '' $ac_executable_extensions; do
9651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9652 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9663 if test -n "$DSYMUTIL"; then
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9665 $as_echo "$DSYMUTIL" >&6; }
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668 $as_echo "no" >&6; }
9673 if test -z "$ac_cv_prog_DSYMUTIL"; then
9674 ac_ct_DSYMUTIL=$DSYMUTIL
9675 # Extract the first word of "dsymutil", so it can be a program name with args.
9676 set dummy dsymutil; ac_word=$2
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 $as_echo_n "checking for $ac_word... " >&6; }
9679 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9680 $as_echo_n "(cached) " >&6
9682 if test -n "$ac_ct_DSYMUTIL"; then
9683 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9703 if test -n "$ac_ct_DSYMUTIL"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9705 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9711 if test "x$ac_ct_DSYMUTIL" = x; then
9714 case $cross_compiling:$ac_tool_warned in
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9718 ac_tool_warned=yes ;;
9720 DSYMUTIL=$ac_ct_DSYMUTIL
9723 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9726 if test -n "$ac_tool_prefix"; then
9727 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9728 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9730 $as_echo_n "checking for $ac_word... " >&6; }
9731 if ${ac_cv_prog_NMEDIT+:} false; then :
9732 $as_echo_n "(cached) " >&6
9734 if test -n "$NMEDIT"; then
9735 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9744 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9754 NMEDIT=$ac_cv_prog_NMEDIT
9755 if test -n "$NMEDIT"; then
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9757 $as_echo "$NMEDIT" >&6; }
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 $as_echo "no" >&6; }
9765 if test -z "$ac_cv_prog_NMEDIT"; then
9766 ac_ct_NMEDIT=$NMEDIT
9767 # Extract the first word of "nmedit", so it can be a program name with args.
9768 set dummy nmedit; ac_word=$2
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770 $as_echo_n "checking for $ac_word... " >&6; }
9771 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9772 $as_echo_n "(cached) " >&6
9774 if test -n "$ac_ct_NMEDIT"; then
9775 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9784 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9794 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9795 if test -n "$ac_ct_NMEDIT"; then
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9797 $as_echo "$ac_ct_NMEDIT" >&6; }
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800 $as_echo "no" >&6; }
9803 if test "x$ac_ct_NMEDIT" = x; then
9806 case $cross_compiling:$ac_tool_warned in
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9810 ac_tool_warned=yes ;;
9812 NMEDIT=$ac_ct_NMEDIT
9815 NMEDIT="$ac_cv_prog_NMEDIT"
9818 if test -n "$ac_tool_prefix"; then
9819 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9820 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9822 $as_echo_n "checking for $ac_word... " >&6; }
9823 if ${ac_cv_prog_LIPO+:} false; then :
9824 $as_echo_n "(cached) " >&6
9826 if test -n "$LIPO"; then
9827 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833 test -z "$as_dir" && as_dir=.
9834 for ac_exec_ext in '' $ac_executable_extensions; do
9835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9836 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 LIPO=$ac_cv_prog_LIPO
9847 if test -n "$LIPO"; then
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9849 $as_echo "$LIPO" >&6; }
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9852 $as_echo "no" >&6; }
9857 if test -z "$ac_cv_prog_LIPO"; then
9859 # Extract the first word of "lipo", so it can be a program name with args.
9860 set dummy lipo; ac_word=$2
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9862 $as_echo_n "checking for $ac_word... " >&6; }
9863 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9864 $as_echo_n "(cached) " >&6
9866 if test -n "$ac_ct_LIPO"; then
9867 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9876 ac_cv_prog_ac_ct_LIPO="lipo"
9877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9886 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9887 if test -n "$ac_ct_LIPO"; then
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9889 $as_echo "$ac_ct_LIPO" >&6; }
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9895 if test "x$ac_ct_LIPO" = x; then
9898 case $cross_compiling:$ac_tool_warned in
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9902 ac_tool_warned=yes ;;
9907 LIPO="$ac_cv_prog_LIPO"
9910 if test -n "$ac_tool_prefix"; then
9911 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9912 set dummy ${ac_tool_prefix}otool; ac_word=$2
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914 $as_echo_n "checking for $ac_word... " >&6; }
9915 if ${ac_cv_prog_OTOOL+:} false; then :
9916 $as_echo_n "(cached) " >&6
9918 if test -n "$OTOOL"; then
9919 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9925 test -z "$as_dir" && as_dir=.
9926 for ac_exec_ext in '' $ac_executable_extensions; do
9927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9928 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9938 OTOOL=$ac_cv_prog_OTOOL
9939 if test -n "$OTOOL"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9941 $as_echo "$OTOOL" >&6; }
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9949 if test -z "$ac_cv_prog_OTOOL"; then
9951 # Extract the first word of "otool", so it can be a program name with args.
9952 set dummy otool; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9956 $as_echo_n "(cached) " >&6
9958 if test -n "$ac_ct_OTOOL"; then
9959 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965 test -z "$as_dir" && as_dir=.
9966 for ac_exec_ext in '' $ac_executable_extensions; do
9967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9968 ac_cv_prog_ac_ct_OTOOL="otool"
9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9978 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9979 if test -n "$ac_ct_OTOOL"; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9981 $as_echo "$ac_ct_OTOOL" >&6; }
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984 $as_echo "no" >&6; }
9987 if test "x$ac_ct_OTOOL" = x; then
9990 case $cross_compiling:$ac_tool_warned in
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9994 ac_tool_warned=yes ;;
9999 OTOOL="$ac_cv_prog_OTOOL"
10002 if test -n "$ac_tool_prefix"; then
10003 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10004 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10006 $as_echo_n "checking for $ac_word... " >&6; }
10007 if ${ac_cv_prog_OTOOL64+:} false; then :
10008 $as_echo_n "(cached) " >&6
10010 if test -n "$OTOOL64"; then
10011 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10017 test -z "$as_dir" && as_dir=.
10018 for ac_exec_ext in '' $ac_executable_extensions; do
10019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10020 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 OTOOL64=$ac_cv_prog_OTOOL64
10031 if test -n "$OTOOL64"; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10033 $as_echo "$OTOOL64" >&6; }
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036 $as_echo "no" >&6; }
10041 if test -z "$ac_cv_prog_OTOOL64"; then
10042 ac_ct_OTOOL64=$OTOOL64
10043 # Extract the first word of "otool64", so it can be a program name with args.
10044 set dummy otool64; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10048 $as_echo_n "(cached) " >&6
10050 if test -n "$ac_ct_OTOOL64"; then
10051 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_prog_ac_ct_OTOOL64="otool64"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10071 if test -n "$ac_ct_OTOOL64"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10073 $as_echo "$ac_ct_OTOOL64" >&6; }
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10079 if test "x$ac_ct_OTOOL64" = x; then
10082 case $cross_compiling:$ac_tool_warned in
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10086 ac_tool_warned=yes ;;
10088 OTOOL64=$ac_ct_OTOOL64
10091 OTOOL64="$ac_cv_prog_OTOOL64"
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10121 $as_echo_n "checking for -single_module linker flag... " >&6; }
10122 if ${lt_cv_apple_cc_single_mod+:} false; then :
10123 $as_echo_n "(cached) " >&6
10125 lt_cv_apple_cc_single_mod=no
10126 if test -z "$LT_MULTI_MODULE"; then
10127 # By default we will add the -single_module flag. You can override
10128 # by either setting the environment variable LT_MULTI_MODULE
10129 # non-empty at configure time, or by adding -multi_module to the
10131 rm -rf libconftest.dylib*
10132 echo "int foo(void){return 1;}" > conftest.c
10133 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10134 -dynamiclib -Wl,-single_module conftest.c" >&5
10135 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10136 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10138 # If there is a non-empty error log, and "single_module"
10139 # appears in it, assume the flag caused a linker warning
10140 if test -s conftest.err && $GREP single_module conftest.err; then
10141 cat conftest.err >&5
10142 # Otherwise, if the output was created with a 0 exit code from
10143 # the compiler, it worked.
10144 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10145 lt_cv_apple_cc_single_mod=yes
10147 cat conftest.err >&5
10149 rm -rf libconftest.dylib*
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10154 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10157 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10158 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10159 $as_echo_n "(cached) " >&6
10161 lt_cv_ld_exported_symbols_list=no
10162 save_LDFLAGS=$LDFLAGS
10163 echo "_main" > conftest.sym
10164 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10176 if ac_fn_c_try_link "$LINENO"; then :
10177 lt_cv_ld_exported_symbols_list=yes
10179 lt_cv_ld_exported_symbols_list=no
10181 rm -f core conftest.err conftest.$ac_objext \
10182 conftest$ac_exeext conftest.$ac_ext
10183 LDFLAGS=$save_LDFLAGS
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10187 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10190 $as_echo_n "checking for -force_load linker flag... " >&6; }
10191 if ${lt_cv_ld_force_load+:} false; then :
10192 $as_echo_n "(cached) " >&6
10194 lt_cv_ld_force_load=no
10195 cat > conftest.c << _LT_EOF
10196 int forced_loaded() { return 2;}
10198 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10199 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10200 echo "$AR cru libconftest.a conftest.o" >&5
10201 $AR cru libconftest.a conftest.o 2>&5
10202 echo "$RANLIB libconftest.a" >&5
10203 $RANLIB libconftest.a 2>&5
10204 cat > conftest.c << _LT_EOF
10205 int main() { return 0;}
10207 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10208 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10210 if test -s conftest.err && $GREP force_load conftest.err; then
10211 cat conftest.err >&5
10212 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10213 lt_cv_ld_force_load=yes
10215 cat conftest.err >&5
10217 rm -f conftest.err libconftest.a conftest conftest.c
10218 rm -rf conftest.dSYM
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10222 $as_echo "$lt_cv_ld_force_load" >&6; }
10224 rhapsody* | darwin1.[012])
10225 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10227 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10228 darwin*) # darwin 5.x on
10229 # if running on 10.5 or later, the deployment target defaults
10230 # to the OS version, if on x86, and 10.4, the deployment
10231 # target defaults to 10.4. Don't you love it?
10232 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10233 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10234 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10236 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10238 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10242 if test yes = "$lt_cv_apple_cc_single_mod"; then
10243 _lt_dar_single_mod='$single_module'
10245 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10246 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10248 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10250 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10251 _lt_dsymutil='~$DSYMUTIL $lib || :'
10258 # func_munge_path_list VARIABLE PATH
10259 # -----------------------------------
10260 # VARIABLE is name of variable containing _space_ separated list of
10261 # directories to be munged by the contents of PATH, which is string
10264 # string "DIR[ DIR]" will be prepended to VARIABLE
10266 # string "DIR[ DIR]" will be appended to VARIABLE
10267 # "DIRP[:DIRP]::[DIRA:]DIRA"
10268 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10269 # "DIRA[ DIRA]" will be appended to VARIABLE
10271 # VARIABLE will be replaced by "DIR[ DIR]"
10272 func_munge_path_list ()
10278 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10281 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10284 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10285 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10288 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10293 for ac_header in dlfcn.h
10295 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10297 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10298 cat >>confdefs.h <<_ACEOF
10299 #define HAVE_DLFCN_H 1
10319 enable_win32_dll=no
10322 # Check whether --enable-shared was given.
10323 if test "${enable_shared+set}" = set; then :
10324 enableval=$enable_shared; p=${PACKAGE-default}
10326 yes) enable_shared=yes ;;
10327 no) enable_shared=no ;;
10330 # Look at the argument we got. We use all the common list separators.
10331 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10332 for pkg in $enableval; do
10334 if test "X$pkg" = "X$p"; then
10353 # Check whether --enable-static was given.
10354 if test "${enable_static+set}" = set; then :
10355 enableval=$enable_static; p=${PACKAGE-default}
10357 yes) enable_static=yes ;;
10358 no) enable_static=no ;;
10361 # Look at the argument we got. We use all the common list separators.
10362 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10363 for pkg in $enableval; do
10365 if test "X$pkg" = "X$p"; then
10385 # Check whether --with-pic was given.
10386 if test "${with_pic+set}" = set; then :
10387 withval=$with_pic; lt_p=${PACKAGE-default}
10389 yes|no) pic_mode=$withval ;;
10392 # Look at the argument we got. We use all the common list separators.
10393 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10394 for lt_pkg in $withval; do
10396 if test "X$lt_pkg" = "X$lt_p"; then
10414 # Check whether --enable-fast-install was given.
10415 if test "${enable_fast_install+set}" = set; then :
10416 enableval=$enable_fast_install; p=${PACKAGE-default}
10418 yes) enable_fast_install=yes ;;
10419 no) enable_fast_install=no ;;
10421 enable_fast_install=no
10422 # Look at the argument we got. We use all the common list separators.
10423 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10424 for pkg in $enableval; do
10426 if test "X$pkg" = "X$p"; then
10427 enable_fast_install=yes
10434 enable_fast_install=yes
10444 shared_archive_member_spec=
10445 case $host,$enable_shared in
10446 power*-*-aix[5-9]*,yes)
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10448 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10450 # Check whether --with-aix-soname was given.
10451 if test "${with_aix_soname+set}" = set; then :
10452 withval=$with_aix_soname; case $withval in
10456 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10459 lt_cv_with_aix_soname=$with_aix_soname
10461 if ${lt_cv_with_aix_soname+:} false; then :
10462 $as_echo_n "(cached) " >&6
10464 lt_cv_with_aix_soname=aix
10467 with_aix_soname=$lt_cv_with_aix_soname
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10471 $as_echo "$with_aix_soname" >&6; }
10472 if test aix != "$with_aix_soname"; then
10473 # For the AIX way of multilib, we name the shared archive member
10474 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10475 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10476 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10477 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10478 if test 64 = "${OBJECT_MODE-32}"; then
10479 shared_archive_member_spec=shr_64
10481 shared_archive_member_spec=shr
10486 with_aix_soname=aix
10499 # This can be used to rebuild libtool when needed
10500 LIBTOOL_DEPS=$ltmain
10502 # Always use our own libtool.
10503 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10534 test -z "$LN_S" && LN_S="ln -s"
10549 if test -n "${ZSH_VERSION+set}"; then
10550 setopt NO_GLOB_SUBST
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10554 $as_echo_n "checking for objdir... " >&6; }
10555 if ${lt_cv_objdir+:} false; then :
10556 $as_echo_n "(cached) " >&6
10558 rm -f .libs 2>/dev/null
10559 mkdir .libs 2>/dev/null
10560 if test -d .libs; then
10563 # MS-DOS does not allow filenames that begin with a dot.
10566 rmdir .libs 2>/dev/null
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10569 $as_echo "$lt_cv_objdir" >&6; }
10570 objdir=$lt_cv_objdir
10576 cat >>confdefs.h <<_ACEOF
10577 #define LT_OBJDIR "$lt_cv_objdir/"
10585 # AIX sometimes has problems with the GCC collect2 program. For some
10586 # reason, if we set the COLLECT_NAMES environment variable, the problems
10587 # vanish in a puff of smoke.
10588 if test set != "${COLLECT_NAMES+set}"; then
10590 export COLLECT_NAMES
10595 # Global variables:
10597 can_build_shared=yes
10599 # All known linkers require a '.a' archive for static linking (except MSVC,
10600 # which needs '.lib').
10603 with_gnu_ld=$lt_cv_prog_gnu_ld
10608 # Set sane defaults for various variables
10609 test -z "$CC" && CC=cc
10610 test -z "$LTCC" && LTCC=$CC
10611 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10612 test -z "$LD" && LD=ld
10613 test -z "$ac_objext" && ac_objext=o
10615 func_cc_basename $compiler
10616 cc_basename=$func_cc_basename_result
10619 # Only perform the check for file, if the check method requires it
10620 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10621 case $deplibs_check_method in
10623 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10625 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10626 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10627 $as_echo_n "(cached) " >&6
10631 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10634 lt_save_MAGIC_CMD=$MAGIC_CMD
10635 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10636 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10637 for ac_dir in $ac_dummy; do
10639 test -z "$ac_dir" && ac_dir=.
10640 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10641 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10642 if test -n "$file_magic_test_file"; then
10643 case $deplibs_check_method in
10645 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10646 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10647 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10648 $EGREP "$file_magic_regex" > /dev/null; then
10653 *** Warning: the command libtool uses to detect shared libraries,
10654 *** $file_magic_cmd, produces output that libtool cannot recognize.
10655 *** The result is that libtool may fail to recognize shared libraries
10656 *** as such. This will affect the creation of libtool libraries that
10657 *** depend on shared libraries, but programs linked with such libtool
10658 *** libraries will work regardless of this problem. Nevertheless, you
10659 *** may want to report the problem to your system manager and/or to
10660 *** bug-libtool@gnu.org
10670 MAGIC_CMD=$lt_save_MAGIC_CMD
10675 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10676 if test -n "$MAGIC_CMD"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10678 $as_echo "$MAGIC_CMD" >&6; }
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10688 if test -z "$lt_cv_path_MAGIC_CMD"; then
10689 if test -n "$ac_tool_prefix"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10691 $as_echo_n "checking for file... " >&6; }
10692 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10693 $as_echo_n "(cached) " >&6
10697 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10700 lt_save_MAGIC_CMD=$MAGIC_CMD
10701 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10702 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10703 for ac_dir in $ac_dummy; do
10705 test -z "$ac_dir" && ac_dir=.
10706 if test -f "$ac_dir/file"; then
10707 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10708 if test -n "$file_magic_test_file"; then
10709 case $deplibs_check_method in
10711 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10712 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10713 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10714 $EGREP "$file_magic_regex" > /dev/null; then
10719 *** Warning: the command libtool uses to detect shared libraries,
10720 *** $file_magic_cmd, produces output that libtool cannot recognize.
10721 *** The result is that libtool may fail to recognize shared libraries
10722 *** as such. This will affect the creation of libtool libraries that
10723 *** depend on shared libraries, but programs linked with such libtool
10724 *** libraries will work regardless of this problem. Nevertheless, you
10725 *** may want to report the problem to your system manager and/or to
10726 *** bug-libtool@gnu.org
10736 MAGIC_CMD=$lt_save_MAGIC_CMD
10741 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10742 if test -n "$MAGIC_CMD"; then
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10744 $as_echo "$MAGIC_CMD" >&6; }
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10747 $as_echo "no" >&6; }
10760 # Use C for the default configuration in the libtool script
10764 ac_cpp='$CPP $CPPFLAGS'
10765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10770 # Source file extension for C test sources.
10773 # Object file extension for compiled C test sources.
10777 # Code to be used in simple compile tests
10778 lt_simple_compile_test_code="int some_variable = 0;"
10780 # Code to be used in simple link tests
10781 lt_simple_link_test_code='int main(){return(0);}'
10789 # If no C compiler was specified, use CC.
10792 # If no C compiler flags were specified, use CFLAGS.
10793 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10795 # Allow CC to be a program name with arguments.
10798 # Save the default compiler, since it gets overwritten when the other
10799 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10800 compiler_DEFAULT=$CC
10802 # save warnings/boilerplate of simple test code
10803 ac_outfile=conftest.$ac_objext
10804 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10805 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10806 _lt_compiler_boilerplate=`cat conftest.err`
10809 ac_outfile=conftest.$ac_objext
10810 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10811 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10812 _lt_linker_boilerplate=`cat conftest.err`
10816 if test -n "$compiler"; then
10818 lt_prog_compiler_no_builtin_flag=
10820 if test yes = "$GCC"; then
10821 case $cc_basename in
10823 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10825 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10829 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10830 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10831 $as_echo_n "(cached) " >&6
10833 lt_cv_prog_compiler_rtti_exceptions=no
10834 ac_outfile=conftest.$ac_objext
10835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10836 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10837 # Insert the option either (1) after the last *FLAGS variable, or
10838 # (2) before a word containing "conftest.", or (3) at the end.
10839 # Note that $ac_compile itself does not contain backslashes and begins
10840 # with a dollar sign (not a hyphen), so the echo should work correctly.
10841 # The option is referenced via a variable to avoid confusing sed.
10842 lt_compile=`echo "$ac_compile" | $SED \
10843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10845 -e 's:$: $lt_compiler_flag:'`
10846 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10847 (eval "$lt_compile" 2>conftest.err)
10849 cat conftest.err >&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 if (exit $ac_status) && test -s "$ac_outfile"; then
10852 # The compiler can only warn and ignore the option if not recognized
10853 # So say no if there are warnings other than the usual output.
10854 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10855 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10856 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10857 lt_cv_prog_compiler_rtti_exceptions=yes
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10864 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10866 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10867 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10879 lt_prog_compiler_wl=
10880 lt_prog_compiler_pic=
10881 lt_prog_compiler_static=
10884 if test yes = "$GCC"; then
10885 lt_prog_compiler_wl='-Wl,'
10886 lt_prog_compiler_static='-static'
10890 # All AIX code is PIC.
10891 if test ia64 = "$host_cpu"; then
10892 # AIX 5 now supports IA64 processor
10893 lt_prog_compiler_static='-Bstatic'
10895 lt_prog_compiler_pic='-fPIC'
10901 # see comment about AmigaOS4 .so support
10902 lt_prog_compiler_pic='-fPIC'
10905 # FIXME: we need at least 68020 code to build shared libraries, but
10906 # adding the '-m68020' flag to GCC prevents building anything better,
10908 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10913 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10914 # PIC is the default for these OSes.
10917 mingw* | cygwin* | pw32* | os2* | cegcc*)
10918 # This hack is so that the source file can tell whether it is being
10919 # built for inclusion in a dll (and should export symbols for example).
10920 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10921 # (--disable-auto-import) libraries
10922 lt_prog_compiler_pic='-DDLL_EXPORT'
10925 lt_prog_compiler_static='$wl-static'
10930 darwin* | rhapsody*)
10931 # PIC is the default on this platform
10932 # Common symbols not allowed in MH_DYLIB files
10933 lt_prog_compiler_pic='-fno-common'
10937 # PIC is the default for Haiku.
10938 # The "-static" flag exists, but is broken.
10939 lt_prog_compiler_static=
10943 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10944 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10945 # sets the default TLS model and affects inlining.
10951 lt_prog_compiler_pic='-fPIC'
10957 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10958 # Instead, we relocate shared libraries at runtime.
10962 # Just because we use GCC doesn't mean we suddenly get shared libraries
10963 # on systems that don't support them.
10964 lt_prog_compiler_can_build_shared=no
10969 # QNX uses GNU C++, but need to define -shared option too, otherwise
10970 # it will coredump.
10971 lt_prog_compiler_pic='-fPIC -shared'
10975 if test -d /usr/nec; then
10976 lt_prog_compiler_pic=-Kconform_pic
10981 lt_prog_compiler_pic='-fPIC'
10985 case $cc_basename in
10986 nvcc*) # Cuda Compiler Driver 2.2
10987 lt_prog_compiler_wl='-Xlinker '
10988 if test -n "$lt_prog_compiler_pic"; then
10989 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10994 # PORTME Check for flag to pass linker flags through the system compiler.
10997 lt_prog_compiler_wl='-Wl,'
10998 if test ia64 = "$host_cpu"; then
10999 # AIX 5 now supports IA64 processor
11000 lt_prog_compiler_static='-Bstatic'
11002 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11006 darwin* | rhapsody*)
11007 # PIC is the default on this platform
11008 # Common symbols not allowed in MH_DYLIB files
11009 lt_prog_compiler_pic='-fno-common'
11010 case $cc_basename in
11012 # NAG Fortran compiler
11013 lt_prog_compiler_wl='-Wl,-Wl,,'
11014 lt_prog_compiler_pic='-PIC'
11015 lt_prog_compiler_static='-Bstatic'
11020 mingw* | cygwin* | pw32* | os2* | cegcc*)
11021 # This hack is so that the source file can tell whether it is being
11022 # built for inclusion in a dll (and should export symbols for example).
11023 lt_prog_compiler_pic='-DDLL_EXPORT'
11026 lt_prog_compiler_static='$wl-static'
11031 hpux9* | hpux10* | hpux11*)
11032 lt_prog_compiler_wl='-Wl,'
11033 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11034 # not for PA HP-UX.
11040 lt_prog_compiler_pic='+Z'
11043 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11044 lt_prog_compiler_static='$wl-a ${wl}archive'
11047 irix5* | irix6* | nonstopux*)
11048 lt_prog_compiler_wl='-Wl,'
11049 # PIC (with -KPIC) is the default.
11050 lt_prog_compiler_static='-non_shared'
11053 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11054 case $cc_basename in
11055 # old Intel for x86_64, which still supported -KPIC.
11057 lt_prog_compiler_wl='-Wl,'
11058 lt_prog_compiler_pic='-KPIC'
11059 lt_prog_compiler_static='-static'
11061 # icc used to be incompatible with GCC.
11062 # ICC 10 doesn't accept -KPIC any more.
11064 lt_prog_compiler_wl='-Wl,'
11065 lt_prog_compiler_pic='-fPIC'
11066 lt_prog_compiler_static='-static'
11068 # Lahey Fortran 8.1.
11070 lt_prog_compiler_wl='-Wl,'
11071 lt_prog_compiler_pic='--shared'
11072 lt_prog_compiler_static='--static'
11075 # NAG Fortran compiler
11076 lt_prog_compiler_wl='-Wl,-Wl,,'
11077 lt_prog_compiler_pic='-PIC'
11078 lt_prog_compiler_static='-Bstatic'
11081 # Fabrice Bellard et al's Tiny C Compiler
11082 lt_prog_compiler_wl='-Wl,'
11083 lt_prog_compiler_pic='-fPIC'
11084 lt_prog_compiler_static='-static'
11086 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11087 # Portland Group compilers (*not* the Pentium gcc compiler,
11088 # which looks to be a dead project)
11089 lt_prog_compiler_wl='-Wl,'
11090 lt_prog_compiler_pic='-fpic'
11091 lt_prog_compiler_static='-Bstatic'
11094 lt_prog_compiler_wl='-Wl,'
11095 # All Alpha code is PIC.
11096 lt_prog_compiler_static='-non_shared'
11098 xl* | bgxl* | bgf* | mpixl*)
11099 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11100 lt_prog_compiler_wl='-Wl,'
11101 lt_prog_compiler_pic='-qpic'
11102 lt_prog_compiler_static='-qstaticlink'
11105 case `$CC -V 2>&1 | sed 5q` in
11106 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11107 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11108 lt_prog_compiler_pic='-KPIC'
11109 lt_prog_compiler_static='-Bstatic'
11110 lt_prog_compiler_wl=''
11112 *Sun\ F* | *Sun*Fortran*)
11113 lt_prog_compiler_pic='-KPIC'
11114 lt_prog_compiler_static='-Bstatic'
11115 lt_prog_compiler_wl='-Qoption ld '
11119 lt_prog_compiler_pic='-KPIC'
11120 lt_prog_compiler_static='-Bstatic'
11121 lt_prog_compiler_wl='-Wl,'
11123 *Intel*\ [CF]*Compiler*)
11124 lt_prog_compiler_wl='-Wl,'
11125 lt_prog_compiler_pic='-fPIC'
11126 lt_prog_compiler_static='-static'
11129 lt_prog_compiler_wl='-Wl,'
11130 lt_prog_compiler_pic='-fpic'
11131 lt_prog_compiler_static='-Bstatic'
11139 lt_prog_compiler_pic='-KPIC'
11140 lt_prog_compiler_static='-Bstatic'
11144 # QNX uses GNU C++, but need to define -shared option too, otherwise
11145 # it will coredump.
11146 lt_prog_compiler_pic='-fPIC -shared'
11149 osf3* | osf4* | osf5*)
11150 lt_prog_compiler_wl='-Wl,'
11151 # All OSF/1 code is PIC.
11152 lt_prog_compiler_static='-non_shared'
11156 lt_prog_compiler_static='-non_shared'
11160 lt_prog_compiler_pic='-KPIC'
11161 lt_prog_compiler_static='-Bstatic'
11162 case $cc_basename in
11163 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11164 lt_prog_compiler_wl='-Qoption ld ';;
11166 lt_prog_compiler_wl='-Wl,';;
11171 lt_prog_compiler_wl='-Qoption ld '
11172 lt_prog_compiler_pic='-PIC'
11173 lt_prog_compiler_static='-Bstatic'
11176 sysv4 | sysv4.2uw2* | sysv4.3*)
11177 lt_prog_compiler_wl='-Wl,'
11178 lt_prog_compiler_pic='-KPIC'
11179 lt_prog_compiler_static='-Bstatic'
11183 if test -d /usr/nec; then
11184 lt_prog_compiler_pic='-Kconform_pic'
11185 lt_prog_compiler_static='-Bstatic'
11189 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11190 lt_prog_compiler_wl='-Wl,'
11191 lt_prog_compiler_pic='-KPIC'
11192 lt_prog_compiler_static='-Bstatic'
11196 lt_prog_compiler_wl='-Wl,'
11197 lt_prog_compiler_can_build_shared=no
11201 lt_prog_compiler_pic='-pic'
11202 lt_prog_compiler_static='-Bstatic'
11206 lt_prog_compiler_can_build_shared=no
11212 # For platforms that do not support PIC, -DPIC is meaningless:
11214 lt_prog_compiler_pic=
11217 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11222 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11223 if ${lt_cv_prog_compiler_pic+:} false; then :
11224 $as_echo_n "(cached) " >&6
11226 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11229 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11230 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11233 # Check to make sure the PIC flag actually works.
11235 if test -n "$lt_prog_compiler_pic"; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11237 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11238 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11239 $as_echo_n "(cached) " >&6
11241 lt_cv_prog_compiler_pic_works=no
11242 ac_outfile=conftest.$ac_objext
11243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11244 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11245 # Insert the option either (1) after the last *FLAGS variable, or
11246 # (2) before a word containing "conftest.", or (3) at the end.
11247 # Note that $ac_compile itself does not contain backslashes and begins
11248 # with a dollar sign (not a hyphen), so the echo should work correctly.
11249 # The option is referenced via a variable to avoid confusing sed.
11250 lt_compile=`echo "$ac_compile" | $SED \
11251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11253 -e 's:$: $lt_compiler_flag:'`
11254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11255 (eval "$lt_compile" 2>conftest.err)
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 if (exit $ac_status) && test -s "$ac_outfile"; then
11260 # The compiler can only warn and ignore the option if not recognized
11261 # So say no if there are warnings other than the usual output.
11262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11264 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11265 lt_cv_prog_compiler_pic_works=yes
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11272 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11274 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11275 case $lt_prog_compiler_pic in
11277 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11280 lt_prog_compiler_pic=
11281 lt_prog_compiler_can_build_shared=no
11297 # Check to make sure the static flag actually works.
11299 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11301 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11302 if ${lt_cv_prog_compiler_static_works+:} false; then :
11303 $as_echo_n "(cached) " >&6
11305 lt_cv_prog_compiler_static_works=no
11306 save_LDFLAGS=$LDFLAGS
11307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11308 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11310 # The linker can only warn and ignore the option if not recognized
11311 # So say no if there are warnings
11312 if test -s conftest.err; then
11313 # Append any errors to the config.log.
11314 cat conftest.err 1>&5
11315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11317 if diff conftest.exp conftest.er2 >/dev/null; then
11318 lt_cv_prog_compiler_static_works=yes
11321 lt_cv_prog_compiler_static_works=yes
11325 LDFLAGS=$save_LDFLAGS
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11329 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11331 if test yes = "$lt_cv_prog_compiler_static_works"; then
11334 lt_prog_compiler_static=
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11344 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11345 if ${lt_cv_prog_compiler_c_o+:} false; then :
11346 $as_echo_n "(cached) " >&6
11348 lt_cv_prog_compiler_c_o=no
11349 $RM -r conftest 2>/dev/null
11353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11355 lt_compiler_flag="-o out/conftest2.$ac_objext"
11356 # Insert the option either (1) after the last *FLAGS variable, or
11357 # (2) before a word containing "conftest.", or (3) at the end.
11358 # Note that $ac_compile itself does not contain backslashes and begins
11359 # with a dollar sign (not a hyphen), so the echo should work correctly.
11360 lt_compile=`echo "$ac_compile" | $SED \
11361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11363 -e 's:$: $lt_compiler_flag:'`
11364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11365 (eval "$lt_compile" 2>out/conftest.err)
11367 cat out/conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11371 # The compiler can only warn and ignore the option if not recognized
11372 # So say no if there are warnings
11373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11376 lt_cv_prog_compiler_c_o=yes
11381 # SGI C++ compiler will create directory out/ii_files/ for
11382 # template instantiation
11383 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11384 $RM out/* && rmdir out
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11391 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11399 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11400 if ${lt_cv_prog_compiler_c_o+:} false; then :
11401 $as_echo_n "(cached) " >&6
11403 lt_cv_prog_compiler_c_o=no
11404 $RM -r conftest 2>/dev/null
11408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11410 lt_compiler_flag="-o out/conftest2.$ac_objext"
11411 # Insert the option either (1) after the last *FLAGS variable, or
11412 # (2) before a word containing "conftest.", or (3) at the end.
11413 # Note that $ac_compile itself does not contain backslashes and begins
11414 # with a dollar sign (not a hyphen), so the echo should work correctly.
11415 lt_compile=`echo "$ac_compile" | $SED \
11416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11418 -e 's:$: $lt_compiler_flag:'`
11419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11420 (eval "$lt_compile" 2>out/conftest.err)
11422 cat out/conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11426 # The compiler can only warn and ignore the option if not recognized
11427 # So say no if there are warnings
11428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11431 lt_cv_prog_compiler_c_o=yes
11436 # SGI C++ compiler will create directory out/ii_files/ for
11437 # template instantiation
11438 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11439 $RM out/* && rmdir out
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11446 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11451 hard_links=nottested
11452 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11453 # do not overwrite the value of need_locks provided by the user
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11455 $as_echo_n "checking if we can lock with hard links... " >&6; }
11458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11460 ln conftest.a conftest.b 2>&5 || hard_links=no
11461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11463 $as_echo "$hard_links" >&6; }
11464 if test no = "$hard_links"; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11466 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11479 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11482 allow_undefined_flag=
11483 always_export_symbols=no
11485 archive_expsym_cmds=
11486 compiler_needs_object=no
11487 enable_shared_with_static_runtimes=no
11488 export_dynamic_flag_spec=
11489 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11490 hardcode_automatic=no
11492 hardcode_direct_absolute=no
11493 hardcode_libdir_flag_spec=
11494 hardcode_libdir_separator=
11495 hardcode_minus_L=no
11496 hardcode_shlibpath_var=unsupported
11498 link_all_deplibs=unknown
11500 module_expsym_cmds=
11501 old_archive_from_new_cmds=
11502 old_archive_from_expsyms_cmds=
11503 thread_safe_flag_spec=
11504 whole_archive_flag_spec=
11505 # include_expsyms should be a list of space-separated symbols to be *always*
11506 # included in the symbol list
11508 # exclude_expsyms can be an extended regexp of symbols to exclude
11509 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11510 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11511 # as well as any symbol that contains 'd'.
11512 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11513 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11514 # platforms (ab)use it in PIC code, but their linkers get confused if
11515 # the symbol is explicitly referenced. Since portable code cannot
11516 # rely on this symbol name, it's probably fine to never include it in
11517 # preloaded symbol tables.
11518 # Exclude shared library initialization/finalization symbols.
11519 extract_expsyms_cmds=
11522 cygwin* | mingw* | pw32* | cegcc*)
11523 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11524 # When not using gcc, we currently assume that we are using
11525 # Microsoft Visual C++.
11526 if test yes != "$GCC"; then
11531 # we just hope/assume this is gcc and not c89 (= MSVC++)
11534 openbsd* | bitrig*)
11541 # On some targets, GNU ld is compatible enough with the native linker
11542 # that we're better off using the native interface for both.
11543 lt_use_gnu_ld_interface=no
11544 if test yes = "$with_gnu_ld"; then
11547 # The AIX port of GNU ld has always aspired to compatibility
11548 # with the native linker. However, as the warning in the GNU ld
11549 # block says, versions before 2.19.5* couldn't really create working
11550 # shared libraries, regardless of the interface used.
11551 case `$LD -v 2>&1` in
11552 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11553 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11554 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11556 lt_use_gnu_ld_interface=yes
11561 lt_use_gnu_ld_interface=yes
11566 if test yes = "$lt_use_gnu_ld_interface"; then
11567 # If archive_cmds runs LD, not CC, wlarc should be empty
11570 # Set some defaults for GNU ld with shared library support. These
11571 # are reset later if shared libraries are not supported. Putting them
11572 # here allows them to be overridden if necessary.
11573 runpath_var=LD_RUN_PATH
11574 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11575 export_dynamic_flag_spec='$wl--export-dynamic'
11576 # ancient GNU ld didn't support --whole-archive et. al.
11577 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11578 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11580 whole_archive_flag_spec=
11582 supports_anon_versioning=no
11583 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11584 *GNU\ gold*) supports_anon_versioning=yes ;;
11585 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11586 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11587 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11588 *\ 2.11.*) ;; # other 2.11 versions
11589 *) supports_anon_versioning=yes ;;
11592 # See if GNU ld supports shared libraries.
11595 # On AIX/PPC, the GNU linker is very broken
11596 if test ia64 != "$host_cpu"; then
11600 *** Warning: the GNU linker, at least up to release 2.19, is reported
11601 *** to be unable to reliably create shared libraries on AIX.
11602 *** Therefore, libtool is disabling shared libraries support. If you
11603 *** really care for shared libraries, you may want to install binutils
11604 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11605 *** You will then need to restart the configuration process.
11614 # see comment about AmigaOS4 .so support
11615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11616 archive_expsym_cmds=''
11619 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)'
11620 hardcode_libdir_flag_spec='-L$libdir'
11621 hardcode_minus_L=yes
11627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11628 allow_undefined_flag=unsupported
11629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11630 # support --undefined. This deserves some investigation. FIXME
11631 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11637 cygwin* | mingw* | pw32* | cegcc*)
11638 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11639 # as there is no search path for DLLs.
11640 hardcode_libdir_flag_spec='-L$libdir'
11641 export_dynamic_flag_spec='$wl--export-all-symbols'
11642 allow_undefined_flag=unsupported
11643 always_export_symbols=no
11644 enable_shared_with_static_runtimes=yes
11645 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'
11646 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11648 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11650 # If the export-symbols file already is a .def file, use it as
11651 # is; otherwise, prepend EXPORTS...
11652 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11653 cp $export_symbols $output_objdir/$soname.def;
11655 echo EXPORTS > $output_objdir/$soname.def;
11656 cat $export_symbols >> $output_objdir/$soname.def;
11658 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11666 link_all_deplibs=yes
11670 hardcode_libdir_flag_spec='-L$libdir'
11671 hardcode_minus_L=yes
11672 allow_undefined_flag=unsupported
11674 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11675 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11676 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11677 $ECHO EXPORTS >> $output_objdir/$libname.def~
11678 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11679 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11680 emximp -o $lib $output_objdir/$libname.def'
11681 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11682 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11683 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11684 $ECHO EXPORTS >> $output_objdir/$libname.def~
11685 prefix_cmds="$SED"~
11686 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11687 prefix_cmds="$prefix_cmds -e 1d";
11689 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11690 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11691 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11692 emximp -o $lib $output_objdir/$libname.def'
11693 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11694 enable_shared_with_static_runtimes=yes
11699 hardcode_shlibpath_var=no
11700 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11701 export_dynamic_flag_spec='$wl-E'
11702 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11703 # Instead, shared libraries are loaded at an image base (0x10000000 by
11704 # default) and relocated if they conflict, which is a slow very memory
11705 # consuming and fragmenting process. To avoid this, we pick a random,
11706 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11707 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11708 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11709 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'
11712 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11714 if test linux-dietlibc = "$host_os"; then
11715 case $cc_basename in
11716 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11719 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11720 && test no = "$tmp_diet"
11722 tmp_addflag=' $pic_flag'
11723 tmp_sharedflag='-shared'
11724 case $cc_basename,$host_cpu in
11725 pgcc*) # Portland Group C compiler
11726 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'
11727 tmp_addflag=' $pic_flag'
11729 pgf77* | pgf90* | pgf95* | pgfortran*)
11730 # Portland Group f77 and f90 compilers
11731 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'
11732 tmp_addflag=' $pic_flag -Mnomain' ;;
11733 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11734 tmp_addflag=' -i_dynamic' ;;
11735 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11736 tmp_addflag=' -i_dynamic -nofor_main' ;;
11737 ifc* | ifort*) # Intel Fortran compiler
11738 tmp_addflag=' -nofor_main' ;;
11739 lf95*) # Lahey Fortran 8.1
11740 whole_archive_flag_spec=
11741 tmp_sharedflag='--shared' ;;
11742 nagfor*) # NAGFOR 5.3
11743 tmp_sharedflag='-Wl,-shared' ;;
11744 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11745 tmp_sharedflag='-qmkshrobj'
11747 nvcc*) # Cuda Compiler Driver 2.2
11748 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'
11749 compiler_needs_object=yes
11752 case `$CC -V 2>&1 | sed 5q` in
11753 *Sun\ C*) # Sun C 5.9
11754 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'
11755 compiler_needs_object=yes
11756 tmp_sharedflag='-G' ;;
11757 *Sun\ F*) # Sun Fortran 8.3
11758 tmp_sharedflag='-G' ;;
11760 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11762 if test yes = "$supports_anon_versioning"; then
11763 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11764 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11765 echo "local: *; };" >> $output_objdir/$libname.ver~
11766 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11769 case $cc_basename in
11771 export_dynamic_flag_spec='-rdynamic'
11773 xlf* | bgf* | bgxlf* | mpixlf*)
11774 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11775 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11776 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11777 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11778 if test yes = "$supports_anon_versioning"; then
11779 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11781 echo "local: *; };" >> $output_objdir/$libname.ver~
11782 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11793 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11796 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11797 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11802 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11806 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11807 *** create shared libraries on Solaris systems. Therefore, libtool
11808 *** is disabling shared libraries support. We urge you to upgrade GNU
11809 *** binutils to release 2.9.1 or newer. Another option is to modify
11810 *** your PATH or compiler configuration so that the native linker is
11811 *** used, and then restart.
11814 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11815 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11816 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11823 case `$LD -v 2>&1` in
11824 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11828 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11829 *** reliably create shared libraries on SCO systems. Therefore, libtool
11830 *** is disabling shared libraries support. We urge you to upgrade GNU
11831 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11832 *** your PATH or compiler configuration so that the native linker is
11833 *** used, and then restart.
11838 # For security reasons, it is highly recommended that you always
11839 # use absolute paths for naming shared libraries, and exclude the
11840 # DT_RUNPATH tag from executables and libraries. But doing so
11841 # requires that you compile everything twice, which is a pain.
11842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11854 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11856 hardcode_direct=yes
11857 hardcode_shlibpath_var=no
11861 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11862 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11863 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11870 if test no = "$ld_shlibs"; then
11872 hardcode_libdir_flag_spec=
11873 export_dynamic_flag_spec=
11874 whole_archive_flag_spec=
11877 # PORTME fill in a description of your system's linker (not GNU ld)
11880 allow_undefined_flag=unsupported
11881 always_export_symbols=yes
11882 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'
11883 # Note: this linker hardcodes the directories in LIBPATH if there
11884 # are no directories specified by -L.
11885 hardcode_minus_L=yes
11886 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11887 # Neither direct hardcoding nor static linking is supported with a
11889 hardcode_direct=unsupported
11894 if test ia64 = "$host_cpu"; then
11895 # On IA64, the linker does run time linking by default, so we don't
11896 # have to do anything special.
11897 aix_use_runtimelinking=no
11898 exp_sym_flag='-Bexport'
11901 # If we're using GNU nm, then we don't want the "-C" option.
11902 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11903 # Without the "-l" option, or with the "-B" option, AIX nm treats
11904 # weak defined symbols like other global defined symbols, whereas
11905 # GNU nm marks them as "W".
11906 # While the 'weak' keyword is ignored in the Export File, we need
11907 # it in the Import File for the 'aix-soname' feature, so we have
11908 # to replace the "-B" option with "-P" for AIX nm.
11909 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11910 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'
11912 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'
11914 aix_use_runtimelinking=no
11916 # Test if we are trying to use run time linking or normal
11917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11918 # have runtime linking enabled, and use it for executables.
11919 # For shared libraries, we enable/disable runtime linking
11920 # depending on the kind of the shared library created -
11921 # when "with_aix_soname,aix_use_runtimelinking" is:
11922 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11923 # "aix,yes" lib.so shared, rtl:yes, for executables
11924 # lib.a static archive
11925 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11926 # lib.a(lib.so.V) shared, rtl:no, for executables
11927 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11928 # lib.a(lib.so.V) shared, rtl:no
11929 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11930 # lib.a static archive
11931 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11932 for ld_flag in $LDFLAGS; do
11933 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11934 aix_use_runtimelinking=yes
11938 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11939 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11940 # so we don't have lib.a shared libs to link our executables.
11941 # We have to force runtime linking in this case.
11942 aix_use_runtimelinking=yes
11943 LDFLAGS="$LDFLAGS -Wl,-brtl"
11948 exp_sym_flag='-bexport'
11949 no_entry_flag='-bnoentry'
11952 # When large executables or shared objects are built, AIX ld can
11953 # have problems creating the table of contents. If linking a library
11954 # or program results in "error TOC overflow" add -mminimal-toc to
11955 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11956 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11959 hardcode_direct=yes
11960 hardcode_direct_absolute=yes
11961 hardcode_libdir_separator=':'
11962 link_all_deplibs=yes
11963 file_list_spec='$wl-f,'
11964 case $with_aix_soname,$aix_use_runtimelinking in
11965 aix,*) ;; # traditional, no import file
11966 svr4,* | *,yes) # use import file
11967 # The Import File defines what to hardcode.
11969 hardcode_direct_absolute=no
11973 if test yes = "$GCC"; then
11974 case $host_os in aix4.[012]|aix4.[012].*)
11975 # We only want to do this on AIX 4.2 and lower, the check
11976 # below for broken collect2 doesn't work under 4.3+
11977 collect2name=`$CC -print-prog-name=collect2`
11978 if test -f "$collect2name" &&
11979 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11981 # We have reworked collect2
11984 # We have old collect2
11985 hardcode_direct=unsupported
11986 # It fails to find uninstalled libraries when the uninstalled
11987 # path is not listed in the libpath. Setting hardcode_minus_L
11988 # to unsupported forces relinking
11989 hardcode_minus_L=yes
11990 hardcode_libdir_flag_spec='-L$libdir'
11991 hardcode_libdir_separator=
11995 shared_flag='-shared'
11996 if test yes = "$aix_use_runtimelinking"; then
11997 shared_flag="$shared_flag "'$wl-G'
11999 # Need to ensure runtime linking is disabled for the traditional
12000 # shared library, or the linker may eventually find shared libraries
12001 # /with/ Import File - we do not want to mix them.
12002 shared_flag_aix='-shared'
12003 shared_flag_svr4='-shared $wl-G'
12006 if test ia64 = "$host_cpu"; then
12007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12008 # chokes on -Wl,-G. The following line is correct:
12011 if test yes = "$aix_use_runtimelinking"; then
12012 shared_flag='$wl-G'
12014 shared_flag='$wl-bM:SRE'
12016 shared_flag_aix='$wl-bM:SRE'
12017 shared_flag_svr4='$wl-G'
12021 export_dynamic_flag_spec='$wl-bexpall'
12022 # It seems that -bexpall does not export symbols beginning with
12023 # underscore (_), so it is better to generate a list of symbols to export.
12024 always_export_symbols=yes
12025 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12026 # Warning - without using the other runtime loading flags (-brtl),
12027 # -berok will link without error, but may produce a broken library.
12028 allow_undefined_flag='-berok'
12029 # Determine the default libpath from the value encoded in an
12030 # empty executable.
12031 if test set = "${lt_cv_aix_libpath+set}"; then
12032 aix_libpath=$lt_cv_aix_libpath
12034 if ${lt_cv_aix_libpath_+:} false; then :
12035 $as_echo_n "(cached) " >&6
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12048 if ac_fn_c_try_link "$LINENO"; then :
12050 lt_aix_libpath_sed='
12051 /Import File Strings/,/^$/ {
12053 s/^0 *\([^ ]*\) *$/\1/
12057 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12058 # Check for a 64-bit object if we didn't find anything.
12059 if test -z "$lt_cv_aix_libpath_"; then
12060 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12063 rm -f core conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
12065 if test -z "$lt_cv_aix_libpath_"; then
12066 lt_cv_aix_libpath_=/usr/lib:/lib
12071 aix_libpath=$lt_cv_aix_libpath_
12074 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12075 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
12077 if test ia64 = "$host_cpu"; then
12078 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12079 allow_undefined_flag="-z nodefs"
12080 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"
12082 # Determine the default libpath from the value encoded in an
12083 # empty executable.
12084 if test set = "${lt_cv_aix_libpath+set}"; then
12085 aix_libpath=$lt_cv_aix_libpath
12087 if ${lt_cv_aix_libpath_+:} false; then :
12088 $as_echo_n "(cached) " >&6
12090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h. */
12101 if ac_fn_c_try_link "$LINENO"; then :
12103 lt_aix_libpath_sed='
12104 /Import File Strings/,/^$/ {
12106 s/^0 *\([^ ]*\) *$/\1/
12110 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12111 # Check for a 64-bit object if we didn't find anything.
12112 if test -z "$lt_cv_aix_libpath_"; then
12113 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12116 rm -f core conftest.err conftest.$ac_objext \
12117 conftest$ac_exeext conftest.$ac_ext
12118 if test -z "$lt_cv_aix_libpath_"; then
12119 lt_cv_aix_libpath_=/usr/lib:/lib
12124 aix_libpath=$lt_cv_aix_libpath_
12127 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12128 # Warning - without using the other run time loading flags,
12129 # -berok will link without error, but may produce a broken library.
12130 no_undefined_flag=' $wl-bernotok'
12131 allow_undefined_flag=' $wl-berok'
12132 if test yes = "$with_gnu_ld"; then
12133 # We only use this code for GNU lds that support --whole-archive.
12134 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12136 # Exported symbols can be pulled into shared objects from archives
12137 whole_archive_flag_spec='$convenience'
12139 archive_cmds_need_lc=yes
12140 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12141 # -brtl affects multiple linker settings, -berok does not and is overridden later
12142 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12143 if test svr4 != "$with_aix_soname"; then
12144 # This is similar to how AIX traditionally builds its shared libraries.
12145 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'
12147 if test aix != "$with_aix_soname"; then
12148 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'
12150 # used by -dlpreopen to get the symbols
12151 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12153 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12161 # see comment about AmigaOS4 .so support
12162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12163 archive_expsym_cmds=''
12166 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)'
12167 hardcode_libdir_flag_spec='-L$libdir'
12168 hardcode_minus_L=yes
12174 export_dynamic_flag_spec=-rdynamic
12177 cygwin* | mingw* | pw32* | cegcc*)
12178 # When not using gcc, we currently assume that we are using
12179 # Microsoft Visual C++.
12180 # hardcode_libdir_flag_spec is actually meaningless, as there is
12181 # no search path for DLLs.
12182 case $cc_basename in
12185 hardcode_libdir_flag_spec=' '
12186 allow_undefined_flag=unsupported
12187 always_export_symbols=yes
12189 # Tell ltmain to make .lib files, not .a files.
12191 # Tell ltmain to make .dll files, not .so files.
12193 # FIXME: Setting linknames here is a bad hack.
12194 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12195 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12196 cp "$export_symbols" "$output_objdir/$soname.def";
12197 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12199 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12201 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12203 # The linker will not automatically build a static lib if we build a DLL.
12204 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12205 enable_shared_with_static_runtimes=yes
12206 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12209 old_postinstall_cmds='chmod 644 $oldlib'
12210 postlink_cmds='lt_outputfile="@OUTPUT@"~
12211 lt_tool_outputfile="@TOOL_OUTPUT@"~
12212 case $lt_outputfile in
12215 lt_outputfile=$lt_outputfile.exe
12216 lt_tool_outputfile=$lt_tool_outputfile.exe
12219 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12220 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12221 $RM "$lt_outputfile.manifest";
12225 # Assume MSVC wrapper
12226 hardcode_libdir_flag_spec=' '
12227 allow_undefined_flag=unsupported
12228 # Tell ltmain to make .lib files, not .a files.
12230 # Tell ltmain to make .dll files, not .so files.
12232 # FIXME: Setting linknames here is a bad hack.
12233 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12234 # The linker will automatically build a .lib file if we build a DLL.
12235 old_archive_from_new_cmds='true'
12236 # FIXME: Should let the user specify the lib program.
12237 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12238 enable_shared_with_static_runtimes=yes
12243 darwin* | rhapsody*)
12246 archive_cmds_need_lc=no
12248 hardcode_automatic=yes
12249 hardcode_shlibpath_var=unsupported
12250 if test yes = "$lt_cv_ld_force_load"; then
12251 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\"`'
12254 whole_archive_flag_spec=''
12256 link_all_deplibs=yes
12257 allow_undefined_flag=$_lt_dar_allow_undefined
12258 case $cc_basename in
12259 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12260 *) _lt_dar_can_shared=$GCC ;;
12262 if test yes = "$_lt_dar_can_shared"; then
12263 output_verbose_link_cmd=func_echo_all
12264 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12265 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12266 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"
12267 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"
12276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12277 hardcode_libdir_flag_spec='-L$libdir'
12278 hardcode_shlibpath_var=no
12281 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12282 # support. Future versions do this automatically, but an explicit c++rt0.o
12283 # does not break anything, and helps significantly (at the cost of a little
12286 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12287 hardcode_libdir_flag_spec='-R$libdir'
12288 hardcode_direct=yes
12289 hardcode_shlibpath_var=no
12292 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12294 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12295 hardcode_direct=yes
12296 hardcode_minus_L=yes
12297 hardcode_shlibpath_var=no
12300 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12301 freebsd* | dragonfly*)
12302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12303 hardcode_libdir_flag_spec='-R$libdir'
12304 hardcode_direct=yes
12305 hardcode_shlibpath_var=no
12309 if test yes = "$GCC"; then
12310 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'
12312 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'
12314 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12315 hardcode_libdir_separator=:
12316 hardcode_direct=yes
12318 # hardcode_minus_L: Not really in the search PATH,
12319 # but as the default location of the library.
12320 hardcode_minus_L=yes
12321 export_dynamic_flag_spec='$wl-E'
12325 if test yes,no = "$GCC,$with_gnu_ld"; then
12326 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12328 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12330 if test no = "$with_gnu_ld"; then
12331 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12332 hardcode_libdir_separator=:
12333 hardcode_direct=yes
12334 hardcode_direct_absolute=yes
12335 export_dynamic_flag_spec='$wl-E'
12336 # hardcode_minus_L: Not really in the search PATH,
12337 # but as the default location of the library.
12338 hardcode_minus_L=yes
12343 if test yes,no = "$GCC,$with_gnu_ld"; then
12346 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12349 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12352 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12358 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12361 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12365 # Older versions of the 11.00 compiler do not understand -b yet
12366 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12368 $as_echo_n "checking if $CC understands -b... " >&6; }
12369 if ${lt_cv_prog_compiler__b+:} false; then :
12370 $as_echo_n "(cached) " >&6
12372 lt_cv_prog_compiler__b=no
12373 save_LDFLAGS=$LDFLAGS
12374 LDFLAGS="$LDFLAGS -b"
12375 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12376 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12377 # The linker can only warn and ignore the option if not recognized
12378 # So say no if there are warnings
12379 if test -s conftest.err; then
12380 # Append any errors to the config.log.
12381 cat conftest.err 1>&5
12382 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12384 if diff conftest.exp conftest.er2 >/dev/null; then
12385 lt_cv_prog_compiler__b=yes
12388 lt_cv_prog_compiler__b=yes
12392 LDFLAGS=$save_LDFLAGS
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12396 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12398 if test yes = "$lt_cv_prog_compiler__b"; then
12399 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12401 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12407 if test no = "$with_gnu_ld"; then
12408 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12409 hardcode_libdir_separator=:
12414 hardcode_shlibpath_var=no
12417 hardcode_direct=yes
12418 hardcode_direct_absolute=yes
12419 export_dynamic_flag_spec='$wl-E'
12421 # hardcode_minus_L: Not really in the search PATH,
12422 # but as the default location of the library.
12423 hardcode_minus_L=yes
12429 irix5* | irix6* | nonstopux*)
12430 if test yes = "$GCC"; then
12431 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'
12432 # Try to use the -exported_symbol ld option, if it does not
12433 # work, assume that -exports_file does not work either and
12434 # implicitly export all symbols.
12435 # This should be the same for all languages, so no per-tag cache variable.
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12437 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12438 if ${lt_cv_irix_exported_symbol+:} false; then :
12439 $as_echo_n "(cached) " >&6
12441 save_LDFLAGS=$LDFLAGS
12442 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445 int foo (void) { return 0; }
12447 if ac_fn_c_try_link "$LINENO"; then :
12448 lt_cv_irix_exported_symbol=yes
12450 lt_cv_irix_exported_symbol=no
12452 rm -f core conftest.err conftest.$ac_objext \
12453 conftest$ac_exeext conftest.$ac_ext
12454 LDFLAGS=$save_LDFLAGS
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12457 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12458 if test yes = "$lt_cv_irix_exported_symbol"; then
12459 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'
12462 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'
12463 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'
12465 archive_cmds_need_lc='no'
12466 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12467 hardcode_libdir_separator=:
12469 link_all_deplibs=yes
12473 case $cc_basename in
12475 # Fabrice Bellard et al's Tiny C Compiler
12477 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12486 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12488 hardcode_libdir_flag_spec='-R$libdir'
12489 hardcode_direct=yes
12490 hardcode_shlibpath_var=no
12494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12495 hardcode_direct=yes
12496 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12497 hardcode_libdir_separator=:
12498 hardcode_shlibpath_var=no
12504 openbsd* | bitrig*)
12505 if test -f /usr/libexec/ld.so; then
12506 hardcode_direct=yes
12507 hardcode_shlibpath_var=no
12508 hardcode_direct_absolute=yes
12509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12510 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12511 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12512 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12513 export_dynamic_flag_spec='$wl-E'
12515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12516 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12524 hardcode_libdir_flag_spec='-L$libdir'
12525 hardcode_minus_L=yes
12526 allow_undefined_flag=unsupported
12528 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12529 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12530 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12531 $ECHO EXPORTS >> $output_objdir/$libname.def~
12532 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12533 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12534 emximp -o $lib $output_objdir/$libname.def'
12535 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12536 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12537 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12538 $ECHO EXPORTS >> $output_objdir/$libname.def~
12539 prefix_cmds="$SED"~
12540 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12541 prefix_cmds="$prefix_cmds -e 1d";
12543 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12544 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12545 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12546 emximp -o $lib $output_objdir/$libname.def'
12547 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12548 enable_shared_with_static_runtimes=yes
12552 if test yes = "$GCC"; then
12553 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12554 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'
12556 allow_undefined_flag=' -expect_unresolved \*'
12557 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'
12559 archive_cmds_need_lc='no'
12560 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12561 hardcode_libdir_separator=:
12564 osf4* | osf5*) # as osf3* with the addition of -msym flag
12565 if test yes = "$GCC"; then
12566 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12567 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'
12568 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12570 allow_undefined_flag=' -expect_unresolved \*'
12571 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'
12572 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~
12573 $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'
12575 # Both c and cxx compiler support -rpath directly
12576 hardcode_libdir_flag_spec='-rpath $libdir'
12578 archive_cmds_need_lc='no'
12579 hardcode_libdir_separator=:
12583 no_undefined_flag=' -z defs'
12584 if test yes = "$GCC"; then
12586 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12587 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12588 $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'
12590 case `$CC -V 2>&1` in
12593 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12594 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12595 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12599 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12600 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12601 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12605 hardcode_libdir_flag_spec='-R$libdir'
12606 hardcode_shlibpath_var=no
12608 solaris2.[0-5] | solaris2.[0-5].*) ;;
12610 # The compiler driver will combine and reorder linker options,
12611 # but understands '-z linker_flag'. GCC discards it without '$wl',
12612 # but is careful enough not to reorder.
12613 # Supported since Solaris 2.6 (maybe 2.5.1?)
12614 if test yes = "$GCC"; then
12615 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12617 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12621 link_all_deplibs=yes
12625 if test sequent = "$host_vendor"; then
12626 # Use $CC to link under sequent, because it throws in some extra .o
12627 # files that make .init and .fini sections work.
12628 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12630 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12632 hardcode_libdir_flag_spec='-L$libdir'
12633 hardcode_direct=yes
12634 hardcode_minus_L=yes
12635 hardcode_shlibpath_var=no
12639 case $host_vendor in
12641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12642 hardcode_direct=yes # is this really true???
12645 ## LD is ld it makes a PLAMLIB
12646 ## CC just makes a GrossModule.
12647 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12648 reload_cmds='$CC -r -o $output$reload_objs'
12652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12653 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12656 runpath_var='LD_RUN_PATH'
12657 hardcode_shlibpath_var=no
12661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12662 hardcode_shlibpath_var=no
12663 export_dynamic_flag_spec='-Bexport'
12667 if test -d /usr/nec; then
12668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12669 hardcode_shlibpath_var=no
12670 runpath_var=LD_RUN_PATH
12671 hardcode_runpath_var=yes
12676 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12677 no_undefined_flag='$wl-z,text'
12678 archive_cmds_need_lc=no
12679 hardcode_shlibpath_var=no
12680 runpath_var='LD_RUN_PATH'
12682 if test yes = "$GCC"; then
12683 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12684 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12686 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12687 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12691 sysv5* | sco3.2v5* | sco5v6*)
12692 # Note: We CANNOT use -z defs as we might desire, because we do not
12693 # link with -lc, and that would cause any symbols used from libc to
12694 # always be unresolved, which means just about no library would
12695 # ever link correctly. If we're not using GNU ld we use -z text
12696 # though, which does catch some bad symbols but isn't as heavy-handed
12698 no_undefined_flag='$wl-z,text'
12699 allow_undefined_flag='$wl-z,nodefs'
12700 archive_cmds_need_lc=no
12701 hardcode_shlibpath_var=no
12702 hardcode_libdir_flag_spec='$wl-R,$libdir'
12703 hardcode_libdir_separator=':'
12704 link_all_deplibs=yes
12705 export_dynamic_flag_spec='$wl-Bexport'
12706 runpath_var='LD_RUN_PATH'
12708 if test yes = "$GCC"; then
12709 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12710 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12712 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12713 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12719 hardcode_libdir_flag_spec='-L$libdir'
12720 hardcode_shlibpath_var=no
12728 if test sni = "$host_vendor"; then
12730 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12731 export_dynamic_flag_spec='$wl-Blargedynsym'
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12738 $as_echo "$ld_shlibs" >&6; }
12739 test no = "$ld_shlibs" && can_build_shared=no
12741 with_gnu_ld=$with_gnu_ld
12758 # Do we need to explicitly link libc?
12760 case "x$archive_cmds_need_lc" in
12762 # Assume -lc should be added
12763 archive_cmds_need_lc=yes
12765 if test yes,yes = "$GCC,$enable_shared"; then
12766 case $archive_cmds in
12768 # FIXME: we may have to deal with multi-command sequences.
12771 # Test whether the compiler implicitly links with -lc since on some
12772 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12773 # to ld, don't add -lc before -lgcc.
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12775 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12776 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12777 $as_echo_n "(cached) " >&6
12780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12783 (eval $ac_compile) 2>&5
12785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12786 test $ac_status = 0; } 2>conftest.err; then
12789 libobjs=conftest.$ac_objext
12791 wl=$lt_prog_compiler_wl
12792 pic_flag=$lt_prog_compiler_pic
12798 lt_save_allow_undefined_flag=$allow_undefined_flag
12799 allow_undefined_flag=
12800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12801 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12804 test $ac_status = 0; }
12806 lt_cv_archive_cmds_need_lc=no
12808 lt_cv_archive_cmds_need_lc=yes
12810 allow_undefined_flag=$lt_save_allow_undefined_flag
12812 cat conftest.err 1>&5
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12818 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12819 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12978 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12980 if test yes = "$GCC"; then
12982 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12983 *) lt_awk_arg='/^libraries:/' ;;
12986 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12987 *) lt_sed_strip_eq='s|=/|/|g' ;;
12989 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12990 case $lt_search_path_spec in
12992 # if the path contains ";" then we assume it to be the separator
12993 # otherwise default to the standard path separator (i.e. ":") - it is
12994 # assumed that no part of a normal pathname contains ";" but that should
12995 # okay in the real world where ";" in dirpaths is itself problematic.
12996 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12999 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13002 # Ok, now we have the path, separated by spaces, we can step through it
13003 # and add multilib dir if necessary...
13004 lt_tmp_lt_search_path_spec=
13005 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13006 # ...but if some path component already ends with the multilib dir we assume
13007 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13008 case "$lt_multi_os_dir; $lt_search_path_spec " in
13009 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13013 for lt_sys_path in $lt_search_path_spec; do
13014 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13015 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13016 elif test -n "$lt_multi_os_dir"; then
13017 test -d "$lt_sys_path" && \
13018 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13021 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13022 BEGIN {RS = " "; FS = "/|\n";} {
13025 for (lt_i = NF; lt_i > 0; lt_i--) {
13026 if ($lt_i != "" && $lt_i != ".") {
13027 if ($lt_i == "..") {
13030 if (lt_count == 0) {
13031 lt_foo = "/" $lt_i lt_foo;
13038 if (lt_foo != "") { lt_freq[lt_foo]++; }
13039 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13041 # AWK program above erroneously prepends '/' to C:/dos/paths
13044 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13045 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13047 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13049 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13051 library_names_spec=
13052 libname_spec='lib$name'
13056 postuninstall_cmds=
13060 shlibpath_overrides_runpath=unknown
13062 dynamic_linker="$host_os ld.so"
13063 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13064 need_lib_prefix=unknown
13065 hardcode_into_libs=no
13067 # when you set need_version to no, make sure it does not cause -set_version
13068 # flags to be left without arguments
13069 need_version=unknown
13075 version_type=linux # correct to gnu/linux during the next big refactor
13076 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13077 shlibpath_var=LIBPATH
13079 # AIX 3 has no versioning support, so we append a major version to the name.
13080 soname_spec='$libname$release$shared_ext$major'
13084 version_type=linux # correct to gnu/linux during the next big refactor
13087 hardcode_into_libs=yes
13088 if test ia64 = "$host_cpu"; then
13089 # AIX 5 supports IA64
13090 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13091 shlibpath_var=LD_LIBRARY_PATH
13093 # With GCC up to 2.95.x, collect2 would create an import file
13094 # for dependence libraries. The import file would start with
13095 # the line '#! .'. This would cause the generated library to
13096 # depend on '.', always an invalid library. This was fixed in
13097 # development snapshots of GCC prior to 3.0.
13099 aix4 | aix4.[01] | aix4.[01].*)
13100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13102 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13105 can_build_shared=no
13109 # Using Import Files as archive members, it is possible to support
13110 # filename-based versioning of shared library archives on AIX. While
13111 # this would work for both with and without runtime linking, it will
13112 # prevent static linking of such archives. So we do filename-based
13113 # shared library versioning with .so extension only, which is used
13114 # when both runtime linking and shared linking is enabled.
13115 # Unfortunately, runtime linking may impact performance, so we do
13116 # not want this to be the default eventually. Also, we use the
13117 # versioned .so libs for executables only if there is the -brtl
13118 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13119 # To allow for filename-based versioning support, we need to create
13120 # libNAME.so.V as an archive file, containing:
13121 # *) an Import File, referring to the versioned filename of the
13122 # archive as well as the shared archive member, telling the
13123 # bitwidth (32 or 64) of that shared object, and providing the
13124 # list of exported symbols of that shared object, eventually
13125 # decorated with the 'weak' keyword
13126 # *) the shared object with the F_LOADONLY flag set, to really avoid
13127 # it being seen by the linker.
13128 # At run time we better use the real file rather than another symlink,
13129 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13131 case $with_aix_soname,$aix_use_runtimelinking in
13132 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13133 # soname into executable. Probably we can add versioning support to
13134 # collect2, so additional links can be useful in future.
13135 aix,yes) # traditional libtool
13136 dynamic_linker='AIX unversionable lib.so'
13137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13138 # instead of lib<name>.a to let people know that these are not
13139 # typical AIX shared libraries.
13140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13142 aix,no) # traditional AIX only
13143 dynamic_linker='AIX lib.a(lib.so.V)'
13144 # We preserve .a as extension for shared libraries through AIX4.2
13145 # and later when we are not doing run time linking.
13146 library_names_spec='$libname$release.a $libname.a'
13147 soname_spec='$libname$release$shared_ext$major'
13149 svr4,*) # full svr4 only
13150 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13151 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13152 # We do not specify a path in Import Files, so LIBPATH fires.
13153 shlibpath_overrides_runpath=yes
13155 *,yes) # both, prefer svr4
13156 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13157 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13158 # unpreferred sharedlib libNAME.a needs extra handling
13159 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"'
13160 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"'
13161 # We do not specify a path in Import Files, so LIBPATH fires.
13162 shlibpath_overrides_runpath=yes
13164 *,no) # both, prefer aix
13165 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13166 library_names_spec='$libname$release.a $libname.a'
13167 soname_spec='$libname$release$shared_ext$major'
13168 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13169 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)'
13170 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"'
13173 shlibpath_var=LIBPATH
13180 # Since July 2007 AmigaOS4 officially supports .so libraries.
13181 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13185 library_names_spec='$libname.ixlibrary $libname.a'
13186 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13187 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'
13193 library_names_spec='$libname$shared_ext'
13194 dynamic_linker="$host_os ld.so"
13195 shlibpath_var=LIBRARY_PATH
13199 version_type=linux # correct to gnu/linux during the next big refactor
13201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13202 soname_spec='$libname$release$shared_ext$major'
13203 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13204 shlibpath_var=LD_LIBRARY_PATH
13205 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13206 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13207 # the default ld.so.conf also contains /usr/contrib/lib and
13208 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13209 # libtool to hard-code these into programs
13212 cygwin* | mingw* | pw32* | cegcc*)
13213 version_type=windows
13218 case $GCC,$cc_basename in
13221 library_names_spec='$libname.dll.a'
13222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13223 postinstall_cmds='base_file=`basename \$file`~
13224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13225 dldir=$destdir/`dirname \$dlpath`~
13226 test -d \$dldir || mkdir -p \$dldir~
13227 $install_prog $dir/$dlname \$dldir/$dlname~
13228 chmod a+x \$dldir/$dlname~
13229 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13230 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13232 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13233 dlpath=$dir/\$dldll~
13235 shlibpath_overrides_runpath=yes
13239 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13240 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13242 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13245 # MinGW DLLs use traditional 'lib' prefix
13246 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13249 # pw32 DLLs use 'pw' prefix rather than 'lib'
13250 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13253 dynamic_linker='Win32 ld.exe'
13258 libname_spec='$name'
13259 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13260 library_names_spec='$libname.dll.lib'
13264 sys_lib_search_path_spec=
13267 for lt_path in $LIB
13270 # Let DOS variable expansion print the short 8.3 style file name.
13271 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13272 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13275 # Convert to MSYS style.
13276 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13279 # Convert to unix form, then to dos form, then back to unix form
13280 # but this time dos style (no spaces!) so that the unix form looks
13281 # like /cygdrive/c/PROGRA~1:/cygdr...
13282 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13283 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13284 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13287 sys_lib_search_path_spec=$LIB
13288 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13289 # It is most probably a Windows format PATH.
13290 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13292 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13294 # FIXME: find the short name or the path components, as spaces are
13295 # common. (e.g. "Program Files" -> "PROGRA~1")
13299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13300 postinstall_cmds='base_file=`basename \$file`~
13301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13302 dldir=$destdir/`dirname \$dlpath`~
13303 test -d \$dldir || mkdir -p \$dldir~
13304 $install_prog $dir/$dlname \$dldir/$dlname'
13305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13306 dlpath=$dir/\$dldll~
13308 shlibpath_overrides_runpath=yes
13309 dynamic_linker='Win32 link.exe'
13313 # Assume MSVC wrapper
13314 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13315 dynamic_linker='Win32 ld.exe'
13318 # FIXME: first we should search . and the directory the executable is in
13322 darwin* | rhapsody*)
13323 dynamic_linker="$host_os dyld"
13324 version_type=darwin
13327 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13328 soname_spec='$libname$release$major$shared_ext'
13329 shlibpath_overrides_runpath=yes
13330 shlibpath_var=DYLD_LIBRARY_PATH
13331 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13333 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13334 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13338 version_type=linux # correct to gnu/linux during the next big refactor
13341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13342 soname_spec='$libname$release$shared_ext$major'
13343 shlibpath_var=LD_LIBRARY_PATH
13346 freebsd* | dragonfly*)
13347 # DragonFly does not have aout. When/if they implement a new
13348 # versioning mechanism, adjust this.
13349 if test -x /usr/bin/objformat; then
13350 objformat=`/usr/bin/objformat`
13353 freebsd[23].*) objformat=aout ;;
13354 *) objformat=elf ;;
13357 version_type=freebsd-$objformat
13358 case $version_type in
13360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13361 soname_spec='$libname$release$shared_ext$major'
13366 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13370 shlibpath_var=LD_LIBRARY_PATH
13373 shlibpath_overrides_runpath=yes
13375 freebsd3.[01]* | freebsdelf3.[01]*)
13376 shlibpath_overrides_runpath=yes
13377 hardcode_into_libs=yes
13379 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13380 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13381 shlibpath_overrides_runpath=no
13382 hardcode_into_libs=yes
13384 *) # from 4.6 on, and DragonFly
13385 shlibpath_overrides_runpath=yes
13386 hardcode_into_libs=yes
13392 version_type=linux # correct to gnu/linux during the next big refactor
13395 dynamic_linker="$host_os runtime_loader"
13396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13397 soname_spec='$libname$release$shared_ext$major'
13398 shlibpath_var=LIBRARY_PATH
13399 shlibpath_overrides_runpath=no
13400 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13401 hardcode_into_libs=yes
13404 hpux9* | hpux10* | hpux11*)
13405 # Give a soname corresponding to the major version so that dld.sl refuses to
13406 # link against other versions.
13413 hardcode_into_libs=yes
13414 dynamic_linker="$host_os dld.so"
13415 shlibpath_var=LD_LIBRARY_PATH
13416 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test 32 = "$HPUX_IA64_MODE"; then
13420 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13421 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13423 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13424 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13429 hardcode_into_libs=yes
13430 dynamic_linker="$host_os dld.sl"
13431 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13434 soname_spec='$libname$release$shared_ext$major'
13435 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13440 dynamic_linker="$host_os dld.sl"
13441 shlibpath_var=SHLIB_PATH
13442 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13444 soname_spec='$libname$release$shared_ext$major'
13447 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13448 postinstall_cmds='chmod 555 $lib'
13449 # or fails outright, so override atomically:
13450 install_override_mode=555
13454 version_type=linux # correct to gnu/linux during the next big refactor
13457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13458 soname_spec='$libname$release$shared_ext$major'
13459 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13460 shlibpath_var=LD_LIBRARY_PATH
13461 shlibpath_overrides_runpath=no
13462 hardcode_into_libs=yes
13465 irix5* | irix6* | nonstopux*)
13467 nonstopux*) version_type=nonstopux ;;
13469 if test yes = "$lt_cv_prog_gnu_ld"; then
13470 version_type=linux # correct to gnu/linux during the next big refactor
13477 soname_spec='$libname$release$shared_ext$major'
13478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13480 irix5* | nonstopux*)
13481 libsuff= shlibsuff=
13484 case $LD in # libtool.m4 will add one of these switches to LD
13485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13486 libsuff= shlibsuff= libmagic=32-bit;;
13487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13488 libsuff=32 shlibsuff=N32 libmagic=N32;;
13489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13490 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13491 *) libsuff= shlibsuff= libmagic=never-match;;
13495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13496 shlibpath_overrides_runpath=no
13497 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13498 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13499 hardcode_into_libs=yes
13502 # No shared lib support for Linux oldld, aout, or coff.
13503 linux*oldld* | linux*aout* | linux*coff*)
13508 version_type=none # Android doesn't support versioned libraries.
13511 library_names_spec='$libname$release$shared_ext'
13512 soname_spec='$libname$release$shared_ext'
13514 shlibpath_var=LD_LIBRARY_PATH
13515 shlibpath_overrides_runpath=yes
13517 # This implies no fast_install, which is unacceptable.
13518 # Some rework will be needed to allow for fast_install
13519 # before this can be enabled.
13520 hardcode_into_libs=yes
13522 dynamic_linker='Android linker'
13523 # Don't embed -rpath directories since the linker doesn't support them.
13524 hardcode_libdir_flag_spec='-L$libdir'
13527 # This must be glibc/ELF.
13528 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13529 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13535 shlibpath_var=LD_LIBRARY_PATH
13536 shlibpath_overrides_runpath=no
13538 # Some binutils ld are patched to set DT_RUNPATH
13539 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13540 $as_echo_n "(cached) " >&6
13542 lt_cv_shlibpath_overrides_runpath=no
13543 save_LDFLAGS=$LDFLAGS
13544 save_libdir=$libdir
13545 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13546 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13558 if ac_fn_c_try_link "$LINENO"; then :
13559 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13560 lt_cv_shlibpath_overrides_runpath=yes
13563 rm -f core conftest.err conftest.$ac_objext \
13564 conftest$ac_exeext conftest.$ac_ext
13565 LDFLAGS=$save_LDFLAGS
13566 libdir=$save_libdir
13570 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13572 # This implies no fast_install, which is unacceptable.
13573 # Some rework will be needed to allow for fast_install
13574 # before this can be enabled.
13575 hardcode_into_libs=yes
13577 # Add ABI-specific directories to the system library path.
13578 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13580 # Ideally, we could use ldconfig to report *all* directores which are
13581 # searched for libraries, however this is still not possible. Aside from not
13582 # being certain /sbin/ldconfig is available, command
13583 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13584 # even though it is searched at run-time. Try to do the best guess by
13585 # appending ld.so.conf contents (and includes) to the search path.
13586 if test -f /etc/ld.so.conf; then
13587 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' ' '`
13588 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13591 # We used to test for /lib/ld.so.1 and disable shared libraries on
13592 # powerpc, because MkLinux only supported shared libraries with the
13593 # GNU dynamic linker. Since this was broken with cross compilers,
13594 # most powerpc-linux boxes support dynamic linking these days and
13595 # people can always --disable-shared, the test was removed, and we
13596 # assume the GNU/Linux dynamic linker is in use.
13597 dynamic_linker='GNU/Linux ld.so'
13604 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13605 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13607 dynamic_linker='NetBSD (a.out) ld.so'
13609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13610 soname_spec='$libname$release$shared_ext$major'
13611 dynamic_linker='NetBSD ld.elf_so'
13613 shlibpath_var=LD_LIBRARY_PATH
13614 shlibpath_overrides_runpath=yes
13615 hardcode_into_libs=yes
13619 version_type=linux # correct to gnu/linux during the next big refactor
13620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13621 shlibpath_var=LD_LIBRARY_PATH
13622 shlibpath_overrides_runpath=yes
13629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13630 soname_spec='$libname$release$shared_ext$major'
13631 shlibpath_var=LD_LIBRARY_PATH
13632 shlibpath_overrides_runpath=no
13633 hardcode_into_libs=yes
13634 dynamic_linker='ldqnx.so'
13637 openbsd* | bitrig*)
13639 sys_lib_dlsearch_path_spec=/usr/lib
13641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13646 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13648 shlibpath_var=LD_LIBRARY_PATH
13649 shlibpath_overrides_runpath=yes
13653 libname_spec='$name'
13654 version_type=windows
13658 # OS/2 can only load a DLL with a base name of 8 characters or less.
13659 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13660 v=$($ECHO $release$versuffix | tr -d .-);
13661 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13662 $ECHO $n$v`$shared_ext'
13663 library_names_spec='${libname}_dll.$libext'
13664 dynamic_linker='OS/2 ld.exe'
13665 shlibpath_var=BEGINLIBPATH
13666 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13668 postinstall_cmds='base_file=`basename \$file`~
13669 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13670 dldir=$destdir/`dirname \$dlpath`~
13671 test -d \$dldir || mkdir -p \$dldir~
13672 $install_prog $dir/$dlname \$dldir/$dlname~
13673 chmod a+x \$dldir/$dlname~
13674 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13675 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13678 dlpath=$dir/\$dldll~
13682 osf3* | osf4* | osf5*)
13686 soname_spec='$libname$release$shared_ext$major'
13687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13688 shlibpath_var=LD_LIBRARY_PATH
13689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13698 version_type=linux # correct to gnu/linux during the next big refactor
13701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13702 soname_spec='$libname$release$shared_ext$major'
13703 shlibpath_var=LD_LIBRARY_PATH
13704 shlibpath_overrides_runpath=yes
13705 hardcode_into_libs=yes
13706 # ldd complains unless libraries are executable
13707 postinstall_cmds='chmod +x $lib'
13712 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13714 shlibpath_var=LD_LIBRARY_PATH
13715 shlibpath_overrides_runpath=yes
13716 if test yes = "$with_gnu_ld"; then
13723 version_type=linux # correct to gnu/linux during the next big refactor
13724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13725 soname_spec='$libname$release$shared_ext$major'
13726 shlibpath_var=LD_LIBRARY_PATH
13727 case $host_vendor in
13729 shlibpath_overrides_runpath=no
13731 runpath_var=LD_RUN_PATH
13739 shlibpath_overrides_runpath=no
13740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13746 if test -d /usr/nec; then
13747 version_type=linux # correct to gnu/linux during the next big refactor
13748 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13749 soname_spec='$libname$shared_ext.$major'
13750 shlibpath_var=LD_LIBRARY_PATH
13754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13759 soname_spec='$libname$release$shared_ext$major'
13760 shlibpath_var=LD_LIBRARY_PATH
13761 shlibpath_overrides_runpath=yes
13762 hardcode_into_libs=yes
13763 if test yes = "$with_gnu_ld"; then
13764 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13766 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13769 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13773 sys_lib_dlsearch_path_spec='/usr/lib'
13777 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13778 version_type=linux # correct to gnu/linux during the next big refactor
13781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13782 shlibpath_var=LD_LIBRARY_PATH
13783 shlibpath_overrides_runpath=no
13784 hardcode_into_libs=yes
13788 version_type=linux # correct to gnu/linux during the next big refactor
13789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13790 soname_spec='$libname$release$shared_ext$major'
13791 shlibpath_var=LD_LIBRARY_PATH
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13799 $as_echo "$dynamic_linker" >&6; }
13800 test no = "$dynamic_linker" && can_build_shared=no
13802 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13803 if test yes = "$GCC"; then
13804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13807 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13808 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13811 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13812 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13815 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13816 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13818 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13819 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13821 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13822 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13921 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13923 if test -n "$hardcode_libdir_flag_spec" ||
13924 test -n "$runpath_var" ||
13925 test yes = "$hardcode_automatic"; then
13927 # We can hardcode non-existent directories.
13928 if test no != "$hardcode_direct" &&
13929 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13930 # have to relink, otherwise we might link with an installed library
13931 # when we should be linking with a yet-to-be-installed one
13932 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13933 test no != "$hardcode_minus_L"; then
13934 # Linking always hardcodes the temporary library directory.
13935 hardcode_action=relink
13937 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13938 hardcode_action=immediate
13941 # We cannot hardcode anything, or else we can only hardcode existing
13943 hardcode_action=unsupported
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13946 $as_echo "$hardcode_action" >&6; }
13948 if test relink = "$hardcode_action" ||
13949 test yes = "$inherit_rpath"; then
13950 # Fast installation is not supported
13951 enable_fast_install=no
13952 elif test yes = "$shlibpath_overrides_runpath" ||
13953 test no = "$enable_shared"; then
13954 # Fast installation is not necessary
13955 enable_fast_install=needless
13963 if test yes != "$enable_dlopen"; then
13964 enable_dlopen=unknown
13965 enable_dlopen_self=unknown
13966 enable_dlopen_self_static=unknown
13973 lt_cv_dlopen=load_add_on
13975 lt_cv_dlopen_self=yes
13978 mingw* | pw32* | cegcc*)
13979 lt_cv_dlopen=LoadLibrary
13984 lt_cv_dlopen=dlopen
13989 # if libdl is installed we need to link against it
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13991 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13992 if ${ac_cv_lib_dl_dlopen+:} false; then :
13993 $as_echo_n "(cached) " >&6
13995 ac_check_lib_save_LIBS=$LIBS
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
14000 /* Override any GCC internal prototype to avoid an error.
14001 Use char because int might match the return type of a GCC
14002 builtin and then its argument prototype would still apply. */
14015 if ac_fn_c_try_link "$LINENO"; then :
14016 ac_cv_lib_dl_dlopen=yes
14018 ac_cv_lib_dl_dlopen=no
14020 rm -f core conftest.err conftest.$ac_objext \
14021 conftest$ac_exeext conftest.$ac_ext
14022 LIBS=$ac_check_lib_save_LIBS
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14025 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14026 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14027 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14032 lt_cv_dlopen_self=yes
14039 # Don't try to run any link tests for TPF. We know it's impossible
14040 # because TPF is a cross-compiler, and we know how we open DSOs.
14041 lt_cv_dlopen=dlopen
14043 lt_cv_dlopen_self=no
14047 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14048 if test "x$ac_cv_func_shl_load" = xyes; then :
14049 lt_cv_dlopen=shl_load
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14052 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14053 if ${ac_cv_lib_dld_shl_load+:} false; then :
14054 $as_echo_n "(cached) " >&6
14056 ac_check_lib_save_LIBS=$LIBS
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14061 /* Override any GCC internal prototype to avoid an error.
14062 Use char because int might match the return type of a GCC
14063 builtin and then its argument prototype would still apply. */
14071 return shl_load ();
14076 if ac_fn_c_try_link "$LINENO"; then :
14077 ac_cv_lib_dld_shl_load=yes
14079 ac_cv_lib_dld_shl_load=no
14081 rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14083 LIBS=$ac_check_lib_save_LIBS
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14086 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14087 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14088 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14090 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14091 if test "x$ac_cv_func_dlopen" = xyes; then :
14092 lt_cv_dlopen=dlopen
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14095 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14096 if ${ac_cv_lib_dl_dlopen+:} false; then :
14097 $as_echo_n "(cached) " >&6
14099 ac_check_lib_save_LIBS=$LIBS
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14104 /* Override any GCC internal prototype to avoid an error.
14105 Use char because int might match the return type of a GCC
14106 builtin and then its argument prototype would still apply. */
14119 if ac_fn_c_try_link "$LINENO"; then :
14120 ac_cv_lib_dl_dlopen=yes
14122 ac_cv_lib_dl_dlopen=no
14124 rm -f core conftest.err conftest.$ac_objext \
14125 conftest$ac_exeext conftest.$ac_ext
14126 LIBS=$ac_check_lib_save_LIBS
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14129 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14130 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14131 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14134 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14135 if ${ac_cv_lib_svld_dlopen+:} false; then :
14136 $as_echo_n "(cached) " >&6
14138 ac_check_lib_save_LIBS=$LIBS
14139 LIBS="-lsvld $LIBS"
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14158 if ac_fn_c_try_link "$LINENO"; then :
14159 ac_cv_lib_svld_dlopen=yes
14161 ac_cv_lib_svld_dlopen=no
14163 rm -f core conftest.err conftest.$ac_objext \
14164 conftest$ac_exeext conftest.$ac_ext
14165 LIBS=$ac_check_lib_save_LIBS
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14168 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14169 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14170 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14173 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14174 if ${ac_cv_lib_dld_dld_link+:} false; then :
14175 $as_echo_n "(cached) " >&6
14177 ac_check_lib_save_LIBS=$LIBS
14179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14180 /* end confdefs.h. */
14182 /* Override any GCC internal prototype to avoid an error.
14183 Use char because int might match the return type of a GCC
14184 builtin and then its argument prototype would still apply. */
14192 return dld_link ();
14197 if ac_fn_c_try_link "$LINENO"; then :
14198 ac_cv_lib_dld_dld_link=yes
14200 ac_cv_lib_dld_dld_link=no
14202 rm -f core conftest.err conftest.$ac_objext \
14203 conftest$ac_exeext conftest.$ac_ext
14204 LIBS=$ac_check_lib_save_LIBS
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14207 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14208 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14209 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14230 if test no = "$lt_cv_dlopen"; then
14236 case $lt_cv_dlopen in
14238 save_CPPFLAGS=$CPPFLAGS
14239 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14241 save_LDFLAGS=$LDFLAGS
14242 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14245 LIBS="$lt_cv_dlopen_libs $LIBS"
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14248 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14249 if ${lt_cv_dlopen_self+:} false; then :
14250 $as_echo_n "(cached) " >&6
14252 if test yes = "$cross_compiling"; then :
14253 lt_cv_dlopen_self=cross
14255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14256 lt_status=$lt_dlunknown
14257 cat > conftest.$ac_ext <<_LT_EOF
14258 #line $LINENO "configure"
14259 #include "confdefs.h"
14268 # define LT_DLGLOBAL RTLD_GLOBAL
14271 # define LT_DLGLOBAL DL_GLOBAL
14273 # define LT_DLGLOBAL 0
14277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14278 find out it does not work in some platform. */
14279 #ifndef LT_DLLAZY_OR_NOW
14281 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14284 # define LT_DLLAZY_OR_NOW DL_LAZY
14287 # define LT_DLLAZY_OR_NOW RTLD_NOW
14290 # define LT_DLLAZY_OR_NOW DL_NOW
14292 # define LT_DLLAZY_OR_NOW 0
14299 /* When -fvisibility=hidden is used, assume the code has been annotated
14300 correspondingly for the symbols needed. */
14301 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14302 int fnord () __attribute__((visibility("default")));
14305 int fnord () { return 42; }
14308 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14309 int status = $lt_dlunknown;
14313 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14316 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14317 else puts (dlerror ());
14319 /* dlclose (self); */
14327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14328 (eval $ac_link) 2>&5
14330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14331 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14332 (./conftest; exit; ) >&5 2>/dev/null
14334 case x$lt_status in
14335 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14336 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14337 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14340 # compilation failed
14341 lt_cv_dlopen_self=no
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14349 $as_echo "$lt_cv_dlopen_self" >&6; }
14351 if test yes = "$lt_cv_dlopen_self"; then
14352 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14354 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14355 if ${lt_cv_dlopen_self_static+:} false; then :
14356 $as_echo_n "(cached) " >&6
14358 if test yes = "$cross_compiling"; then :
14359 lt_cv_dlopen_self_static=cross
14361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14362 lt_status=$lt_dlunknown
14363 cat > conftest.$ac_ext <<_LT_EOF
14364 #line $LINENO "configure"
14365 #include "confdefs.h"
14374 # define LT_DLGLOBAL RTLD_GLOBAL
14377 # define LT_DLGLOBAL DL_GLOBAL
14379 # define LT_DLGLOBAL 0
14383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14384 find out it does not work in some platform. */
14385 #ifndef LT_DLLAZY_OR_NOW
14387 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14390 # define LT_DLLAZY_OR_NOW DL_LAZY
14393 # define LT_DLLAZY_OR_NOW RTLD_NOW
14396 # define LT_DLLAZY_OR_NOW DL_NOW
14398 # define LT_DLLAZY_OR_NOW 0
14405 /* When -fvisibility=hidden is used, assume the code has been annotated
14406 correspondingly for the symbols needed. */
14407 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14408 int fnord () __attribute__((visibility("default")));
14411 int fnord () { return 42; }
14414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14415 int status = $lt_dlunknown;
14419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14422 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14423 else puts (dlerror ());
14425 /* dlclose (self); */
14433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14434 (eval $ac_link) 2>&5
14436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14437 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14438 (./conftest; exit; ) >&5 2>/dev/null
14440 case x$lt_status in
14441 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14442 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14443 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14446 # compilation failed
14447 lt_cv_dlopen_self_static=no
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14455 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14458 CPPFLAGS=$save_CPPFLAGS
14459 LDFLAGS=$save_LDFLAGS
14464 case $lt_cv_dlopen_self in
14465 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14466 *) enable_dlopen_self=unknown ;;
14469 case $lt_cv_dlopen_self_static in
14470 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14471 *) enable_dlopen_self_static=unknown ;;
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14494 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14495 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14496 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14497 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14499 $as_echo "yes" >&6; }
14501 # FIXME - insert some real tests, host_os isn't really good enough
14504 if test -n "$STRIP"; then
14505 striplib="$STRIP -x"
14506 old_striplib="$STRIP -S"
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14508 $as_echo "yes" >&6; }
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14511 $as_echo "no" >&6; }
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14516 $as_echo "no" >&6; }
14532 # Report what library types will actually be built
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14534 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14536 $as_echo "$can_build_shared" >&6; }
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14539 $as_echo_n "checking whether to build shared libraries... " >&6; }
14540 test no = "$can_build_shared" && enable_shared=no
14542 # On AIX, shared libraries and static libraries use the same namespace, and
14543 # are all built from PIC.
14546 test yes = "$enable_shared" && enable_static=no
14547 if test -n "$RANLIB"; then
14548 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14549 postinstall_cmds='$RANLIB $lib'
14554 if test ia64 != "$host_cpu"; then
14555 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14556 yes,aix,yes) ;; # shared object as lib.so file only
14557 yes,svr4,*) ;; # shared object as lib.so archive member only
14558 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14564 $as_echo "$enable_shared" >&6; }
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14567 $as_echo_n "checking whether to build static libraries... " >&6; }
14568 # Make sure either enable_shared or enable_static is yes.
14569 test yes = "$enable_shared" || enable_static=yes
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14571 $as_echo "$enable_static" >&6; }
14578 ac_cpp='$CPP $CPPFLAGS'
14579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14599 ac_config_commands="$ac_config_commands libtool"
14604 # Only expand once:
14616 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14617 if test -n "$ac_tool_prefix"; then
14618 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14619 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14621 $as_echo_n "checking for $ac_word... " >&6; }
14622 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14623 $as_echo_n "(cached) " >&6
14625 case $PKG_CONFIG in
14627 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631 for as_dir in $PATH
14634 test -z "$as_dir" && as_dir=.
14635 for ac_exec_ext in '' $ac_executable_extensions; do
14636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14637 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14648 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14649 if test -n "$PKG_CONFIG"; then
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14651 $as_echo "$PKG_CONFIG" >&6; }
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654 $as_echo "no" >&6; }
14659 if test -z "$ac_cv_path_PKG_CONFIG"; then
14660 ac_pt_PKG_CONFIG=$PKG_CONFIG
14661 # Extract the first word of "pkg-config", so it can be a program name with args.
14662 set dummy pkg-config; ac_word=$2
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14664 $as_echo_n "checking for $ac_word... " >&6; }
14665 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14666 $as_echo_n "(cached) " >&6
14668 case $ac_pt_PKG_CONFIG in
14670 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14674 for as_dir in $PATH
14677 test -z "$as_dir" && as_dir=.
14678 for ac_exec_ext in '' $ac_executable_extensions; do
14679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14680 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14691 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14692 if test -n "$ac_pt_PKG_CONFIG"; then
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14694 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697 $as_echo "no" >&6; }
14700 if test "x$ac_pt_PKG_CONFIG" = x; then
14703 case $cross_compiling:$ac_tool_warned in
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14707 ac_tool_warned=yes ;;
14709 PKG_CONFIG=$ac_pt_PKG_CONFIG
14712 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14716 if test -n "$PKG_CONFIG"; then
14717 _pkg_min_version=0.9.0
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14719 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14720 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14722 $as_echo "yes" >&6; }
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14725 $as_echo "no" >&6; }
14730 # Checks for header files.
14731 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 net/if.h
14733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14734 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14736 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14737 cat >>confdefs.h <<_ACEOF
14738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14746 # Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
14747 for ac_header in TargetConditionals.h
14749 ac_fn_c_check_header_mongrel "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default"
14750 if test "x$ac_cv_header_TargetConditionals_h" = xyes; then :
14751 cat >>confdefs.h <<_ACEOF
14752 #define HAVE_TARGETCONDITIONALS_H 1
14761 # Using own tests for int64* because autoconf builtin only give 32bit.
14762 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14763 if test "x$ac_cv_type_int8_t" = xyes; then :
14767 cat >>confdefs.h <<_ACEOF
14768 #define int8_t signed char
14773 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14774 if test "x$ac_cv_type_int16_t" = xyes; then :
14778 cat >>confdefs.h <<_ACEOF
14779 #define int16_t short
14784 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14785 if test "x$ac_cv_type_int32_t" = xyes; then :
14789 cat >>confdefs.h <<_ACEOF
14790 #define int32_t int
14795 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14796 if test "x$ac_cv_type_int64_t" = xyes; then :
14800 cat >>confdefs.h <<_ACEOF
14801 #define int64_t long long
14806 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14807 if test "x$ac_cv_type_uint8_t" = xyes; then :
14811 cat >>confdefs.h <<_ACEOF
14812 #define uint8_t unsigned char
14817 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14818 if test "x$ac_cv_type_uint16_t" = xyes; then :
14822 cat >>confdefs.h <<_ACEOF
14823 #define uint16_t unsigned short
14828 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14829 if test "x$ac_cv_type_uint32_t" = xyes; then :
14833 cat >>confdefs.h <<_ACEOF
14834 #define uint32_t unsigned int
14839 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14840 if test "x$ac_cv_type_uint64_t" = xyes; then :
14844 cat >>confdefs.h <<_ACEOF
14845 #define uint64_t unsigned long long
14850 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14851 if test "x$ac_cv_type_size_t" = xyes; then :
14855 cat >>confdefs.h <<_ACEOF
14856 #define size_t unsigned int
14861 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14862 if test "x$ac_cv_type_ssize_t" = xyes; then :
14866 cat >>confdefs.h <<_ACEOF
14867 #define ssize_t int
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14873 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14874 if ${ac_cv_type_uid_t+:} false; then :
14875 $as_echo_n "(cached) " >&6
14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14879 #include <sys/types.h>
14882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14883 $EGREP "uid_t" >/dev/null 2>&1; then :
14884 ac_cv_type_uid_t=yes
14886 ac_cv_type_uid_t=no
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14892 $as_echo "$ac_cv_type_uid_t" >&6; }
14893 if test $ac_cv_type_uid_t = no; then
14895 $as_echo "#define uid_t int" >>confdefs.h
14898 $as_echo "#define gid_t int" >>confdefs.h
14902 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14903 if test "x$ac_cv_type_pid_t" = xyes; then :
14907 cat >>confdefs.h <<_ACEOF
14913 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14914 if test "x$ac_cv_type_off_t" = xyes; then :
14918 cat >>confdefs.h <<_ACEOF
14919 #define off_t long int
14924 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14925 $ac_includes_default
14926 #ifdef HAVE_WINSOCK2_H
14927 # include <winsock2.h>
14931 if test "x$ac_cv_type_u_char" = xyes; then :
14935 $as_echo "#define u_char unsigned char" >>confdefs.h
14939 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14940 $ac_includes_default
14941 #ifdef HAVE_SYS_RESOURCE_H
14942 # include <sys/resource.h>
14946 if test "x$ac_cv_type_rlim_t" = xyes; then :
14950 $as_echo "#define rlim_t unsigned long" >>confdefs.h
14955 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14956 $ac_includes_default
14957 #ifdef HAVE_SYS_SOCKET_H
14958 # include <sys/socket.h>
14960 #ifdef HAVE_WS2TCPIP_H
14961 # include <ws2tcpip.h>
14965 if test "x$ac_cv_type_socklen_t" = xyes; then :
14969 $as_echo "#define socklen_t int" >>confdefs.h
14973 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14974 $ac_includes_default
14975 #ifdef HAVE_SYS_TYPES_H
14976 # include <sys/types.h>
14978 #ifdef HAVE_NETINET_IN_H
14979 # include <netinet/in.h>
14983 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14987 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14991 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14992 $ac_includes_default
14993 #ifdef HAVE_SYS_TYPES_H
14994 # include <sys/types.h>
14996 #ifdef HAVE_NETINET_IN_H
14997 # include <netinet/in.h>
15001 if test "x$ac_cv_type_in_port_t" = xyes; then :
15005 $as_echo "#define in_port_t uint16_t" >>confdefs.h
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
15010 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
15011 if test "$cross_compiling" = yes; then :
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
15013 $as_echo "cross-compile no" >&6; }
15015 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15017 case " $LIBOBJS " in
15018 *" memcmp.$ac_objext "* ) ;;
15019 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15029 #include <stdlib.h>
15030 #include <string.h>
15033 char a = 255, b = 0;
15034 if(memcmp(&a, &b, 1) < 0)
15040 if ac_fn_c_try_run "$LINENO"; then :
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15042 $as_echo "yes" >&6; }
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15045 $as_echo "no" >&6; }
15047 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15049 case " $LIBOBJS " in
15050 *" memcmp.$ac_objext "* ) ;;
15051 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15058 conftest.$ac_objext conftest.beam conftest.$ac_ext
15062 # The cast to long int works around a bug in the HP C Compiler
15063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15065 # This bug is HP SR number 8606223364.
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15067 $as_echo_n "checking size of time_t... " >&6; }
15068 if ${ac_cv_sizeof_time_t+:} false; then :
15069 $as_echo_n "(cached) " >&6
15071 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
15072 $ac_includes_default
15073 #ifdef TIME_WITH_SYS_TIME
15074 # include <sys/time.h>
15077 # ifdef HAVE_SYS_TIME_H
15078 # include <sys/time.h>
15087 if test "$ac_cv_type_time_t" = yes; then
15088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15090 as_fn_error 77 "cannot compute sizeof (time_t)
15091 See \`config.log' for more details" "$LINENO" 5; }
15093 ac_cv_sizeof_time_t=0
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15099 $as_echo "$ac_cv_sizeof_time_t" >&6; }
15103 cat >>confdefs.h <<_ACEOF
15104 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15108 # The cast to long int works around a bug in the HP C Compiler
15109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15111 # This bug is HP SR number 8606223364.
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15113 $as_echo_n "checking size of size_t... " >&6; }
15114 if ${ac_cv_sizeof_size_t+:} false; then :
15115 $as_echo_n "(cached) " >&6
15117 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15120 if test "$ac_cv_type_size_t" = yes; then
15121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15123 as_fn_error 77 "cannot compute sizeof (size_t)
15124 See \`config.log' for more details" "$LINENO" 5; }
15126 ac_cv_sizeof_size_t=0
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15132 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15136 cat >>confdefs.h <<_ACEOF
15137 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15142 # add option to disable the evil rpath
15144 # Check whether --enable-rpath was given.
15145 if test "${enable_rpath+set}" = set; then :
15146 enableval=$enable_rpath; enable_rpath=$enableval
15151 if test "x$enable_rpath" = xno; then
15152 ac_config_commands="$ac_config_commands disable-rpath"
15158 # check to see if libraries are needed for these functions.
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15160 $as_echo_n "checking for library containing inet_pton... " >&6; }
15161 if ${ac_cv_search_inet_pton+:} false; then :
15162 $as_echo_n "(cached) " >&6
15164 ac_func_search_save_LIBS=$LIBS
15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15168 /* Override any GCC internal prototype to avoid an error.
15169 Use char because int might match the return type of a GCC
15170 builtin and then its argument prototype would still apply. */
15178 return inet_pton ();
15183 for ac_lib in '' nsl; do
15184 if test -z "$ac_lib"; then
15185 ac_res="none required"
15188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15190 if ac_fn_c_try_link "$LINENO"; then :
15191 ac_cv_search_inet_pton=$ac_res
15193 rm -f core conftest.err conftest.$ac_objext \
15195 if ${ac_cv_search_inet_pton+:} false; then :
15199 if ${ac_cv_search_inet_pton+:} false; then :
15202 ac_cv_search_inet_pton=no
15204 rm conftest.$ac_ext
15205 LIBS=$ac_func_search_save_LIBS
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15208 $as_echo "$ac_cv_search_inet_pton" >&6; }
15209 ac_res=$ac_cv_search_inet_pton
15210 if test "$ac_res" != no; then :
15211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15216 $as_echo_n "checking for library containing socket... " >&6; }
15217 if ${ac_cv_search_socket+:} false; then :
15218 $as_echo_n "(cached) " >&6
15220 ac_func_search_save_LIBS=$LIBS
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15224 /* Override any GCC internal prototype to avoid an error.
15225 Use char because int might match the return type of a GCC
15226 builtin and then its argument prototype would still apply. */
15239 for ac_lib in '' socket; do
15240 if test -z "$ac_lib"; then
15241 ac_res="none required"
15244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15246 if ac_fn_c_try_link "$LINENO"; then :
15247 ac_cv_search_socket=$ac_res
15249 rm -f core conftest.err conftest.$ac_objext \
15251 if ${ac_cv_search_socket+:} false; then :
15255 if ${ac_cv_search_socket+:} false; then :
15258 ac_cv_search_socket=no
15260 rm conftest.$ac_ext
15261 LIBS=$ac_func_search_save_LIBS
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15264 $as_echo "$ac_cv_search_socket" >&6; }
15265 ac_res=$ac_cv_search_socket
15266 if test "$ac_res" != no; then :
15267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15272 # check wether strptime also works
15274 # check some functions of the OS before linking libs (while still runnable).
15275 for ac_header in unistd.h
15277 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15278 if test "x$ac_cv_header_unistd_h" = xyes; then :
15279 cat >>confdefs.h <<_ACEOF
15280 #define HAVE_UNISTD_H 1
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15288 $as_echo_n "checking for working chown... " >&6; }
15289 if ${ac_cv_func_chown_works+:} false; then :
15290 $as_echo_n "(cached) " >&6
15292 if test "$cross_compiling" = yes; then :
15293 ac_cv_func_chown_works=no
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h. */
15297 $ac_includes_default
15303 char *f = "conftest.chown";
15304 struct stat before, after;
15306 if (creat (f, 0600) < 0)
15308 if (stat (f, &before) < 0)
15310 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15312 if (stat (f, &after) < 0)
15314 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15320 if ac_fn_c_try_run "$LINENO"; then :
15321 ac_cv_func_chown_works=yes
15323 ac_cv_func_chown_works=no
15325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15326 conftest.$ac_objext conftest.beam conftest.$ac_ext
15329 rm -f conftest.chown
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15333 $as_echo "$ac_cv_func_chown_works" >&6; }
15334 if test $ac_cv_func_chown_works = yes; then
15336 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15340 for ac_header in vfork.h
15342 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15343 if test "x$ac_cv_header_vfork_h" = xyes; then :
15344 cat >>confdefs.h <<_ACEOF
15345 #define HAVE_VFORK_H 1
15352 for ac_func in fork vfork
15354 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15355 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15356 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15357 cat >>confdefs.h <<_ACEOF
15358 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15364 if test "x$ac_cv_func_fork" = xyes; then
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15366 $as_echo_n "checking for working fork... " >&6; }
15367 if ${ac_cv_func_fork_works+:} false; then :
15368 $as_echo_n "(cached) " >&6
15370 if test "$cross_compiling" = yes; then :
15371 ac_cv_func_fork_works=cross
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15375 $ac_includes_default
15380 /* By Ruediger Kuhlmann. */
15381 return fork () < 0;
15387 if ac_fn_c_try_run "$LINENO"; then :
15388 ac_cv_func_fork_works=yes
15390 ac_cv_func_fork_works=no
15392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15393 conftest.$ac_objext conftest.beam conftest.$ac_ext
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15398 $as_echo "$ac_cv_func_fork_works" >&6; }
15401 ac_cv_func_fork_works=$ac_cv_func_fork
15403 if test "x$ac_cv_func_fork_works" = xcross; then
15405 *-*-amigaos* | *-*-msdosdjgpp*)
15406 # Override, as these systems have only a dummy fork() stub
15407 ac_cv_func_fork_works=no
15410 ac_cv_func_fork_works=yes
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15414 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15416 ac_cv_func_vfork_works=$ac_cv_func_vfork
15417 if test "x$ac_cv_func_vfork" = xyes; then
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15419 $as_echo_n "checking for working vfork... " >&6; }
15420 if ${ac_cv_func_vfork_works+:} false; then :
15421 $as_echo_n "(cached) " >&6
15423 if test "$cross_compiling" = yes; then :
15424 ac_cv_func_vfork_works=cross
15426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15427 /* end confdefs.h. */
15428 /* Thanks to Paul Eggert for this test. */
15429 $ac_includes_default
15430 #include <sys/wait.h>
15431 #ifdef HAVE_VFORK_H
15432 # include <vfork.h>
15434 /* On some sparc systems, changes by the child to local and incoming
15435 argument registers are propagated back to the parent. The compiler
15436 is told about this with #include <vfork.h>, but some compilers
15437 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15438 static variable whose address is put into a register that is
15439 clobbered by the vfork. */
15442 sparc_address_test (int arg)
15444 sparc_address_test (arg) int arg;
15447 static pid_t child;
15465 pid_t parent = getpid ();
15468 sparc_address_test (0);
15473 /* Here is another test for sparc vfork register problems. This
15474 test uses lots of local variables, at least as many local
15475 variables as main has allocated so far including compiler
15476 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15477 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15478 reuse the register of parent for one of the local variables,
15479 since it will think that parent can't possibly be used any more
15480 in this routine. Assigning to the local variable will thus
15481 munge parent in the parent process. */
15483 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15484 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15485 /* Convince the compiler that p..p7 are live; otherwise, it might
15486 use the same hardware register for all 8 local variables. */
15487 if (p != p1 || p != p2 || p != p3 || p != p4
15488 || p != p5 || p != p6 || p != p7)
15491 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15492 from child file descriptors. If the child closes a descriptor
15493 before it execs or exits, this munges the parent's descriptor
15494 as well. Test for this by closing stdout in the child. */
15495 _exit(close(fileno(stdout)) != 0);
15500 while (wait(&status) != child)
15503 /* Was there some problem with vforking? */
15506 /* Did the child fail? (This shouldn't happen.) */
15509 /* Did the vfork/compiler bug occur? */
15510 || parent != getpid()
15512 /* Did the file descriptor bug occur? */
15513 || fstat(fileno(stdout), &st) != 0
15518 if ac_fn_c_try_run "$LINENO"; then :
15519 ac_cv_func_vfork_works=yes
15521 ac_cv_func_vfork_works=no
15523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15524 conftest.$ac_objext conftest.beam conftest.$ac_ext
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15529 $as_echo "$ac_cv_func_vfork_works" >&6; }
15532 if test "x$ac_cv_func_fork_works" = xcross; then
15533 ac_cv_func_vfork_works=$ac_cv_func_vfork
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15535 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15538 if test "x$ac_cv_func_vfork_works" = xyes; then
15540 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15544 $as_echo "#define vfork fork" >>confdefs.h
15547 if test "x$ac_cv_func_fork_works" = xyes; then
15549 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15554 $as_echo_n "checking return type of signal handlers... " >&6; }
15555 if ${ac_cv_type_signal+:} false; then :
15556 $as_echo_n "(cached) " >&6
15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h. */
15560 #include <sys/types.h>
15561 #include <signal.h>
15566 return *(signal (0, 0)) (0) == 1;
15571 if ac_fn_c_try_compile "$LINENO"; then :
15572 ac_cv_type_signal=int
15574 ac_cv_type_signal=void
15576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15579 $as_echo "$ac_cv_type_signal" >&6; }
15581 cat >>confdefs.h <<_ACEOF
15582 #define RETSIGTYPE $ac_cv_type_signal
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15587 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15588 if ${ac_cv_sys_largefile_source+:} false; then :
15589 $as_echo_n "(cached) " >&6
15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593 /* end confdefs.h. */
15594 #include <sys/types.h> /* for off_t */
15599 int (*fp) (FILE *, off_t, int) = fseeko;
15600 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15605 if ac_fn_c_try_link "$LINENO"; then :
15606 ac_cv_sys_largefile_source=no; break
15608 rm -f core conftest.err conftest.$ac_objext \
15609 conftest$ac_exeext conftest.$ac_ext
15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h. */
15612 #define _LARGEFILE_SOURCE 1
15613 #include <sys/types.h> /* for off_t */
15618 int (*fp) (FILE *, off_t, int) = fseeko;
15619 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15624 if ac_fn_c_try_link "$LINENO"; then :
15625 ac_cv_sys_largefile_source=1; break
15627 rm -f core conftest.err conftest.$ac_objext \
15628 conftest$ac_exeext conftest.$ac_ext
15629 ac_cv_sys_largefile_source=unknown
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15634 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15635 case $ac_cv_sys_largefile_source in #(
15638 cat >>confdefs.h <<_ACEOF
15639 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15645 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15646 # in glibc 2.1.3, but that breaks too many other things.
15647 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15648 if test $ac_cv_sys_largefile_source != unknown; then
15650 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15655 # Check whether --enable-largefile was given.
15656 if test "${enable_largefile+set}" = set; then :
15657 enableval=$enable_largefile;
15660 if test "$enable_largefile" != no; then
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15663 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15664 if ${ac_cv_sys_largefile_CC+:} false; then :
15665 $as_echo_n "(cached) " >&6
15667 ac_cv_sys_largefile_CC=no
15668 if test "$GCC" != yes; then
15671 # IRIX 6.2 and later do not support large files by default,
15672 # so use the C compiler's -n32 option if that helps.
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15675 #include <sys/types.h>
15676 /* Check that off_t can represent 2**63 - 1 correctly.
15677 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15678 since some C++ compilers masquerading as C compilers
15679 incorrectly reject 9223372036854775807. */
15680 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15681 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15682 && LARGE_OFF_T % 2147483647 == 1)
15692 if ac_fn_c_try_compile "$LINENO"; then :
15695 rm -f core conftest.err conftest.$ac_objext
15697 if ac_fn_c_try_compile "$LINENO"; then :
15698 ac_cv_sys_largefile_CC=' -n32'; break
15700 rm -f core conftest.err conftest.$ac_objext
15704 rm -f conftest.$ac_ext
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15708 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15709 if test "$ac_cv_sys_largefile_CC" != no; then
15710 CC=$CC$ac_cv_sys_largefile_CC
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15714 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15715 if ${ac_cv_sys_file_offset_bits+:} false; then :
15716 $as_echo_n "(cached) " >&6
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 #include <sys/types.h>
15722 /* Check that off_t can represent 2**63 - 1 correctly.
15723 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15724 since some C++ compilers masquerading as C compilers
15725 incorrectly reject 9223372036854775807. */
15726 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15727 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15728 && LARGE_OFF_T % 2147483647 == 1)
15738 if ac_fn_c_try_compile "$LINENO"; then :
15739 ac_cv_sys_file_offset_bits=no; break
15741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h. */
15744 #define _FILE_OFFSET_BITS 64
15745 #include <sys/types.h>
15746 /* Check that off_t can represent 2**63 - 1 correctly.
15747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15748 since some C++ compilers masquerading as C compilers
15749 incorrectly reject 9223372036854775807. */
15750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15752 && LARGE_OFF_T % 2147483647 == 1)
15762 if ac_fn_c_try_compile "$LINENO"; then :
15763 ac_cv_sys_file_offset_bits=64; break
15765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766 ac_cv_sys_file_offset_bits=unknown
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15771 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15772 case $ac_cv_sys_file_offset_bits in #(
15775 cat >>confdefs.h <<_ACEOF
15776 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15781 if test $ac_cv_sys_file_offset_bits = unknown; then
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15783 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15784 if ${ac_cv_sys_large_files+:} false; then :
15785 $as_echo_n "(cached) " >&6
15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15790 #include <sys/types.h>
15791 /* Check that off_t can represent 2**63 - 1 correctly.
15792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15793 since some C++ compilers masquerading as C compilers
15794 incorrectly reject 9223372036854775807. */
15795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15797 && LARGE_OFF_T % 2147483647 == 1)
15807 if ac_fn_c_try_compile "$LINENO"; then :
15808 ac_cv_sys_large_files=no; break
15810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15813 #define _LARGE_FILES 1
15814 #include <sys/types.h>
15815 /* Check that off_t can represent 2**63 - 1 correctly.
15816 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15817 since some C++ compilers masquerading as C compilers
15818 incorrectly reject 9223372036854775807. */
15819 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15821 && LARGE_OFF_T % 2147483647 == 1)
15831 if ac_fn_c_try_compile "$LINENO"; then :
15832 ac_cv_sys_large_files=1; break
15834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15835 ac_cv_sys_large_files=unknown
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15840 $as_echo "$ac_cv_sys_large_files" >&6; }
15841 case $ac_cv_sys_large_files in #(
15844 cat >>confdefs.h <<_ACEOF
15845 #define _LARGE_FILES $ac_cv_sys_large_files
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15859 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15860 cache=_D_LARGEFILE_SOURCE_1
15861 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15862 $as_echo_n "(cached) " >&6
15868 int a = fseeko(stdin, 0, 0);
15872 echo 'void f(){}' >>conftest.c
15873 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15874 eval "cv_prog_cc_flag_needed_$cache=no"
15877 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15878 eval "cv_prog_cc_flag_needed_$cache=yes"
15880 eval "cv_prog_cc_flag_needed_$cache=fail"
15881 #echo 'Test with flag fails too!'
15883 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15884 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15889 rm -f conftest conftest.c conftest.o
15893 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15895 $as_echo "yes" >&6; }
15897 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15899 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901 $as_echo "no" >&6; }
15902 #echo 'Test with flag is no!'
15904 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15905 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15911 $as_echo "failed" >&6; }
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15920 $as_echo_n "checking if nonblocking sockets work... " >&6; }
15921 if echo $target | grep mingw32 >/dev/null; then
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15923 $as_echo "no (windows)" >&6; }
15925 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15928 if test "$cross_compiling" = yes; then :
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15931 $as_echo "crosscompile(yes)" >&6; }
15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935 /* end confdefs.h. */
15939 #include <string.h>
15940 #include <stdlib.h>
15943 #ifdef HAVE_SYS_TYPES_H
15944 #include <sys/types.h>
15946 #ifdef HAVE_SYS_SOCKET_H
15947 #include <sys/socket.h>
15949 #ifdef HAVE_NETINET_IN_H
15950 #include <netinet/in.h>
15952 #ifdef HAVE_ARPA_INET_H
15953 #include <arpa/inet.h>
15955 #ifdef HAVE_UNISTD_H
15956 #include <unistd.h>
15968 struct sockaddr_in a;
15969 /* test if select and nonblocking reads work well together */
15971 fork child to send 10 messages.
15973 then try to nonblocking read the 10 messages
15974 then, nonblocking read must give EAGAIN
15977 port = 12345 + (time(0)%32);
15978 sfd = socket(PF_INET, SOCK_DGRAM, 0);
15983 memset(&a, 0, sizeof(a));
15984 a.sin_family = AF_INET;
15985 a.sin_port = htons(port);
15986 a.sin_addr.s_addr = inet_addr("127.0.0.1");
15987 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15991 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15996 cfd = socket(PF_INET, SOCK_DGRAM, 0);
15998 perror("client socket");
16002 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
16003 perror("client bind");
16006 a.sin_port = htons(port);
16008 /* no handler, causes exit in 10 seconds */
16011 /* send and receive on the socket */
16012 if((p=fork()) == 0) {
16013 for(i=0; i<num; i++) {
16014 if(sendto(cfd, &i, sizeof(i), 0,
16015 (struct sockaddr*)&a, sizeof(a)) < 0) {
16029 FD_SET(sfd, &rset);
16030 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
16036 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
16037 if(errno == EAGAIN)
16044 /* now we want to get EAGAIN: nonblocking goodness */
16046 recv(sfd, &x, sizeof(x), 0);
16047 if(errno != EAGAIN) {
16048 perror("trying to recv again");
16051 /* EAGAIN encountered */
16060 if ac_fn_c_try_run "$LINENO"; then :
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16063 $as_echo "yes" >&6; }
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16068 $as_echo "no" >&6; }
16070 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
16074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16075 conftest.$ac_objext conftest.beam conftest.$ac_ext
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
16082 $as_echo_n "checking whether mkdir has one arg... " >&6; }
16083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16084 /* end confdefs.h. */
16087 #include <unistd.h>
16088 #ifdef HAVE_WINSOCK2_H
16089 #include <winsock2.h>
16091 #ifdef HAVE_SYS_STAT_H
16092 #include <sys/stat.h>
16099 (void)mkdir("directory");
16105 if ac_fn_c_try_compile "$LINENO"; then :
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16107 $as_echo "yes" >&6; }
16109 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16114 $as_echo "no" >&6; }
16117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16119 for ac_func in strptime
16121 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
16122 if test "x$ac_cv_func_strptime" = xyes; then :
16123 cat >>confdefs.h <<_ACEOF
16124 #define HAVE_STRPTIME 1
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
16128 $as_echo_n "checking whether strptime works... " >&6; }
16129 if test c${cross_compiling} = cno; then
16130 if test "$cross_compiling" = yes; then :
16131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16133 as_fn_error $? "cannot run test program while cross compiling
16134 See \`config.log' for more details" "$LINENO" 5; }
16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16139 #define _XOPEN_SOURCE 600
16141 int main(void) { struct tm tm; char *res;
16142 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);
16143 if (!res) return 2;
16144 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
16145 if (!res) return 1; return 0; }
16148 if ac_fn_c_try_run "$LINENO"; then :
16149 eval "ac_cv_c_strptime_works=yes"
16151 eval "ac_cv_c_strptime_works=no"
16153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16154 conftest.$ac_objext conftest.beam conftest.$ac_ext
16158 eval "ac_cv_c_strptime_works=maybe"
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
16161 $as_echo "$ac_cv_c_strptime_works" >&6; }
16162 if test $ac_cv_c_strptime_works = no; then
16163 case " $LIBOBJS " in
16164 *" strptime.$ac_objext "* ) ;;
16165 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16171 cat >>confdefs.h <<_ACEOF
16172 #define STRPTIME_WORKS 1
16178 case " $LIBOBJS " in
16179 *" strptime.$ac_objext "* ) ;;
16180 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16188 # check if we can use SO_REUSEPORT
16189 if echo "$host" | $GREP -i -e linux -e dragonfly >/dev/null; then
16191 $as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
16195 $as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
16199 # Include systemd.m4 - begin
16200 # macros for configuring systemd
16201 # Copyright 2015, Sami Kerola, CloudFlare.
16203 # Check whether --enable-systemd was given.
16204 if test "${enable_systemd+set}" = set; then :
16205 enableval=$enable_systemd;
16211 if test "x$enable_systemd" != xno; then :
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
16217 $as_echo_n "checking for SYSTEMD... " >&6; }
16219 if test -n "$SYSTEMD_CFLAGS"; then
16220 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
16221 elif test -n "$PKG_CONFIG"; then
16222 if test -n "$PKG_CONFIG" && \
16223 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16224 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16227 test $ac_status = 0; }; then
16228 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
16229 test "x$?" != "x0" && pkg_failed=yes
16236 if test -n "$SYSTEMD_LIBS"; then
16237 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
16238 elif test -n "$PKG_CONFIG"; then
16239 if test -n "$PKG_CONFIG" && \
16240 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16241 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16244 test $ac_status = 0; }; then
16245 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
16246 test "x$?" != "x0" && pkg_failed=yes
16256 if test $pkg_failed = yes; then
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16258 $as_echo "no" >&6; }
16260 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16261 _pkg_short_errors_supported=yes
16263 _pkg_short_errors_supported=no
16265 if test $_pkg_short_errors_supported = yes; then
16266 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
16268 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
16270 # Put the nasty error message in config.log where it belongs
16271 echo "$SYSTEMD_PKG_ERRORS" >&5
16274 elif test $pkg_failed = untried; then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16276 $as_echo "no" >&6; }
16279 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
16280 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16282 $as_echo "yes" >&6; }
16285 if test "x$have_systemd" != "xyes"; then :
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
16290 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
16292 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
16293 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
16294 elif test -n "$PKG_CONFIG"; then
16295 if test -n "$PKG_CONFIG" && \
16296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16297 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16300 test $ac_status = 0; }; then
16301 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16302 test "x$?" != "x0" && pkg_failed=yes
16309 if test -n "$SYSTEMD_DAEMON_LIBS"; then
16310 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
16311 elif test -n "$PKG_CONFIG"; then
16312 if test -n "$PKG_CONFIG" && \
16313 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16314 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16317 test $ac_status = 0; }; then
16318 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16319 test "x$?" != "x0" && pkg_failed=yes
16329 if test $pkg_failed = yes; then
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16331 $as_echo "no" >&6; }
16333 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16334 _pkg_short_errors_supported=yes
16336 _pkg_short_errors_supported=no
16338 if test $_pkg_short_errors_supported = yes; then
16339 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16341 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16343 # Put the nasty error message in config.log where it belongs
16344 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
16346 have_systemd_daemon=no
16347 elif test $pkg_failed = untried; then
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16349 $as_echo "no" >&6; }
16350 have_systemd_daemon=no
16352 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
16353 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16355 $as_echo "yes" >&6; }
16356 have_systemd_daemon=yes
16358 if test "x$have_systemd_daemon" = "xyes"; then :
16363 case $enable_systemd:$have_systemd in #(
16365 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
16368 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
16370 LIBS="$LIBS $SYSTEMD_LIBS"
16379 if test "x$have_systemd" = xyes; then
16381 USE_SYSTEMD_FALSE='#'
16383 USE_SYSTEMD_TRUE='#'
16388 # Include systemd.m4 - end
16390 # set memory allocation checking if requested
16391 # Check whether --enable-alloc-checks was given.
16392 if test "${enable_alloc_checks+set}" = set; then :
16393 enableval=$enable_alloc_checks;
16396 # Check whether --enable-alloc-lite was given.
16397 if test "${enable_alloc_lite+set}" = set; then :
16398 enableval=$enable_alloc_lite;
16401 # Check whether --enable-alloc-nonregional was given.
16402 if test "${enable_alloc_nonregional+set}" = set; then :
16403 enableval=$enable_alloc_nonregional;
16406 if test x_$enable_alloc_nonregional = x_yes; then
16408 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
16411 if test x_$enable_alloc_checks = x_yes; then
16413 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
16415 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
16417 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
16420 if test x_$enable_alloc_lite = x_yes; then
16422 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16427 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16428 if test "$cross_compiling" = yes; then :
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
16430 $as_echo "no (crosscompile)" >&6; }
16431 case " $LIBOBJS " in
16432 *" malloc.$ac_objext "* ) ;;
16433 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16438 cat >>confdefs.h <<_ACEOF
16439 #define malloc rpl_malloc_unbound
16443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16444 /* end confdefs.h. */
16445 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16446 #include <stdlib.h>
16454 if(malloc(0) != 0) return 1;
16460 if ac_fn_c_try_run "$LINENO"; then :
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16462 $as_echo "no" >&6; }
16463 case " $LIBOBJS " in
16464 *" malloc.$ac_objext "* ) ;;
16465 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16470 cat >>confdefs.h <<_ACEOF
16471 #define malloc rpl_malloc_unbound
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16476 $as_echo "yes" >&6; }
16478 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16482 conftest.$ac_objext conftest.beam conftest.$ac_ext
16489 # check windows threads (we use them, not pthreads, on windows).
16490 if test "$on_mingw" = "yes"; then
16491 # check windows threads
16492 for ac_header in windows.h
16494 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16496 if test "x$ac_cv_header_windows_h" = xyes; then :
16497 cat >>confdefs.h <<_ACEOF
16498 #define HAVE_WINDOWS_H 1
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
16506 $as_echo_n "checking for CreateThread... " >&6; }
16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16510 #ifdef HAVE_WINDOWS_H
16511 #include <windows.h>
16518 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16524 if ac_fn_c_try_compile "$LINENO"; then :
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16526 $as_echo "yes" >&6; }
16528 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16533 $as_echo "no" >&6; }
16536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16539 # not on mingw, check thread libraries.
16541 # check for thread library.
16542 # check this first, so that the pthread lib does not get linked in via
16543 # libssl or libpython, and thus distorts the tests, and we end up using
16544 # the non-threadsafe C libraries.
16546 # Check whether --with-pthreads was given.
16547 if test "${with_pthreads+set}" = set; then :
16548 withval=$with_pthreads;
16553 ub_have_pthreads=no
16554 if test x_$withval != x_no; then
16558 ac_cpp='$CPP $CPPFLAGS'
16559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16565 # We used to check for pthread.h first, but this fails if pthread.h
16566 # requires special compiler flags (e.g. on True64 or Sequent).
16567 # It gets checked for in the link test anyway.
16569 # First of all, check if the user has set any of the PTHREAD_LIBS,
16570 # etcetera environment variables, and if threads linking works using
16572 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16573 save_CFLAGS="$CFLAGS"
16574 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16576 LIBS="$PTHREAD_LIBS $LIBS"
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16578 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580 /* end confdefs.h. */
16582 /* Override any GCC internal prototype to avoid an error.
16583 Use char because int might match the return type of a GCC
16584 builtin and then its argument prototype would still apply. */
16588 char pthread_join ();
16592 return pthread_join ();
16597 if ac_fn_c_try_link "$LINENO"; then :
16600 rm -f core conftest.err conftest.$ac_objext \
16601 conftest$ac_exeext conftest.$ac_ext
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16603 $as_echo "$ax_pthread_ok" >&6; }
16604 if test x"$ax_pthread_ok" = xno; then
16609 CFLAGS="$save_CFLAGS"
16612 # We must check for the threads library under a number of different
16613 # names; the ordering is very important because some systems
16614 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16615 # libraries is broken (non-POSIX).
16617 # Create a list of thread flags to try. Items starting with a "-" are
16618 # C compiler flags, and other items are library names, except for "none"
16619 # which indicates that we try without any flags at all, and "pthread-config"
16620 # which is a program returning the flags for the Pth emulation library.
16622 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16624 # The ordering *is* (sometimes) important. Some notes on the
16625 # individual items follow:
16627 # pthreads: AIX (must check this before -lpthread)
16628 # none: in case threads are in libc; should be tried before -Kthread and
16629 # other compiler flags to prevent continual compiler warnings
16630 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16631 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16632 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16633 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16634 # -pthreads: Solaris/gcc
16635 # -mthreads: Mingw32/gcc, Lynx/gcc
16636 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16637 # doesn't hurt to check since this sometimes defines pthreads too;
16638 # also defines -D_REENTRANT)
16639 # ... -mt is also the pthreads flag for HP/aCC
16640 # pthread: Linux, etcetera
16641 # --thread-safe: KAI C++
16642 # pthread-config: use pthread-config program (for GNU Pth library)
16647 # On Solaris (at least, for some versions), libc contains stubbed
16648 # (non-functional) versions of the pthreads routines, so link-based
16649 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16650 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16651 # a function called by this macro, so we could check for that, but
16652 # who knows whether they'll stub that too in a future libc.) So,
16653 # we'll just look for -pthreads and -lpthread first:
16655 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16659 ax_pthread_flags="-pthread $ax_pthread_flags"
16663 # Clang doesn't consider unrecognized options an error unless we specify
16664 # -Werror. We throw in some extra Clang-specific options to ensure that
16665 # this doesn't happen for GCC, which also accepts -Werror.
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16668 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16669 save_CFLAGS="$CFLAGS"
16670 ax_pthread_extra_flags="-Werror"
16671 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h. */
16683 if ac_fn_c_try_compile "$LINENO"; then :
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16685 $as_echo "yes" >&6; }
16687 ax_pthread_extra_flags=
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16689 $as_echo "no" >&6; }
16691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16692 CFLAGS="$save_CFLAGS"
16694 if test x"$ax_pthread_ok" = xno; then
16695 for flag in $ax_pthread_flags; do
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16700 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16705 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16706 PTHREAD_CFLAGS="$flag"
16710 # Extract the first word of "pthread-config", so it can be a program name with args.
16711 set dummy pthread-config; ac_word=$2
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16713 $as_echo_n "checking for $ac_word... " >&6; }
16714 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16715 $as_echo_n "(cached) " >&6
16717 if test -n "$ax_pthread_config"; then
16718 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16721 for as_dir in $PATH
16724 test -z "$as_dir" && as_dir=.
16725 for ac_exec_ext in '' $ac_executable_extensions; do
16726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16727 ac_cv_prog_ax_pthread_config="yes"
16728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16735 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16738 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16739 if test -n "$ax_pthread_config"; then
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16741 $as_echo "$ax_pthread_config" >&6; }
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16744 $as_echo "no" >&6; }
16748 if test x"$ax_pthread_config" = xno; then continue; fi
16749 PTHREAD_CFLAGS="`pthread-config --cflags`"
16750 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16755 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16756 PTHREAD_LIBS="-l$flag"
16761 save_CFLAGS="$CFLAGS"
16762 LIBS="$PTHREAD_LIBS $LIBS"
16763 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16765 # Check for various functions. We must include pthread.h,
16766 # since some functions may be macros. (On the Sequent, we
16767 # need a special flag -Kthread to make this header compile.)
16768 # We check for pthread_join because it is in -lpthread on IRIX
16769 # while pthread_create is in libc. We check for pthread_attr_init
16770 # due to DEC craziness with -lpthreads. We check for
16771 # pthread_cleanup_push because it is one of the few pthread
16772 # functions on Solaris that doesn't have a non-functional libc stub.
16773 # We try pthread_create on general principles.
16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h. */
16776 #include <pthread.h>
16777 static void routine(void *a) { *((int*)a) = 0; }
16778 static void *start_routine(void *a) { return a; }
16782 pthread_t th; pthread_attr_t attr;
16783 pthread_create(&th, 0, start_routine, 0);
16784 pthread_join(th, 0);
16785 pthread_attr_init(&attr);
16786 pthread_cleanup_push(routine, 0);
16787 pthread_cleanup_pop(0) /* ; */
16792 if ac_fn_c_try_link "$LINENO"; then :
16795 rm -f core conftest.err conftest.$ac_objext \
16796 conftest$ac_exeext conftest.$ac_ext
16799 CFLAGS="$save_CFLAGS"
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16802 $as_echo "$ax_pthread_ok" >&6; }
16803 if test "x$ax_pthread_ok" = xyes; then
16812 # Various other checks:
16813 if test "x$ax_pthread_ok" = xyes; then
16815 LIBS="$PTHREAD_LIBS $LIBS"
16816 save_CFLAGS="$CFLAGS"
16817 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16819 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16821 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16823 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16825 /* end confdefs.h. */
16826 #include <pthread.h>
16830 int attr = $attr; return attr /* ; */
16835 if ac_fn_c_try_link "$LINENO"; then :
16836 attr_name=$attr; break
16838 rm -f core conftest.err conftest.$ac_objext \
16839 conftest$ac_exeext conftest.$ac_ext
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16842 $as_echo "$attr_name" >&6; }
16843 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16845 cat >>confdefs.h <<_ACEOF
16846 #define PTHREAD_CREATE_JOINABLE $attr_name
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16852 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16855 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16856 osf* | hpux*) flag="-D_REENTRANT";;
16858 if test "$GCC" = "yes"; then
16859 flag="-D_REENTRANT"
16861 # TODO: What about Clang on Solaris?
16862 flag="-mt -D_REENTRANT"
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16867 $as_echo "$flag" >&6; }
16868 if test "x$flag" != xno; then
16869 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16873 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16874 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16875 $as_echo_n "(cached) " >&6
16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16879 /* end confdefs.h. */
16880 #include <pthread.h>
16884 int i = PTHREAD_PRIO_INHERIT;
16889 if ac_fn_c_try_link "$LINENO"; then :
16890 ax_cv_PTHREAD_PRIO_INHERIT=yes
16892 ax_cv_PTHREAD_PRIO_INHERIT=no
16894 rm -f core conftest.err conftest.$ac_objext \
16895 conftest$ac_exeext conftest.$ac_ext
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16899 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16900 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16902 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16907 CFLAGS="$save_CFLAGS"
16909 # More AIX lossage: compile with *_r variant
16910 if test "x$GCC" != xyes; then
16914 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16915 #handle absolute path differently from PATH based program lookup
16918 if as_fn_executable_p ${CC}_r; then :
16919 PTHREAD_CC="${CC}_r"
16922 for ac_prog in ${CC}_r
16924 # Extract the first word of "$ac_prog", so it can be a program name with args.
16925 set dummy $ac_prog; ac_word=$2
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16927 $as_echo_n "checking for $ac_word... " >&6; }
16928 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16929 $as_echo_n "(cached) " >&6
16931 if test -n "$PTHREAD_CC"; then
16932 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16935 for as_dir in $PATH
16938 test -z "$as_dir" && as_dir=.
16939 for ac_exec_ext in '' $ac_executable_extensions; do
16940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16941 ac_cv_prog_PTHREAD_CC="$ac_prog"
16942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16951 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16952 if test -n "$PTHREAD_CC"; then
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16954 $as_echo "$PTHREAD_CC" >&6; }
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16957 $as_echo "no" >&6; }
16961 test -n "$PTHREAD_CC" && break
16963 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16974 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16980 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16981 if test x"$ax_pthread_ok" = xyes; then
16984 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16986 if test -n "$PTHREAD_LIBS"; then
16987 LIBS="$PTHREAD_LIBS $LIBS"
16989 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16991 ub_have_pthreads=yes
16992 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16994 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16996 cat >>confdefs.h <<_ACEOF
16997 #define HAVE_PTHREAD_SPINLOCK_T 1
17002 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
17004 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
17006 cat >>confdefs.h <<_ACEOF
17007 #define HAVE_PTHREAD_RWLOCK_T 1
17014 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
17016 $as_echo_n "checking if -pthread unused during linking... " >&6; }
17017 # catch clang warning 'argument unused during compilation'
17018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019 /* end confdefs.h. */
17020 $ac_includes_default
17022 int main(void) {return 0;}
17025 pthread_unused="yes"
17027 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
17028 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
17029 if test $? = 0; then
17031 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
17032 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
17033 if test $? -ne 0; then
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17035 $as_echo "yes" >&6; }
17036 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
17037 PTHREAD_CFLAGS_ONLY="-pthread"
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17041 $as_echo "no" >&6; }
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17045 $as_echo "no" >&6; }
17046 fi # endif cc successful
17047 rm -f conftest conftest.c conftest.o
17048 fi # endif -pthread in CFLAGS
17057 ac_cpp='$CPP $CPPFLAGS'
17058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17065 # check solaris thread library
17067 # Check whether --with-solaris-threads was given.
17068 if test "${with_solaris_threads+set}" = set; then :
17069 withval=$with_solaris_threads;
17074 ub_have_sol_threads=no
17075 if test x_$withval != x_no; then
17076 if test x_$ub_have_pthreads != x_no; then
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
17078 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
17081 $as_echo_n "checking for library containing thr_create... " >&6; }
17082 if ${ac_cv_search_thr_create+:} false; then :
17083 $as_echo_n "(cached) " >&6
17085 ac_func_search_save_LIBS=$LIBS
17086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17087 /* end confdefs.h. */
17089 /* Override any GCC internal prototype to avoid an error.
17090 Use char because int might match the return type of a GCC
17091 builtin and then its argument prototype would still apply. */
17095 char thr_create ();
17099 return thr_create ();
17104 for ac_lib in '' thread; do
17105 if test -z "$ac_lib"; then
17106 ac_res="none required"
17109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17111 if ac_fn_c_try_link "$LINENO"; then :
17112 ac_cv_search_thr_create=$ac_res
17114 rm -f core conftest.err conftest.$ac_objext \
17116 if ${ac_cv_search_thr_create+:} false; then :
17120 if ${ac_cv_search_thr_create+:} false; then :
17123 ac_cv_search_thr_create=no
17125 rm conftest.$ac_ext
17126 LIBS=$ac_func_search_save_LIBS
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
17129 $as_echo "$ac_cv_search_thr_create" >&6; }
17130 ac_res=$ac_cv_search_thr_create
17131 if test "$ac_res" != no; then :
17132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17135 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
17141 $as_echo_n "checking whether $CC supports -mt... " >&6; }
17142 cache=`echo mt | sed 'y%.=/+-%___p_%'`
17143 if eval \${cv_prog_cc_flag_$cache+:} false; then :
17144 $as_echo_n "(cached) " >&6
17147 echo 'void f(void){}' >conftest.c
17148 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
17149 eval "cv_prog_cc_flag_$cache=yes"
17151 eval "cv_prog_cc_flag_$cache=no"
17153 rm -f conftest conftest.o conftest.c
17157 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17159 $as_echo "yes" >&6; }
17161 CFLAGS="$CFLAGS -mt"
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17164 $as_echo "no" >&6; }
17166 CFLAGS="$CFLAGS -D_REENTRANT"
17169 ub_have_sol_threads=yes
17173 as_fn_error $? "no solaris threads found." "$LINENO" 5
17180 fi # end of non-mingw check of thread libraries
17182 # Check for SYSLOG_FACILITY
17184 # Check whether --with-syslog-facility was given.
17185 if test "${with_syslog_facility+set}" = set; then :
17186 withval=$with_syslog_facility; UNBOUND_SYSLOG_FACILITY="$withval"
17189 case "${UNBOUND_SYSLOG_FACILITY}" in
17191 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
17193 *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
17197 cat >>confdefs.h <<_ACEOF
17198 #define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}
17202 # Check for dynamic library module
17204 # Check whether --with-dynlibmodule was given.
17205 if test "${with_dynlibmodule+set}" = set; then :
17206 withval=$with_dynlibmodule;
17212 if test x_$withval != x_no; then
17214 $as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h
17216 WITH_DYNLIBMODULE=yes
17218 DYNLIBMOD_OBJ="dynlibmod.lo"
17220 DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h'
17222 if test $on_mingw = "no"; then
17223 DYNLIBMOD_EXTRALIBS="-ldl -export-dynamic"
17225 DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.a"
17230 # Check for PyUnbound
17232 # Check whether --with-pyunbound was given.
17233 if test "${with_pyunbound+set}" = set; then :
17234 withval=$with_pyunbound;
17241 ub_with_pyunbound=no
17242 if test x_$withval != x_no; then
17243 ub_with_pyunbound=yes
17247 # Check for Python module
17249 # Check whether --with-pythonmodule was given.
17250 if test "${with_pythonmodule+set}" = set; then :
17251 withval=$with_pythonmodule;
17257 ub_with_pythonmod=no
17258 if test x_$withval != x_no; then
17259 ub_with_pythonmod=yes
17263 # Check for Python & SWIG only on PyUnbound or PyModule
17264 if test x_$ub_test_python != x_no; then
17268 ac_save_LIBS="$LIBS"
17270 # Allow the use of a (user set) custom python version
17274 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17275 set dummy python$PYTHON_VERSION; ac_word=$2
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17277 $as_echo_n "checking for $ac_word... " >&6; }
17278 if ${ac_cv_path_PYTHON+:} false; then :
17279 $as_echo_n "(cached) " >&6
17283 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17287 for as_dir in $PATH
17290 test -z "$as_dir" && as_dir=.
17291 for ac_exec_ext in '' $ac_executable_extensions; do
17292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17293 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17304 PYTHON=$ac_cv_path_PYTHON
17305 if test -n "$PYTHON"; then
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17307 $as_echo "$PYTHON" >&6; }
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17310 $as_echo "no" >&6; }
17314 if test -z "$PYTHON"; then
17315 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
17319 if test -z "$PYTHON_VERSION"; then
17320 PYTHON_VERSION=`$PYTHON -c "import sys; \
17321 print(sys.version.split()[0])"`
17325 # Check if you have distutils, else fail
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
17328 $as_echo_n "checking for the distutils Python package... " >&6; }
17329 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17331 $as_echo "yes" >&6; }
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17334 $as_echo "no" >&6; }
17335 as_fn_error $? "cannot import Python module \"distutils\".
17336 Please check your Python installation. The error was:
17337 $ac_distutils_result" "$LINENO" 5
17342 # Check for Python include path
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17345 $as_echo_n "checking for Python include path... " >&6; }
17346 if test -z "$PYTHON_CPPFLAGS"; then
17347 python_path=`$PYTHON -c "import distutils.sysconfig; \
17348 print(distutils.sysconfig.get_python_inc());"`
17349 if test -n "${python_path}"; then
17350 python_path="-I$python_path"
17352 PYTHON_CPPFLAGS=$python_path
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17355 $as_echo "$PYTHON_CPPFLAGS" >&6; }
17359 # Check for Python library path
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17362 $as_echo_n "checking for Python library path... " >&6; }
17363 if test -z "$PYTHON_LDFLAGS"; then
17364 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
17365 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17368 $as_echo "$PYTHON_LDFLAGS" >&6; }
17371 if test -z "$PYTHON_LIBDIR"; then
17372 PYTHON_LIBDIR=`$PYTHON -c "from distutils.sysconfig import *; \
17373 print(get_config_var('LIBDIR'));"`
17377 # Check for site packages
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17380 $as_echo_n "checking for Python site-packages path... " >&6; }
17381 if test -z "$PYTHON_SITE_PKG"; then
17382 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17383 print(distutils.sysconfig.get_python_lib(1,0));"`
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17386 $as_echo "$PYTHON_SITE_PKG" >&6; }
17390 # final check to see if everything compiles alright
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17393 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
17395 ac_cpp='$CPP $CPPFLAGS'
17396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17400 # save current global flags
17401 ac_save_LIBS="$LIBS"
17402 ac_save_CPPFLAGS="$CPPFLAGS"
17404 LIBS="$LIBS $PYTHON_LDFLAGS"
17405 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17407 /* end confdefs.h. */
17409 #include <Python.h>
17421 if ac_fn_c_try_link "$LINENO"; then :
17426 rm -f core conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17430 $as_echo "$pythonexists" >&6; }
17432 if test ! "$pythonexists" = "yes"; then
17434 Could not link test program to Python. Maybe the main Python library has been
17435 installed in some non-standard library path. If so, pass it to configure,
17436 via the LDFLAGS environment variable.
17437 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17438 ============================================================================
17440 You probably have to install the development version of the Python package
17441 for your distribution. The exact name of this package varies among them.
17442 ============================================================================
17447 ac_cpp='$CPP $CPPFLAGS'
17448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17452 # turn back to default flags
17453 CPPFLAGS="$ac_save_CPPFLAGS"
17454 LIBS="$ac_save_LIBS"
17460 if test ! -z "$PYTHON_VERSION"; then
17461 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
17462 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
17465 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
17469 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
17471 if test -n "$LIBS"; then
17472 LIBS="$PYTHON_LDFLAGS $LIBS"
17474 LIBS="$PYTHON_LDFLAGS"
17476 if test -n "$CPPFLAGS"; then
17477 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17479 CPPFLAGS="$PYTHON_CPPFLAGS"
17481 if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then
17483 if test "x$enable_rpath" = xyes; then
17484 if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then
17485 RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR"
17491 if test -n "$PKG_CONFIG" && \
17492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
17493 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
17495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17496 test $ac_status = 0; }; then
17497 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
17499 PC_PY_DEPENDENCY="python"
17505 # Check whether --enable-swig-version-check was given.
17506 if test "${enable_swig_version_check+set}" = set; then :
17507 enableval=$enable_swig_version_check;
17510 if test "$enable_swig_version_check" = "yes"; then
17512 # Extract the first word of "swig", so it can be a program name with args.
17513 set dummy swig; ac_word=$2
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17515 $as_echo_n "checking for $ac_word... " >&6; }
17516 if ${ac_cv_path_SWIG+:} false; then :
17517 $as_echo_n "(cached) " >&6
17521 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17525 for as_dir in $PATH
17528 test -z "$as_dir" && as_dir=.
17529 for ac_exec_ext in '' $ac_executable_extensions; do
17530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17531 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17542 SWIG=$ac_cv_path_SWIG
17543 if test -n "$SWIG"; then
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17545 $as_echo "$SWIG" >&6; }
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17548 $as_echo "no" >&6; }
17552 if test -z "$SWIG" ; then
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17554 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17555 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17556 elif test -n "2.0.1" ; then
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17558 $as_echo_n "checking for SWIG version... " >&6; }
17559 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'`
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17561 $as_echo "$swig_version" >&6; }
17562 if test -n "$swig_version" ; then
17563 # Calculate the required version number components
17565 required_major=`echo $required | sed 's/[^0-9].*//'`
17566 if test -z "$required_major" ; then
17569 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17570 required_minor=`echo $required | sed 's/[^0-9].*//'`
17571 if test -z "$required_minor" ; then
17574 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17575 required_patch=`echo $required | sed 's/[^0-9].*//'`
17576 if test -z "$required_patch" ; then
17579 # Calculate the available version number components
17580 available=$swig_version
17581 available_major=`echo $available | sed 's/[^0-9].*//'`
17582 if test -z "$available_major" ; then
17585 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17586 available_minor=`echo $available | sed 's/[^0-9].*//'`
17587 if test -z "$available_minor" ; then
17590 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17591 available_patch=`echo $available | sed 's/[^0-9].*//'`
17592 if test -z "$available_patch" ; then
17596 if test $available_major -lt $required_major ; then
17599 if test $available_major -eq $required_major \
17600 -a $available_minor -lt $required_minor ; then
17603 if test $available_major -eq $required_major \
17604 -a $available_minor -eq $required_minor \
17605 -a $available_patch -lt $required_patch ; then
17608 if test $badversion -eq 1 ; then
17609 { $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
17610 $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;}
17611 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17614 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17615 SWIG_LIB=`$SWIG -swiglib`
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17617 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17621 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17622 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17629 # Extract the first word of "swig", so it can be a program name with args.
17630 set dummy swig; ac_word=$2
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17632 $as_echo_n "checking for $ac_word... " >&6; }
17633 if ${ac_cv_path_SWIG+:} false; then :
17634 $as_echo_n "(cached) " >&6
17638 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17642 for as_dir in $PATH
17645 test -z "$as_dir" && as_dir=.
17646 for ac_exec_ext in '' $ac_executable_extensions; do
17647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17648 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17659 SWIG=$ac_cv_path_SWIG
17660 if test -n "$SWIG"; then
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17662 $as_echo "$SWIG" >&6; }
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17665 $as_echo "no" >&6; }
17669 if test -z "$SWIG" ; then
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17671 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17672 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17673 elif test -n "" ; then
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17675 $as_echo_n "checking for SWIG version... " >&6; }
17676 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'`
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17678 $as_echo "$swig_version" >&6; }
17679 if test -n "$swig_version" ; then
17680 # Calculate the required version number components
17682 required_major=`echo $required | sed 's/[^0-9].*//'`
17683 if test -z "$required_major" ; then
17686 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17687 required_minor=`echo $required | sed 's/[^0-9].*//'`
17688 if test -z "$required_minor" ; then
17691 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17692 required_patch=`echo $required | sed 's/[^0-9].*//'`
17693 if test -z "$required_patch" ; then
17696 # Calculate the available version number components
17697 available=$swig_version
17698 available_major=`echo $available | sed 's/[^0-9].*//'`
17699 if test -z "$available_major" ; then
17702 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17703 available_minor=`echo $available | sed 's/[^0-9].*//'`
17704 if test -z "$available_minor" ; then
17707 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17708 available_patch=`echo $available | sed 's/[^0-9].*//'`
17709 if test -z "$available_patch" ; then
17713 if test $available_major -lt $required_major ; then
17716 if test $available_major -eq $required_major \
17717 -a $available_minor -lt $required_minor ; then
17720 if test $available_major -eq $required_major \
17721 -a $available_minor -eq $required_minor \
17722 -a $available_patch -lt $required_patch ; then
17725 if test $badversion -eq 1 ; then
17726 { $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
17727 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
17728 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17731 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17732 SWIG_LIB=`$SWIG -swiglib`
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17734 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17738 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17739 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17746 $as_echo_n "checking SWIG... " >&6; }
17747 if test ! -x "$SWIG"; then
17748 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17751 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
17756 $as_echo "present" >&6; }
17758 # If have Python & SWIG
17759 # Declare PythonMod
17760 if test x_$ub_with_pythonmod != x_no; then
17762 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
17764 WITH_PYTHONMODULE=yes
17766 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
17768 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
17770 PYTHONMOD_INSTALL=pythonmod-install
17772 PYTHONMOD_UNINSTALL=pythonmod-uninstall
17776 # Declare PyUnbound
17777 if test x_$ub_with_pyunbound != x_no; then
17779 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
17783 PYUNBOUND_OBJ="libunbound_wrap.lo"
17785 PYUNBOUND_TARGET="_unbound.la"
17787 PYUNBOUND_INSTALL=pyunbound-install
17789 PYUNBOUND_UNINSTALL=pyunbound-uninstall
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
17795 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
17796 ub_with_pyunbound=no
17797 ub_with_pythonmod=no
17801 if test "`uname`" = "NetBSD"; then
17802 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
17805 CONFIG_DATE=`date +%Y%m%d`
17808 # Checks for libraries.
17813 # Check whether --with-nss was given.
17814 if test "${with_nss+set}" = set; then :
17818 $as_echo "#define HAVE_NSS 1" >>confdefs.h
17820 if test "$withval" != "" -a "$withval" != "yes"; then
17821 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17822 LDFLAGS="$LDFLAGS -L$withval/lib"
17824 if test "x$enable_rpath" = xyes; then
17825 if echo "$withval/lib" | grep "^/" >/dev/null; then
17826 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17830 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17832 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17833 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17835 LIBS="$LIBS -lnss3 -lnspr4"
17837 PC_CRYPTO_DEPENDENCY="nss nspr"
17847 # Check whether --with-nettle was given.
17848 if test "${with_nettle+set}" = set; then :
17849 withval=$with_nettle;
17852 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17854 for ac_header in nettle/dsa-compat.h
17856 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17858 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17859 cat >>confdefs.h <<_ACEOF
17860 #define HAVE_NETTLE_DSA_COMPAT_H 1
17867 if test "$withval" != "" -a "$withval" != "yes"; then
17868 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17869 LDFLAGS="$LDFLAGS -L$withval/lib"
17871 if test "x$enable_rpath" = xyes; then
17872 if echo "$withval/lib" | grep "^/" >/dev/null; then
17873 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17878 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17880 LIBS="$LIBS -lhogweed -lnettle -lgmp"
17882 PC_CRYPTO_DEPENDENCY="hogweed nettle"
17890 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17893 # Check whether --with-ssl was given.
17894 if test "${with_ssl+set}" = set; then :
17903 if test x_$withval = x_no; then
17904 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17908 if test x_$withval != x_no; then
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17910 $as_echo_n "checking for SSL... " >&6; }
17911 if test x_$withval = x_ -o x_$withval = x_yes; then
17912 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
17914 for dir in $withval; do
17916 if test -f "$dir/include/openssl/ssl.h"; then
17919 cat >>confdefs.h <<_ACEOF
17920 #define HAVE_SSL /**/
17923 if test "$ssldir" != "/usr"; then
17924 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
17925 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
17930 if test x_$found_ssl != x_yes; then
17931 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
17934 $as_echo "found in $ssldir" >&6; }
17936 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
17937 LDFLAGS="$LDFLAGS -L$ssldir/lib"
17938 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
17940 if test "x$enable_rpath" = xyes; then
17941 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
17942 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
17949 $as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; }
17950 LIBS="$LIBS -lcrypto"
17951 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
17952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17953 /* end confdefs.h. */
17959 int EVP_sha256(void);
17960 (void)EVP_sha256();
17966 if ac_fn_c_try_link "$LINENO"; then :
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17969 $as_echo "yes" >&6; }
17971 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17977 $as_echo "no" >&6; }
17978 # check if -lwsock32 or -lgdi32 are needed.
17980 BAKSSLLIBS="$LIBSSL_LIBS"
17981 LIBS="$LIBS -lgdi32 -lws2_32"
17982 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
17984 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
17985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17986 /* end confdefs.h. */
17992 int EVP_sha256(void);
17993 (void)EVP_sha256();
17999 if ac_fn_c_try_link "$LINENO"; then :
18002 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18005 $as_echo "yes" >&6; }
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18010 $as_echo "no" >&6; }
18012 LIBSSL_LIBS="$BAKSSLLIBS"
18014 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
18016 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
18017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018 /* end confdefs.h. */
18024 int EVP_sha256(void);
18025 (void)EVP_sha256();
18031 if ac_fn_c_try_link "$LINENO"; then :
18034 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18037 $as_echo "yes" >&6; }
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18042 $as_echo "no" >&6; }
18044 LIBSSL_LIBS="$BAKSSLLIBS"
18045 LIBS="$LIBS -ldl -pthread"
18046 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
18048 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
18049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18050 /* end confdefs.h. */
18056 int EVP_sha256(void);
18057 (void)EVP_sha256();
18063 if ac_fn_c_try_link "$LINENO"; then :
18066 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18069 $as_echo "yes" >&6; }
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18074 $as_echo "no" >&6; }
18075 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
18078 rm -f core conftest.err conftest.$ac_objext \
18079 conftest$ac_exeext conftest.$ac_ext
18082 rm -f core conftest.err conftest.$ac_objext \
18083 conftest$ac_exeext conftest.$ac_ext
18086 rm -f core conftest.err conftest.$ac_objext \
18087 conftest$ac_exeext conftest.$ac_ext
18090 rm -f core conftest.err conftest.$ac_objext \
18091 conftest$ac_exeext conftest.$ac_ext
18096 for ac_header in openssl/ssl.h
18098 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
18100 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
18101 cat >>confdefs.h <<_ACEOF
18102 #define HAVE_OPENSSL_SSL_H 1
18109 for ac_header in openssl/err.h
18111 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
18113 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
18114 cat >>confdefs.h <<_ACEOF
18115 #define HAVE_OPENSSL_ERR_H 1
18122 for ac_header in openssl/rand.h
18124 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
18126 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
18127 cat >>confdefs.h <<_ACEOF
18128 #define HAVE_OPENSSL_RAND_H 1
18138 # check if libssl needs libdl
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
18142 $as_echo_n "checking if libssl needs libdl... " >&6; }
18143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144 /* end confdefs.h. */
18146 /* Override any GCC internal prototype to avoid an error.
18147 Use char because int might match the return type of a GCC
18148 builtin and then its argument prototype would still apply. */
18152 char SSL_CTX_new ();
18156 return SSL_CTX_new ();
18161 if ac_fn_c_try_link "$LINENO"; then :
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18164 $as_echo "no" >&6; }
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18170 $as_echo "yes" >&6; }
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18173 $as_echo_n "checking for library containing dlopen... " >&6; }
18174 if ${ac_cv_search_dlopen+:} false; then :
18175 $as_echo_n "(cached) " >&6
18177 ac_func_search_save_LIBS=$LIBS
18178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179 /* end confdefs.h. */
18181 /* Override any GCC internal prototype to avoid an error.
18182 Use char because int might match the return type of a GCC
18183 builtin and then its argument prototype would still apply. */
18196 for ac_lib in '' dl; do
18197 if test -z "$ac_lib"; then
18198 ac_res="none required"
18201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18203 if ac_fn_c_try_link "$LINENO"; then :
18204 ac_cv_search_dlopen=$ac_res
18206 rm -f core conftest.err conftest.$ac_objext \
18208 if ${ac_cv_search_dlopen+:} false; then :
18212 if ${ac_cv_search_dlopen+:} false; then :
18215 ac_cv_search_dlopen=no
18217 rm conftest.$ac_ext
18218 LIBS=$ac_func_search_save_LIBS
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18221 $as_echo "$ac_cv_search_dlopen" >&6; }
18222 ac_res=$ac_cv_search_dlopen
18223 if test "$ac_res" != no; then :
18224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18230 rm -f core conftest.err conftest.$ac_objext \
18231 conftest$ac_exeext conftest.$ac_ext
18234 PC_CRYPTO_DEPENDENCY="libcrypto libssl"
18237 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
18241 $as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
18242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18243 /* end confdefs.h. */
18245 /* Override any GCC internal prototype to avoid an error.
18246 Use char because int might match the return type of a GCC
18247 builtin and then its argument prototype would still apply. */
18251 char EVP_sha256 ();
18255 return EVP_sha256 ();
18260 if ac_fn_c_try_link "$LINENO"; then :
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18263 $as_echo "no" >&6; }
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18269 $as_echo "yes" >&6; }
18271 LIBS="$LIBS -lcrypt32"
18274 rm -f core conftest.err conftest.$ac_objext \
18275 conftest$ac_exeext conftest.$ac_ext
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
18278 $as_echo_n "checking for LibreSSL... " >&6; }
18279 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18281 $as_echo "yes" >&6; }
18283 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
18285 # libressl provides these compat functions, but they may also be
18286 # declared by the OS in libc. See if they have been declared.
18287 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
18288 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
18294 cat >>confdefs.h <<_ACEOF
18295 #define HAVE_DECL_STRLCPY $ac_have_decl
18297 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
18298 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
18304 cat >>confdefs.h <<_ACEOF
18305 #define HAVE_DECL_STRLCAT $ac_have_decl
18307 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
18308 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
18314 cat >>confdefs.h <<_ACEOF
18315 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
18317 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
18318 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
18324 cat >>confdefs.h <<_ACEOF
18325 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18330 $as_echo "no" >&6; }
18332 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
18334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18335 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18337 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18338 cat >>confdefs.h <<_ACEOF
18339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18346 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ENGINE_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify EVP_aes_256_cbc EVP_EncryptInit_ex HMAC_Init_ex CRYPTO_THREADID_set_callback EVP_MAC_CTX_set_params
18348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18349 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18350 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18351 cat >>confdefs.h <<_ACEOF
18352 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18359 # these check_funcs need -lssl
18362 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
18364 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18365 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18366 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18367 cat >>confdefs.h <<_ACEOF
18368 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18376 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
18377 $ac_includes_default
18378 #ifdef HAVE_OPENSSL_ERR_H
18379 #include <openssl/err.h>
18382 #ifdef HAVE_OPENSSL_RAND_H
18383 #include <openssl/rand.h>
18386 #ifdef HAVE_OPENSSL_CONF_H
18387 #include <openssl/conf.h>
18390 #ifdef HAVE_OPENSSL_ENGINE_H
18391 #include <openssl/engine.h>
18393 #include <openssl/ssl.h>
18394 #include <openssl/evp.h>
18397 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
18403 cat >>confdefs.h <<_ACEOF
18404 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
18406 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
18407 $ac_includes_default
18408 #ifdef HAVE_OPENSSL_ERR_H
18409 #include <openssl/err.h>
18412 #ifdef HAVE_OPENSSL_RAND_H
18413 #include <openssl/rand.h>
18416 #ifdef HAVE_OPENSSL_CONF_H
18417 #include <openssl/conf.h>
18420 #ifdef HAVE_OPENSSL_ENGINE_H
18421 #include <openssl/engine.h>
18423 #include <openssl/ssl.h>
18424 #include <openssl/evp.h>
18427 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
18433 cat >>confdefs.h <<_ACEOF
18434 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
18436 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
18437 $ac_includes_default
18438 #ifdef HAVE_OPENSSL_ERR_H
18439 #include <openssl/err.h>
18442 #ifdef HAVE_OPENSSL_RAND_H
18443 #include <openssl/rand.h>
18446 #ifdef HAVE_OPENSSL_CONF_H
18447 #include <openssl/conf.h>
18450 #ifdef HAVE_OPENSSL_ENGINE_H
18451 #include <openssl/engine.h>
18453 #include <openssl/ssl.h>
18454 #include <openssl/evp.h>
18457 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
18463 cat >>confdefs.h <<_ACEOF
18464 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
18468 if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
18469 # check function return type.
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
18471 $as_echo_n "checking the return type of HMAC_Init_ex... " >&6; }
18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473 /* end confdefs.h. */
18475 #ifdef HAVE_OPENSSL_ERR_H
18476 #include <openssl/err.h>
18479 #ifdef HAVE_OPENSSL_RAND_H
18480 #include <openssl/rand.h>
18483 #ifdef HAVE_OPENSSL_CONF_H
18484 #include <openssl/conf.h>
18487 #ifdef HAVE_OPENSSL_ENGINE_H
18488 #include <openssl/engine.h>
18490 #include <openssl/ssl.h>
18491 #include <openssl/evp.h>
18497 HMAC_CTX* hmac_ctx = NULL;
18498 void* hmac_key = NULL;
18499 const EVP_MD* digest = NULL;
18500 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
18507 if ac_fn_c_try_compile "$LINENO"; then :
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18510 $as_echo "int" >&6; }
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
18515 $as_echo "void" >&6; }
18517 $as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
18521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529 # Check whether --with-libbsd was given.
18530 if test "${with_libbsd+set}" = set; then :
18531 withval=$with_libbsd;
18532 for ac_header in bsd/string.h bsd/stdlib.h
18534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18535 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18537 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18538 cat >>confdefs.h <<_ACEOF
18539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18546 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
18547 for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do
18548 as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh`
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
18550 $as_echo_n "checking for library containing $func... " >&6; }
18551 if eval \${$as_ac_Search+:} false; then :
18552 $as_echo_n "(cached) " >&6
18554 ac_func_search_save_LIBS=$LIBS
18555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18556 /* end confdefs.h. */
18558 /* Override any GCC internal prototype to avoid an error.
18559 Use char because int might match the return type of a GCC
18560 builtin and then its argument prototype would still apply. */
18573 for ac_lib in '' bsd; do
18574 if test -z "$ac_lib"; then
18575 ac_res="none required"
18578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18580 if ac_fn_c_try_link "$LINENO"; then :
18581 eval "$as_ac_Search=\$ac_res"
18583 rm -f core conftest.err conftest.$ac_objext \
18585 if eval \${$as_ac_Search+:} false; then :
18589 if eval \${$as_ac_Search+:} false; then :
18592 eval "$as_ac_Search=no"
18594 rm conftest.$ac_ext
18595 LIBS=$ac_func_search_save_LIBS
18597 eval ac_res=\$$as_ac_Search
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18599 $as_echo "$ac_res" >&6; }
18600 eval ac_res=\$$as_ac_Search
18601 if test "$ac_res" != no; then :
18602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18605 $as_echo "#define HAVE_LIBBSD 1" >>confdefs.h
18607 PC_LIBBSD_DEPENDENCY=libbsd
18618 # Check whether --enable-sha1 was given.
18619 if test "${enable_sha1+set}" = set; then :
18620 enableval=$enable_sha1;
18623 case "$enable_sha1" in
18628 $as_echo "#define USE_SHA1 1" >>confdefs.h
18634 # Check whether --enable-sha2 was given.
18635 if test "${enable_sha2+set}" = set; then :
18636 enableval=$enable_sha2;
18639 case "$enable_sha2" in
18644 $as_echo "#define USE_SHA2 1" >>confdefs.h
18649 # Check whether --enable-subnet was given.
18650 if test "${enable_subnet+set}" = set; then :
18651 enableval=$enable_subnet;
18654 case "$enable_subnet" in
18657 $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
18659 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
18661 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
18668 # check wether gost also works
18670 # Check whether --enable-gost was given.
18671 if test "${enable_gost+set}" = set; then :
18672 enableval=$enable_gost;
18676 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18677 case "$enable_gost" in
18681 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
18682 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
18685 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
18688 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
18689 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
18692 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
18697 $as_echo_n "checking if GOST works... " >&6; }
18698 if test c${cross_compiling} = cno; then
18699 BAKCFLAGS="$CFLAGS"
18700 if test -n "$ssldir"; then
18701 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
18703 if test "$cross_compiling" = yes; then :
18704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18706 as_fn_error $? "cannot run test program while cross compiling
18707 See \`config.log' for more details" "$LINENO" 5; }
18709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710 /* end confdefs.h. */
18712 #include <string.h>
18713 #include <openssl/ssl.h>
18714 #include <openssl/evp.h>
18715 #include <openssl/engine.h>
18716 #include <openssl/conf.h>
18717 /* routine to load gost (from sldns) */
18718 int load_gost_id(void)
18720 static int gost_id = 0;
18721 const EVP_PKEY_ASN1_METHOD* meth;
18724 if(gost_id) return gost_id;
18726 /* see if configuration loaded gost implementation from other engine*/
18727 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
18729 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18733 /* see if engine can be loaded already */
18734 e = ENGINE_by_id("gost");
18736 /* load it ourself, in case statically linked */
18737 ENGINE_load_builtin_engines();
18738 ENGINE_load_dynamic();
18739 e = ENGINE_by_id("gost");
18742 /* no gost engine in openssl */
18745 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
18751 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
18753 /* algo not found */
18758 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18764 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
18765 const char* str = "Hello world";
18766 const unsigned char check[] = {
18767 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
18768 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
18769 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
18770 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
18772 OPENSSL_config(NULL);
18773 (void)load_gost_id();
18774 md = EVP_get_digestbyname("md_gost94");
18776 memset(digest, 0, sizeof(digest));
18777 ctx = EVP_MD_CTX_create();
18779 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
18780 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
18781 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
18782 /* uncomment to see the hash calculated.
18784 for(i=0; i<32; i++)
18785 printf(" %2.2x", (int)digest[i]);
18788 if(memcmp(digest, check, sizeof(check)) != 0)
18794 if ac_fn_c_try_run "$LINENO"; then :
18795 eval "ac_cv_c_gost_works=yes"
18797 eval "ac_cv_c_gost_works=no"
18799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18800 conftest.$ac_objext conftest.beam conftest.$ac_ext
18803 CFLAGS="$BAKCFLAGS"
18805 eval "ac_cv_c_gost_works=maybe"
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
18808 $as_echo "$ac_cv_c_gost_works" >&6; }
18810 if test "$ac_cv_c_gost_works" != no; then
18813 $as_echo "#define USE_GOST 1" >>confdefs.h
18819 # Check whether --enable-ecdsa was given.
18820 if test "${enable_ecdsa+set}" = set; then :
18821 enableval=$enable_ecdsa;
18825 case "$enable_ecdsa" in
18829 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18830 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
18831 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
18834 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18837 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
18838 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
18841 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18844 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
18845 #include <openssl/evp.h>
18848 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
18854 cat >>confdefs.h <<_ACEOF
18855 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
18857 if test $ac_have_decl = 1; then :
18860 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18862 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
18863 #include <openssl/evp.h>
18866 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
18872 cat >>confdefs.h <<_ACEOF
18873 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
18875 if test $ac_have_decl = 1; then :
18878 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18881 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
18883 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
18884 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
18885 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18887 $as_echo "no" >&6; }
18889 cat >>confdefs.h <<_ACEOF
18890 #define USE_ECDSA_EVP_WORKAROUND 1
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18895 $as_echo "yes" >&6; }
18898 # not OpenSSL, thus likely LibreSSL, which supports it
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18900 $as_echo "yes" >&6; }
18903 # we now know we have ECDSA and the required curves.
18905 cat >>confdefs.h <<_ACEOF
18906 #define USE_ECDSA 1
18913 # Check whether --enable-dsa was given.
18914 if test "${enable_dsa+set}" = set; then :
18915 enableval=$enable_dsa;
18919 case "$enable_dsa" in
18921 # detect if DSA is supported, and turn it off if not.
18922 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18923 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
18924 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
18926 as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
18927 ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
18928 $ac_includes_default
18929 #ifdef HAVE_OPENSSL_ERR_H
18930 #include <openssl/err.h>
18933 #ifdef HAVE_OPENSSL_RAND_H
18934 #include <openssl/rand.h>
18937 #ifdef HAVE_OPENSSL_CONF_H
18938 #include <openssl/conf.h>
18941 #ifdef HAVE_OPENSSL_ENGINE_H
18942 #include <openssl/engine.h>
18946 if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
18949 cat >>confdefs.h <<_ACEOF
18955 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18961 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18967 cat >>confdefs.h <<_ACEOF
18974 # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT
18975 # support DSA for DNSSEC Validation.
18979 # Check whether --enable-ed25519 was given.
18980 if test "${enable_ed25519+set}" = set; then :
18981 enableval=$enable_ed25519;
18985 case "$enable_ed25519" in
18989 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18990 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
18991 #include <openssl/evp.h>
18994 if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
19000 cat >>confdefs.h <<_ACEOF
19001 #define HAVE_DECL_NID_ED25519 $ac_have_decl
19003 if test $ac_have_decl = 1; then :
19008 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
19013 if test $USE_NETTLE = "yes"; then
19014 for ac_header in nettle/eddsa.h
19016 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
19018 if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
19019 cat >>confdefs.h <<_ACEOF
19020 #define HAVE_NETTLE_EDDSA_H 1
19028 if test $use_ed25519 = "yes"; then
19030 cat >>confdefs.h <<_ACEOF
19031 #define USE_ED25519 1
19038 # Check whether --enable-ed448 was given.
19039 if test "${enable_ed448+set}" = set; then :
19040 enableval=$enable_ed448;
19044 case "$enable_ed448" in
19048 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19049 ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
19050 #include <openssl/evp.h>
19053 if test "x$ac_cv_have_decl_NID_ED448" = xyes; then :
19059 cat >>confdefs.h <<_ACEOF
19060 #define HAVE_DECL_NID_ED448 $ac_have_decl
19062 if test $ac_have_decl = 1; then :
19067 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
19072 if test $use_ed448 = "yes"; then
19074 cat >>confdefs.h <<_ACEOF
19075 #define USE_ED448 1
19082 # Check whether --enable-event-api was given.
19083 if test "${enable_event_api+set}" = set; then :
19084 enableval=$enable_event_api;
19087 case "$enable_event_api" in
19089 UNBOUND_EVENT_INSTALL=unbound-event-install
19091 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
19098 # Check whether --enable-tfo-client was given.
19099 if test "${enable_tfo_client+set}" = set; then :
19100 enableval=$enable_tfo_client;
19103 case "$enable_tfo_client" in
19106 Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
19107 #include <netinet/tcp.h>
19110 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19112 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19114 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19118 cat >>confdefs.h <<_ACEOF
19119 #define USE_MSG_FASTOPEN 1
19123 Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
19124 #include <sys/socket.h>
19127 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19129 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19131 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19135 cat >>confdefs.h <<_ACEOF
19136 #define USE_OSX_MSG_FASTOPEN 1
19146 # Check whether --enable-tfo-server was given.
19147 if test "${enable_tfo_server+set}" = set; then :
19148 enableval=$enable_tfo_server;
19151 case "$enable_tfo_server" in
19153 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
19154 #include <netinet/tcp.h>
19157 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
19159 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
19161 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
19165 cat >>confdefs.h <<_ACEOF
19166 #define USE_TCP_FASTOPEN 1
19174 # check for libevent
19176 # Check whether --with-libevent was given.
19177 if test "${with_libevent+set}" = set; then :
19178 withval=$with_libevent;
19183 if test "x_$with_libevent" != x_no; then
19185 $as_echo "#define USE_LIBEVENT 1" >>confdefs.h
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
19188 $as_echo_n "checking for libevent... " >&6; }
19189 if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then
19190 with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19192 for dir in $with_libevent; do
19194 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
19195 found_libevent="yes"
19196 if test "$thedir" != "/usr"; then
19197 CPPFLAGS="$CPPFLAGS -I$thedir/include"
19202 if test x_$found_libevent != x_yes; then
19203 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
19204 # libevent source directory
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19206 $as_echo "found in $thedir" >&6; }
19207 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
19208 BAK_LDFLAGS_SET="1"
19209 BAK_LDFLAGS="$LDFLAGS"
19210 # remove evdns from linking
19211 mkdir build >/dev/null 2>&1
19212 mkdir build/libevent >/dev/null 2>&1
19213 mkdir build/libevent/.libs >/dev/null 2>&1
19214 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19215 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
19216 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19217 cp $ev_files_o build/libevent
19218 cp $ev_files_lo build/libevent
19219 cp $ev_files_libso build/libevent/.libs
19220 LATE_LDFLAGS="build/libevent/*.lo -lm"
19221 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
19223 as_fn_error $? "Cannot find the libevent library in $with_libevent
19224 You can restart ./configure --with-libevent=no to use a builtin alternative.
19225 Please note that this alternative is not as capable as libevent when using
19226 large outgoing port ranges. " "$LINENO" 5
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19230 $as_echo "found in $thedir" >&6; }
19231 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
19232 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
19234 if test "x$enable_rpath" = xyes; then
19235 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
19236 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
19241 if test "$thedir" != "/usr" -a "$thedir" != ""; then
19242 LDFLAGS="$LDFLAGS -L$thedir/lib"
19244 if test "x$enable_rpath" = xyes; then
19245 if echo "$thedir/lib" | grep "^/" >/dev/null; then
19246 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
19253 # check for library used by libevent after 1.3c
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19255 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19256 if ${ac_cv_search_clock_gettime+:} false; then :
19257 $as_echo_n "(cached) " >&6
19259 ac_func_search_save_LIBS=$LIBS
19260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19261 /* end confdefs.h. */
19263 /* Override any GCC internal prototype to avoid an error.
19264 Use char because int might match the return type of a GCC
19265 builtin and then its argument prototype would still apply. */
19269 char clock_gettime ();
19273 return clock_gettime ();
19278 for ac_lib in '' rt; do
19279 if test -z "$ac_lib"; then
19280 ac_res="none required"
19283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19285 if ac_fn_c_try_link "$LINENO"; then :
19286 ac_cv_search_clock_gettime=$ac_res
19288 rm -f core conftest.err conftest.$ac_objext \
19290 if ${ac_cv_search_clock_gettime+:} false; then :
19294 if ${ac_cv_search_clock_gettime+:} false; then :
19297 ac_cv_search_clock_gettime=no
19299 rm conftest.$ac_ext
19300 LIBS=$ac_func_search_save_LIBS
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19303 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19304 ac_res=$ac_cv_search_clock_gettime
19305 if test "$ac_res" != no; then :
19306 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19311 # is the event.h header libev or libevent?
19312 for ac_header in event.h
19314 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
19316 if test "x$ac_cv_header_event_h" = xyes; then :
19317 cat >>confdefs.h <<_ACEOF
19318 #define HAVE_EVENT_H 1
19325 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
19329 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19332 $as_echo_n "checking for library containing event_set... " >&6; }
19333 if ${ac_cv_search_event_set+:} false; then :
19334 $as_echo_n "(cached) " >&6
19336 ac_func_search_save_LIBS=$LIBS
19337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19338 /* end confdefs.h. */
19340 /* Override any GCC internal prototype to avoid an error.
19341 Use char because int might match the return type of a GCC
19342 builtin and then its argument prototype would still apply. */
19350 return event_set ();
19355 for ac_lib in '' ev; do
19356 if test -z "$ac_lib"; then
19357 ac_res="none required"
19360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19362 if ac_fn_c_try_link "$LINENO"; then :
19363 ac_cv_search_event_set=$ac_res
19365 rm -f core conftest.err conftest.$ac_objext \
19367 if ${ac_cv_search_event_set+:} false; then :
19371 if ${ac_cv_search_event_set+:} false; then :
19374 ac_cv_search_event_set=no
19376 rm conftest.$ac_ext
19377 LIBS=$ac_func_search_save_LIBS
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19380 $as_echo "$ac_cv_search_event_set" >&6; }
19381 ac_res=$ac_cv_search_event_set
19382 if test "$ac_res" != no; then :
19383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19391 $as_echo_n "checking for library containing event_set... " >&6; }
19392 if ${ac_cv_search_event_set+:} false; then :
19393 $as_echo_n "(cached) " >&6
19395 ac_func_search_save_LIBS=$LIBS
19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19397 /* end confdefs.h. */
19399 /* Override any GCC internal prototype to avoid an error.
19400 Use char because int might match the return type of a GCC
19401 builtin and then its argument prototype would still apply. */
19409 return event_set ();
19414 for ac_lib in '' event; do
19415 if test -z "$ac_lib"; then
19416 ac_res="none required"
19419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19421 if ac_fn_c_try_link "$LINENO"; then :
19422 ac_cv_search_event_set=$ac_res
19424 rm -f core conftest.err conftest.$ac_objext \
19426 if ${ac_cv_search_event_set+:} false; then :
19430 if ${ac_cv_search_event_set+:} false; then :
19433 ac_cv_search_event_set=no
19435 rm conftest.$ac_ext
19436 LIBS=$ac_func_search_save_LIBS
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19439 $as_echo "$ac_cv_search_event_set" >&6; }
19440 ac_res=$ac_cv_search_event_set
19441 if test "$ac_res" != no; then :
19442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19449 for ac_func in event_base_free
19451 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
19452 if test "x$ac_cv_func_event_base_free" = xyes; then :
19453 cat >>confdefs.h <<_ACEOF
19454 #define HAVE_EVENT_BASE_FREE 1
19459 # only in libevent 1.2 and later
19460 for ac_func in event_base_once
19462 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
19463 if test "x$ac_cv_func_event_base_once" = xyes; then :
19464 cat >>confdefs.h <<_ACEOF
19465 #define HAVE_EVENT_BASE_ONCE 1
19470 # only in libevent 1.4.1 and later
19471 for ac_func in event_base_new
19473 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
19474 if test "x$ac_cv_func_event_base_new" = xyes; then :
19475 cat >>confdefs.h <<_ACEOF
19476 #define HAVE_EVENT_BASE_NEW 1
19481 # only in libevent 1.4.1 and later
19482 for ac_func in event_base_get_method
19484 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
19485 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
19486 cat >>confdefs.h <<_ACEOF
19487 #define HAVE_EVENT_BASE_GET_METHOD 1
19492 # only in libevent 1.4.3 and later
19493 for ac_func in ev_loop
19495 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
19496 if test "x$ac_cv_func_ev_loop" = xyes; then :
19497 cat >>confdefs.h <<_ACEOF
19498 #define HAVE_EV_LOOP 1
19503 # only in libev. (tested on 3.51)
19504 for ac_func in ev_default_loop
19506 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
19507 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
19508 cat >>confdefs.h <<_ACEOF
19509 #define HAVE_EV_DEFAULT_LOOP 1
19514 # only in libev. (tested on 4.00)
19515 for ac_func in event_assign
19517 ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
19518 if test "x$ac_cv_func_event_assign" = xyes; then :
19519 cat >>confdefs.h <<_ACEOF
19520 #define HAVE_EVENT_ASSIGN 1
19525 # in libevent, for thread-safety
19526 ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
19527 #ifdef HAVE_EVENT_H
19528 # include <event.h>
19530 # include \"event2/event.h\"
19534 if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then :
19540 cat >>confdefs.h <<_ACEOF
19541 #define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl
19544 PC_LIBEVENT_DEPENDENCY="libevent"
19546 if test -n "$BAK_LDFLAGS_SET"; then
19547 LDFLAGS="$BAK_LDFLAGS"
19551 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
19555 # check for libexpat
19557 # Check whether --with-libexpat was given.
19558 if test "${with_libexpat+set}" = set; then :
19559 withval=$with_libexpat;
19561 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
19565 $as_echo_n "checking for libexpat... " >&6; }
19566 found_libexpat="no"
19567 for dir in $withval ; do
19568 if test -f "$dir/include/expat.h"; then
19569 found_libexpat="yes"
19570 if test "$dir" != "/usr"; then
19571 CPPFLAGS="$CPPFLAGS -I$dir/include"
19572 LDFLAGS="$LDFLAGS -L$dir/lib"
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19575 $as_echo "found in $dir" >&6; }
19579 if test x_$found_libexpat != x_yes; then
19580 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
19582 for ac_header in expat.h
19584 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
19586 if test "x$ac_cv_header_expat_h" = xyes; then :
19587 cat >>confdefs.h <<_ACEOF
19588 #define HAVE_EXPAT_H 1
19595 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
19599 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
19605 cat >>confdefs.h <<_ACEOF
19606 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
19610 # hiredis (redis C client for cachedb)
19612 # Check whether --with-libhiredis was given.
19613 if test "${with_libhiredis+set}" = set; then :
19614 withval=$with_libhiredis;
19619 found_libhiredis="no"
19620 if test x_$withval = x_yes -o x_$withval != x_no; then
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
19622 $as_echo_n "checking for libhiredis... " >&6; }
19623 if test x_$withval = x_ -o x_$withval = x_yes; then
19624 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19626 for dir in $withval ; do
19627 if test -f "$dir/include/hiredis/hiredis.h"; then
19628 found_libhiredis="yes"
19629 if test "$dir" != "/usr"; then
19630 CPPFLAGS="$CPPFLAGS -I$dir/include"
19631 LDFLAGS="$LDFLAGS -L$dir/lib"
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19634 $as_echo "found in $dir" >&6; }
19636 $as_echo "#define USE_REDIS 1" >>confdefs.h
19638 LIBS="$LIBS -lhiredis"
19642 if test x_$found_libhiredis != x_yes; then
19643 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
19645 for ac_header in hiredis/hiredis.h
19647 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
19649 if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
19650 cat >>confdefs.h <<_ACEOF
19651 #define HAVE_HIREDIS_HIREDIS_H 1
19658 ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
19659 #include <hiredis/hiredis.h>
19662 if test "x$ac_cv_have_decl_redisConnect" = xyes; then :
19668 cat >>confdefs.h <<_ACEOF
19669 #define HAVE_DECL_REDISCONNECT $ac_have_decl
19676 # Check whether --with-libnghttp2 was given.
19677 if test "${with_libnghttp2+set}" = set; then :
19678 withval=$with_libnghttp2;
19683 found_libnghttp2="no"
19684 if test x_$withval = x_yes -o x_$withval != x_no; then
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5
19686 $as_echo_n "checking for libnghttp2... " >&6; }
19687 if test x_$withval = x_ -o x_$withval = x_yes; then
19688 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19690 for dir in $withval ; do
19691 if test -f "$dir/include/nghttp2/nghttp2.h"; then
19692 found_libnghttp2="yes"
19693 if test "$dir" != "/usr"; then
19694 CPPFLAGS="$CPPFLAGS -I$dir/include"
19695 LDFLAGS="$LDFLAGS -L$dir/lib"
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19698 $as_echo "found in $dir" >&6; }
19700 $as_echo "#define HAVE_NGHTTP2 1" >>confdefs.h
19702 LIBS="$LIBS -lnghttp2"
19706 if test x_$found_libnghttp2 != x_yes; then
19707 as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5
19709 for ac_header in nghttp2/nghttp2.h
19711 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default
19713 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
19714 cat >>confdefs.h <<_ACEOF
19715 #define HAVE_NGHTTP2_NGHTTP2_H 1
19722 ac_fn_c_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default
19723 #include <nghttp2/nghttp2.h>
19726 if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes; then :
19732 cat >>confdefs.h <<_ACEOF
19733 #define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl
19738 # set static linking for uninstalled libraries if requested
19741 # Check whether --enable-static-exe was given.
19742 if test "${enable_static_exe+set}" = set; then :
19743 enableval=$enable_static_exe;
19746 if test x_$enable_static_exe = x_yes; then
19747 staticexe="-static"
19748 if test "$on_mingw" = yes; then
19749 staticexe="-all-static"
19750 # for static compile, include gdi32 and zlib here.
19751 if echo $LIBS | grep 'lgdi32' >/dev/null; then
19754 LIBS="$LIBS -lgdi32"
19760 # set full static linking if requested
19761 # Check whether --enable-fully-static was given.
19762 if test "${enable_fully_static+set}" = set; then :
19763 enableval=$enable_fully_static;
19766 if test x_$enable_fully_static = x_yes; then
19767 staticexe="-all-static"
19768 if test "$on_mingw" = yes; then
19769 # for static compile, include gdi32 and zlib here.
19770 if echo $LIBS | grep 'lgdi32' >/dev/null; then
19773 LIBS="$LIBS -lgdi32"
19779 # set lock checking if requested
19780 # Check whether --enable-lock_checks was given.
19781 if test "${enable_lock_checks+set}" = set; then :
19782 enableval=$enable_lock_checks;
19785 if test x_$enable_lock_checks = x_yes; then
19787 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
19789 CHECKLOCK_OBJ="checklocks.lo"
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
19795 $as_echo_n "checking for getaddrinfo... " >&6; }
19796 ac_cv_func_getaddrinfo=no
19797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19798 /* end confdefs.h. */
19804 char* getaddrinfo();
19805 char* (*f) () = getaddrinfo;
19815 if ac_fn_c_try_link "$LINENO"; then :
19816 ac_cv_func_getaddrinfo="yes"
19817 if test "$ac_cv_header_windows_h" = "yes"; then
19819 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19822 if echo $LIBS | grep 'lws2_32' >/dev/null; then
19825 LIBS="$LIBS -lws2_32"
19831 LIBS="$LIBS -lws2_32"
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h. */
19835 #ifdef HAVE_WS2TCPIP_H
19836 #include <ws2tcpip.h>
19843 (void)getaddrinfo(NULL, NULL, NULL, NULL);
19850 if ac_fn_c_try_link "$LINENO"; then :
19852 ac_cv_func_getaddrinfo="yes"
19854 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19860 ac_cv_func_getaddrinfo="no"
19864 rm -f core conftest.err conftest.$ac_objext \
19865 conftest$ac_exeext conftest.$ac_ext
19868 rm -f core conftest.err conftest.$ac_objext \
19869 conftest$ac_exeext conftest.$ac_ext
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
19872 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
19873 if test $ac_cv_func_getaddrinfo = yes; then
19875 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19879 if test "$USE_WINSOCK" = 1; then
19881 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
19883 for ac_header in iphlpapi.h
19885 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
19886 #include <windows.h>
19889 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
19890 cat >>confdefs.h <<_ACEOF
19891 #define HAVE_IPHLPAPI_H 1
19898 if test -n "$ac_tool_prefix"; then
19899 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19900 set dummy ${ac_tool_prefix}windres; ac_word=$2
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19902 $as_echo_n "checking for $ac_word... " >&6; }
19903 if ${ac_cv_prog_WINDRES+:} false; then :
19904 $as_echo_n "(cached) " >&6
19906 if test -n "$WINDRES"; then
19907 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19910 for as_dir in $PATH
19913 test -z "$as_dir" && as_dir=.
19914 for ac_exec_ext in '' $ac_executable_extensions; do
19915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19916 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19926 WINDRES=$ac_cv_prog_WINDRES
19927 if test -n "$WINDRES"; then
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19929 $as_echo "$WINDRES" >&6; }
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19932 $as_echo "no" >&6; }
19937 if test -z "$ac_cv_prog_WINDRES"; then
19938 ac_ct_WINDRES=$WINDRES
19939 # Extract the first word of "windres", so it can be a program name with args.
19940 set dummy windres; ac_word=$2
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19942 $as_echo_n "checking for $ac_word... " >&6; }
19943 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19944 $as_echo_n "(cached) " >&6
19946 if test -n "$ac_ct_WINDRES"; then
19947 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19950 for as_dir in $PATH
19953 test -z "$as_dir" && as_dir=.
19954 for ac_exec_ext in '' $ac_executable_extensions; do
19955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19956 ac_cv_prog_ac_ct_WINDRES="windres"
19957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19966 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19967 if test -n "$ac_ct_WINDRES"; then
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19969 $as_echo "$ac_ct_WINDRES" >&6; }
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19972 $as_echo "no" >&6; }
19975 if test "x$ac_ct_WINDRES" = x; then
19978 case $cross_compiling:$ac_tool_warned in
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19982 ac_tool_warned=yes ;;
19984 WINDRES=$ac_ct_WINDRES
19987 WINDRES="$ac_cv_prog_WINDRES"
19990 LIBS="$LIBS -liphlpapi -lcrypt32"
19991 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
19993 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
19995 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
19997 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
19999 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
20001 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
20003 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
20005 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
20008 if test $ac_cv_func_getaddrinfo = no; then
20009 case " $LIBOBJS " in
20010 *" fake-rfc2553.$ac_objext "* ) ;;
20011 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
20016 # check after getaddrinfo for its libraries
20018 # check ioctlsocket
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
20020 $as_echo_n "checking for ioctlsocket... " >&6; }
20021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h. */
20024 #ifdef HAVE_WINSOCK2_H
20025 #include <winsock2.h>
20032 (void)ioctlsocket(0, 0, NULL);
20038 if ac_fn_c_try_link "$LINENO"; then :
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20041 $as_echo "yes" >&6; }
20043 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20048 $as_echo "no" >&6; }
20050 rm -f core conftest.err conftest.$ac_objext \
20051 conftest$ac_exeext conftest.$ac_ext
20054 # see if daemon(3) exists, and if it is deprecated.
20055 for ac_func in daemon
20057 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
20058 if test "x$ac_cv_func_daemon" = xyes; then :
20059 cat >>confdefs.h <<_ACEOF
20060 #define HAVE_DAEMON 1
20066 if test $ac_cv_func_daemon = yes; then
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
20070 $as_echo_n "checking if daemon is deprecated... " >&6; }
20071 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
20072 if eval \${cv_cc_deprecated_$cache+:} false; then :
20073 $as_echo_n "(cached) " >&6
20077 #include <stdlib.h>
20079 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
20080 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
20081 eval "cv_cc_deprecated_$cache=no"
20083 eval "cv_cc_deprecated_$cache=yes"
20085 rm -f conftest conftest.o conftest.c
20089 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20091 $as_echo "yes" >&6; }
20093 cat >>confdefs.h <<_ACEOF
20094 #define DEPRECATED_DAEMON 1
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20101 $as_echo "no" >&6; }
20108 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
20109 $ac_includes_default
20110 #ifdef HAVE_SYS_UN_H
20111 #include <sys/un.h>
20115 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
20117 cat >>confdefs.h <<_ACEOF
20118 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
20124 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
20125 $ac_includes_default
20126 #if HAVE_SYS_PARAM_H
20127 #include <sys/param.h>
20130 #ifdef HAVE_SYS_SOCKET_H
20131 #include <sys/socket.h>
20134 #ifdef HAVE_SYS_UIO_H
20135 #include <sys/uio.h>
20138 #ifdef HAVE_NETINET_IN_H
20139 #include <netinet/in.h>
20142 #ifdef HAVE_NETINET_TCP_H
20143 #include <netinet/tcp.h>
20146 #ifdef HAVE_ARPA_INET_H
20147 #include <arpa/inet.h>
20150 #ifdef HAVE_WINSOCK2_H
20151 #include <winsock2.h>
20154 #ifdef HAVE_WS2TCPIP_H
20155 #include <ws2tcpip.h>
20159 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
20161 cat >>confdefs.h <<_ACEOF
20162 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
20170 $as_echo_n "checking for htobe64... " >&6; }
20171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h. */
20175 #ifdef HAVE_ENDIAN_H
20176 # include <endian.h>
20178 #ifdef HAVE_SYS_ENDIAN_H
20179 # include <sys/endian.h>
20185 unsigned long long x = htobe64(0); printf("%u", (unsigned)x);
20190 if ac_fn_c_try_link "$LINENO"; then :
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20192 $as_echo "yes" >&6; }
20194 $as_echo "#define HAVE_HTOBE64 1" >>confdefs.h
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20198 $as_echo "no" >&6; }
20200 rm -f core conftest.err conftest.$ac_objext \
20201 conftest$ac_exeext conftest.$ac_ext
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
20204 $as_echo_n "checking for be64toh... " >&6; }
20205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20206 /* end confdefs.h. */
20209 #ifdef HAVE_ENDIAN_H
20210 # include <endian.h>
20212 #ifdef HAVE_SYS_ENDIAN_H
20213 # include <sys/endian.h>
20219 unsigned long long x = be64toh(0); printf("%u", (unsigned)x);
20224 if ac_fn_c_try_link "$LINENO"; then :
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20226 $as_echo "yes" >&6; }
20228 $as_echo "#define HAVE_BE64TOH 1" >>confdefs.h
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20232 $as_echo "no" >&6; }
20234 rm -f core conftest.err conftest.$ac_objext \
20235 conftest$ac_exeext conftest.$ac_ext
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
20238 $as_echo_n "checking for library containing setusercontext... " >&6; }
20239 if ${ac_cv_search_setusercontext+:} false; then :
20240 $as_echo_n "(cached) " >&6
20242 ac_func_search_save_LIBS=$LIBS
20243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20244 /* end confdefs.h. */
20246 /* Override any GCC internal prototype to avoid an error.
20247 Use char because int might match the return type of a GCC
20248 builtin and then its argument prototype would still apply. */
20252 char setusercontext ();
20256 return setusercontext ();
20261 for ac_lib in '' util; do
20262 if test -z "$ac_lib"; then
20263 ac_res="none required"
20266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20268 if ac_fn_c_try_link "$LINENO"; then :
20269 ac_cv_search_setusercontext=$ac_res
20271 rm -f core conftest.err conftest.$ac_objext \
20273 if ${ac_cv_search_setusercontext+:} false; then :
20277 if ${ac_cv_search_setusercontext+:} false; then :
20280 ac_cv_search_setusercontext=no
20282 rm conftest.$ac_ext
20283 LIBS=$ac_func_search_save_LIBS
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20286 $as_echo "$ac_cv_search_setusercontext" >&6; }
20287 ac_res=$ac_cv_search_setusercontext
20288 if test "$ac_res" != no; then :
20289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20293 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
20295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20297 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20298 cat >>confdefs.h <<_ACEOF
20299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20305 for ac_func in setresuid
20307 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
20308 if test "x$ac_cv_func_setresuid" = xyes; then :
20309 cat >>confdefs.h <<_ACEOF
20310 #define HAVE_SETRESUID 1
20314 for ac_func in setreuid
20316 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
20317 if test "x$ac_cv_func_setreuid" = xyes; then :
20318 cat >>confdefs.h <<_ACEOF
20319 #define HAVE_SETREUID 1
20328 for ac_func in setresgid
20330 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
20331 if test "x$ac_cv_func_setresgid" = xyes; then :
20332 cat >>confdefs.h <<_ACEOF
20333 #define HAVE_SETRESGID 1
20337 for ac_func in setregid
20339 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
20340 if test "x$ac_cv_func_setregid" = xyes; then :
20341 cat >>confdefs.h <<_ACEOF
20342 #define HAVE_SETREGID 1
20352 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
20353 if echo $target_os | grep darwin8 > /dev/null; then
20355 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
20358 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
20359 $ac_includes_default
20360 #ifdef HAVE_NETINET_IN_H
20361 #include <netinet/in.h>
20364 #ifdef HAVE_NETINET_TCP_H
20365 #include <netinet/tcp.h>
20368 #ifdef HAVE_ARPA_INET_H
20369 #include <arpa/inet.h>
20372 #ifdef HAVE_WINSOCK2_H
20373 #include <winsock2.h>
20376 #ifdef HAVE_WS2TCPIP_H
20377 #include <ws2tcpip.h>
20381 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
20387 cat >>confdefs.h <<_ACEOF
20388 #define HAVE_DECL_INET_PTON $ac_have_decl
20390 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
20391 $ac_includes_default
20392 #ifdef HAVE_NETINET_IN_H
20393 #include <netinet/in.h>
20396 #ifdef HAVE_NETINET_TCP_H
20397 #include <netinet/tcp.h>
20400 #ifdef HAVE_ARPA_INET_H
20401 #include <arpa/inet.h>
20404 #ifdef HAVE_WINSOCK2_H
20405 #include <winsock2.h>
20408 #ifdef HAVE_WS2TCPIP_H
20409 #include <ws2tcpip.h>
20413 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
20419 cat >>confdefs.h <<_ACEOF
20420 #define HAVE_DECL_INET_NTOP $ac_have_decl
20423 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
20424 if test "x$ac_cv_func_inet_aton" = xyes; then :
20425 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
20428 case " $LIBOBJS " in
20429 *" inet_aton.$ac_objext "* ) ;;
20430 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20437 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
20438 if test "x$ac_cv_func_inet_pton" = xyes; then :
20439 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
20442 case " $LIBOBJS " in
20443 *" inet_pton.$ac_objext "* ) ;;
20444 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
20451 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20452 if test "x$ac_cv_func_inet_ntop" = xyes; then :
20453 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
20456 case " $LIBOBJS " in
20457 *" inet_ntop.$ac_objext "* ) ;;
20458 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20465 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20466 if test "x$ac_cv_func_snprintf" = xyes; then :
20467 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20470 case " $LIBOBJS " in
20471 *" snprintf.$ac_objext "* ) ;;
20472 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20479 # test if snprintf return the proper length
20480 if test "x$ac_cv_func_snprintf" = xyes; then
20481 if test c${cross_compiling} = cno; then
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
20483 $as_echo_n "checking for correct snprintf return value... " >&6; }
20484 if test "$cross_compiling" = yes; then :
20485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20487 as_fn_error $? "cannot run test program while cross compiling
20488 See \`config.log' for more details" "$LINENO" 5; }
20490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20491 /* end confdefs.h. */
20492 $ac_includes_default
20494 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
20497 if ac_fn_c_try_run "$LINENO"; then :
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20499 $as_echo "yes" >&6; }
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20503 $as_echo "no" >&6; }
20505 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
20507 case " $LIBOBJS " in
20508 *" snprintf.$ac_objext "* ) ;;
20509 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20516 conftest.$ac_objext conftest.beam conftest.$ac_ext
20521 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20522 if test "x$ac_cv_func_strlcat" = xyes; then :
20523 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
20526 case " $LIBOBJS " in
20527 *" strlcat.$ac_objext "* ) ;;
20528 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20535 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20536 if test "x$ac_cv_func_strlcpy" = xyes; then :
20537 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
20540 case " $LIBOBJS " in
20541 *" strlcpy.$ac_objext "* ) ;;
20542 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20549 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20550 if test "x$ac_cv_func_memmove" = xyes; then :
20551 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20554 case " $LIBOBJS " in
20555 *" memmove.$ac_objext "* ) ;;
20556 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
20563 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
20564 if test "x$ac_cv_func_gmtime_r" = xyes; then :
20565 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20568 case " $LIBOBJS " in
20569 *" gmtime_r.$ac_objext "* ) ;;
20570 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
20577 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
20578 if test "x$ac_cv_func_isblank" = xyes; then :
20579 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
20582 case " $LIBOBJS " in
20583 *" isblank.$ac_objext "* ) ;;
20584 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
20591 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20592 if test "x$ac_cv_func_explicit_bzero" = xyes; then :
20593 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20596 case " $LIBOBJS " in
20597 *" explicit_bzero.$ac_objext "* ) ;;
20598 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
20605 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
20608 $as_echo_n "checking for reallocarray... " >&6; }
20609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20610 /* end confdefs.h. */
20611 $ac_includes_default
20613 #ifndef _OPENBSD_SOURCE
20614 #define _OPENBSD_SOURCE 1
20616 #include <stdlib.h>
20618 void* p = reallocarray(NULL, 10, 100);
20624 if ac_fn_c_try_link "$LINENO"; then :
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20626 $as_echo "yes" >&6; }
20628 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20634 $as_echo "no" >&6; }
20635 case " $LIBOBJS " in
20636 *" reallocarray.$ac_objext "* ) ;;
20637 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20643 rm -f core conftest.err conftest.$ac_objext \
20644 conftest$ac_exeext conftest.$ac_ext
20645 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
20646 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
20652 cat >>confdefs.h <<_ACEOF
20653 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
20656 if test "$USE_NSS" = "no"; then
20657 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
20658 if test "x$ac_cv_func_arc4random" = xyes; then :
20659 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
20662 case " $LIBOBJS " in
20663 *" arc4random.$ac_objext "* ) ;;
20664 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
20671 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
20672 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
20673 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
20676 case " $LIBOBJS " in
20677 *" arc4random_uniform.$ac_objext "* ) ;;
20678 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
20685 if test "$ac_cv_func_arc4random" = "no"; then
20686 case " $LIBOBJS " in
20687 *" arc4_lock.$ac_objext "* ) ;;
20688 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
20692 for ac_func in getentropy
20694 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
20695 if test "x$ac_cv_func_getentropy" = xyes; then :
20696 cat >>confdefs.h <<_ACEOF
20697 #define HAVE_GETENTROPY 1
20702 if test "$USE_WINSOCK" = 1; then
20703 case " $LIBOBJS " in
20704 *" getentropy_win.$ac_objext "* ) ;;
20705 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
20712 case " $LIBOBJS " in
20713 *" getentropy_osx.$ac_objext "* ) ;;
20714 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
20719 *solaris*|*sunos*|SunOS)
20720 case " $LIBOBJS " in
20721 *" getentropy_solaris.$ac_objext "* ) ;;
20722 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
20726 for ac_header in sys/sha2.h
20728 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
20730 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
20731 cat >>confdefs.h <<_ACEOF
20732 #define HAVE_SYS_SHA2_H 1
20737 for ac_func in SHA512_Update
20739 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20740 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20741 cat >>confdefs.h <<_ACEOF
20742 #define HAVE_SHA512_UPDATE 1
20747 case " $LIBOBJS " in
20748 *" sha512.$ac_objext "* ) ;;
20749 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20762 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
20763 # this lib needed for sha2 on solaris
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20767 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20768 if ${ac_cv_search_clock_gettime+:} false; then :
20769 $as_echo_n "(cached) " >&6
20771 ac_func_search_save_LIBS=$LIBS
20772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20773 /* end confdefs.h. */
20775 /* Override any GCC internal prototype to avoid an error.
20776 Use char because int might match the return type of a GCC
20777 builtin and then its argument prototype would still apply. */
20781 char clock_gettime ();
20785 return clock_gettime ();
20790 for ac_lib in '' rt; do
20791 if test -z "$ac_lib"; then
20792 ac_res="none required"
20795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20797 if ac_fn_c_try_link "$LINENO"; then :
20798 ac_cv_search_clock_gettime=$ac_res
20800 rm -f core conftest.err conftest.$ac_objext \
20802 if ${ac_cv_search_clock_gettime+:} false; then :
20806 if ${ac_cv_search_clock_gettime+:} false; then :
20809 ac_cv_search_clock_gettime=no
20811 rm conftest.$ac_ext
20812 LIBS=$ac_func_search_save_LIBS
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20815 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20816 ac_res=$ac_cv_search_clock_gettime
20817 if test "$ac_res" != no; then :
20818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20823 *freebsd*|*FreeBSD)
20824 case " $LIBOBJS " in
20825 *" getentropy_freebsd.$ac_objext "* ) ;;
20826 *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
20832 case " $LIBOBJS " in
20833 *" getentropy_linux.$ac_objext "* ) ;;
20834 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
20838 for ac_func in SHA512_Update
20840 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20841 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20842 cat >>confdefs.h <<_ACEOF
20843 #define HAVE_SHA512_UPDATE 1
20849 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
20851 case " $LIBOBJS " in
20852 *" sha512.$ac_objext "* ) ;;
20853 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20861 for ac_header in sys/sysctl.h
20863 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
20865 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
20866 cat >>confdefs.h <<_ACEOF
20867 #define HAVE_SYS_SYSCTL_H 1
20874 for ac_func in getauxval
20876 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
20877 if test "x$ac_cv_func_getauxval" = xyes; then :
20878 cat >>confdefs.h <<_ACEOF
20879 #define HAVE_GETAUXVAL 1
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20886 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20887 if ${ac_cv_search_clock_gettime+:} false; then :
20888 $as_echo_n "(cached) " >&6
20890 ac_func_search_save_LIBS=$LIBS
20891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20892 /* end confdefs.h. */
20894 /* Override any GCC internal prototype to avoid an error.
20895 Use char because int might match the return type of a GCC
20896 builtin and then its argument prototype would still apply. */
20900 char clock_gettime ();
20904 return clock_gettime ();
20909 for ac_lib in '' rt; do
20910 if test -z "$ac_lib"; then
20911 ac_res="none required"
20914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20916 if ac_fn_c_try_link "$LINENO"; then :
20917 ac_cv_search_clock_gettime=$ac_res
20919 rm -f core conftest.err conftest.$ac_objext \
20921 if ${ac_cv_search_clock_gettime+:} false; then :
20925 if ${ac_cv_search_clock_gettime+:} false; then :
20928 ac_cv_search_clock_gettime=no
20930 rm conftest.$ac_ext
20931 LIBS=$ac_func_search_save_LIBS
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20934 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20935 ac_res=$ac_cv_search_clock_gettime
20936 if test "$ac_res" != no; then :
20937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20950 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
20952 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
20953 if test "x$ac_cv_func_ctime_r" = xyes; then :
20954 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
20957 case " $LIBOBJS " in
20958 *" ctime_r.$ac_objext "* ) ;;
20959 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
20966 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
20967 if test "x$ac_cv_func_strsep" = xyes; then :
20968 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
20971 case " $LIBOBJS " in
20972 *" strsep.$ac_objext "* ) ;;
20973 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
20981 # Check whether --enable-allsymbols was given.
20982 if test "${enable_allsymbols+set}" = set; then :
20983 enableval=$enable_allsymbols;
20986 case "$enable_allsymbols" in
20988 COMMON_OBJ_ALL_SYMBOLS=""
20990 EXTRALINK="-L. -L.libs -lunbound"
20992 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
20996 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
20997 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
21004 if test x_$enable_lock_checks = x_yes; then
21005 UBSYMS="-export-symbols clubsyms.def"
21006 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
21007 echo lock_protect >> clubsyms.def
21008 echo lock_unprotect >> clubsyms.def
21009 echo lock_get_mem >> clubsyms.def
21010 echo checklock_start >> clubsyms.def
21011 echo checklock_stop >> clubsyms.def
21012 echo checklock_lock >> clubsyms.def
21013 echo checklock_unlock >> clubsyms.def
21014 echo checklock_init >> clubsyms.def
21015 echo checklock_thrcreate >> clubsyms.def
21016 echo checklock_thrjoin >> clubsyms.def
21019 # check for dnstap if requested
21021 # Check whether --enable-dnstap was given.
21022 if test "${enable_dnstap+set}" = set; then :
21023 enableval=$enable_dnstap; opt_dnstap=$enableval
21030 # Check whether --with-dnstap-socket-path was given.
21031 if test "${with_dnstap_socket_path+set}" = set; then :
21032 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
21034 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
21038 if test "x$opt_dnstap" != "xno"; then
21039 # Extract the first word of "protoc-c", so it can be a program name with args.
21040 set dummy protoc-c; ac_word=$2
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21042 $as_echo_n "checking for $ac_word... " >&6; }
21043 if ${ac_cv_path_PROTOC_C+:} false; then :
21044 $as_echo_n "(cached) " >&6
21048 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
21051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21052 for as_dir in $PATH
21055 test -z "$as_dir" && as_dir=.
21056 for ac_exec_ext in '' $ac_executable_extensions; do
21057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21058 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
21059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21069 PROTOC_C=$ac_cv_path_PROTOC_C
21070 if test -n "$PROTOC_C"; then
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
21072 $as_echo "$PROTOC_C" >&6; }
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21075 $as_echo "no" >&6; }
21079 if test -z "$PROTOC_C"; then
21080 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
21083 # Check whether --with-protobuf-c was given.
21084 if test "${with_protobuf_c+set}" = set; then :
21085 withval=$with_protobuf_c;
21086 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21087 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
21088 CFLAGS="$CFLAGS -I$withval/include/google"
21090 CFLAGS="$CFLAGS -I$withval/include"
21092 LDFLAGS="$LDFLAGS -L$withval/lib"
21096 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21097 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
21098 CFLAGS="$CFLAGS -I/usr/include/google"
21100 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
21101 CFLAGS="$CFLAGS -I/usr/local/include/google"
21102 LDFLAGS="$LDFLAGS -L/usr/local/lib"
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
21109 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
21110 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21111 $as_echo_n "(cached) " >&6
21113 ac_func_search_save_LIBS=$LIBS
21114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21115 /* end confdefs.h. */
21117 /* Override any GCC internal prototype to avoid an error.
21118 Use char because int might match the return type of a GCC
21119 builtin and then its argument prototype would still apply. */
21123 char protobuf_c_message_pack ();
21127 return protobuf_c_message_pack ();
21132 for ac_lib in '' protobuf-c; do
21133 if test -z "$ac_lib"; then
21134 ac_res="none required"
21137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21139 if ac_fn_c_try_link "$LINENO"; then :
21140 ac_cv_search_protobuf_c_message_pack=$ac_res
21142 rm -f core conftest.err conftest.$ac_objext \
21144 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21148 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21151 ac_cv_search_protobuf_c_message_pack=no
21153 rm conftest.$ac_ext
21154 LIBS=$ac_func_search_save_LIBS
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
21157 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
21158 ac_res=$ac_cv_search_protobuf_c_message_pack
21159 if test "$ac_res" != no; then :
21160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21163 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
21168 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
21174 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
21177 cat >>confdefs.h <<_ACEOF
21178 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
21181 DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path"
21184 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c"
21186 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo"
21198 # check for dnscrypt if requested
21200 # Check whether --enable-dnscrypt was given.
21201 if test "${enable_dnscrypt+set}" = set; then :
21202 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
21208 if test "x$opt_dnscrypt" != "xno"; then
21210 # Check whether --with-libsodium was given.
21211 if test "${with_libsodium+set}" = set; then :
21212 withval=$with_libsodium;
21213 CFLAGS="$CFLAGS -I$withval/include"
21214 LDFLAGS="$LDFLAGS -L$withval/lib"
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
21219 $as_echo_n "checking for library containing sodium_init... " >&6; }
21220 if ${ac_cv_search_sodium_init+:} false; then :
21221 $as_echo_n "(cached) " >&6
21223 ac_func_search_save_LIBS=$LIBS
21224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21225 /* end confdefs.h. */
21227 /* Override any GCC internal prototype to avoid an error.
21228 Use char because int might match the return type of a GCC
21229 builtin and then its argument prototype would still apply. */
21233 char sodium_init ();
21237 return sodium_init ();
21242 for ac_lib in '' sodium; do
21243 if test -z "$ac_lib"; then
21244 ac_res="none required"
21247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21249 if ac_fn_c_try_link "$LINENO"; then :
21250 ac_cv_search_sodium_init=$ac_res
21252 rm -f core conftest.err conftest.$ac_objext \
21254 if ${ac_cv_search_sodium_init+:} false; then :
21258 if ${ac_cv_search_sodium_init+:} false; then :
21261 ac_cv_search_sodium_init=no
21263 rm conftest.$ac_ext
21264 LIBS=$ac_func_search_save_LIBS
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
21267 $as_echo "$ac_cv_search_sodium_init" >&6; }
21268 ac_res=$ac_cv_search_sodium_init
21269 if test "$ac_res" != no; then :
21270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21273 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21277 $as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
21278 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21279 $as_echo_n "(cached) " >&6
21281 ac_func_search_save_LIBS=$LIBS
21282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21283 /* end confdefs.h. */
21285 /* Override any GCC internal prototype to avoid an error.
21286 Use char because int might match the return type of a GCC
21287 builtin and then its argument prototype would still apply. */
21291 char crypto_box_curve25519xchacha20poly1305_beforenm ();
21295 return crypto_box_curve25519xchacha20poly1305_beforenm ();
21300 for ac_lib in '' sodium; do
21301 if test -z "$ac_lib"; then
21302 ac_res="none required"
21305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21307 if ac_fn_c_try_link "$LINENO"; then :
21308 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
21310 rm -f core conftest.err conftest.$ac_objext \
21312 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21316 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21319 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
21321 rm conftest.$ac_ext
21322 LIBS=$ac_func_search_save_LIBS
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21325 $as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
21326 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
21327 if test "$ac_res" != no; then :
21328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21330 ENABLE_DNSCRYPT_XCHACHA20=1
21333 $as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
21338 ENABLE_DNSCRYPT_XCHACHA20=0
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
21344 $as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
21345 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21346 $as_echo_n "(cached) " >&6
21348 ac_func_search_save_LIBS=$LIBS
21349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21350 /* end confdefs.h. */
21352 /* Override any GCC internal prototype to avoid an error.
21353 Use char because int might match the return type of a GCC
21354 builtin and then its argument prototype would still apply. */
21358 char sodium_set_misuse_handler ();
21362 return sodium_set_misuse_handler ();
21367 for ac_lib in '' sodium; do
21368 if test -z "$ac_lib"; then
21369 ac_res="none required"
21372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21374 if ac_fn_c_try_link "$LINENO"; then :
21375 ac_cv_search_sodium_set_misuse_handler=$ac_res
21377 rm -f core conftest.err conftest.$ac_objext \
21379 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21383 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21386 ac_cv_search_sodium_set_misuse_handler=no
21388 rm conftest.$ac_ext
21389 LIBS=$ac_func_search_save_LIBS
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
21392 $as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
21393 ac_res=$ac_cv_search_sodium_set_misuse_handler
21394 if test "$ac_res" != no; then :
21395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21398 $as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
21405 $as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
21410 DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
21412 DNSCRYPT_OBJ="dnscrypt.lo"
21416 ENABLE_DNSCRYPT_XCHACHA20=0
21426 # check for cachedb if requested
21427 # Check whether --enable-cachedb was given.
21428 if test "${enable_cachedb+set}" = set; then :
21429 enableval=$enable_cachedb;
21432 # turn on cachedb when hiredis support is enabled.
21433 if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
21434 case "$enable_cachedb" in
21437 $as_echo "#define USE_CACHEDB 1" >>confdefs.h
21445 # check for ipsecmod if requested
21446 # Check whether --enable-ipsecmod was given.
21447 if test "${enable_ipsecmod+set}" = set; then :
21448 enableval=$enable_ipsecmod;
21451 case "$enable_ipsecmod" in
21454 $as_echo "#define USE_IPSECMOD 1" >>confdefs.h
21456 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
21458 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
21466 # check for ipset if requested
21467 # Check whether --enable-ipset was given.
21468 if test "${enable_ipset+set}" = set; then :
21469 enableval=$enable_ipset;
21472 case "$enable_ipset" in
21475 $as_echo "#define USE_IPSET 1" >>confdefs.h
21477 IPSET_SRC="ipset/ipset.c"
21479 IPSET_OBJ="ipset.lo"
21484 # Check whether --with-libmnl was given.
21485 if test "${with_libmnl+set}" = set; then :
21486 withval=$with_libmnl;
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
21493 $as_echo_n "checking for libmnl... " >&6; }
21494 if test x_$withval = x_ -o x_$withval = x_yes; then
21495 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21497 for dir in $withval ; do
21498 if test -f "$dir/include/libmnl/libmnl.h"; then
21500 if test "$dir" != "/usr"; then
21501 CPPFLAGS="$CPPFLAGS -I$dir/include"
21502 LDFLAGS="$LDFLAGS -L$dir/lib"
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21505 $as_echo "found in $dir" >&6; }
21510 if test x_$found_libmnl != x_yes; then
21511 as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
21518 # Check whether --enable-explicit-port-randomisation was given.
21519 if test "${enable_explicit_port_randomisation+set}" = set; then :
21520 enableval=$enable_explicit_port_randomisation;
21523 case "$enable_explicit_port_randomisation" in
21526 $as_echo "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
21535 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
21536 # on openBSD, the implicit rule make $< work.
21537 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
21539 cat >conftest.make <<EOF
21542 conftest.lo foo.lo bla.lo:
21543 if test -f "\$<"; then touch \$@; fi
21547 if test -f "\$<"; then touch \$@; fi
21549 conftest.lo: conftest.dir/conftest.c
21552 touch conftest.dir/conftest.c
21553 rm -f conftest.lo conftest.c
21554 ${MAKE:-make} -f conftest.make >/dev/null
21555 rm -f conftest.make conftest.c conftest.dir/conftest.c
21556 rm -rf conftest.dir
21557 if test ! -f conftest.lo; then
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21559 $as_echo "no" >&6; }
21560 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
21561 SOURCEFILE='`cat .source`'
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21564 $as_echo "yes" >&6; }
21565 SOURCEDETERMINE=':'
21572 # see if we want to build the library or everything
21573 ALLTARGET="alltargets"
21574 INSTALLTARGET="install-all"
21576 # Check whether --with-libunbound-only was given.
21577 if test "${with_libunbound_only+set}" = set; then :
21578 withval=$with_libunbound_only;
21579 if test "$withval" = "yes"; then
21581 INSTALLTARGET="install-lib"
21586 if test $ALLTARGET = "alltargets"; then
21587 if test $USE_NSS = "yes"; then
21588 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
21590 if test $USE_NETTLE = "yes"; then
21591 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
21600 $as_echo "$as_me: Stripping extension flags..." >&6;}
21602 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
21603 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
21605 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
21610 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
21611 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
21613 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
21618 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
21619 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
21621 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
21626 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
21627 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
21629 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
21634 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
21635 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
21637 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
21642 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
21643 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
21645 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
21650 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
21651 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
21653 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
21658 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
21659 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
21661 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
21666 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
21667 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
21669 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
21674 if test -n "$LATE_LDFLAGS"; then
21675 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
21677 # remove start spaces
21678 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
21679 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
21682 cat >>confdefs.h <<_ACEOF
21683 #define MAXSYSLOGMSGLEN 10240
21691 date=`date +'%b %e, %Y'`
21694 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"
21696 ac_config_headers="$ac_config_headers config.h"
21698 cat >confcache <<\_ACEOF
21699 # This file is a shell script that caches the results of configure
21700 # tests run on this system so they can be shared between configure
21701 # scripts and configure runs, see configure's option --config-cache.
21702 # It is not useful on other systems. If it contains results you don't
21703 # want to keep, you may remove or edit it.
21705 # config.status only pays attention to the cache file if you give it
21706 # the --recheck option to rerun configure.
21708 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21709 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21710 # following values.
21714 # The following way of writing the cache mishandles newlines in values,
21715 # but we know of no workaround that is simple, portable, and efficient.
21716 # So, we kill variables containing newlines.
21717 # Ultrix sh set writes to stderr and can't be redirected directly,
21718 # and sets the high bit in the cache file unless we assign to the vars.
21720 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21721 eval ac_val=\$$ac_var
21725 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21726 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21729 _ | IFS | as_nl) ;; #(
21730 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21731 *) { eval $ac_var=; unset $ac_var;} ;;
21737 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21738 *${as_nl}ac_space=\ *)
21739 # `set' does not quote correctly, so add quotes: double-quote
21740 # substitution turns \\\\ into \\, and sed turns \\ into \.
21743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21746 # `set' quotes correctly as required by POSIX, so do not add quotes.
21747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21756 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21758 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21760 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21761 if test -w "$cache_file"; then
21762 if test "x$cache_file" != "x/dev/null"; then
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21764 $as_echo "$as_me: updating cache $cache_file" >&6;}
21765 if test ! -f "$cache_file" || test -h "$cache_file"; then
21766 cat confcache >"$cache_file"
21768 case $cache_file in #(
21770 mv -f confcache "$cache_file"$$ &&
21771 mv -f "$cache_file"$$ "$cache_file" ;; #(
21773 mv -f confcache "$cache_file" ;;
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21779 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21784 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21785 # Let make expand exec_prefix.
21786 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21788 DEFS=-DHAVE_CONFIG_H
21793 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21794 # 1. Remove the extension, and $U if already installed.
21795 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21796 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21797 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21798 # will be set to the directory where LIBOBJS objects are built.
21799 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21800 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21802 LIBOBJS=$ac_libobjs
21804 LTLIBOBJS=$ac_ltlibobjs
21807 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
21808 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
21809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21812 : "${CONFIG_STATUS=./config.status}"
21814 ac_clean_files_save=$ac_clean_files
21815 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21817 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21819 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21821 # Generated by $as_me.
21822 # Run this file to recreate the current configuration.
21823 # Compiler output produced by configure, useful for debugging
21824 # configure, is in config.log if it exists.
21827 ac_cs_recheck=false
21830 SHELL=\${CONFIG_SHELL-$SHELL}
21833 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21834 ## -------------------- ##
21835 ## M4sh Initialization. ##
21836 ## -------------------- ##
21838 # Be more Bourne compatible
21839 DUALCASE=1; export DUALCASE # for MKS sh
21840 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21843 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21844 # is contrary to our usage. Disable this feature.
21845 alias -g '${1+"$@"}'='"$@"'
21846 setopt NO_GLOB_SUBST
21848 case `(set -o) 2>/dev/null` in #(
21860 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21861 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21862 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21864 # Prefer a ksh shell builtin over an external printf program on Solaris,
21865 # but without wasting forks for bash or zsh.
21866 if test -z "$BASH_VERSION$ZSH_VERSION" \
21867 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21868 as_echo='print -r --'
21869 as_echo_n='print -rn --'
21870 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21871 as_echo='printf %s\n'
21872 as_echo_n='printf %s'
21874 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21875 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21876 as_echo_n='/usr/ucb/echo -n'
21878 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21879 as_echo_n_body='eval
21883 expr "X$arg" : "X\\(.*\\)$as_nl";
21884 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21886 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21888 export as_echo_n_body
21889 as_echo_n='sh -c $as_echo_n_body as_echo'
21891 export as_echo_body
21892 as_echo='sh -c $as_echo_body as_echo'
21895 # The user is always right.
21896 if test "${PATH_SEPARATOR+set}" != set; then
21898 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21899 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21906 # We need space, tab and new line, in precisely that order. Quoting is
21907 # there to prevent editors from complaining about space-tab.
21908 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21909 # splitting by setting IFS to empty value.)
21912 # Find who we are. Look in the path if we contain no directory separator.
21915 *[\\/]* ) as_myself=$0 ;;
21916 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21917 for as_dir in $PATH
21920 test -z "$as_dir" && as_dir=.
21921 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21927 # We did not find ourselves, most probably we were run as `sh COMMAND'
21928 # in which case we are not to be found in the path.
21929 if test "x$as_myself" = x; then
21932 if test ! -f "$as_myself"; then
21933 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21937 # Unset variables that we do not need and which cause bugs (e.g. in
21938 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21939 # suppresses any "Segmentation fault" message there. '((' could
21940 # trigger a bug in pdksh 5.2.14.
21941 for as_var in BASH_ENV ENV MAIL MAILPATH
21942 do eval test x\${$as_var+set} = xset \
21943 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21956 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21959 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21960 # ----------------------------------------
21961 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21962 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21963 # script with STATUS, using 1 if that was 0.
21966 as_status=$1; test $as_status -eq 0 && as_status=1
21968 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21969 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21971 $as_echo "$as_me: error: $2" >&2
21972 as_fn_exit $as_status
21976 # as_fn_set_status STATUS
21977 # -----------------------
21978 # Set $? to STATUS, without forking.
21979 as_fn_set_status ()
21982 } # as_fn_set_status
21984 # as_fn_exit STATUS
21985 # -----------------
21986 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21990 as_fn_set_status $1
21996 # Portably unset VAR.
21999 { eval $1=; unset $1;}
22001 as_unset=as_fn_unset
22002 # as_fn_append VAR VALUE
22003 # ----------------------
22004 # Append the text in VALUE to the end of the definition contained in VAR. Take
22005 # advantage of any shell optimizations that allow amortized linear growth over
22006 # repeated appends, instead of the typical quadratic growth present in naive
22008 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22009 eval 'as_fn_append ()
22020 # as_fn_arith ARG...
22021 # ------------------
22022 # Perform arithmetic evaluation on the ARGs, and store the result in the
22023 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22024 # must be portable across $(()) and expr.
22025 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22026 eval 'as_fn_arith ()
22033 as_val=`expr "$@" || test $? -eq 1`
22038 if expr a : '\(a\)' >/dev/null 2>&1 &&
22039 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22045 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22046 as_basename=basename
22051 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22057 as_me=`$as_basename -- "$0" ||
22058 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22059 X"$0" : 'X\(//\)$' \| \
22060 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22062 sed '/^.*\/\([^/][^/]*\)\/*$/{
22076 # Avoid depending upon Character Ranges.
22077 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22078 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22079 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22080 as_cr_digits='0123456789'
22081 as_cr_alnum=$as_cr_Letters$as_cr_digits
22083 ECHO_C= ECHO_N= ECHO_T=
22084 case `echo -n x` in #(((((
22086 case `echo 'xy\c'` in
22087 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22089 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22096 rm -f conf$$ conf$$.exe conf$$.file
22097 if test -d conf$$.dir; then
22098 rm -f conf$$.dir/conf$$.file
22101 mkdir conf$$.dir 2>/dev/null
22103 if (echo >conf$$.file) 2>/dev/null; then
22104 if ln -s conf$$.file conf$$ 2>/dev/null; then
22106 # ... but there are two gotchas:
22107 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22108 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22109 # In both cases, we have to default to `cp -pR'.
22110 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22112 elif ln conf$$.file conf$$ 2>/dev/null; then
22120 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22121 rmdir conf$$.dir 2>/dev/null
22126 # Create "$as_dir" as a directory, including parents if necessary.
22131 -*) as_dir=./$as_dir;;
22133 test -d "$as_dir" || eval $as_mkdir_p || {
22137 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22138 *) as_qdir=$as_dir;;
22140 as_dirs="'$as_qdir' $as_dirs"
22141 as_dir=`$as_dirname -- "$as_dir" ||
22142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22143 X"$as_dir" : 'X\(//\)[^/]' \| \
22144 X"$as_dir" : 'X\(//\)$' \| \
22145 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22146 $as_echo X"$as_dir" |
22147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22151 /^X\(\/\/\)[^/].*/{
22164 test -d "$as_dir" && break
22166 test -z "$as_dirs" || eval "mkdir $as_dirs"
22167 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22171 if mkdir -p . 2>/dev/null; then
22172 as_mkdir_p='mkdir -p "$as_dir"'
22174 test -d ./-p && rmdir ./-p
22179 # as_fn_executable_p FILE
22180 # -----------------------
22181 # Test if FILE is an executable regular file.
22182 as_fn_executable_p ()
22184 test -f "$1" && test -x "$1"
22185 } # as_fn_executable_p
22186 as_test_x='test -x'
22187 as_executable_p=as_fn_executable_p
22189 # Sed expression to map a string onto a valid CPP name.
22190 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22192 # Sed expression to map a string onto a valid variable name.
22193 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22197 ## ----------------------------------- ##
22198 ## Main body of $CONFIG_STATUS script. ##
22199 ## ----------------------------------- ##
22201 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22204 # Save the log message, to keep $0 and so on meaningful, and to
22205 # report actual input values of CONFIG_FILES etc. instead of their
22206 # values after options handling.
22208 This file was extended by unbound $as_me 1.12.0, which was
22209 generated by GNU Autoconf 2.69. Invocation command line was
22211 CONFIG_FILES = $CONFIG_FILES
22212 CONFIG_HEADERS = $CONFIG_HEADERS
22213 CONFIG_LINKS = $CONFIG_LINKS
22214 CONFIG_COMMANDS = $CONFIG_COMMANDS
22217 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22222 case $ac_config_files in *"
22223 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22226 case $ac_config_headers in *"
22227 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22232 # Files that config.status was made for.
22233 config_files="$ac_config_files"
22234 config_headers="$ac_config_headers"
22235 config_commands="$ac_config_commands"
22239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22241 \`$as_me' instantiates files and other configuration actions
22242 from templates according to the current configuration. Unless the files
22243 and actions are specified as TAGs, all are instantiated by default.
22245 Usage: $0 [OPTION]... [TAG]...
22247 -h, --help print this help, then exit
22248 -V, --version print version number and configuration settings, then exit
22249 --config print configuration, then exit
22250 -q, --quiet, --silent
22251 do not print progress messages
22252 -d, --debug don't remove temporary files
22253 --recheck update $as_me by reconfiguring in the same conditions
22254 --file=FILE[:TEMPLATE]
22255 instantiate the configuration file FILE
22256 --header=FILE[:TEMPLATE]
22257 instantiate the configuration header FILE
22259 Configuration files:
22262 Configuration headers:
22265 Configuration commands:
22268 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
22271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22272 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22274 unbound config.status 1.12.0
22275 configured by $0, generated by GNU Autoconf 2.69,
22276 with options \\"\$ac_cs_config\\"
22278 Copyright (C) 2012 Free Software Foundation, Inc.
22279 This config.status script is free software; the Free Software Foundation
22280 gives unlimited permission to copy, distribute and modify it."
22285 test -n "\$AWK" || AWK=awk
22288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22289 # The default lists apply if the user does not specify any file.
22295 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22296 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22300 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22312 # Handling of the options.
22313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22316 $as_echo "$ac_cs_version"; exit ;;
22317 --config | --confi | --conf | --con | --co | --c )
22318 $as_echo "$ac_cs_config"; exit ;;
22319 --debug | --debu | --deb | --de | --d | -d )
22321 --file | --fil | --fi | --f )
22324 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22325 '') as_fn_error $? "missing file argument" ;;
22327 as_fn_append CONFIG_FILES " '$ac_optarg'"
22328 ac_need_defaults=false;;
22329 --header | --heade | --head | --hea )
22332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22334 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22335 ac_need_defaults=false;;
22337 # Conflict between --help and --header
22338 as_fn_error $? "ambiguous option: \`$1'
22339 Try \`$0 --help' for more information.";;
22340 --help | --hel | -h )
22341 $as_echo "$ac_cs_usage"; exit ;;
22342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22343 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22346 # This is an error.
22347 -*) as_fn_error $? "unrecognized option: \`$1'
22348 Try \`$0 --help' for more information." ;;
22350 *) as_fn_append ac_config_targets " $1"
22351 ac_need_defaults=false ;;
22357 ac_configure_extra_args=
22359 if $ac_cs_silent; then
22361 ac_configure_extra_args="$ac_configure_extra_args --silent"
22365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22366 if \$ac_cs_recheck; then
22367 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22369 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22370 CONFIG_SHELL='$SHELL'
22371 export CONFIG_SHELL
22376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22381 ## Running $as_me. ##
22387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22393 # The HP-UX ksh and POSIX shell print the target directory to stdout
22394 # if CDPATH is set.
22395 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22397 sed_quote_subst='$sed_quote_subst'
22398 double_quote_subst='$double_quote_subst'
22399 delay_variable_subst='$delay_variable_subst'
22400 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22401 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22402 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22403 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22404 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22405 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22406 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22407 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22408 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22409 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22410 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22411 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22412 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22413 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22414 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22415 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22416 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22417 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22418 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22419 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22420 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22421 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22422 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22423 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22424 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22425 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22426 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22427 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22428 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22429 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22430 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22431 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22432 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22433 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22434 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22435 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22436 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22437 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22438 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22439 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22440 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22441 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22442 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22443 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22444 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22445 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22446 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22447 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22448 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22449 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22450 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22451 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22452 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22453 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22454 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22455 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22456 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22457 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22458 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"`'
22459 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22460 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22461 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22462 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22463 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22464 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22465 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22466 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22467 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22468 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22469 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22470 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22471 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22472 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22473 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22474 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22475 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22476 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22477 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22478 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22479 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22480 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22481 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22482 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22483 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22484 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22485 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22486 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22487 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22488 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22489 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22490 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22491 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22492 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22493 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22494 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22495 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22496 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22497 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22498 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22499 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22500 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22501 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22502 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22503 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22504 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22505 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22506 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22507 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22508 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22509 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22510 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22511 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22512 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22513 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22514 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22515 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22516 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22517 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22518 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22519 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22520 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22521 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22522 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22523 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22524 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22525 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22526 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22527 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22528 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22529 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22530 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22531 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22532 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22533 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22534 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22537 LTCFLAGS='$LTCFLAGS'
22538 compiler='$compiler_DEFAULT'
22540 # A function that is used when there is no print builtin or printf.
22541 func_fallback_echo ()
22543 eval 'cat <<_LTECHO_EOF
22548 # Quote evaled strings.
22563 deplibs_check_method \
22568 sharedlib_from_linklib_cmd \
22571 archiver_list_spec \
22577 lt_cv_sys_global_symbol_pipe \
22578 lt_cv_sys_global_symbol_to_cdecl \
22579 lt_cv_sys_global_symbol_to_import \
22580 lt_cv_sys_global_symbol_to_c_name_address \
22581 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22582 lt_cv_nm_interface \
22583 nm_file_list_spec \
22584 lt_cv_truncate_bin \
22585 lt_prog_compiler_no_builtin_flag \
22586 lt_prog_compiler_pic \
22587 lt_prog_compiler_wl \
22588 lt_prog_compiler_static \
22589 lt_cv_prog_compiler_c_o \
22598 export_dynamic_flag_spec \
22599 whole_archive_flag_spec \
22600 compiler_needs_object \
22602 allow_undefined_flag \
22603 no_undefined_flag \
22604 hardcode_libdir_flag_spec \
22605 hardcode_libdir_separator \
22609 variables_saved_for_relink \
22611 library_names_spec \
22613 install_override_mode \
22617 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22618 *[\\\\\\\`\\"\\\$]*)
22619 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22622 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22627 # Double-quote double-evaled strings.
22628 for var in reload_cmds \
22629 old_postinstall_cmds \
22630 old_postuninstall_cmds \
22632 extract_expsyms_cmds \
22633 old_archive_from_new_cmds \
22634 old_archive_from_expsyms_cmds \
22636 archive_expsym_cmds \
22638 module_expsym_cmds \
22639 export_symbols_cmds \
22643 postuninstall_cmds \
22645 sys_lib_search_path_spec \
22646 configure_time_dlsearch_path \
22647 configure_time_lt_sys_library_path; do
22648 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22649 *[\\\\\\\`\\"\\\$]*)
22650 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22653 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22658 ac_aux_dir='$ac_aux_dir'
22660 # See if we are running on zsh, and set the options that allow our
22661 # commands through without removal of \ escapes INIT.
22662 if test -n "\${ZSH_VERSION+set}"; then
22663 setopt NO_GLOB_SUBST
22677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22679 # Handling of arguments.
22680 for ac_config_target in $ac_config_targets
22682 case $ac_config_target in
22683 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22684 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
22685 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22686 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
22687 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
22688 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
22689 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
22690 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
22691 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
22692 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
22693 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
22694 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
22695 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
22696 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
22697 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
22698 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
22699 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
22700 "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;;
22701 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22703 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22708 # If the user did not use the arguments to specify the items to instantiate,
22709 # then the envvar interface is used. Set only those that are not.
22710 # We use the long form for the default assignment because of an extremely
22711 # bizarre bug on SunOS 4.1.3.
22712 if $ac_need_defaults; then
22713 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22714 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22715 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22718 # Have a temporary directory for convenience. Make it in the build tree
22719 # simply because there is no reason against having it here, and in addition,
22720 # creating and moving files from /tmp can sometimes cause problems.
22721 # Hook for its removal unless debugging.
22722 # Note that there is a small window in which the directory will not be cleaned:
22723 # after its creation but before its name has been assigned to `$tmp'.
22727 trap 'exit_status=$?
22728 : "${ac_tmp:=$tmp}"
22729 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22731 trap 'as_fn_exit 1' 1 2 13 15
22733 # Create a (secure) tmp directory for tmp files.
22736 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22740 tmp=./conf$$-$RANDOM
22741 (umask 077 && mkdir "$tmp")
22742 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22745 # Set up the scripts for CONFIG_FILES section.
22746 # No need to generate them if there are no CONFIG_FILES.
22747 # This happens for instance with `./config.status config.h'.
22748 if test -n "$CONFIG_FILES"; then
22751 ac_cr=`echo X | tr X '\015'`
22752 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22753 # But we know of no other shell where ac_cr would be empty at this
22754 # point, so we can use a bashism as a fallback.
22755 if test "x$ac_cr" = x; then
22756 eval ac_cr=\$\'\\r\'
22758 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22759 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22762 ac_cs_awk_cr=$ac_cr
22765 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22770 echo "cat >conf$$subs.awk <<_ACEOF" &&
22771 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22773 } >conf$$subs.sh ||
22774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22775 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22777 for ac_last_try in false false false false false :; do
22778 . ./conf$$subs.sh ||
22779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22781 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22782 if test $ac_delim_n = $ac_delim_num; then
22784 elif $ac_last_try; then
22785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22790 rm -f conf$$subs.sh
22792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22793 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22797 s/^/S["/; s/!.*/"]=/
22807 s/\(.\{148\}\)..*/\1/
22809 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22814 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22821 s/\(.\{148\}\)..*/\1/
22823 s/["\\]/\\&/g; s/^/"/; s/$/"/
22827 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22832 ' <conf$$subs.awk | sed '
22837 ' >>$CONFIG_STATUS || ac_write_fail=1
22838 rm -f conf$$subs.awk
22839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22841 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22842 for (key in S) S_is_set[key] = 1
22848 nfields = split(line, field, "@")
22850 len = length(field[1])
22851 for (i = 2; i < nfields; i++) {
22853 keylen = length(key)
22854 if (S_is_set[key]) {
22856 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22857 len += length(value) + length(field[++i])
22868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22869 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22870 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22873 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22874 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22877 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22878 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22879 # trailing colons and then remove the whole line if VPATH becomes empty
22880 # (actually we leave an empty line to preserve line numbers).
22881 if test "x$srcdir" = x.; then
22882 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22901 fi # test -n "$CONFIG_FILES"
22903 # Set up the scripts for CONFIG_HEADERS section.
22904 # No need to generate them if there are no CONFIG_HEADERS.
22905 # This happens for instance with `./config.status Makefile'.
22906 if test -n "$CONFIG_HEADERS"; then
22907 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22911 # Transform confdefs.h into an awk script `defines.awk', embedded as
22912 # here-document in config.status, that substitutes the proper values into
22913 # config.h.in to produce config.h.
22915 # Create a delimiter string that does not exist in confdefs.h, to ease
22916 # handling of long lines.
22918 for ac_last_try in false false :; do
22919 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22920 if test -z "$ac_tt"; then
22922 elif $ac_last_try; then
22923 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22929 # For the awk script, D is an array of macro values keyed by name,
22930 # likewise P contains macro parameters if any. Preserve backslash
22931 # newline sequences.
22933 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22935 s/.\{148\}/&'"$ac_delim"'/g
22938 s/^[ ]*#[ ]*define[ ][ ]*/ /
22945 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22947 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22952 D["\1"]=" \3\\\\\\n"\\/p
22954 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22959 s/.\{148\}/&'"$ac_delim"'/g
22964 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22967 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22969 ' <confdefs.h | sed '
22970 s/'"$ac_delim"'/"\\\
22971 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22974 for (key in D) D_is_set[key] = 1
22977 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22979 split(line, arg, " ")
22980 if (arg[1] == "#") {
22984 defundef = substr(arg[1], 2)
22987 split(mac1, mac2, "(") #)
22989 prefix = substr(line, 1, index(line, defundef) - 1)
22990 if (D_is_set[macro]) {
22991 # Preserve the white space surrounding the "#".
22992 print prefix "define", macro P[macro] D[macro]
22995 # Replace #undef with comments. This is necessary, for example,
22996 # in the case of _POSIX_SOURCE, which is predefined and required
22997 # on some systems where configure will not decide to define it.
22998 if (defundef == "undef") {
22999 print "/*", prefix defundef, macro, "*/"
23007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23008 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23009 fi # test -n "$CONFIG_HEADERS"
23012 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23017 :[FHLC]) ac_mode=$ac_tag; continue;;
23019 case $ac_mode$ac_tag in
23021 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23022 :[FH]-) ac_tag=-:-;;
23023 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23040 -) ac_f="$ac_tmp/stdin";;
23041 *) # Look for the file first in the build tree, then in the source tree
23042 # (if the path is not absolute). The absolute path cannot be DOS-style,
23043 # because $ac_f cannot contain `:'.
23047 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23049 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23051 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23052 as_fn_append ac_file_inputs " '$ac_f'"
23055 # Let's still pretend it is `configure' which instantiates (i.e., don't
23056 # use $as_me), people would be surprised to read:
23057 # /* config.h. Generated by config.status. */
23058 configure_input='Generated from '`
23059 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23061 if test x"$ac_file" != x-; then
23062 configure_input="$ac_file. $configure_input"
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23064 $as_echo "$as_me: creating $ac_file" >&6;}
23066 # Neutralize special characters interpreted by sed in replacement strings.
23067 case $configure_input in #(
23068 *\&* | *\|* | *\\* )
23069 ac_sed_conf_input=`$as_echo "$configure_input" |
23070 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23071 *) ac_sed_conf_input=$configure_input;;
23075 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23081 ac_dir=`$as_dirname -- "$ac_file" ||
23082 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23083 X"$ac_file" : 'X\(//\)[^/]' \| \
23084 X"$ac_file" : 'X\(//\)$' \| \
23085 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23086 $as_echo X"$ac_file" |
23087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23091 /^X\(\/\/\)[^/].*/{
23104 as_dir="$ac_dir"; as_fn_mkdir_p
23108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23110 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23111 # A ".." for each directory in $ac_dir_suffix.
23112 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23113 case $ac_top_builddir_sub in
23114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23118 ac_abs_top_builddir=$ac_pwd
23119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23120 # for backward compatibility:
23121 ac_top_builddir=$ac_top_build_prefix
23124 .) # We are building in place.
23126 ac_top_srcdir=$ac_top_builddir_sub
23127 ac_abs_top_srcdir=$ac_pwd ;;
23128 [\\/]* | ?:[\\/]* ) # Absolute name.
23129 ac_srcdir=$srcdir$ac_dir_suffix;
23130 ac_top_srcdir=$srcdir
23131 ac_abs_top_srcdir=$srcdir ;;
23132 *) # Relative name.
23133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23134 ac_top_srcdir=$ac_top_build_prefix$srcdir
23135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23149 # If the template does not know about datarootdir, expand it.
23150 # FIXME: This hack should be removed a few years after 2.60.
23151 ac_datarootdir_hack=; ac_datarootdir_seen=
23162 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23163 *datarootdir*) ac_datarootdir_seen=yes;;
23164 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23166 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23169 ac_datarootdir_hack='
23170 s&@datadir@&$datadir&g
23171 s&@docdir@&$docdir&g
23172 s&@infodir@&$infodir&g
23173 s&@localedir@&$localedir&g
23174 s&@mandir@&$mandir&g
23175 s&\\\${datarootdir}&$datarootdir&g' ;;
23179 # Neutralize VPATH when `$srcdir' = `.'.
23180 # Shell code in configure.ac might set extrasub.
23181 # FIXME: do we really want to maintain this feature?
23182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23183 ac_sed_extra="$ac_vpsub
23186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23189 s|@configure_input@|$ac_sed_conf_input|;t t
23190 s&@top_builddir@&$ac_top_builddir_sub&;t t
23191 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23192 s&@srcdir@&$ac_srcdir&;t t
23193 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23194 s&@top_srcdir@&$ac_top_srcdir&;t t
23195 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23196 s&@builddir@&$ac_builddir&;t t
23197 s&@abs_builddir@&$ac_abs_builddir&;t t
23198 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23199 $ac_datarootdir_hack
23201 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23202 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23204 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23205 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23206 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23207 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23209 which seems to be undefined. Please make sure it is defined" >&5
23210 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23211 which seems to be undefined. Please make sure it is defined" >&2;}
23213 rm -f "$ac_tmp/stdin"
23215 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23216 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23218 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23224 if test x"$ac_file" != x-; then
23226 $as_echo "/* $configure_input */" \
23227 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23228 } >"$ac_tmp/config.h" \
23229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23230 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23232 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23235 mv "$ac_tmp/config.h" "$ac_file" \
23236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23239 $as_echo "/* $configure_input */" \
23240 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23241 || as_fn_error $? "could not create -" "$LINENO" 5
23245 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23246 $as_echo "$as_me: executing $ac_file commands" >&6;}
23251 case $ac_file$ac_mode in
23254 # See if we are running on zsh, and set the options that allow our
23255 # commands through without removal of \ escapes.
23256 if test -n "${ZSH_VERSION+set}"; then
23257 setopt NO_GLOB_SUBST
23261 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23264 cat <<_LT_EOF >> "$cfgfile"
23266 # Generated automatically by $as_me ($PACKAGE) $VERSION
23267 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23268 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23270 # Provide generalized library-building support services.
23271 # Written by Gordon Matzigkeit, 1996
23273 # Copyright (C) 2014 Free Software Foundation, Inc.
23274 # This is free software; see the source for copying conditions. There is NO
23275 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23277 # GNU Libtool is free software; you can redistribute it and/or modify
23278 # it under the terms of the GNU General Public License as published by
23279 # the Free Software Foundation; either version 2 of of the License, or
23280 # (at your option) any later version.
23282 # As a special exception to the GNU General Public License, if you
23283 # distribute this file as part of a program or library that is built
23284 # using GNU Libtool, you may include this file under the same
23285 # distribution terms that you use for the rest of that program.
23287 # GNU Libtool is distributed in the hope that it will be useful, but
23288 # WITHOUT ANY WARRANTY; without even the implied warranty of
23289 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23290 # GNU General Public License for more details.
23292 # You should have received a copy of the GNU General Public License
23293 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23296 # The names of the tagged configurations supported by this script.
23299 # Configured defaults for sys_lib_dlsearch_path munging.
23300 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23302 # ### BEGIN LIBTOOL CONFIG
23304 # Which release of libtool.m4 was used?
23305 macro_version=$macro_version
23306 macro_revision=$macro_revision
23308 # Whether or not to build shared libraries.
23309 build_libtool_libs=$enable_shared
23311 # Whether or not to build static libraries.
23312 build_old_libs=$enable_static
23314 # What type of objects to build.
23317 # Whether or not to optimize for fast installation.
23318 fast_install=$enable_fast_install
23320 # Shared archive member basename,for filename based shared library versioning on AIX.
23321 shared_archive_member_spec=$shared_archive_member_spec
23323 # Shell to use when invoking shell scripts.
23326 # An echo program that protects backslashes.
23329 # The PATH separator for the build system.
23330 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23333 host_alias=$host_alias
23337 # The build system.
23338 build_alias=$build_alias
23342 # A sed program that does not truncate output.
23345 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23346 Xsed="\$SED -e 1s/^X//"
23348 # A grep program that handles long lines.
23354 # A literal string matcher.
23357 # A BSD- or MS-compatible name lister.
23360 # Whether we need soft or hard links.
23363 # What is the maximum length of a command?
23364 max_cmd_len=$max_cmd_len
23366 # Object file suffix (normally "o").
23369 # Executable file suffix (normally "").
23372 # whether the shell understands "unset".
23375 # turn spaces into newlines.
23378 # turn newlines into spaces.
23381 # convert \$build file names to \$host format.
23382 to_host_file_cmd=$lt_cv_to_host_file_cmd
23384 # convert \$build files to toolchain format.
23385 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23387 # An object symbol dumper.
23388 OBJDUMP=$lt_OBJDUMP
23390 # Method to check whether dependent libraries are shared objects.
23391 deplibs_check_method=$lt_deplibs_check_method
23393 # Command to use when deplibs_check_method = "file_magic".
23394 file_magic_cmd=$lt_file_magic_cmd
23396 # How to find potential files when deplibs_check_method = "file_magic".
23397 file_magic_glob=$lt_file_magic_glob
23399 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23400 want_nocaseglob=$lt_want_nocaseglob
23402 # DLL creation program.
23403 DLLTOOL=$lt_DLLTOOL
23405 # Command to associate shared and link libraries.
23406 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23411 # Flags to create an archive.
23412 AR_FLAGS=$lt_AR_FLAGS
23414 # How to feed a file listing to the archiver.
23415 archiver_list_spec=$lt_archiver_list_spec
23417 # A symbol stripping program.
23420 # Commands used to install an old-style archive.
23422 old_postinstall_cmds=$lt_old_postinstall_cmds
23423 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23425 # Whether to use a lock for old archive extraction.
23426 lock_old_archive_extraction=$lock_old_archive_extraction
23431 # LTCC compiler flags.
23432 LTCFLAGS=$lt_CFLAGS
23434 # Take the output of nm and produce a listing of raw symbols and C names.
23435 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23437 # Transform the output of nm in a proper C declaration.
23438 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23440 # Transform the output of nm into a list of symbols to manually relocate.
23441 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23443 # Transform the output of nm in a C name address pair.
23444 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23446 # Transform the output of nm in a C name address pair when lib prefix is needed.
23447 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23449 # The name lister interface.
23450 nm_interface=$lt_lt_cv_nm_interface
23452 # Specify filename containing input files for \$NM.
23453 nm_file_list_spec=$lt_nm_file_list_spec
23455 # The root where to search for dependent libraries,and where our libraries should be installed.
23456 lt_sysroot=$lt_sysroot
23458 # Command to truncate a binary pipe.
23459 lt_truncate_bin=$lt_lt_cv_truncate_bin
23461 # The name of the directory that contains temporary libtool files.
23464 # Used to examine libraries when file_magic_cmd begins with "file".
23465 MAGIC_CMD=$MAGIC_CMD
23467 # Must we lock files when doing compilation?
23468 need_locks=$lt_need_locks
23471 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23473 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23474 DSYMUTIL=$lt_DSYMUTIL
23476 # Tool to change global to local symbols on Mac OS X.
23479 # Tool to manipulate fat objects and archives on Mac OS X.
23482 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23485 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23486 OTOOL64=$lt_OTOOL64
23488 # Old archive suffix (normally "a").
23491 # Shared library suffix (normally ".so").
23492 shrext_cmds=$lt_shrext_cmds
23494 # The commands to extract the exported symbol list from a shared archive.
23495 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23497 # Variables whose values should be saved in libtool wrapper scripts and
23498 # restored at link time.
23499 variables_saved_for_relink=$lt_variables_saved_for_relink
23501 # Do we need the "lib" prefix for modules?
23502 need_lib_prefix=$need_lib_prefix
23504 # Do we need a version for libraries?
23505 need_version=$need_version
23507 # Library versioning type.
23508 version_type=$version_type
23510 # Shared library runtime path variable.
23511 runpath_var=$runpath_var
23513 # Shared library path variable.
23514 shlibpath_var=$shlibpath_var
23516 # Is shlibpath searched before the hard-coded library search path?
23517 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23519 # Format of library name prefix.
23520 libname_spec=$lt_libname_spec
23522 # List of archive names. First name is the real one, the rest are links.
23523 # The last name is the one that the linker finds with -lNAME
23524 library_names_spec=$lt_library_names_spec
23526 # The coded name of the library, if different from the real name.
23527 soname_spec=$lt_soname_spec
23529 # Permission mode override for installation of shared libraries.
23530 install_override_mode=$lt_install_override_mode
23532 # Command to use after installation of a shared archive.
23533 postinstall_cmds=$lt_postinstall_cmds
23535 # Command to use after uninstallation of a shared archive.
23536 postuninstall_cmds=$lt_postuninstall_cmds
23538 # Commands used to finish a libtool library installation in a directory.
23539 finish_cmds=$lt_finish_cmds
23541 # As "finish_cmds", except a single script fragment to be evaled but
23543 finish_eval=$lt_finish_eval
23545 # Whether we should hardcode library paths into libraries.
23546 hardcode_into_libs=$hardcode_into_libs
23548 # Compile-time system search path for libraries.
23549 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23551 # Detected run-time system search path for libraries.
23552 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23554 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23555 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23557 # Whether dlopen is supported.
23558 dlopen_support=$enable_dlopen
23560 # Whether dlopen of programs is supported.
23561 dlopen_self=$enable_dlopen_self
23563 # Whether dlopen of statically linked programs is supported.
23564 dlopen_self_static=$enable_dlopen_self_static
23566 # Commands to strip libraries.
23567 old_striplib=$lt_old_striplib
23568 striplib=$lt_striplib
23571 # The linker used to build libraries.
23574 # How to create reloadable object files.
23575 reload_flag=$lt_reload_flag
23576 reload_cmds=$lt_reload_cmds
23578 # Commands used to build an old-style archive.
23579 old_archive_cmds=$lt_old_archive_cmds
23581 # A language specific compiler.
23584 # Is the compiler the GNU compiler?
23587 # Compiler flag to turn off builtin functions.
23588 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23590 # Additional compiler flags for building library objects.
23591 pic_flag=$lt_lt_prog_compiler_pic
23593 # How to pass a linker flag through the compiler.
23594 wl=$lt_lt_prog_compiler_wl
23596 # Compiler flag to prevent dynamic linking.
23597 link_static_flag=$lt_lt_prog_compiler_static
23599 # Does compiler simultaneously support -c and -o options?
23600 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23602 # Whether or not to add -lc for building shared libraries.
23603 build_libtool_need_lc=$archive_cmds_need_lc
23605 # Whether or not to disallow shared libs when runtime libs are static.
23606 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23608 # Compiler flag to allow reflexive dlopens.
23609 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23611 # Compiler flag to generate shared objects directly from archives.
23612 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23614 # Whether the compiler copes with passing no objects directly.
23615 compiler_needs_object=$lt_compiler_needs_object
23617 # Create an old-style archive from a shared archive.
23618 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23620 # Create a temporary old-style archive to link instead of a shared archive.
23621 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23623 # Commands used to build a shared archive.
23624 archive_cmds=$lt_archive_cmds
23625 archive_expsym_cmds=$lt_archive_expsym_cmds
23627 # Commands used to build a loadable module if different from building
23628 # a shared archive.
23629 module_cmds=$lt_module_cmds
23630 module_expsym_cmds=$lt_module_expsym_cmds
23632 # Whether we are building with GNU ld or not.
23633 with_gnu_ld=$lt_with_gnu_ld
23635 # Flag that allows shared libraries with undefined symbols to be built.
23636 allow_undefined_flag=$lt_allow_undefined_flag
23638 # Flag that enforces no undefined symbols.
23639 no_undefined_flag=$lt_no_undefined_flag
23641 # Flag to hardcode \$libdir into a binary during linking.
23642 # This must work even if \$libdir does not exist
23643 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23645 # Whether we need a single "-rpath" flag with a separated argument.
23646 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23648 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23649 # DIR into the resulting binary.
23650 hardcode_direct=$hardcode_direct
23652 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23653 # DIR into the resulting binary and the resulting library dependency is
23654 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23655 # library is relocated.
23656 hardcode_direct_absolute=$hardcode_direct_absolute
23658 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23659 # into the resulting binary.
23660 hardcode_minus_L=$hardcode_minus_L
23662 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23663 # into the resulting binary.
23664 hardcode_shlibpath_var=$hardcode_shlibpath_var
23666 # Set to "yes" if building a shared library automatically hardcodes DIR
23667 # into the library and all subsequent libraries and executables linked
23669 hardcode_automatic=$hardcode_automatic
23671 # Set to yes if linker adds runtime paths of dependent libraries
23672 # to runtime path list.
23673 inherit_rpath=$inherit_rpath
23675 # Whether libtool must link a program against all its dependency libraries.
23676 link_all_deplibs=$link_all_deplibs
23678 # Set to "yes" if exported symbols are required.
23679 always_export_symbols=$always_export_symbols
23681 # The commands to list exported symbols.
23682 export_symbols_cmds=$lt_export_symbols_cmds
23684 # Symbols that should not be listed in the preloaded symbols.
23685 exclude_expsyms=$lt_exclude_expsyms
23687 # Symbols that must always be exported.
23688 include_expsyms=$lt_include_expsyms
23690 # Commands necessary for linking programs (against libraries) with templates.
23691 prelink_cmds=$lt_prelink_cmds
23693 # Commands necessary for finishing linking programs.
23694 postlink_cmds=$lt_postlink_cmds
23696 # Specify filename containing input files.
23697 file_list_spec=$lt_file_list_spec
23699 # How to hardcode a shared library path into an executable.
23700 hardcode_action=$hardcode_action
23702 # ### END LIBTOOL CONFIG
23706 cat <<'_LT_EOF' >> "$cfgfile"
23708 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23710 # func_munge_path_list VARIABLE PATH
23711 # -----------------------------------
23712 # VARIABLE is name of variable containing _space_ separated list of
23713 # directories to be munged by the contents of PATH, which is string
23716 # string "DIR[ DIR]" will be prepended to VARIABLE
23718 # string "DIR[ DIR]" will be appended to VARIABLE
23719 # "DIRP[:DIRP]::[DIRA:]DIRA"
23720 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23721 # "DIRA[ DIRA]" will be appended to VARIABLE
23723 # VARIABLE will be replaced by "DIR[ DIR]"
23724 func_munge_path_list ()
23730 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23733 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23736 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23737 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23740 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23746 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23747 func_cc_basename ()
23749 for cc_temp in $*""; do
23751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23757 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23761 # ### END FUNCTIONS SHARED WITH CONFIGURE
23767 cat <<\_LT_EOF >> "$cfgfile"
23768 # AIX sometimes has problems with the GCC collect2 program. For some
23769 # reason, if we set the COLLECT_NAMES environment variable, the problems
23770 # vanish in a puff of smoke.
23771 if test set != "${COLLECT_NAMES+set}"; then
23773 export COLLECT_NAMES
23780 ltmain=$ac_aux_dir/ltmain.sh
23783 # We use sed instead of cat because bash on DJGPP gets confused if
23784 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23785 # text mode, it properly converts lines to CR/LF. This bash problem
23786 # is reportedly fixed, but why not run on old versions too?
23787 sed '$q' "$ltmain" >> "$cfgfile" \
23788 || (rm -f "$cfgfile"; exit 1)
23790 mv -f "$cfgfile" "$ofile" ||
23791 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23796 sed < libtool > libtool-2 \
23797 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
23798 mv libtool-2 libtool
23800 libtool="./libtool"
23809 ac_clean_files=$ac_clean_files_save
23811 test $ac_write_fail = 0 ||
23812 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23815 # configure is writing to config.log, and then calls config.status.
23816 # config.status does its own redirection, appending to config.log.
23817 # Unfortunately, on DOS this fails, as config.log is still kept open
23818 # by configure, so config.status won't be able to write to it; its
23819 # output is simply discarded. So we exec the FD to /dev/null,
23820 # effectively closing config.log, so it can be properly (re)opened and
23821 # appended to by config.status. When coming back to configure, we
23822 # need to make the FD available again.
23823 if test "$no_create" != yes; then
23825 ac_config_status_args=
23826 test "$silent" = yes &&
23827 ac_config_status_args="$ac_config_status_args --quiet"
23829 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23831 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23832 # would make configure fail if this is the last instruction.
23833 $ac_cs_success || as_fn_exit 1
23835 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23837 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}