2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ldns 1.6.17.
5 # Report bugs to <libdns@nlnetlabs.nl>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: libdns@nlnetlabs.nl about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
560 # Identity of this package.
562 PACKAGE_TARNAME='libdns'
563 PACKAGE_VERSION='1.6.17'
564 PACKAGE_STRING='ldns 1.6.17'
565 PACKAGE_BUGREPORT='libdns@nlnetlabs.nl'
568 ac_unique_file="drill.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
605 ac_subst_vars='LTLIBOBJS
607 LDNS_TRUST_ANCHOR_FILE
651 program_transform_name
664 enable_option_checking
670 ac_precious_vars='build_alias
681 # Initialize some variables set by options.
683 ac_init_version=false
684 ac_unrecognized_opts=
686 # The variables have the same names as the options, with
687 # dashes changed to underlines.
695 program_transform_name=s,x,x,
703 # Installation directory options.
704 # These are left unexpanded so users can "make install exec_prefix=/foo"
705 # and all the variables that are supposed to be based on exec_prefix
706 # by default will actually change.
707 # Use braces instead of parens because sh, perl, etc. also accept them.
708 # (The list follows the same order as the GNU Coding Standards.)
709 bindir='${exec_prefix}/bin'
710 sbindir='${exec_prefix}/sbin'
711 libexecdir='${exec_prefix}/libexec'
712 datarootdir='${prefix}/share'
713 datadir='${datarootdir}'
714 sysconfdir='${prefix}/etc'
715 sharedstatedir='${prefix}/com'
716 localstatedir='${prefix}/var'
717 includedir='${prefix}/include'
718 oldincludedir='/usr/include'
719 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
720 infodir='${datarootdir}/info'
725 libdir='${exec_prefix}/lib'
726 localedir='${datarootdir}/locale'
727 mandir='${datarootdir}/man'
733 # If the previous option needs an argument, assign it.
734 if test -n "$ac_prev"; then
735 eval $ac_prev=\$ac_option
741 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
746 # Accept the important Cygnus configure options, so we can diagnose typos.
748 case $ac_dashdash$ac_option in
752 -bindir | --bindir | --bindi | --bind | --bin | --bi)
754 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
757 -build | --build | --buil | --bui | --bu)
758 ac_prev=build_alias ;;
759 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
760 build_alias=$ac_optarg ;;
762 -cache-file | --cache-file | --cache-fil | --cache-fi \
763 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
764 ac_prev=cache_file ;;
765 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
766 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
767 cache_file=$ac_optarg ;;
770 cache_file=config.cache ;;
772 -datadir | --datadir | --datadi | --datad)
774 -datadir=* | --datadir=* | --datadi=* | --datad=*)
775 datadir=$ac_optarg ;;
777 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
778 | --dataroo | --dataro | --datar)
779 ac_prev=datarootdir ;;
780 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
781 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
782 datarootdir=$ac_optarg ;;
784 -disable-* | --disable-*)
785 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
788 as_fn_error $? "invalid feature name: $ac_useropt"
789 ac_useropt_orig=$ac_useropt
790 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
791 case $ac_user_opts in
795 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
796 ac_unrecognized_sep=', ';;
798 eval enable_$ac_useropt=no ;;
800 -docdir | --docdir | --docdi | --doc | --do)
802 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
805 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
807 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
810 -enable-* | --enable-*)
811 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
812 # Reject names that are not valid shell variable names.
813 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
814 as_fn_error $? "invalid feature name: $ac_useropt"
815 ac_useropt_orig=$ac_useropt
816 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
817 case $ac_user_opts in
821 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
822 ac_unrecognized_sep=', ';;
824 eval enable_$ac_useropt=\$ac_optarg ;;
826 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
827 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
828 | --exec | --exe | --ex)
829 ac_prev=exec_prefix ;;
830 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
831 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
832 | --exec=* | --exe=* | --ex=*)
833 exec_prefix=$ac_optarg ;;
835 -gas | --gas | --ga | --g)
836 # Obsolete; use --with-gas.
839 -help | --help | --hel | --he | -h)
841 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
842 ac_init_help=recursive ;;
843 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
844 ac_init_help=short ;;
846 -host | --host | --hos | --ho)
847 ac_prev=host_alias ;;
848 -host=* | --host=* | --hos=* | --ho=*)
849 host_alias=$ac_optarg ;;
851 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
853 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
855 htmldir=$ac_optarg ;;
857 -includedir | --includedir | --includedi | --included | --include \
858 | --includ | --inclu | --incl | --inc)
859 ac_prev=includedir ;;
860 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
861 | --includ=* | --inclu=* | --incl=* | --inc=*)
862 includedir=$ac_optarg ;;
864 -infodir | --infodir | --infodi | --infod | --info | --inf)
866 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
867 infodir=$ac_optarg ;;
869 -libdir | --libdir | --libdi | --libd)
871 -libdir=* | --libdir=* | --libdi=* | --libd=*)
874 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
875 | --libexe | --libex | --libe)
876 ac_prev=libexecdir ;;
877 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
878 | --libexe=* | --libex=* | --libe=*)
879 libexecdir=$ac_optarg ;;
881 -localedir | --localedir | --localedi | --localed | --locale)
883 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
884 localedir=$ac_optarg ;;
886 -localstatedir | --localstatedir | --localstatedi | --localstated \
887 | --localstate | --localstat | --localsta | --localst | --locals)
888 ac_prev=localstatedir ;;
889 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
890 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
891 localstatedir=$ac_optarg ;;
893 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
895 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
899 # Obsolete; use --without-fp.
902 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
903 | --no-cr | --no-c | -n)
906 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
907 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
910 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
911 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
912 | --oldin | --oldi | --old | --ol | --o)
913 ac_prev=oldincludedir ;;
914 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
915 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
916 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
917 oldincludedir=$ac_optarg ;;
919 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
921 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
924 -program-prefix | --program-prefix | --program-prefi | --program-pref \
925 | --program-pre | --program-pr | --program-p)
926 ac_prev=program_prefix ;;
927 -program-prefix=* | --program-prefix=* | --program-prefi=* \
928 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
929 program_prefix=$ac_optarg ;;
931 -program-suffix | --program-suffix | --program-suffi | --program-suff \
932 | --program-suf | --program-su | --program-s)
933 ac_prev=program_suffix ;;
934 -program-suffix=* | --program-suffix=* | --program-suffi=* \
935 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
936 program_suffix=$ac_optarg ;;
938 -program-transform-name | --program-transform-name \
939 | --program-transform-nam | --program-transform-na \
940 | --program-transform-n | --program-transform- \
941 | --program-transform | --program-transfor \
942 | --program-transfo | --program-transf \
943 | --program-trans | --program-tran \
944 | --progr-tra | --program-tr | --program-t)
945 ac_prev=program_transform_name ;;
946 -program-transform-name=* | --program-transform-name=* \
947 | --program-transform-nam=* | --program-transform-na=* \
948 | --program-transform-n=* | --program-transform-=* \
949 | --program-transform=* | --program-transfor=* \
950 | --program-transfo=* | --program-transf=* \
951 | --program-trans=* | --program-tran=* \
952 | --progr-tra=* | --program-tr=* | --program-t=*)
953 program_transform_name=$ac_optarg ;;
955 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
957 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
960 -psdir | --psdir | --psdi | --psd | --ps)
962 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
966 | -silent | --silent | --silen | --sile | --sil)
969 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
971 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
973 sbindir=$ac_optarg ;;
975 -sharedstatedir | --sharedstatedir | --sharedstatedi \
976 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
977 | --sharedst | --shareds | --shared | --share | --shar \
979 ac_prev=sharedstatedir ;;
980 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
981 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
982 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
984 sharedstatedir=$ac_optarg ;;
986 -site | --site | --sit)
988 -site=* | --site=* | --sit=*)
991 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
993 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
996 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
997 | --syscon | --sysco | --sysc | --sys | --sy)
998 ac_prev=sysconfdir ;;
999 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1000 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1001 sysconfdir=$ac_optarg ;;
1003 -target | --target | --targe | --targ | --tar | --ta | --t)
1004 ac_prev=target_alias ;;
1005 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1006 target_alias=$ac_optarg ;;
1008 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1011 -version | --version | --versio | --versi | --vers | -V)
1012 ac_init_version=: ;;
1015 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid package name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1028 eval with_$ac_useropt=\$ac_optarg ;;
1030 -without-* | --without-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error $? "invalid package name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1044 eval with_$ac_useropt=no ;;
1047 # Obsolete; use --with-x.
1050 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1051 | --x-incl | --x-inc | --x-in | --x-i)
1052 ac_prev=x_includes ;;
1053 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1054 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1055 x_includes=$ac_optarg ;;
1057 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1058 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1059 ac_prev=x_libraries ;;
1060 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1061 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1062 x_libraries=$ac_optarg ;;
1064 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1065 Try \`$0 --help' for more information"
1069 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1070 # Reject names that are not valid shell variable names.
1071 case $ac_envvar in #(
1072 '' | [0-9]* | *[!_$as_cr_alnum]* )
1073 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1075 eval $ac_envvar=\$ac_optarg
1076 export $ac_envvar ;;
1079 # FIXME: should be removed in autoconf 3.0.
1080 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1083 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1089 if test -n "$ac_prev"; then
1090 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1091 as_fn_error $? "missing argument to $ac_option"
1094 if test -n "$ac_unrecognized_opts"; then
1095 case $enable_option_checking in
1097 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1098 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1102 # Check all directory arguments for consistency.
1103 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104 datadir sysconfdir sharedstatedir localstatedir includedir \
1105 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106 libdir localedir mandir
1108 eval ac_val=\$$ac_var
1109 # Remove trailing slashes.
1112 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1113 eval $ac_var=\$ac_val;;
1115 # Be sure to have absolute directory names.
1117 [\\/$]* | ?:[\\/]* ) continue;;
1118 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1120 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1123 # There might be people who depend on the old broken behavior: `$host'
1124 # used to hold the argument of --host etc.
1125 # FIXME: To remove some day.
1128 target=$target_alias
1130 # FIXME: To remove some day.
1131 if test "x$host_alias" != x; then
1132 if test "x$build_alias" = x; then
1133 cross_compiling=maybe
1134 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1135 If a cross compiler is detected then cross compile mode will be used" >&2
1136 elif test "x$build_alias" != "x$host_alias"; then
1142 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1144 test "$silent" = yes && exec 6>/dev/null
1147 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1148 ac_ls_di=`ls -di .` &&
1149 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1150 as_fn_error $? "working directory cannot be determined"
1151 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1152 as_fn_error $? "pwd does not report name of working directory"
1155 # Find the source files, if location was not specified.
1156 if test -z "$srcdir"; then
1157 ac_srcdir_defaulted=yes
1158 # Try the directory containing this script, then the parent directory.
1159 ac_confdir=`$as_dirname -- "$as_myself" ||
1160 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1161 X"$as_myself" : 'X\(//\)[^/]' \| \
1162 X"$as_myself" : 'X\(//\)$' \| \
1163 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1164 $as_echo X"$as_myself" |
1165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1183 if test ! -r "$srcdir/$ac_unique_file"; then
1187 ac_srcdir_defaulted=no
1189 if test ! -r "$srcdir/$ac_unique_file"; then
1190 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1191 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1193 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1195 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1197 # When building in place, set srcdir=.
1198 if test "$ac_abs_confdir" = "$ac_pwd"; then
1201 # Remove unnecessary trailing slashes from srcdir.
1202 # Double slashes in file names in object file debugging info
1203 # mess up M-x gdb in Emacs.
1205 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1207 for ac_var in $ac_precious_vars; do
1208 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1209 eval ac_env_${ac_var}_value=\$${ac_var}
1210 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1211 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1215 # Report the --help message.
1217 if test "$ac_init_help" = "long"; then
1218 # Omit some internal or obsolete options to make the list less imposing.
1219 # This message is too long to be a string in the A/UX 3.1 sh.
1221 \`configure' configures ldns 1.6.17 to adapt to many kinds of systems.
1223 Usage: $0 [OPTION]... [VAR=VALUE]...
1225 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1226 VAR=VALUE. See below for descriptions of some of the useful variables.
1228 Defaults for the options are specified in brackets.
1231 -h, --help display this help and exit
1232 --help=short display options specific to this package
1233 --help=recursive display the short help of all the included packages
1234 -V, --version display version information and exit
1235 -q, --quiet, --silent do not print \`checking ...' messages
1236 --cache-file=FILE cache test results in FILE [disabled]
1237 -C, --config-cache alias for \`--cache-file=config.cache'
1238 -n, --no-create do not create output files
1239 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1241 Installation directories:
1242 --prefix=PREFIX install architecture-independent files in PREFIX
1243 [$ac_default_prefix]
1244 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1247 By default, \`make install' will install all the files in
1248 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1249 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1250 for instance \`--prefix=\$HOME'.
1252 For better control, use the options below.
1254 Fine tuning of the installation directories:
1255 --bindir=DIR user executables [EPREFIX/bin]
1256 --sbindir=DIR system admin executables [EPREFIX/sbin]
1257 --libexecdir=DIR program executables [EPREFIX/libexec]
1258 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1259 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1260 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1261 --libdir=DIR object code libraries [EPREFIX/lib]
1262 --includedir=DIR C header files [PREFIX/include]
1263 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1264 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1265 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1266 --infodir=DIR info documentation [DATAROOTDIR/info]
1267 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1268 --mandir=DIR man documentation [DATAROOTDIR/man]
1269 --docdir=DIR documentation root [DATAROOTDIR/doc/libdns]
1270 --htmldir=DIR html documentation [DOCDIR]
1271 --dvidir=DIR dvi documentation [DOCDIR]
1272 --pdfdir=DIR pdf documentation [DOCDIR]
1273 --psdir=DIR ps documentation [DOCDIR]
1280 if test -n "$ac_init_help"; then
1281 case $ac_init_help in
1282 short | recursive ) echo "Configuration of ldns 1.6.17:";;
1287 --disable-option-checking ignore unrecognized --enable/--with options
1288 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1289 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1290 --disable-rpath disable hardcoded rpath (default=enabled)
1293 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1294 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1295 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1296 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1298 --with-ldns=PATH specify prefix of path of ldns library to use
1301 --with-trust-anchor=KEYFILE
1302 Default location of the trust anchor file.
1303 [default=SYSCONFDIR/unbound/root.key]
1305 Some influential environment variables:
1306 CC C compiler command
1307 CFLAGS C compiler flags
1308 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1309 nonstandard directory <lib dir>
1310 LIBS libraries to pass to the linker, e.g. -l<library>
1311 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1312 you have headers in a nonstandard directory <include dir>
1315 Use these variables to override the choices made by `configure' or to help
1316 it to find libraries and programs with nonstandard names/locations.
1318 Report bugs to <libdns@nlnetlabs.nl>.
1323 if test "$ac_init_help" = "recursive"; then
1324 # If there are subdirs, report their specific --help.
1325 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1326 test -d "$ac_dir" ||
1327 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1332 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1335 # A ".." for each directory in $ac_dir_suffix.
1336 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1337 case $ac_top_builddir_sub in
1338 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1342 ac_abs_top_builddir=$ac_pwd
1343 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1344 # for backward compatibility:
1345 ac_top_builddir=$ac_top_build_prefix
1348 .) # We are building in place.
1350 ac_top_srcdir=$ac_top_builddir_sub
1351 ac_abs_top_srcdir=$ac_pwd ;;
1352 [\\/]* | ?:[\\/]* ) # Absolute name.
1353 ac_srcdir=$srcdir$ac_dir_suffix;
1354 ac_top_srcdir=$srcdir
1355 ac_abs_top_srcdir=$srcdir ;;
1357 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1358 ac_top_srcdir=$ac_top_build_prefix$srcdir
1359 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1361 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1363 cd "$ac_dir" || { ac_status=$?; continue; }
1364 # Check for guested configure.
1365 if test -f "$ac_srcdir/configure.gnu"; then
1367 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1368 elif test -f "$ac_srcdir/configure"; then
1370 $SHELL "$ac_srcdir/configure" --help=recursive
1372 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1374 cd "$ac_pwd" || { ac_status=$?; break; }
1378 test -n "$ac_init_help" && exit $ac_status
1379 if $ac_init_version; then
1381 ldns configure 1.6.17
1382 generated by GNU Autoconf 2.68
1384 Copyright (C) 2010 Free Software Foundation, Inc.
1385 This configure script is free software; the Free Software Foundation
1386 gives unlimited permission to copy, distribute and modify it.
1391 ## ------------------------ ##
1392 ## Autoconf initialization. ##
1393 ## ------------------------ ##
1395 # ac_fn_c_try_compile LINENO
1396 # --------------------------
1397 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1398 ac_fn_c_try_compile ()
1400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1401 rm -f conftest.$ac_objext
1402 if { { ac_try="$ac_compile"
1404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1405 *) ac_try_echo=$ac_try;;
1407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1408 $as_echo "$ac_try_echo"; } >&5
1409 (eval "$ac_compile") 2>conftest.err
1411 if test -s conftest.err; then
1412 grep -v '^ *+' conftest.err >conftest.er1
1413 cat conftest.er1 >&5
1414 mv -f conftest.er1 conftest.err
1416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1417 test $ac_status = 0; } && {
1418 test -z "$ac_c_werror_flag" ||
1419 test ! -s conftest.err
1420 } && test -s conftest.$ac_objext; then :
1423 $as_echo "$as_me: failed program was:" >&5
1424 sed 's/^/| /' conftest.$ac_ext >&5
1428 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1429 as_fn_set_status $ac_retval
1431 } # ac_fn_c_try_compile
1433 # ac_fn_c_try_cpp LINENO
1434 # ----------------------
1435 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1438 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1439 if { { ac_try="$ac_cpp conftest.$ac_ext"
1441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1442 *) ac_try_echo=$ac_try;;
1444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1445 $as_echo "$ac_try_echo"; } >&5
1446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1448 if test -s conftest.err; then
1449 grep -v '^ *+' conftest.err >conftest.er1
1450 cat conftest.er1 >&5
1451 mv -f conftest.er1 conftest.err
1453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1454 test $ac_status = 0; } > conftest.i && {
1455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1456 test ! -s conftest.err
1460 $as_echo "$as_me: failed program was:" >&5
1461 sed 's/^/| /' conftest.$ac_ext >&5
1465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1466 as_fn_set_status $ac_retval
1470 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1471 # -------------------------------------------------------
1472 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1473 # the include files in INCLUDES and setting the cache variable VAR
1475 ac_fn_c_check_header_mongrel ()
1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478 if eval \${$3+:} false; then :
1479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1480 $as_echo_n "checking for $2... " >&6; }
1481 if eval \${$3+:} false; then :
1482 $as_echo_n "(cached) " >&6
1485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1486 $as_echo "$ac_res" >&6; }
1488 # Is the header compilable?
1489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1490 $as_echo_n "checking $2 usability... " >&6; }
1491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1492 /* end confdefs.h. */
1496 if ac_fn_c_try_compile "$LINENO"; then :
1497 ac_header_compiler=yes
1499 ac_header_compiler=no
1501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1503 $as_echo "$ac_header_compiler" >&6; }
1505 # Is the header present?
1506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1507 $as_echo_n "checking $2 presence... " >&6; }
1508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1509 /* end confdefs.h. */
1512 if ac_fn_c_try_cpp "$LINENO"; then :
1513 ac_header_preproc=yes
1515 ac_header_preproc=no
1517 rm -f conftest.err conftest.i conftest.$ac_ext
1518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1519 $as_echo "$ac_header_preproc" >&6; }
1521 # So? What about this header?
1522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1525 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1527 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1531 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1533 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1535 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1537 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1539 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1540 ( $as_echo "## ---------------------------------- ##
1541 ## Report this to libdns@nlnetlabs.nl ##
1542 ## ---------------------------------- ##"
1543 ) | sed "s/^/$as_me: WARNING: /" >&2
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1547 $as_echo_n "checking for $2... " >&6; }
1548 if eval \${$3+:} false; then :
1549 $as_echo_n "(cached) " >&6
1551 eval "$3=\$ac_header_compiler"
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1555 $as_echo "$ac_res" >&6; }
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 } # ac_fn_c_check_header_mongrel
1561 # ac_fn_c_try_run LINENO
1562 # ----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1564 # that executables *can* be run.
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 if { { ac_try="$ac_link"
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>&5
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1579 { { case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_try") 2>&5
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; }; }; then :
1591 $as_echo "$as_me: program exited with status $ac_status" >&5
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1595 ac_retval=$ac_status
1597 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval
1603 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1604 # -------------------------------------------------------
1605 # Tests whether HEADER exists and can be compiled using the include files in
1606 # INCLUDES, setting the cache variable VAR accordingly.
1607 ac_fn_c_check_header_compile ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611 $as_echo_n "checking for $2... " >&6; }
1612 if eval \${$3+:} false; then :
1613 $as_echo_n "(cached) " >&6
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1620 if ac_fn_c_try_compile "$LINENO"; then :
1625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 } # ac_fn_c_check_header_compile
1634 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1635 # -------------------------------------------
1636 # Tests whether TYPE exists after having included INCLUDES, setting cache
1637 # variable VAR accordingly.
1638 ac_fn_c_check_type ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1672 if ac_fn_c_try_compile "$LINENO"; then :
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 } # ac_fn_c_check_type
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext conftest$ac_exeext
1695 if { { ac_try="$ac_link"
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>conftest.err
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest$ac_exeext && {
1714 test "$cross_compiling" = yes ||
1715 $as_test_x conftest$ac_exeext
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726 # interfere with the next link command; also delete a directory that is
1727 # left behind by Apple's compiler. We do this before executing the actions.
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1732 } # ac_fn_c_try_link
1734 # ac_fn_c_check_func LINENO FUNC VAR
1735 # ----------------------------------
1736 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1737 ac_fn_c_check_func ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1749 #define $2 innocuous_$2
1751 /* System header to define __stub macros and hopefully few prototypes,
1752 which can conflict with char $2 (); below.
1753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1754 <limits.h> exists even on freestanding compilers. */
1757 # include <limits.h>
1759 # include <assert.h>
1764 /* Override any GCC internal prototype to avoid an error.
1765 Use char because int might match the return type of a GCC
1766 builtin and then its argument prototype would still apply. */
1771 /* The GNU C library defines this for functions which it implements
1772 to always fail with ENOSYS. Some functions are actually named
1773 something starting with __ and the normal name is an alias. */
1774 #if defined __stub_$2 || defined __stub___$2
1786 if ac_fn_c_try_link "$LINENO"; then :
1791 rm -f core conftest.err conftest.$ac_objext \
1792 conftest$ac_exeext conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 } # ac_fn_c_check_func
1800 cat >config.log <<_ACEOF
1801 This file contains any messages produced by compilers while
1802 running configure, to aid debugging if configure makes a mistake.
1804 It was created by ldns $as_me 1.6.17, which was
1805 generated by GNU Autoconf 2.68. Invocation command line was
1817 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1818 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1819 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1820 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1821 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1823 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1824 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1826 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1827 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1828 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1829 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1830 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1831 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1832 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 $as_echo "PATH: $as_dir"
1857 # Keep a trace of the command line.
1858 # Strip out --no-create and --no-recursion so they do not pile up.
1859 # Strip out --silent because we don't want to record it for future runs.
1860 # Also quote any args containing shell meta-characters.
1861 # Make two passes to allow for proper duplicate-argument suppression.
1865 ac_must_keep_next=false
1871 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1873 | -silent | --silent | --silen | --sile | --sil)
1876 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1879 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1881 as_fn_append ac_configure_args1 " '$ac_arg'"
1882 if test $ac_must_keep_next = true; then
1883 ac_must_keep_next=false # Got value, back to normal.
1886 *=* | --config-cache | -C | -disable-* | --disable-* \
1887 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1888 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1889 | -with-* | --with-* | -without-* | --without-* | --x)
1890 case "$ac_configure_args0 " in
1891 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1894 -* ) ac_must_keep_next=true ;;
1897 as_fn_append ac_configure_args " '$ac_arg'"
1902 { ac_configure_args0=; unset ac_configure_args0;}
1903 { ac_configure_args1=; unset ac_configure_args1;}
1905 # When interrupted or exit'd, cleanup temporary files, and complete
1906 # config.log. We remove comments because anyway the quotes in there
1907 # would cause problems or look ugly.
1908 # WARNING: Use '\'' to represent an apostrophe within the trap.
1909 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1910 trap 'exit_status=$?
1911 # Save into config.log some information that might help in debugging.
1915 $as_echo "## ---------------- ##
1916 ## Cache variables. ##
1917 ## ---------------- ##"
1919 # The following way of writing the cache mishandles newlines in values,
1921 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1922 eval ac_val=\$$ac_var
1926 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1927 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1930 _ | IFS | as_nl) ;; #(
1931 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1932 *) { eval $ac_var=; unset $ac_var;} ;;
1937 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1938 *${as_nl}ac_space=\ *)
1940 "s/'\''/'\''\\\\'\'''\''/g;
1941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1951 $as_echo "## ----------------- ##
1952 ## Output variables. ##
1953 ## ----------------- ##"
1955 for ac_var in $ac_subst_vars
1957 eval ac_val=\$$ac_var
1959 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1961 $as_echo "$ac_var='\''$ac_val'\''"
1965 if test -n "$ac_subst_files"; then
1966 $as_echo "## ------------------- ##
1967 ## File substitutions. ##
1968 ## ------------------- ##"
1970 for ac_var in $ac_subst_files
1972 eval ac_val=\$$ac_var
1974 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976 $as_echo "$ac_var='\''$ac_val'\''"
1981 if test -s confdefs.h; then
1982 $as_echo "## ----------- ##
1989 test "$ac_signal" != 0 &&
1990 $as_echo "$as_me: caught signal $ac_signal"
1991 $as_echo "$as_me: exit $exit_status"
1993 rm -f core *.core core.conftest.* &&
1994 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1997 for ac_signal in 1 2 13 15; do
1998 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2002 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2003 rm -f -r conftest* confdefs.h
2005 $as_echo "/* confdefs.h */" > confdefs.h
2007 # Predefined preprocessor variables.
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_NAME "$PACKAGE_NAME"
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_STRING "$PACKAGE_STRING"
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_URL "$PACKAGE_URL"
2034 # Let the site file select an alternate cache file if it wants to.
2035 # Prefer an explicitly selected file to automatically selected ones.
2038 if test -n "$CONFIG_SITE"; then
2039 # We do not want a PATH search for config.site.
2040 case $CONFIG_SITE in #((
2041 -*) ac_site_file1=./$CONFIG_SITE;;
2042 */*) ac_site_file1=$CONFIG_SITE;;
2043 *) ac_site_file1=./$CONFIG_SITE;;
2045 elif test "x$prefix" != xNONE; then
2046 ac_site_file1=$prefix/share/config.site
2047 ac_site_file2=$prefix/etc/config.site
2049 ac_site_file1=$ac_default_prefix/share/config.site
2050 ac_site_file2=$ac_default_prefix/etc/config.site
2052 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2054 test "x$ac_site_file" = xNONE && continue
2055 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2057 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2058 sed 's/^/| /' "$ac_site_file" >&5
2060 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2062 as_fn_error $? "failed to load site script $ac_site_file
2063 See \`config.log' for more details" "$LINENO" 5; }
2067 if test -r "$cache_file"; then
2068 # Some versions of bash will fail to source /dev/null (special files
2069 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2070 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2072 $as_echo "$as_me: loading cache $cache_file" >&6;}
2074 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2075 *) . "./$cache_file";;
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2080 $as_echo "$as_me: creating cache $cache_file" >&6;}
2084 # Check that the precious variables saved in the cache have kept the same
2086 ac_cache_corrupted=false
2087 for ac_var in $ac_precious_vars; do
2088 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2089 eval ac_new_set=\$ac_env_${ac_var}_set
2090 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2091 eval ac_new_val=\$ac_env_${ac_var}_value
2092 case $ac_old_set,$ac_new_set in
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2095 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2096 ac_cache_corrupted=: ;;
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2099 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2100 ac_cache_corrupted=: ;;
2103 if test "x$ac_old_val" != "x$ac_new_val"; then
2104 # differences in whitespace do not lead to failure.
2105 ac_old_val_w=`echo x $ac_old_val`
2106 ac_new_val_w=`echo x $ac_new_val`
2107 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2109 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2110 ac_cache_corrupted=:
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2113 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2114 eval $ac_var=\$ac_old_val
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2117 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2119 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2122 # Pass precious variables to config.status.
2123 if test "$ac_new_set" = set; then
2125 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2126 *) ac_arg=$ac_var=$ac_new_val ;;
2128 case " $ac_configure_args " in
2129 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2130 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2134 if $ac_cache_corrupted; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2138 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2139 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2141 ## -------------------- ##
2142 ## Main body of script. ##
2143 ## -------------------- ##
2146 ac_cpp='$CPP $CPPFLAGS'
2147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2153 # acx_nlnetlabs.m4 - common macros for configure checks
2154 # Copyright 2009, Wouter Wijngaards, NLnet Labs.
2158 # 2013-09-19 FLTO help text improved.
2159 # 2013-07-18 Enable ACX_CHECK_COMPILER_FLAG to test for -Wstrict-prototypes
2160 # 2013-06-25 FLTO has --disable-flto option.
2161 # 2013-05-03 Update W32_SLEEP for newer mingw that links but not defines it.
2162 # 2013-03-22 Fix ACX_RSRC_VERSION for long version numbers.
2163 # 2012-02-09 Fix AHX_MEMCMP_BROKEN with undef in compat/memcmp.h.
2164 # 2012-01-20 Fix COMPILER_FLAGS_UNBOUND for gcc 4.6.2 assigned-not-used-warns.
2165 # 2011-12-05 Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc.
2166 # Fix ACX_MALLOC for redefined malloc error.
2167 # Fix GETADDRINFO_WITH_INCLUDES to add -lws2_32
2168 # 2011-11-10 Fix FLTO test to not drop a.out in current directory.
2169 # 2011-11-01 Fix FLTO test for llvm on Lion.
2170 # 2011-08-01 Fix nonblock test (broken at v13).
2171 # 2011-08-01 Fix autoconf 2.68 warnings
2172 # 2011-06-23 Add ACX_CHECK_FLTO to check -flto.
2173 # 2010-08-16 Fix FLAG_OMITTED for AS_TR_CPP changes in autoconf-2.66.
2174 # 2010-07-02 Add check for ss_family (for minix).
2175 # 2010-04-26 Fix to use CPPFLAGS for CHECK_COMPILER_FLAGS.
2176 # 2010-03-01 Fix RPATH using CONFIG_COMMANDS to run at the very end.
2177 # 2010-02-18 WITH_SSL outputs the LIBSSL_LDFLAGS, LIBS, CPPFLAGS separate, -ldl
2178 # 2010-02-01 added ACX_CHECK_MEMCMP_SIGNED, AHX_MEMCMP_BROKEN
2179 # 2010-01-20 added AHX_COONFIG_STRLCAT
2180 # 2009-07-14 U_CHAR detection improved for windows crosscompile.
2181 # added ACX_FUNC_MALLOC
2182 # fixup some #if to #ifdef
2183 # NONBLOCKING test for mingw crosscompile.
2184 # 2009-07-13 added ACX_WITH_SSL_OPTIONAL
2185 # 2009-07-03 fixup LDFLAGS for empty ssl dir.
2187 # Automates some of the checking constructs. Aims at portability for POSIX.
2188 # Documentation for functions is below.
2190 # the following macro's are provided in this file:
2191 # (see below for details on each macro).
2193 # ACX_ESCAPE_BACKSLASH - escape backslashes in var for C-preproc.
2194 # ACX_RSRC_VERSION - create windows resource version number.
2195 # ACX_CHECK_COMPILER_FLAG - see if cc supports a flag.
2196 # ACX_CHECK_ERROR_FLAGS - see which flag is -werror (used below).
2197 # ACX_CHECK_COMPILER_FLAG_NEEDED - see if flags make the code compile cleanly.
2198 # ACX_DEPFLAG - find cc dependency flags.
2199 # ACX_DETERMINE_EXT_FLAGS_UNBOUND - find out which flags enable BSD and POSIX.
2200 # ACX_CHECK_FORMAT_ATTRIBUTE - find cc printf format syntax.
2201 # ACX_CHECK_UNUSED_ATTRIBUTE - find cc variable unused syntax.
2202 # ACX_CHECK_FLTO - see if cc supports -flto and use it if so.
2203 # ACX_LIBTOOL_C_ONLY - create libtool for C only, improved.
2204 # ACX_TYPE_U_CHAR - u_char type.
2205 # ACX_TYPE_RLIM_T - rlim_t type.
2206 # ACX_TYPE_SOCKLEN_T - socklen_t type.
2207 # ACX_TYPE_IN_ADDR_T - in_addr_t type.
2208 # ACX_TYPE_IN_PORT_T - in_port_t type.
2209 # ACX_ARG_RPATH - add --disable-rpath option.
2210 # ACX_WITH_SSL - add --with-ssl option, link -lcrypto.
2211 # ACX_WITH_SSL_OPTIONAL - add --with-ssl option, link -lcrypto,
2212 # where --without-ssl is also accepted
2213 # ACX_LIB_SSL - setup to link -lssl.
2214 # ACX_SYS_LARGEFILE - improved sys_largefile, fseeko, >2G files.
2215 # ACX_CHECK_GETADDRINFO_WITH_INCLUDES - find getaddrinfo, portably.
2216 # ACX_FUNC_DEPRECATED - see if func is deprecated.
2217 # ACX_CHECK_NONBLOCKING_BROKEN - see if nonblocking sockets really work.
2218 # ACX_MKDIR_ONE_ARG - determine mkdir(2) number of arguments.
2219 # ACX_FUNC_IOCTLSOCKET - find ioctlsocket, portably.
2220 # ACX_FUNC_MALLOC - check malloc, define replacement .
2221 # AHX_CONFIG_FORMAT_ATTRIBUTE - config.h text for format.
2222 # AHX_CONFIG_UNUSED_ATTRIBUTE - config.h text for unused.
2223 # AHX_CONFIG_FSEEKO - define fseeko, ftello fallback.
2224 # AHX_CONFIG_RAND_MAX - define RAND_MAX if needed.
2225 # AHX_CONFIG_MAXHOSTNAMELEN - define MAXHOSTNAMELEN if needed.
2226 # AHX_CONFIG_IPV6_MIN_MTU - define IPV6_MIN_MTU if needed.
2227 # AHX_CONFIG_SNPRINTF - snprintf compat prototype
2228 # AHX_CONFIG_INET_PTON - inet_pton compat prototype
2229 # AHX_CONFIG_INET_NTOP - inet_ntop compat prototype
2230 # AHX_CONFIG_INET_ATON - inet_aton compat prototype
2231 # AHX_CONFIG_MEMMOVE - memmove compat prototype
2232 # AHX_CONFIG_STRLCAT - strlcat compat prototype
2233 # AHX_CONFIG_STRLCPY - strlcpy compat prototype
2234 # AHX_CONFIG_GMTIME_R - gmtime_r compat prototype
2235 # AHX_CONFIG_W32_SLEEP - w32 compat for sleep
2236 # AHX_CONFIG_W32_USLEEP - w32 compat for usleep
2237 # AHX_CONFIG_W32_RANDOM - w32 compat for random
2238 # AHX_CONFIG_W32_SRANDOM - w32 compat for srandom
2239 # AHX_CONFIG_W32_FD_SET_T - w32 detection of FD_SET_T.
2240 # ACX_CFLAGS_STRIP - strip one flag from CFLAGS
2241 # ACX_STRIP_EXT_FLAGS - strip extension flags from CFLAGS
2242 # AHX_CONFIG_FLAG_OMITTED - define omitted flag
2243 # AHX_CONFIG_FLAG_EXT - define omitted extension flag
2244 # AHX_CONFIG_EXT_FLAGS - define the stripped extension flags
2245 # ACX_CHECK_MEMCMP_SIGNED - check if memcmp uses signed characters.
2246 # AHX_MEMCMP_BROKEN - replace memcmp func for CHECK_MEMCMP_SIGNED.
2247 # ACX_CHECK_SS_FAMILY - check for sockaddr_storage.ss_family
2352 CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
2354 CFLAGS=${CFLAGS:-${OURCFLAGS}}
2356 $as_echo "#define WINVER 0x0502" >>confdefs.h
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364 if test -n "$ac_tool_prefix"; then
2365 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2366 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2368 $as_echo_n "checking for $ac_word... " >&6; }
2369 if ${ac_cv_prog_CC+:} false; then :
2370 $as_echo_n "(cached) " >&6
2372 if test -n "$CC"; then
2373 ac_cv_prog_CC="$CC" # Let the user override the test.
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2393 if test -n "$CC"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2395 $as_echo "$CC" >&6; }
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2398 $as_echo "no" >&6; }
2403 if test -z "$ac_cv_prog_CC"; then
2405 # Extract the first word of "gcc", so it can be a program name with args.
2406 set dummy gcc; ac_word=$2
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2408 $as_echo_n "checking for $ac_word... " >&6; }
2409 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2410 $as_echo_n "(cached) " >&6
2412 if test -n "$ac_ct_CC"; then
2413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422 ac_cv_prog_ac_ct_CC="gcc"
2423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2433 if test -n "$ac_ct_CC"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2435 $as_echo "$ac_ct_CC" >&6; }
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438 $as_echo "no" >&6; }
2441 if test "x$ac_ct_CC" = x; then
2444 case $cross_compiling:$ac_tool_warned in
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2448 ac_tool_warned=yes ;;
2456 if test -z "$CC"; then
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}cc; ac_word=$2
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461 $as_echo_n "checking for $ac_word... " >&6; }
2462 if ${ac_cv_prog_CC+:} false; then :
2463 $as_echo_n "(cached) " >&6
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_CC="${ac_tool_prefix}cc"
2476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 if test -n "$CC"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2488 $as_echo "$CC" >&6; }
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491 $as_echo "no" >&6; }
2497 if test -z "$CC"; then
2498 # Extract the first word of "cc", so it can be a program name with args.
2499 set dummy cc; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if ${ac_cv_prog_CC+:} false; then :
2503 $as_echo_n "(cached) " >&6
2505 if test -n "$CC"; then
2506 ac_cv_prog_CC="$CC" # Let the user override the test.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2517 ac_prog_rejected=yes
2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 if test $ac_prog_rejected = yes; then
2529 # We found a bogon in the path, so make sure we never use it.
2530 set dummy $ac_cv_prog_CC
2532 if test $# != 0; then
2533 # We chose a different compiler from the bogus one.
2534 # However, it has the same basename, so the bogon will be chosen
2535 # first if we set CC to just the basename; use the full file name.
2537 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2543 if test -n "$CC"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2545 $as_echo "$CC" >&6; }
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2553 if test -z "$CC"; then
2554 if test -n "$ac_tool_prefix"; then
2555 for ac_prog in cl.exe
2557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2558 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560 $as_echo_n "checking for $ac_word... " >&6; }
2561 if ${ac_cv_prog_CC+:} false; then :
2562 $as_echo_n "(cached) " >&6
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 if test -n "$CC"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2587 $as_echo "$CC" >&6; }
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590 $as_echo "no" >&6; }
2594 test -n "$CC" && break
2597 if test -z "$CC"; then
2599 for ac_prog in cl.exe
2601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2606 $as_echo_n "(cached) " >&6
2608 if test -n "$ac_ct_CC"; then
2609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_ac_ct_CC="$ac_prog"
2619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2629 if test -n "$ac_ct_CC"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2631 $as_echo "$ac_ct_CC" >&6; }
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634 $as_echo "no" >&6; }
2638 test -n "$ac_ct_CC" && break
2641 if test "x$ac_ct_CC" = x; then
2644 case $cross_compiling:$ac_tool_warned in
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648 ac_tool_warned=yes ;;
2657 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659 as_fn_error $? "no acceptable C compiler found in \$PATH
2660 See \`config.log' for more details" "$LINENO" 5; }
2662 # Provide some information about the compiler.
2663 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2666 for ac_option in --version -v -V -qversion; do
2667 { { ac_try="$ac_compiler $ac_option >&5"
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2673 $as_echo "$ac_try_echo"; } >&5
2674 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2676 if test -s conftest.err; then
2678 ... rest of stderr output deleted ...
2679 10q' conftest.err >conftest.er1
2680 cat conftest.er1 >&5
2682 rm -f conftest.er1 conftest.err
2683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2684 test $ac_status = 0; }
2687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2698 ac_clean_files_save=$ac_clean_files
2699 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2700 # Try to create an executable without -o first, disregard a.out.
2701 # It will help us diagnose broken compilers, and finding out an intuition
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2704 $as_echo_n "checking whether the C compiler works... " >&6; }
2705 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2707 # The possible output files:
2708 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2711 for ac_file in $ac_files
2714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2715 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2720 if { { ac_try="$ac_link_default"
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2726 $as_echo "$ac_try_echo"; } >&5
2727 (eval "$ac_link_default") 2>&5
2729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2730 test $ac_status = 0; }; then :
2731 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2732 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2733 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2734 # so that the user can short-circuit this test for compilers unknown to
2736 for ac_file in $ac_files ''
2738 test -f "$ac_file" || continue
2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2743 # We found the default executable, but exeext='' is most
2747 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2749 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2751 # We set ac_cv_exeext here because the later test for it is not
2752 # safe: cross compilers may not add the suffix if given an `-o'
2753 # argument, so we may need to know it at that point already.
2754 # Even if this section looks crufty: it has the advantage of
2761 test "$ac_cv_exeext" = no && ac_cv_exeext=
2766 if test -z "$ac_file"; then :
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 $as_echo "no" >&6; }
2769 $as_echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774 as_fn_error 77 "C compiler cannot create executables
2775 See \`config.log' for more details" "$LINENO" 5; }
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2778 $as_echo "yes" >&6; }
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2781 $as_echo_n "checking for C compiler default output file name... " >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2783 $as_echo "$ac_file" >&6; }
2784 ac_exeext=$ac_cv_exeext
2786 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2787 ac_clean_files=$ac_clean_files_save
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2789 $as_echo_n "checking for suffix of executables... " >&6; }
2790 if { { ac_try="$ac_link"
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2796 $as_echo "$ac_try_echo"; } >&5
2797 (eval "$ac_link") 2>&5
2799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2800 test $ac_status = 0; }; then :
2801 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2802 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2803 # work properly (i.e., refer to `conftest.exe'), while it won't with
2805 for ac_file in conftest.exe conftest conftest.*; do
2806 test -f "$ac_file" || continue
2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2809 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2817 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2818 See \`config.log' for more details" "$LINENO" 5; }
2820 rm -f conftest conftest$ac_cv_exeext
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2822 $as_echo "$ac_cv_exeext" >&6; }
2824 rm -f conftest.$ac_ext
2825 EXEEXT=$ac_cv_exeext
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828 /* end confdefs.h. */
2833 FILE *f = fopen ("conftest.out", "w");
2834 return ferror (f) || fclose (f) != 0;
2840 ac_clean_files="$ac_clean_files conftest.out"
2841 # Check that the compiler produces executables we can run. If not, either
2842 # the compiler is broken, or we cross compile.
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2844 $as_echo_n "checking whether we are cross compiling... " >&6; }
2845 if test "$cross_compiling" != yes; then
2846 { { ac_try="$ac_link"
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852 $as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_link") 2>&5
2855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856 test $ac_status = 0; }
2857 if { ac_try='./conftest$ac_cv_exeext'
2858 { { case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2863 $as_echo "$ac_try_echo"; } >&5
2864 (eval "$ac_try") 2>&5
2866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2867 test $ac_status = 0; }; }; then
2870 if test "$cross_compiling" = maybe; then
2873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875 as_fn_error $? "cannot run C compiled programs.
2876 If you meant to cross compile, use \`--host'.
2877 See \`config.log' for more details" "$LINENO" 5; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2882 $as_echo "$cross_compiling" >&6; }
2884 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2885 ac_clean_files=$ac_clean_files_save
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2887 $as_echo_n "checking for suffix of object files... " >&6; }
2888 if ${ac_cv_objext+:} false; then :
2889 $as_echo_n "(cached) " >&6
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h. */
2902 rm -f conftest.o conftest.obj
2903 if { { ac_try="$ac_compile"
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2909 $as_echo "$ac_try_echo"; } >&5
2910 (eval "$ac_compile") 2>&5
2912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2913 test $ac_status = 0; }; then :
2914 for ac_file in conftest.o conftest.obj conftest.*; do
2915 test -f "$ac_file" || continue;
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2923 $as_echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2928 as_fn_error $? "cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details" "$LINENO" 5; }
2931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2934 $as_echo "$ac_cv_objext" >&6; }
2935 OBJEXT=$ac_cv_objext
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2938 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2939 if ${ac_cv_c_compiler_gnu+:} false; then :
2940 $as_echo_n "(cached) " >&6
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943 /* end confdefs.h. */
2956 if ac_fn_c_try_compile "$LINENO"; then :
2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2966 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2967 if test $ac_compiler_gnu = yes; then
2972 ac_test_CFLAGS=${CFLAGS+set}
2973 ac_save_CFLAGS=$CFLAGS
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2975 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2976 if ${ac_cv_prog_cc_g+:} false; then :
2977 $as_echo_n "(cached) " >&6
2979 ac_save_c_werror_flag=$ac_c_werror_flag
2980 ac_c_werror_flag=yes
2983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2984 /* end confdefs.h. */
2994 if ac_fn_c_try_compile "$LINENO"; then :
2998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2999 /* end confdefs.h. */
3009 if ac_fn_c_try_compile "$LINENO"; then :
3012 ac_c_werror_flag=$ac_save_c_werror_flag
3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h. */
3025 if ac_fn_c_try_compile "$LINENO"; then :
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3033 ac_c_werror_flag=$ac_save_c_werror_flag
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3036 $as_echo "$ac_cv_prog_cc_g" >&6; }
3037 if test "$ac_test_CFLAGS" = set; then
3038 CFLAGS=$ac_save_CFLAGS
3039 elif test $ac_cv_prog_cc_g = yes; then
3040 if test "$GCC" = yes; then
3046 if test "$GCC" = yes; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3053 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3054 if ${ac_cv_prog_cc_c89+:} false; then :
3055 $as_echo_n "(cached) " >&6
3057 ac_cv_prog_cc_c89=no
3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060 /* end confdefs.h. */
3063 #include <sys/types.h>
3064 #include <sys/stat.h>
3065 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3066 struct buf { int x; };
3067 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3068 static char *e (p, i)
3074 static char *f (char * (*g) (char **, int), char **p, ...)
3079 s = g (p, va_arg (v,int));
3084 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3085 function prototypes and stuff, but not '\xHH' hex character constants.
3086 These don't provoke an error unfortunately, instead are silently treated
3087 as 'x'. The following induces an error, until -std is added to get
3088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3089 array size at least. It's necessary to write '\x00'==0 to get something
3090 that's true only with -std. */
3091 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3093 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3094 inside strings and character constants. */
3096 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3098 int test (int i, double x);
3099 struct s1 {int (*f) (int a);};
3100 struct s2 {int (*f) (double a);};
3101 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3107 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3112 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3113 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3115 CC="$ac_save_CC $ac_arg"
3116 if ac_fn_c_try_compile "$LINENO"; then :
3117 ac_cv_prog_cc_c89=$ac_arg
3119 rm -f core conftest.err conftest.$ac_objext
3120 test "x$ac_cv_prog_cc_c89" != "xno" && break
3122 rm -f conftest.$ac_ext
3127 case "x$ac_cv_prog_cc_c89" in
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3130 $as_echo "none needed" >&6; } ;;
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3133 $as_echo "unsupported" >&6; } ;;
3135 CC="$CC $ac_cv_prog_cc_c89"
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3137 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3139 if test "x$ac_cv_prog_cc_c89" != xno; then :
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 ac_cpp='$CPP $CPPFLAGS'
3152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3156 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3157 # On Suns, sometimes $CPP names a directory.
3158 if test -n "$CPP" && test -d "$CPP"; then
3161 if test -z "$CPP"; then
3162 if ${ac_cv_prog_CPP+:} false; then :
3163 $as_echo_n "(cached) " >&6
3165 # Double quotes because CPP needs to be expanded
3166 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3169 for ac_c_preproc_warn_flag in '' yes
3171 # Use a header file that comes with gcc, so configuring glibc
3172 # with a fresh cross-compiler works.
3173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3174 # <limits.h> exists even on freestanding compilers.
3175 # On the NeXT, cc -E runs the code through the compiler's parser,
3176 # not just through cpp. "Syntax error" is here to catch this case.
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3180 # include <limits.h>
3182 # include <assert.h>
3186 if ac_fn_c_try_cpp "$LINENO"; then :
3189 # Broken: fails on valid input.
3192 rm -f conftest.err conftest.i conftest.$ac_ext
3194 # OK, works on sane cases. Now check whether nonexistent headers
3195 # can be detected and how.
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3198 #include <ac_nonexistent.h>
3200 if ac_fn_c_try_cpp "$LINENO"; then :
3201 # Broken: success on invalid input.
3204 # Passes both tests.
3208 rm -f conftest.err conftest.i conftest.$ac_ext
3211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3212 rm -f conftest.i conftest.err conftest.$ac_ext
3213 if $ac_preproc_ok; then :
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3226 $as_echo "$CPP" >&6; }
3228 for ac_c_preproc_warn_flag in '' yes
3230 # Use a header file that comes with gcc, so configuring glibc
3231 # with a fresh cross-compiler works.
3232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3233 # <limits.h> exists even on freestanding compilers.
3234 # On the NeXT, cc -E runs the code through the compiler's parser,
3235 # not just through cpp. "Syntax error" is here to catch this case.
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3239 # include <limits.h>
3241 # include <assert.h>
3245 if ac_fn_c_try_cpp "$LINENO"; then :
3248 # Broken: fails on valid input.
3251 rm -f conftest.err conftest.i conftest.$ac_ext
3253 # OK, works on sane cases. Now check whether nonexistent headers
3254 # can be detected and how.
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3257 #include <ac_nonexistent.h>
3259 if ac_fn_c_try_cpp "$LINENO"; then :
3260 # Broken: success on invalid input.
3263 # Passes both tests.
3267 rm -f conftest.err conftest.i conftest.$ac_ext
3270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3271 rm -f conftest.i conftest.err conftest.$ac_ext
3272 if $ac_preproc_ok; then :
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3278 See \`config.log' for more details" "$LINENO" 5; }
3282 ac_cpp='$CPP $CPPFLAGS'
3283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3289 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3290 if ${ac_cv_path_GREP+:} false; then :
3291 $as_echo_n "(cached) " >&6
3293 if test -z "$GREP"; then
3294 ac_path_GREP_found=false
3295 # Loop through the user's path and test for each of PROGNAME-LIST
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3300 test -z "$as_dir" && as_dir=.
3301 for ac_prog in grep ggrep; do
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3304 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3305 # Check for GNU ac_path_GREP and select it if it is found.
3306 # Check for GNU $ac_path_GREP
3307 case `"$ac_path_GREP" --version 2>&1` in
3309 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3312 $as_echo_n 0123456789 >"conftest.in"
3315 cat "conftest.in" "conftest.in" >"conftest.tmp"
3316 mv "conftest.tmp" "conftest.in"
3317 cp "conftest.in" "conftest.nl"
3318 $as_echo 'GREP' >> "conftest.nl"
3319 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3321 as_fn_arith $ac_count + 1 && ac_count=$as_val
3322 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3323 # Best one so far, save it but keep looking for a better one
3324 ac_cv_path_GREP="$ac_path_GREP"
3325 ac_path_GREP_max=$ac_count
3327 # 10*(2^10) chars as input seems more than enough
3328 test $ac_count -gt 10 && break
3330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333 $ac_path_GREP_found && break 3
3338 if test -z "$ac_cv_path_GREP"; then
3339 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3342 ac_cv_path_GREP=$GREP
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3347 $as_echo "$ac_cv_path_GREP" >&6; }
3348 GREP="$ac_cv_path_GREP"
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3352 $as_echo_n "checking for egrep... " >&6; }
3353 if ${ac_cv_path_EGREP+:} false; then :
3354 $as_echo_n "(cached) " >&6
3356 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3357 then ac_cv_path_EGREP="$GREP -E"
3359 if test -z "$EGREP"; then
3360 ac_path_EGREP_found=false
3361 # Loop through the user's path and test for each of PROGNAME-LIST
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3366 test -z "$as_dir" && as_dir=.
3367 for ac_prog in egrep; do
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3370 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3371 # Check for GNU ac_path_EGREP and select it if it is found.
3372 # Check for GNU $ac_path_EGREP
3373 case `"$ac_path_EGREP" --version 2>&1` in
3375 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3378 $as_echo_n 0123456789 >"conftest.in"
3381 cat "conftest.in" "conftest.in" >"conftest.tmp"
3382 mv "conftest.tmp" "conftest.in"
3383 cp "conftest.in" "conftest.nl"
3384 $as_echo 'EGREP' >> "conftest.nl"
3385 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3387 as_fn_arith $ac_count + 1 && ac_count=$as_val
3388 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3389 # Best one so far, save it but keep looking for a better one
3390 ac_cv_path_EGREP="$ac_path_EGREP"
3391 ac_path_EGREP_max=$ac_count
3393 # 10*(2^10) chars as input seems more than enough
3394 test $ac_count -gt 10 && break
3396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3399 $ac_path_EGREP_found && break 3
3404 if test -z "$ac_cv_path_EGREP"; then
3405 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3408 ac_cv_path_EGREP=$EGREP
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3414 $as_echo "$ac_cv_path_EGREP" >&6; }
3415 EGREP="$ac_cv_path_EGREP"
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3419 $as_echo_n "checking for ANSI C header files... " >&6; }
3420 if ${ac_cv_header_stdc+:} false; then :
3421 $as_echo_n "(cached) " >&6
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3438 if ac_fn_c_try_compile "$LINENO"; then :
3439 ac_cv_header_stdc=yes
3441 ac_cv_header_stdc=no
3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 if test $ac_cv_header_stdc = yes; then
3446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3453 $EGREP "memchr" >/dev/null 2>&1; then :
3456 ac_cv_header_stdc=no
3462 if test $ac_cv_header_stdc = yes; then
3463 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3470 $EGREP "free" >/dev/null 2>&1; then :
3473 ac_cv_header_stdc=no
3479 if test $ac_cv_header_stdc = yes; then
3480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3481 if test "$cross_compiling" = yes; then :
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3488 #if ((' ' & 0x0FF) == 0x020)
3489 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3490 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3492 # define ISLOWER(c) \
3493 (('a' <= (c) && (c) <= 'i') \
3494 || ('j' <= (c) && (c) <= 'r') \
3495 || ('s' <= (c) && (c) <= 'z'))
3496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3504 for (i = 0; i < 256; i++)
3505 if (XOR (islower (i), ISLOWER (i))
3506 || toupper (i) != TOUPPER (i))
3511 if ac_fn_c_try_run "$LINENO"; then :
3514 ac_cv_header_stdc=no
3516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3517 conftest.$ac_objext conftest.beam conftest.$ac_ext
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3523 $as_echo "$ac_cv_header_stdc" >&6; }
3524 if test $ac_cv_header_stdc = yes; then
3526 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3532 inttypes.h stdint.h unistd.h
3534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3535 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3537 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3538 cat >>confdefs.h <<_ACEOF
3539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3548 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3549 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3556 if test "$MINIX" = yes; then
3558 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3561 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3564 $as_echo "#define _MINIX 1" >>confdefs.h
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3570 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3571 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3572 $as_echo_n "(cached) " >&6
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3577 # define __EXTENSIONS__ 1
3578 $ac_includes_default
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588 ac_cv_safe_to_define___extensions__=yes
3590 ac_cv_safe_to_define___extensions__=no
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3595 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3596 test $ac_cv_safe_to_define___extensions__ = yes &&
3597 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3599 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3601 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3603 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3605 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3609 # Checks for programs.
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 if test -n "$ac_tool_prefix"; then
3616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3617 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if ${ac_cv_prog_CC+:} false; then :
3621 $as_echo_n "(cached) " >&6
3623 if test -n "$CC"; then
3624 ac_cv_prog_CC="$CC" # Let the user override the test.
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3633 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 if test -n "$CC"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3646 $as_echo "$CC" >&6; }
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3654 if test -z "$ac_cv_prog_CC"; then
3656 # Extract the first word of "gcc", so it can be a program name with args.
3657 set dummy gcc; ac_word=$2
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659 $as_echo_n "checking for $ac_word... " >&6; }
3660 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3661 $as_echo_n "(cached) " >&6
3663 if test -n "$ac_ct_CC"; then
3664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 ac_cv_prog_ac_ct_CC="gcc"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684 if test -n "$ac_ct_CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3686 $as_echo "$ac_ct_CC" >&6; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3692 if test "x$ac_ct_CC" = x; then
3695 case $cross_compiling:$ac_tool_warned in
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3699 ac_tool_warned=yes ;;
3707 if test -z "$CC"; then
3708 if test -n "$ac_tool_prefix"; then
3709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}cc; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if ${ac_cv_prog_CC+:} false; then :
3714 $as_echo_n "(cached) " >&6
3716 if test -n "$CC"; then
3717 ac_cv_prog_CC="$CC" # Let the user override the test.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3726 ac_cv_prog_CC="${ac_tool_prefix}cc"
3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 if test -n "$CC"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739 $as_echo "$CC" >&6; }
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3748 if test -z "$CC"; then
3749 # Extract the first word of "cc", so it can be a program name with args.
3750 set dummy cc; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_CC+:} false; then :
3754 $as_echo_n "(cached) " >&6
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3768 ac_prog_rejected=yes
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 if test $ac_prog_rejected = yes; then
3780 # We found a bogon in the path, so make sure we never use it.
3781 set dummy $ac_cv_prog_CC
3783 if test $# != 0; then
3784 # We chose a different compiler from the bogus one.
3785 # However, it has the same basename, so the bogon will be chosen
3786 # first if we set CC to just the basename; use the full file name.
3788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3794 if test -n "$CC"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 $as_echo "$CC" >&6; }
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3804 if test -z "$CC"; then
3805 if test -n "$ac_tool_prefix"; then
3806 for ac_prog in cl.exe
3808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if ${ac_cv_prog_CC+:} false; then :
3813 $as_echo_n "(cached) " >&6
3815 if test -n "$CC"; then
3816 ac_cv_prog_CC="$CC" # Let the user override the test.
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 if test -n "$CC"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838 $as_echo "$CC" >&6; }
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3845 test -n "$CC" && break
3848 if test -z "$CC"; then
3850 for ac_prog in cl.exe
3852 # Extract the first word of "$ac_prog", so it can be a program name with args.
3853 set dummy $ac_prog; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3857 $as_echo_n "(cached) " >&6
3859 if test -n "$ac_ct_CC"; then
3860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_prog_ac_ct_CC="$ac_prog"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3880 if test -n "$ac_ct_CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3882 $as_echo "$ac_ct_CC" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3889 test -n "$ac_ct_CC" && break
3892 if test "x$ac_ct_CC" = x; then
3895 case $cross_compiling:$ac_tool_warned in
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3899 ac_tool_warned=yes ;;
3908 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 as_fn_error $? "no acceptable C compiler found in \$PATH
3911 See \`config.log' for more details" "$LINENO" 5; }
3913 # Provide some information about the compiler.
3914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3917 for ac_option in --version -v -V -qversion; do
3918 { { ac_try="$ac_compiler $ac_option >&5"
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 $as_echo "$ac_try_echo"; } >&5
3925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3927 if test -s conftest.err; then
3929 ... rest of stderr output deleted ...
3930 10q' conftest.err >conftest.er1
3931 cat conftest.er1 >&5
3933 rm -f conftest.er1 conftest.err
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3939 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3940 if ${ac_cv_c_compiler_gnu+:} false; then :
3941 $as_echo_n "(cached) " >&6
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3957 if ac_fn_c_try_compile "$LINENO"; then :
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3967 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3968 if test $ac_compiler_gnu = yes; then
3973 ac_test_CFLAGS=${CFLAGS+set}
3974 ac_save_CFLAGS=$CFLAGS
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3976 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3977 if ${ac_cv_prog_cc_g+:} false; then :
3978 $as_echo_n "(cached) " >&6
3980 ac_save_c_werror_flag=$ac_c_werror_flag
3981 ac_c_werror_flag=yes
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3995 if ac_fn_c_try_compile "$LINENO"; then :
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4010 if ac_fn_c_try_compile "$LINENO"; then :
4013 ac_c_werror_flag=$ac_save_c_werror_flag
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4026 if ac_fn_c_try_compile "$LINENO"; then :
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 ac_c_werror_flag=$ac_save_c_werror_flag
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4037 $as_echo "$ac_cv_prog_cc_g" >&6; }
4038 if test "$ac_test_CFLAGS" = set; then
4039 CFLAGS=$ac_save_CFLAGS
4040 elif test $ac_cv_prog_cc_g = yes; then
4041 if test "$GCC" = yes; then
4047 if test "$GCC" = yes; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4054 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4055 if ${ac_cv_prog_cc_c89+:} false; then :
4056 $as_echo_n "(cached) " >&6
4058 ac_cv_prog_cc_c89=no
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4064 #include <sys/types.h>
4065 #include <sys/stat.h>
4066 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4067 struct buf { int x; };
4068 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4069 static char *e (p, i)
4075 static char *f (char * (*g) (char **, int), char **p, ...)
4080 s = g (p, va_arg (v,int));
4085 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4086 function prototypes and stuff, but not '\xHH' hex character constants.
4087 These don't provoke an error unfortunately, instead are silently treated
4088 as 'x'. The following induces an error, until -std is added to get
4089 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4090 array size at least. It's necessary to write '\x00'==0 to get something
4091 that's true only with -std. */
4092 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4094 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4095 inside strings and character constants. */
4097 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4099 int test (int i, double x);
4100 struct s1 {int (*f) (int a);};
4101 struct s2 {int (*f) (double a);};
4102 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4108 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4113 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4114 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4116 CC="$ac_save_CC $ac_arg"
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118 ac_cv_prog_cc_c89=$ac_arg
4120 rm -f core conftest.err conftest.$ac_objext
4121 test "x$ac_cv_prog_cc_c89" != "xno" && break
4123 rm -f conftest.$ac_ext
4128 case "x$ac_cv_prog_cc_c89" in
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4131 $as_echo "none needed" >&6; } ;;
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4134 $as_echo "unsupported" >&6; } ;;
4136 CC="$CC $ac_cv_prog_cc_c89"
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4138 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4140 if test "x$ac_cv_prog_cc_c89" != xno; then :
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4151 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4153 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4154 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4155 $as_echo_n "(cached) " >&6
4157 cat >conftest.make <<\_ACEOF
4160 @echo '@@@%%%=$(MAKE)=@@@%%%'
4162 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4163 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4165 eval ac_cv_prog_make_${ac_make}_set=yes;;
4167 eval ac_cv_prog_make_${ac_make}_set=no;;
4171 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4173 $as_echo "yes" >&6; }
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177 $as_echo "no" >&6; }
4178 SET_MAKE="MAKE=${MAKE-make}"
4181 for ac_prog in glibtool libtool15 libtool
4183 # Extract the first word of "$ac_prog", so it can be a program name with args.
4184 set dummy $ac_prog; ac_word=$2
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 $as_echo_n "checking for $ac_word... " >&6; }
4187 if ${ac_cv_prog_libtool+:} false; then :
4188 $as_echo_n "(cached) " >&6
4190 if test -n "$libtool"; then
4191 ac_cv_prog_libtool="$libtool" # Let the user override the test.
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4200 ac_cv_prog_libtool="$ac_prog"
4201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 libtool=$ac_cv_prog_libtool
4211 if test -n "$libtool"; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libtool" >&5
4213 $as_echo "$libtool" >&6; }
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4220 test -n "$libtool" && break
4222 test -n "$libtool" || libtool="../libtool"
4225 # add option to disable the evil rpath
4226 # Check whether --enable-rpath was given.
4227 if test "${enable_rpath+set}" = set; then :
4228 enableval=$enable_rpath; enable_rpath=$enableval
4234 if test "x$enable_rpath" = xyes; then
4235 RPATH_VAL="-Wl,-rpath=\${libdir}"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4242 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4243 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4244 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4245 $as_echo_n "(cached) " >&6
4248 echo 'void f(void){}' >conftest.c
4249 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4250 eval "cv_prog_cc_flag_$cache=yes"
4252 eval "cv_prog_cc_flag_$cache=no"
4254 rm -f conftest conftest.o conftest.c
4258 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4260 $as_echo "yes" >&6; }
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4273 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
4274 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4275 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4276 $as_echo_n "(cached) " >&6
4279 echo 'void f(void){}' >conftest.c
4280 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
4281 eval "cv_prog_cc_flag_$cache=yes"
4283 eval "cv_prog_cc_flag_$cache=no"
4285 rm -f conftest conftest.o conftest.c
4289 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4291 $as_echo "yes" >&6; }
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4302 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4303 if test "x$ac_cv_type_size_t" = xyes; then :
4307 cat >>confdefs.h <<_ACEOF
4308 #define size_t unsigned int
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4316 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4317 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4318 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4319 $as_echo_n "(cached) " >&6
4322 echo 'void f(void){}' >conftest.c
4323 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4324 eval "cv_prog_cc_flag_$cache=yes"
4326 eval "cv_prog_cc_flag_$cache=no"
4328 rm -f conftest conftest.o conftest.c
4332 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4334 $as_echo "yes" >&6; }
4336 CFLAGS="$CFLAGS -O2"
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4349 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4350 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4351 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4352 $as_echo_n "(cached) " >&6
4355 echo 'void f(void){}' >conftest.c
4356 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4357 eval "cv_prog_cc_flag_$cache=yes"
4359 eval "cv_prog_cc_flag_$cache=no"
4361 rm -f conftest conftest.o conftest.c
4365 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367 $as_echo "yes" >&6; }
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4380 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4381 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4382 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4383 $as_echo_n "(cached) " >&6
4386 echo 'void f(void){}' >conftest.c
4387 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4388 eval "cv_prog_cc_flag_$cache=yes"
4390 eval "cv_prog_cc_flag_$cache=no"
4392 rm -f conftest conftest.o conftest.c
4396 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4398 $as_echo "yes" >&6; }
4400 ERRFLAG="$ERRFLAG -Wall"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4405 ERRFLAG="$ERRFLAG -errfmt"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 as a flag for $CC" >&5
4413 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 as a flag for $CC... " >&6; }
4414 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600" | $as_tr_sh`
4415 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4416 $as_echo_n "(cached) " >&6
4420 #include "confdefs.h"
4423 #include <sys/time.h>
4428 #ifdef HAVE_GETOPT_H
4439 t = ctime_r(&time, buf);
4442 a = getopt(2, opts, "a");
4447 echo 'void f(){}' >>conftest.c
4448 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
4449 eval "cv_prog_cc_flag_needed_$cache=no"
4452 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1`"; then
4453 eval "cv_prog_cc_flag_needed_$cache=yes"
4455 eval "cv_prog_cc_flag_needed_$cache=fail"
4456 #echo 'Test with flag fails too!'
4458 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1"
4459 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1`
4464 rm -f conftest conftest.c conftest.o
4468 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4470 $as_echo "yes" >&6; }
4472 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600"
4474 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4477 #echo 'Test with flag is no!'
4479 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1"
4480 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1`
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4486 $as_echo "failed" >&6; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
4498 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
4499 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
4500 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4501 $as_echo_n "(cached) " >&6
4504 echo '#include <stdbool.h>' > conftest.c
4505 echo 'void f(){}' >>conftest.c
4506 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
4507 eval "cv_prog_cc_flag_needed_$cache=no"
4510 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
4511 eval "cv_prog_cc_flag_needed_$cache=yes"
4513 eval "cv_prog_cc_flag_needed_$cache=fail"
4514 #echo 'Test with flag fails too!'
4516 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
4517 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
4522 rm -f conftest conftest.c conftest.o
4526 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4528 $as_echo "yes" >&6; }
4530 CFLAGS="$CFLAGS $C99FLAG"
4532 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4535 #echo 'Test with flag is no!'
4537 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
4538 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4544 $as_echo "failed" >&6; }
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4552 $as_echo_n "checking for inline... " >&6; }
4553 if ${ac_cv_c_inline+:} false; then :
4554 $as_echo_n "(cached) " >&6
4557 for ac_kw in inline __inline__ __inline; do
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4562 static $ac_kw foo_t static_foo () {return 0; }
4563 $ac_kw foo_t foo () {return 0; }
4567 if ac_fn_c_try_compile "$LINENO"; then :
4568 ac_cv_c_inline=$ac_kw
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 test "$ac_cv_c_inline" != no && break
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4576 $as_echo "$ac_cv_c_inline" >&6; }
4578 case $ac_cv_c_inline in
4581 case $ac_cv_c_inline in
4583 *) ac_val=$ac_cv_c_inline;;
4585 cat >>confdefs.h <<_ACEOF
4587 #define inline $ac_val
4593 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4594 if test "x$ac_cv_type_int8_t" = xyes; then :
4598 cat >>confdefs.h <<_ACEOF
4604 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4605 if test "x$ac_cv_type_int16_t" = xyes; then :
4609 cat >>confdefs.h <<_ACEOF
4610 #define int16_t short
4615 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4616 if test "x$ac_cv_type_int32_t" = xyes; then :
4620 cat >>confdefs.h <<_ACEOF
4626 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
4627 if test "x$ac_cv_type_int64_t" = xyes; then :
4631 cat >>confdefs.h <<_ACEOF
4632 #define int64_t long long
4637 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4638 if test "x$ac_cv_type_uint8_t" = xyes; then :
4642 cat >>confdefs.h <<_ACEOF
4643 #define uint8_t unsigned char
4648 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4649 if test "x$ac_cv_type_uint16_t" = xyes; then :
4653 cat >>confdefs.h <<_ACEOF
4654 #define uint16_t unsigned short
4659 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4660 if test "x$ac_cv_type_uint32_t" = xyes; then :
4664 cat >>confdefs.h <<_ACEOF
4665 #define uint32_t unsigned int
4670 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4671 if test "x$ac_cv_type_uint64_t" = xyes; then :
4675 cat >>confdefs.h <<_ACEOF
4676 #define uint64_t unsigned long long
4681 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4682 if test "x$ac_cv_type_ssize_t" = xyes; then :
4686 cat >>confdefs.h <<_ACEOF
4693 for ac_header in sys/types.h getopt.h stdlib.h stdio.h assert.h netinet/in.h ctype.h time.h arpa/inet.h sys/time.h sys/socket.h sys/select.h
4695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4696 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4698 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4699 cat >>confdefs.h <<_ACEOF
4700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4707 for ac_header in netinet/in_systm.h net/if.h netinet/ip.h netinet/udp.h netinet/if_ether.h netinet/ip6.h
4709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4710 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4711 $ac_includes_default
4712 #ifdef HAVE_NETINET_IN_SYSTM_H
4713 #include <netinet/in_systm.h>
4715 #ifdef HAVE_NETINET_IN_H
4716 #include <netinet/in.h>
4718 #ifdef HAVE_SYS_SOCKET_H
4719 #include <sys/socket.h>
4721 #ifdef HAVE_NET_IF_H
4725 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4726 cat >>confdefs.h <<_ACEOF
4727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4735 for ac_header in winsock2.h ws2tcpip.h
4737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4738 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4740 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4741 cat >>confdefs.h <<_ACEOF
4742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4751 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
4752 $ac_includes_default
4753 #ifdef HAVE_SYS_SOCKET_H
4754 # include <sys/socket.h>
4756 #ifdef HAVE_WS2TCPIP_H
4757 # include <ws2tcpip.h>
4761 if test "x$ac_cv_type_socklen_t" = xyes; then :
4765 $as_echo "#define socklen_t int" >>confdefs.h
4769 for ac_header in sys/param.h sys/mount.h
4771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4772 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4775 #if HAVE_SYS_PARAM_H
4776 # include <sys/param.h>
4781 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4782 cat >>confdefs.h <<_ACEOF
4783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4790 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
4791 #if HAVE_SYS_TYPES_H
4792 # include <sys/types.h>
4794 #if HAVE_NETINET_IN_H
4795 # include <netinet/in.h>
4798 if test "x$ac_cv_type_in_addr_t" = xyes; then :
4802 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
4806 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
4807 #if HAVE_SYS_TYPES_H
4808 # include <sys/types.h>
4810 #if HAVE_NETINET_IN_H
4811 # include <netinet/in.h>
4814 if test "x$ac_cv_type_in_port_t" = xyes; then :
4818 $as_echo "#define in_port_t uint16_t" >>confdefs.h
4823 # check to see if libraries are needed for these functions.
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4825 $as_echo_n "checking for library containing socket... " >&6; }
4826 if ${ac_cv_search_socket+:} false; then :
4827 $as_echo_n "(cached) " >&6
4829 ac_func_search_save_LIBS=$LIBS
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4833 /* Override any GCC internal prototype to avoid an error.
4834 Use char because int might match the return type of a GCC
4835 builtin and then its argument prototype would still apply. */
4848 for ac_lib in '' socket; do
4849 if test -z "$ac_lib"; then
4850 ac_res="none required"
4853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4855 if ac_fn_c_try_link "$LINENO"; then :
4856 ac_cv_search_socket=$ac_res
4858 rm -f core conftest.err conftest.$ac_objext \
4860 if ${ac_cv_search_socket+:} false; then :
4864 if ${ac_cv_search_socket+:} false; then :
4867 ac_cv_search_socket=no
4870 LIBS=$ac_func_search_save_LIBS
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4873 $as_echo "$ac_cv_search_socket" >&6; }
4874 ac_res=$ac_cv_search_socket
4875 if test "$ac_res" != no; then :
4876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
4881 $as_echo_n "checking for library containing inet_pton... " >&6; }
4882 if ${ac_cv_search_inet_pton+:} false; then :
4883 $as_echo_n "(cached) " >&6
4885 ac_func_search_save_LIBS=$LIBS
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4889 /* Override any GCC internal prototype to avoid an error.
4890 Use char because int might match the return type of a GCC
4891 builtin and then its argument prototype would still apply. */
4899 return inet_pton ();
4904 for ac_lib in '' nsl; do
4905 if test -z "$ac_lib"; then
4906 ac_res="none required"
4909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4911 if ac_fn_c_try_link "$LINENO"; then :
4912 ac_cv_search_inet_pton=$ac_res
4914 rm -f core conftest.err conftest.$ac_objext \
4916 if ${ac_cv_search_inet_pton+:} false; then :
4920 if ${ac_cv_search_inet_pton+:} false; then :
4923 ac_cv_search_inet_pton=no
4926 LIBS=$ac_func_search_save_LIBS
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
4929 $as_echo "$ac_cv_search_inet_pton" >&6; }
4930 ac_res=$ac_cv_search_inet_pton
4931 if test "$ac_res" != no; then :
4932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4939 # Check whether --with-ssl was given.
4940 if test "${with_ssl+set}" = set; then :
4951 if test x_$withval != x_no; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
4953 $as_echo_n "checking for SSL... " >&6; }
4954 if test x_$withval = x_ -o x_$withval = x_yes; then
4955 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
4957 for dir in $withval; do
4959 if test -f "$dir/include/openssl/ssl.h"; then
4962 cat >>confdefs.h <<_ACEOF
4963 #define HAVE_SSL /**/
4966 if test "$ssldir" != "/usr"; then
4967 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
4968 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
4973 if test x_$found_ssl != x_yes; then
4974 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
4977 $as_echo "found in $ssldir" >&6; }
4979 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
4980 LDFLAGS="$LDFLAGS -L$ssldir/lib"
4981 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
4983 if test "x$enable_rpath" = xyes; then
4984 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
4985 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
4992 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
4993 LIBS="$LIBS -lcrypto"
4994 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
5002 int HMAC_CTX_init(void);
5003 (void)HMAC_CTX_init();
5009 if ac_fn_c_try_link "$LINENO"; then :
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5012 $as_echo "yes" >&6; }
5014 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5021 # check if -lwsock32 or -lgdi32 are needed.
5023 BAKSSLLIBS="$LIBSSL_LIBS"
5024 LIBS="$LIBS -lgdi32"
5025 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
5027 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5035 int HMAC_CTX_init(void);
5036 (void)HMAC_CTX_init();
5042 if ac_fn_c_try_link "$LINENO"; then :
5045 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5048 $as_echo "yes" >&6; }
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5055 LIBSSL_LIBS="$BAKSSLLIBS"
5057 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
5059 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5067 int HMAC_CTX_init(void);
5068 (void)HMAC_CTX_init();
5074 if ac_fn_c_try_link "$LINENO"; then :
5077 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5080 $as_echo "yes" >&6; }
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5086 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
5089 rm -f core conftest.err conftest.$ac_objext \
5090 conftest$ac_exeext conftest.$ac_ext
5093 rm -f core conftest.err conftest.$ac_objext \
5094 conftest$ac_exeext conftest.$ac_ext
5097 rm -f core conftest.err conftest.$ac_objext \
5098 conftest$ac_exeext conftest.$ac_ext
5102 # openssl engine functionality needs dlopen().
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5105 $as_echo_n "checking for library containing dlopen... " >&6; }
5106 if ${ac_cv_search_dlopen+:} false; then :
5107 $as_echo_n "(cached) " >&6
5109 ac_func_search_save_LIBS=$LIBS
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5113 /* Override any GCC internal prototype to avoid an error.
5114 Use char because int might match the return type of a GCC
5115 builtin and then its argument prototype would still apply. */
5128 for ac_lib in '' dl; do
5129 if test -z "$ac_lib"; then
5130 ac_res="none required"
5133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5135 if ac_fn_c_try_link "$LINENO"; then :
5136 ac_cv_search_dlopen=$ac_res
5138 rm -f core conftest.err conftest.$ac_objext \
5140 if ${ac_cv_search_dlopen+:} false; then :
5144 if ${ac_cv_search_dlopen+:} false; then :
5147 ac_cv_search_dlopen=no
5150 LIBS=$ac_func_search_save_LIBS
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5153 $as_echo "$ac_cv_search_dlopen" >&6; }
5154 ac_res=$ac_cv_search_dlopen
5155 if test "$ac_res" != no; then :
5156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5160 if test "$LIBS" != "$BAKLIBS"; then
5161 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
5164 for ac_header in openssl/ssl.h
5166 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
5168 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
5169 cat >>confdefs.h <<_ACEOF
5170 #define HAVE_OPENSSL_SSL_H 1
5177 for ac_header in openssl/err.h
5179 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
5181 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
5182 cat >>confdefs.h <<_ACEOF
5183 #define HAVE_OPENSSL_ERR_H 1
5190 for ac_header in openssl/rand.h
5192 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
5194 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
5195 cat >>confdefs.h <<_ACEOF
5196 #define HAVE_OPENSSL_RAND_H 1
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
5208 $as_echo_n "checking for getaddrinfo... " >&6; }
5209 ac_cv_func_getaddrinfo=no
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5217 char* getaddrinfo();
5218 char* (*f) () = getaddrinfo;
5228 if ac_fn_c_try_link "$LINENO"; then :
5229 ac_cv_func_getaddrinfo="yes"
5230 if test "$ac_cv_header_windows_h" = "yes"; then
5232 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
5235 LIBS="$LIBS -lws2_32"
5240 LIBS="$LIBS -lws2_32"
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5244 #ifdef HAVE_WS2TCPIP_H
5245 #include <ws2tcpip.h>
5252 (void)getaddrinfo(NULL, NULL, NULL, NULL);
5259 if ac_fn_c_try_link "$LINENO"; then :
5261 ac_cv_func_getaddrinfo="yes"
5263 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
5269 ac_cv_func_getaddrinfo="no"
5273 rm -f core conftest.err conftest.$ac_objext \
5274 conftest$ac_exeext conftest.$ac_ext
5277 rm -f core conftest.err conftest.$ac_objext \
5278 conftest$ac_exeext conftest.$ac_ext
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
5281 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
5282 if test $ac_cv_func_getaddrinfo = yes; then
5284 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
5294 # Check whether --with-ldns was given.
5295 if test "${with_ldns+set}" = set; then :
5297 specialldnsdir="$withval"
5298 CPPFLAGS="$CPPFLAGS -I$withval/include"
5299 LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
5302 LIBS_STC="$withval/lib/libldns.a $LIBS_STC"
5308 #AC_CHECK_HEADER(ldns/ldns.h,, [
5309 # AC_MSG_ERROR([Can't find ldns headers (make copy-headers in devel source.)])
5310 # ], [AC_INCLUDES_DEFAULT]
5313 for ac_func in isblank
5315 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
5316 if test "x$ac_cv_func_isblank" = xyes; then :
5317 cat >>confdefs.h <<_ACEOF
5318 #define HAVE_ISBLANK 1
5325 # check for ldns development source tree
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns devel source" >&5
5327 $as_echo_n "checking for ldns devel source... " >&6; }
5329 if test -f $ldns_dev_dir/ldns/util.h && \
5330 grep LDNS_VERSION $ldns_dev_dir/ldns/util.h >/dev/null; then
5331 ldns_version=`grep LDNS_VERSION $ldns_dev_dir/ldns/util.h | sed -e 's/^.*"\(.*\)".*$/\1/'`
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $ldns_dev_dir with $ldns_version" >&5
5333 $as_echo "using $ldns_dev_dir with $ldns_version" >&6; }
5334 CPPFLAGS="$CPPFLAGS -I$ldns_dev_dir/include"
5335 LDFLAGS="-L$ldns_dev_dir -L$ldns_dev_dir/lib $LDFLAGS"
5338 $as_echo "#define HAVE_LIBLDNS 1" >>confdefs.h
5340 LDNSDIR="$ldns_dev_dir"
5341 LIBS_STC="$ldns_dev_dir/lib/libldns.a $LIBS_STC"
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_rr_new in -lldns" >&5
5346 $as_echo_n "checking for ldns_rr_new in -lldns... " >&6; }
5347 if ${ac_cv_lib_ldns_ldns_rr_new+:} false; then :
5348 $as_echo_n "(cached) " >&6
5350 ac_check_lib_save_LIBS=$LIBS
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5355 /* Override any GCC internal prototype to avoid an error.
5356 Use char because int might match the return type of a GCC
5357 builtin and then its argument prototype would still apply. */
5361 char ldns_rr_new ();
5365 return ldns_rr_new ();
5370 if ac_fn_c_try_link "$LINENO"; then :
5371 ac_cv_lib_ldns_ldns_rr_new=yes
5373 ac_cv_lib_ldns_ldns_rr_new=no
5375 rm -f core conftest.err conftest.$ac_objext \
5376 conftest$ac_exeext conftest.$ac_ext
5377 LIBS=$ac_check_lib_save_LIBS
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_rr_new" >&5
5380 $as_echo "$ac_cv_lib_ldns_ldns_rr_new" >&6; }
5381 if test "x$ac_cv_lib_ldns_ldns_rr_new" = xyes; then :
5382 cat >>confdefs.h <<_ACEOF
5383 #define HAVE_LIBLDNS 1
5390 as_fn_error $? "Can't find ldns library" "$LINENO" 5
5399 # Check whether --with-trust-anchor was given.
5400 if test "${with_trust_anchor+set}" = set; then :
5401 withval=$with_trust_anchor;
5402 LDNS_TRUST_ANCHOR_FILE="$withval"
5406 if test "x$LDNS_TRUST_ANCHOR_FILE" = "x"; then
5407 if test "x$sysconfdir" = 'x${prefix}/etc' ; then
5408 if test "x$prefix" = 'xNONE' ; then
5409 LDNS_TRUST_ANCHOR_FILE="/etc/unbound/root.key"
5411 LDNS_TRUST_ANCHOR_FILE="${prefix}/etc/unbound/root.key"
5414 LDNS_TRUST_ANCHOR_FILE="${sysconfdir}/unbound/root.key"
5421 cat >>confdefs.h <<_ACEOF
5422 #define LDNS_TRUST_ANCHOR_FILE "$LDNS_TRUST_ANCHOR_FILE"
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&5
5427 $as_echo "$as_me: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&6;}
5431 ac_config_files="$ac_config_files Makefile drill.1"
5433 ac_config_headers="$ac_config_headers config.h"
5435 cat >confcache <<\_ACEOF
5436 # This file is a shell script that caches the results of configure
5437 # tests run on this system so they can be shared between configure
5438 # scripts and configure runs, see configure's option --config-cache.
5439 # It is not useful on other systems. If it contains results you don't
5440 # want to keep, you may remove or edit it.
5442 # config.status only pays attention to the cache file if you give it
5443 # the --recheck option to rerun configure.
5445 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5446 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5451 # The following way of writing the cache mishandles newlines in values,
5452 # but we know of no workaround that is simple, portable, and efficient.
5453 # So, we kill variables containing newlines.
5454 # Ultrix sh set writes to stderr and can't be redirected directly,
5455 # and sets the high bit in the cache file unless we assign to the vars.
5457 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5458 eval ac_val=\$$ac_var
5462 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5463 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5466 _ | IFS | as_nl) ;; #(
5467 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5468 *) { eval $ac_var=; unset $ac_var;} ;;
5474 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5475 *${as_nl}ac_space=\ *)
5476 # `set' does not quote correctly, so add quotes: double-quote
5477 # substitution turns \\\\ into \\, and sed turns \\ into \.
5480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5483 # `set' quotes correctly as required by POSIX, so do not add quotes.
5484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5493 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5495 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5497 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5498 if test -w "$cache_file"; then
5499 if test "x$cache_file" != "x/dev/null"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5501 $as_echo "$as_me: updating cache $cache_file" >&6;}
5502 if test ! -f "$cache_file" || test -h "$cache_file"; then
5503 cat confcache >"$cache_file"
5505 case $cache_file in #(
5507 mv -f confcache "$cache_file"$$ &&
5508 mv -f "$cache_file"$$ "$cache_file" ;; #(
5510 mv -f confcache "$cache_file" ;;
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5516 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5521 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5522 # Let make expand exec_prefix.
5523 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5525 DEFS=-DHAVE_CONFIG_H
5530 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5531 # 1. Remove the extension, and $U if already installed.
5532 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5533 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5534 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5535 # will be set to the directory where LIBOBJS objects are built.
5536 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5537 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5541 LTLIBOBJS=$ac_ltlibobjs
5545 : "${CONFIG_STATUS=./config.status}"
5547 ac_clean_files_save=$ac_clean_files
5548 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5550 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5552 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5554 # Generated by $as_me.
5555 # Run this file to recreate the current configuration.
5556 # Compiler output produced by configure, useful for debugging
5557 # configure, is in config.log if it exists.
5563 SHELL=\${CONFIG_SHELL-$SHELL}
5566 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5567 ## -------------------- ##
5568 ## M4sh Initialization. ##
5569 ## -------------------- ##
5571 # Be more Bourne compatible
5572 DUALCASE=1; export DUALCASE # for MKS sh
5573 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5576 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5577 # is contrary to our usage. Disable this feature.
5578 alias -g '${1+"$@"}'='"$@"'
5579 setopt NO_GLOB_SUBST
5581 case `(set -o) 2>/dev/null` in #(
5593 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5594 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5595 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5596 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5597 # Prefer a ksh shell builtin over an external printf program on Solaris,
5598 # but without wasting forks for bash or zsh.
5599 if test -z "$BASH_VERSION$ZSH_VERSION" \
5600 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5601 as_echo='print -r --'
5602 as_echo_n='print -rn --'
5603 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5604 as_echo='printf %s\n'
5605 as_echo_n='printf %s'
5607 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5608 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5609 as_echo_n='/usr/ucb/echo -n'
5611 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5612 as_echo_n_body='eval
5616 expr "X$arg" : "X\\(.*\\)$as_nl";
5617 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5619 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5621 export as_echo_n_body
5622 as_echo_n='sh -c $as_echo_n_body as_echo'
5625 as_echo='sh -c $as_echo_body as_echo'
5628 # The user is always right.
5629 if test "${PATH_SEPARATOR+set}" != set; then
5631 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5632 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5639 # We need space, tab and new line, in precisely that order. Quoting is
5640 # there to prevent editors from complaining about space-tab.
5641 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5642 # splitting by setting IFS to empty value.)
5645 # Find who we are. Look in the path if we contain no directory separator.
5648 *[\\/]* ) as_myself=$0 ;;
5649 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 test -z "$as_dir" && as_dir=.
5654 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5660 # We did not find ourselves, most probably we were run as `sh COMMAND'
5661 # in which case we are not to be found in the path.
5662 if test "x$as_myself" = x; then
5665 if test ! -f "$as_myself"; then
5666 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5670 # Unset variables that we do not need and which cause bugs (e.g. in
5671 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5672 # suppresses any "Segmentation fault" message there. '((' could
5673 # trigger a bug in pdksh 5.2.14.
5674 for as_var in BASH_ENV ENV MAIL MAILPATH
5675 do eval test x\${$as_var+set} = xset \
5676 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5689 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5692 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5693 # ----------------------------------------
5694 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5695 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5696 # script with STATUS, using 1 if that was 0.
5699 as_status=$1; test $as_status -eq 0 && as_status=1
5701 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5702 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5704 $as_echo "$as_me: error: $2" >&2
5705 as_fn_exit $as_status
5709 # as_fn_set_status STATUS
5710 # -----------------------
5711 # Set $? to STATUS, without forking.
5715 } # as_fn_set_status
5719 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5729 # Portably unset VAR.
5732 { eval $1=; unset $1;}
5734 as_unset=as_fn_unset
5735 # as_fn_append VAR VALUE
5736 # ----------------------
5737 # Append the text in VALUE to the end of the definition contained in VAR. Take
5738 # advantage of any shell optimizations that allow amortized linear growth over
5739 # repeated appends, instead of the typical quadratic growth present in naive
5741 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5742 eval 'as_fn_append ()
5753 # as_fn_arith ARG...
5754 # ------------------
5755 # Perform arithmetic evaluation on the ARGs, and store the result in the
5756 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5757 # must be portable across $(()) and expr.
5758 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5759 eval 'as_fn_arith ()
5766 as_val=`expr "$@" || test $? -eq 1`
5771 if expr a : '\(a\)' >/dev/null 2>&1 &&
5772 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5778 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5779 as_basename=basename
5784 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5790 as_me=`$as_basename -- "$0" ||
5791 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5792 X"$0" : 'X\(//\)$' \| \
5793 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5795 sed '/^.*\/\([^/][^/]*\)\/*$/{
5809 # Avoid depending upon Character Ranges.
5810 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5811 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5812 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5813 as_cr_digits='0123456789'
5814 as_cr_alnum=$as_cr_Letters$as_cr_digits
5816 ECHO_C= ECHO_N= ECHO_T=
5817 case `echo -n x` in #(((((
5819 case `echo 'xy\c'` in
5820 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5822 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5829 rm -f conf$$ conf$$.exe conf$$.file
5830 if test -d conf$$.dir; then
5831 rm -f conf$$.dir/conf$$.file
5834 mkdir conf$$.dir 2>/dev/null
5836 if (echo >conf$$.file) 2>/dev/null; then
5837 if ln -s conf$$.file conf$$ 2>/dev/null; then
5839 # ... but there are two gotchas:
5840 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5841 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5842 # In both cases, we have to default to `cp -p'.
5843 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5845 elif ln conf$$.file conf$$ 2>/dev/null; then
5853 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5854 rmdir conf$$.dir 2>/dev/null
5859 # Create "$as_dir" as a directory, including parents if necessary.
5864 -*) as_dir=./$as_dir;;
5866 test -d "$as_dir" || eval $as_mkdir_p || {
5870 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5871 *) as_qdir=$as_dir;;
5873 as_dirs="'$as_qdir' $as_dirs"
5874 as_dir=`$as_dirname -- "$as_dir" ||
5875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5876 X"$as_dir" : 'X\(//\)[^/]' \| \
5877 X"$as_dir" : 'X\(//\)$' \| \
5878 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5879 $as_echo X"$as_dir" |
5880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5897 test -d "$as_dir" && break
5899 test -z "$as_dirs" || eval "mkdir $as_dirs"
5900 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5904 if mkdir -p . 2>/dev/null; then
5905 as_mkdir_p='mkdir -p "$as_dir"'
5907 test -d ./-p && rmdir ./-p
5911 if test -x / >/dev/null 2>&1; then
5914 if ls -dL / >/dev/null 2>&1; then
5921 if test -d "$1"; then
5927 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5928 ???[sx]*):;;*)false;;esac;fi
5932 as_executable_p=$as_test_x
5934 # Sed expression to map a string onto a valid CPP name.
5935 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5937 # Sed expression to map a string onto a valid variable name.
5938 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5942 ## ----------------------------------- ##
5943 ## Main body of $CONFIG_STATUS script. ##
5944 ## ----------------------------------- ##
5946 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5949 # Save the log message, to keep $0 and so on meaningful, and to
5950 # report actual input values of CONFIG_FILES etc. instead of their
5951 # values after options handling.
5953 This file was extended by ldns $as_me 1.6.17, which was
5954 generated by GNU Autoconf 2.68. Invocation command line was
5956 CONFIG_FILES = $CONFIG_FILES
5957 CONFIG_HEADERS = $CONFIG_HEADERS
5958 CONFIG_LINKS = $CONFIG_LINKS
5959 CONFIG_COMMANDS = $CONFIG_COMMANDS
5962 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5967 case $ac_config_files in *"
5968 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5971 case $ac_config_headers in *"
5972 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5977 # Files that config.status was made for.
5978 config_files="$ac_config_files"
5979 config_headers="$ac_config_headers"
5983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5985 \`$as_me' instantiates files and other configuration actions
5986 from templates according to the current configuration. Unless the files
5987 and actions are specified as TAGs, all are instantiated by default.
5989 Usage: $0 [OPTION]... [TAG]...
5991 -h, --help print this help, then exit
5992 -V, --version print version number and configuration settings, then exit
5993 --config print configuration, then exit
5994 -q, --quiet, --silent
5995 do not print progress messages
5996 -d, --debug don't remove temporary files
5997 --recheck update $as_me by reconfiguring in the same conditions
5998 --file=FILE[:TEMPLATE]
5999 instantiate the configuration file FILE
6000 --header=FILE[:TEMPLATE]
6001 instantiate the configuration header FILE
6003 Configuration files:
6006 Configuration headers:
6009 Report bugs to <libdns@nlnetlabs.nl>."
6012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6013 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6015 ldns config.status 1.6.17
6016 configured by $0, generated by GNU Autoconf 2.68,
6017 with options \\"\$ac_cs_config\\"
6019 Copyright (C) 2010 Free Software Foundation, Inc.
6020 This config.status script is free software; the Free Software Foundation
6021 gives unlimited permission to copy, distribute and modify it."
6025 test -n "\$AWK" || AWK=awk
6028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6029 # The default lists apply if the user does not specify any file.
6035 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6036 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6040 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6052 # Handling of the options.
6053 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6055 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6056 $as_echo "$ac_cs_version"; exit ;;
6057 --config | --confi | --conf | --con | --co | --c )
6058 $as_echo "$ac_cs_config"; exit ;;
6059 --debug | --debu | --deb | --de | --d | -d )
6061 --file | --fil | --fi | --f )
6064 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6065 '') as_fn_error $? "missing file argument" ;;
6067 as_fn_append CONFIG_FILES " '$ac_optarg'"
6068 ac_need_defaults=false;;
6069 --header | --heade | --head | --hea )
6072 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6074 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6075 ac_need_defaults=false;;
6077 # Conflict between --help and --header
6078 as_fn_error $? "ambiguous option: \`$1'
6079 Try \`$0 --help' for more information.";;
6080 --help | --hel | -h )
6081 $as_echo "$ac_cs_usage"; exit ;;
6082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6083 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6087 -*) as_fn_error $? "unrecognized option: \`$1'
6088 Try \`$0 --help' for more information." ;;
6090 *) as_fn_append ac_config_targets " $1"
6091 ac_need_defaults=false ;;
6097 ac_configure_extra_args=
6099 if $ac_cs_silent; then
6101 ac_configure_extra_args="$ac_configure_extra_args --silent"
6105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6106 if \$ac_cs_recheck; then
6107 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6109 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6110 CONFIG_SHELL='$SHELL'
6116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6120 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6121 ## Running $as_me. ##
6127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6132 # Handling of arguments.
6133 for ac_config_target in $ac_config_targets
6135 case $ac_config_target in
6136 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6137 "drill.1") CONFIG_FILES="$CONFIG_FILES drill.1" ;;
6138 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6140 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6145 # If the user did not use the arguments to specify the items to instantiate,
6146 # then the envvar interface is used. Set only those that are not.
6147 # We use the long form for the default assignment because of an extremely
6148 # bizarre bug on SunOS 4.1.3.
6149 if $ac_need_defaults; then
6150 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6151 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6154 # Have a temporary directory for convenience. Make it in the build tree
6155 # simply because there is no reason against having it here, and in addition,
6156 # creating and moving files from /tmp can sometimes cause problems.
6157 # Hook for its removal unless debugging.
6158 # Note that there is a small window in which the directory will not be cleaned:
6159 # after its creation but before its name has been assigned to `$tmp'.
6163 trap 'exit_status=$?
6165 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6167 trap 'as_fn_exit 1' 1 2 13 15
6169 # Create a (secure) tmp directory for tmp files.
6172 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6176 tmp=./conf$$-$RANDOM
6177 (umask 077 && mkdir "$tmp")
6178 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6181 # Set up the scripts for CONFIG_FILES section.
6182 # No need to generate them if there are no CONFIG_FILES.
6183 # This happens for instance with `./config.status config.h'.
6184 if test -n "$CONFIG_FILES"; then
6187 ac_cr=`echo X | tr X '\015'`
6188 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6189 # But we know of no other shell where ac_cr would be empty at this
6190 # point, so we can use a bashism as a fallback.
6191 if test "x$ac_cr" = x; then
6192 eval ac_cr=\$\'\\r\'
6194 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6195 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6201 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6206 echo "cat >conf$$subs.awk <<_ACEOF" &&
6207 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6210 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6211 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6213 for ac_last_try in false false false false false :; do
6214 . ./conf$$subs.sh ||
6215 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6217 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6218 if test $ac_delim_n = $ac_delim_num; then
6220 elif $ac_last_try; then
6221 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6223 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6229 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6233 s/^/S["/; s/!.*/"]=/
6243 s/\(.\{148\}\)..*/\1/
6245 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6250 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6257 s/\(.\{148\}\)..*/\1/
6259 s/["\\]/\\&/g; s/^/"/; s/$/"/
6263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6268 ' <conf$$subs.awk | sed '
6273 ' >>$CONFIG_STATUS || ac_write_fail=1
6274 rm -f conf$$subs.awk
6275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6277 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6278 for (key in S) S_is_set[key] = 1
6284 nfields = split(line, field, "@")
6286 len = length(field[1])
6287 for (i = 2; i < nfields; i++) {
6289 keylen = length(key)
6290 if (S_is_set[key]) {
6292 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6293 len += length(value) + length(field[++i])
6304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6305 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6306 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6309 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6310 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6313 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6314 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6315 # trailing colons and then remove the whole line if VPATH becomes empty
6316 # (actually we leave an empty line to preserve line numbers).
6317 if test "x$srcdir" = x.; then
6318 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6337 fi # test -n "$CONFIG_FILES"
6339 # Set up the scripts for CONFIG_HEADERS section.
6340 # No need to generate them if there are no CONFIG_HEADERS.
6341 # This happens for instance with `./config.status Makefile'.
6342 if test -n "$CONFIG_HEADERS"; then
6343 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6347 # Transform confdefs.h into an awk script `defines.awk', embedded as
6348 # here-document in config.status, that substitutes the proper values into
6349 # config.h.in to produce config.h.
6351 # Create a delimiter string that does not exist in confdefs.h, to ease
6352 # handling of long lines.
6354 for ac_last_try in false false :; do
6355 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6356 if test -z "$ac_tt"; then
6358 elif $ac_last_try; then
6359 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6361 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6365 # For the awk script, D is an array of macro values keyed by name,
6366 # likewise P contains macro parameters if any. Preserve backslash
6367 # newline sequences.
6369 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6371 s/.\{148\}/&'"$ac_delim"'/g
6374 s/^[ ]*#[ ]*define[ ][ ]*/ /
6381 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6383 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6387 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6388 D["\1"]=" \3\\\\\\n"\\/p
6390 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6395 s/.\{148\}/&'"$ac_delim"'/g
6400 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6403 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6405 ' <confdefs.h | sed '
6406 s/'"$ac_delim"'/"\\\
6407 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6410 for (key in D) D_is_set[key] = 1
6413 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6415 split(line, arg, " ")
6416 if (arg[1] == "#") {
6420 defundef = substr(arg[1], 2)
6423 split(mac1, mac2, "(") #)
6425 prefix = substr(line, 1, index(line, defundef) - 1)
6426 if (D_is_set[macro]) {
6427 # Preserve the white space surrounding the "#".
6428 print prefix "define", macro P[macro] D[macro]
6431 # Replace #undef with comments. This is necessary, for example,
6432 # in the case of _POSIX_SOURCE, which is predefined and required
6433 # on some systems where configure will not decide to define it.
6434 if (defundef == "undef") {
6435 print "/*", prefix defundef, macro, "*/"
6443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6444 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6445 fi # test -n "$CONFIG_HEADERS"
6448 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6453 :[FHLC]) ac_mode=$ac_tag; continue;;
6455 case $ac_mode$ac_tag in
6457 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6458 :[FH]-) ac_tag=-:-;;
6459 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6476 -) ac_f="$ac_tmp/stdin";;
6477 *) # Look for the file first in the build tree, then in the source tree
6478 # (if the path is not absolute). The absolute path cannot be DOS-style,
6479 # because $ac_f cannot contain `:'.
6483 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6485 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6487 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6488 as_fn_append ac_file_inputs " '$ac_f'"
6491 # Let's still pretend it is `configure' which instantiates (i.e., don't
6492 # use $as_me), people would be surprised to read:
6493 # /* config.h. Generated by config.status. */
6494 configure_input='Generated from '`
6495 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6497 if test x"$ac_file" != x-; then
6498 configure_input="$ac_file. $configure_input"
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6500 $as_echo "$as_me: creating $ac_file" >&6;}
6502 # Neutralize special characters interpreted by sed in replacement strings.
6503 case $configure_input in #(
6504 *\&* | *\|* | *\\* )
6505 ac_sed_conf_input=`$as_echo "$configure_input" |
6506 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6507 *) ac_sed_conf_input=$configure_input;;
6511 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6512 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6517 ac_dir=`$as_dirname -- "$ac_file" ||
6518 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6519 X"$ac_file" : 'X\(//\)[^/]' \| \
6520 X"$ac_file" : 'X\(//\)$' \| \
6521 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6522 $as_echo X"$ac_file" |
6523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6540 as_dir="$ac_dir"; as_fn_mkdir_p
6544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6546 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6547 # A ".." for each directory in $ac_dir_suffix.
6548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6549 case $ac_top_builddir_sub in
6550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6554 ac_abs_top_builddir=$ac_pwd
6555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6556 # for backward compatibility:
6557 ac_top_builddir=$ac_top_build_prefix
6560 .) # We are building in place.
6562 ac_top_srcdir=$ac_top_builddir_sub
6563 ac_abs_top_srcdir=$ac_pwd ;;
6564 [\\/]* | ?:[\\/]* ) # Absolute name.
6565 ac_srcdir=$srcdir$ac_dir_suffix;
6566 ac_top_srcdir=$srcdir
6567 ac_abs_top_srcdir=$srcdir ;;
6569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6570 ac_top_srcdir=$ac_top_build_prefix$srcdir
6571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6585 # If the template does not know about datarootdir, expand it.
6586 # FIXME: This hack should be removed a few years after 2.60.
6587 ac_datarootdir_hack=; ac_datarootdir_seen=
6598 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6599 *datarootdir*) ac_datarootdir_seen=yes;;
6600 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6602 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6605 ac_datarootdir_hack='
6606 s&@datadir@&$datadir&g
6607 s&@docdir@&$docdir&g
6608 s&@infodir@&$infodir&g
6609 s&@localedir@&$localedir&g
6610 s&@mandir@&$mandir&g
6611 s&\\\${datarootdir}&$datarootdir&g' ;;
6615 # Neutralize VPATH when `$srcdir' = `.'.
6616 # Shell code in configure.ac might set extrasub.
6617 # FIXME: do we really want to maintain this feature?
6618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6619 ac_sed_extra="$ac_vpsub
6622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6625 s|@configure_input@|$ac_sed_conf_input|;t t
6626 s&@top_builddir@&$ac_top_builddir_sub&;t t
6627 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6628 s&@srcdir@&$ac_srcdir&;t t
6629 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6630 s&@top_srcdir@&$ac_top_srcdir&;t t
6631 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6632 s&@builddir@&$ac_builddir&;t t
6633 s&@abs_builddir@&$ac_abs_builddir&;t t
6634 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6635 $ac_datarootdir_hack
6637 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6638 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6640 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6641 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6642 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6643 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6645 which seems to be undefined. Please make sure it is defined" >&5
6646 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6647 which seems to be undefined. Please make sure it is defined" >&2;}
6649 rm -f "$ac_tmp/stdin"
6651 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6652 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6660 if test x"$ac_file" != x-; then
6662 $as_echo "/* $configure_input */" \
6663 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6664 } >"$ac_tmp/config.h" \
6665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6666 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6668 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6671 mv "$ac_tmp/config.h" "$ac_file" \
6672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6675 $as_echo "/* $configure_input */" \
6676 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6677 || as_fn_error $? "could not create -" "$LINENO" 5
6689 ac_clean_files=$ac_clean_files_save
6691 test $ac_write_fail = 0 ||
6692 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6695 # configure is writing to config.log, and then calls config.status.
6696 # config.status does its own redirection, appending to config.log.
6697 # Unfortunately, on DOS this fails, as config.log is still kept open
6698 # by configure, so config.status won't be able to write to it; its
6699 # output is simply discarded. So we exec the FD to /dev/null,
6700 # effectively closing config.log, so it can be properly (re)opened and
6701 # appended to by config.status. When coming back to configure, we
6702 # need to make the FD available again.
6703 if test "$no_create" != yes; then
6705 ac_config_status_args=
6706 test "$silent" = yes &&
6707 ac_config_status_args="$ac_config_status_args --quiet"
6709 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6711 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6712 # would make configure fail if this is the last instruction.
6713 $ac_cs_success || as_fn_exit 1
6715 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6717 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}