2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.7.0.
5 # Report bugs to <unbound-bugs@nlnetlabs.nl>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: unbound-bugs@nlnetlabs.nl about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='unbound'
592 PACKAGE_TARNAME='unbound'
593 PACKAGE_VERSION='1.7.0'
594 PACKAGE_STRING='unbound 1.7.0'
595 PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='LTLIBOBJS
646 ENABLE_DNSCRYPT_XCHACHA20
649 opt_dnstap_socket_path
654 COMMON_OBJ_ALL_SYMBOLS
656 LIBOBJ_WITHOUT_CTIMEARC4
657 WIN_CHECKCONF_OBJ_LINK
659 WIN_UBANCHOR_OBJ_LINK
670 SYSTEMD_DAEMON_CFLAGS
677 PC_LIBEVENT_DEPENDENCY
678 UNBOUND_EVENT_UNINSTALL
679 UNBOUND_EVENT_INSTALL
753 UNBOUND_ROOTCERT_FILE
761 UNBOUND_LOCALSTATE_DIR
777 UNBOUND_VERSION_MICRO
778 UNBOUND_VERSION_MINOR
779 UNBOUND_VERSION_MAJOR
807 program_transform_name
820 enable_option_checking
846 enable_alloc_nonregional
851 enable_swig_version_check
872 with_dnstap_socket_path
881 ac_precious_vars='build_alias
899 SYSTEMD_DAEMON_CFLAGS
903 # Initialize some variables set by options.
905 ac_init_version=false
906 ac_unrecognized_opts=
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
917 program_transform_name=s,x,x,
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942 infodir='${datarootdir}/info'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
957 eval $ac_prev=\$ac_option
963 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 # Accept the important Cygnus configure options, so we can diagnose typos.
970 case $ac_dashdash$ac_option in
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
992 cache_file=config.cache ;;
994 -datadir | --datadir | --datadi | --datad)
996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
997 datadir=$ac_optarg ;;
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1006 -disable-* | --disable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1015 "enable_$ac_useropt"
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1020 eval enable_$ac_useropt=no ;;
1022 -docdir | --docdir | --docdi | --doc | --do)
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
1032 -enable-* | --enable-*)
1033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 as_fn_error $? "invalid feature name: $ac_useropt"
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1041 "enable_$ac_useropt"
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1046 eval enable_$ac_useropt=\$ac_optarg ;;
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
1055 exec_prefix=$ac_optarg ;;
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
1068 -host | --host | --hos | --ho)
1069 ac_prev=host_alias ;;
1070 -host=* | --host=* | --hos=* | --ho=*)
1071 host_alias=$ac_optarg ;;
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077 htmldir=$ac_optarg ;;
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
1084 includedir=$ac_optarg ;;
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089 infodir=$ac_optarg ;;
1091 -libdir | --libdir | --libdi | --libd)
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094 libdir=$ac_optarg ;;
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
1101 libexecdir=$ac_optarg ;;
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
1109 | --localstate | --localstat | --localsta | --localst | --locals)
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113 localstatedir=$ac_optarg ;;
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118 mandir=$ac_optarg ;;
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125 | --no-cr | --no-c | -n)
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139 oldincludedir=$ac_optarg ;;
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144 prefix=$ac_optarg ;;
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151 program_prefix=$ac_optarg ;;
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158 program_suffix=$ac_optarg ;;
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
1175 program_transform_name=$ac_optarg ;;
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1182 -psdir | --psdir | --psdi | --psd | --ps)
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195 sbindir=$ac_optarg ;;
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206 sharedstatedir=$ac_optarg ;;
1208 -site | --site | --sit)
1210 -site=* | --site=* | --sit=*)
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216 srcdir=$ac_optarg ;;
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223 sysconfdir=$ac_optarg ;;
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1226 ac_prev=target_alias ;;
1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228 target_alias=$ac_optarg ;;
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1250 eval with_$ac_useropt=\$ac_optarg ;;
1252 -without-* | --without-*)
1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error $? "invalid package name: $ac_useropt"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1266 eval with_$ac_useropt=no ;;
1269 # Obsolete; use --with-x.
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287 Try \`$0 --help' for more information"
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
1295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 as_fn_error $? "missing argument to $ac_option"
1316 if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324 # Check all directory arguments for consistency.
1325 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir
1330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
1337 # Be sure to have absolute directory names.
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1350 target=$target_alias
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 elif test "x$build_alias" != "x$host_alias"; then
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364 test "$silent" = yes && exec 6>/dev/null
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 as_fn_error $? "working directory cannot be determined"
1371 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372 as_fn_error $? "pwd does not report name of working directory"
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$as_myself" ||
1380 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384 $as_echo X"$as_myself" |
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1407 ac_srcdir_defaulted=no
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1413 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1417 # When building in place, set srcdir=.
1418 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 # Remove unnecessary trailing slashes from srcdir.
1422 # Double slashes in file names in object file debugging info
1423 # mess up M-x gdb in Emacs.
1425 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427 for ac_var in $ac_precious_vars; do
1428 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_env_${ac_var}_value=\$${ac_var}
1430 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435 # Report the --help message.
1437 if test "$ac_init_help" = "long"; then
1438 # Omit some internal or obsolete options to make the list less imposing.
1439 # This message is too long to be a string in the A/UX 3.1 sh.
1441 \`configure' configures unbound 1.7.0 to adapt to many kinds of systems.
1443 Usage: $0 [OPTION]... [VAR=VALUE]...
1445 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446 VAR=VALUE. See below for descriptions of some of the useful variables.
1448 Defaults for the options are specified in brackets.
1451 -h, --help display this help and exit
1452 --help=short display options specific to this package
1453 --help=recursive display the short help of all the included packages
1454 -V, --version display version information and exit
1455 -q, --quiet, --silent do not print \`checking ...' messages
1456 --cache-file=FILE cache test results in FILE [disabled]
1457 -C, --config-cache alias for \`--cache-file=config.cache'
1458 -n, --no-create do not create output files
1459 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1461 Installation directories:
1462 --prefix=PREFIX install architecture-independent files in PREFIX
1463 [$ac_default_prefix]
1464 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1467 By default, \`make install' will install all the files in
1468 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1469 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470 for instance \`--prefix=\$HOME'.
1472 For better control, use the options below.
1474 Fine tuning of the installation directories:
1475 --bindir=DIR user executables [EPREFIX/bin]
1476 --sbindir=DIR system admin executables [EPREFIX/sbin]
1477 --libexecdir=DIR program executables [EPREFIX/libexec]
1478 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1479 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1480 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1481 --libdir=DIR object code libraries [EPREFIX/lib]
1482 --includedir=DIR C header files [PREFIX/include]
1483 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1484 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1485 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1486 --infodir=DIR info documentation [DATAROOTDIR/info]
1487 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1488 --mandir=DIR man documentation [DATAROOTDIR/man]
1489 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1490 --htmldir=DIR html documentation [DOCDIR]
1491 --dvidir=DIR dvi documentation [DOCDIR]
1492 --pdfdir=DIR pdf documentation [DOCDIR]
1493 --psdir=DIR ps documentation [DOCDIR]
1499 --build=BUILD configure for building on BUILD [guessed]
1500 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504 if test -n "$ac_init_help"; then
1505 case $ac_init_help in
1506 short | recursive ) echo "Configuration of unbound 1.7.0:";;
1511 --disable-option-checking ignore unrecognized --enable/--with options
1512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1514 --enable-checking Enable warnings, asserts, makefile-dependencies
1515 --enable-debug same as enable-checking
1516 --disable-flto Disable link-time optimization (gcc specific option)
1517 --enable-pie Enable Position-Independent Executable (eg. to fully
1518 benefit from ASLR, small performance penalty)
1519 --enable-relro-now Enable full relocation binding at load-time (RELRO
1520 NOW, to protect GOT and .dtor areas)
1521 --enable-shared[=PKGS] build shared libraries [default=yes]
1522 --enable-static[=PKGS] build static libraries [default=yes]
1523 --enable-fast-install[=PKGS]
1524 optimize for fast installation [default=yes]
1525 --disable-libtool-lock avoid locking (might break parallel builds)
1526 --disable-rpath disable hardcoded rpath (default=enabled)
1527 --disable-largefile omit support for large files
1528 --enable-alloc-checks enable to memory allocation statistics, for debug
1530 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1532 --enable-alloc-nonregional
1533 enable nonregional allocs, slow but exposes regional
1534 allocations to other memory purifiers, for debug
1536 --disable-swig-version-check
1537 Disable swig version check to build python modules
1538 with older swig even though that is unreliable
1539 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3
1541 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1542 --enable-subnet Enable client subnet
1543 --disable-gost Disable GOST support
1544 --disable-ecdsa Disable ECDSA support
1545 --disable-dsa Disable DSA support
1546 --disable-ed25519 Disable ED25519 support
1547 --enable-event-api Enable (experimental) pluggable event base
1548 libunbound API installed to unbound-event.h
1549 --enable-tfo-client Enable TCP Fast Open for client mode
1550 --enable-tfo-server Enable TCP Fast Open for server mode
1551 --enable-static-exe enable to compile executables statically against
1552 (event) libs, for debug purposes
1553 --enable-systemd compile with systemd support
1554 --enable-lock-checks enable to check lock and unlock calls, for debug
1556 --enable-allsymbols export all symbols from libunbound and link binaries
1557 to it, smaller install size but libunbound export
1558 table is polluted by internal symbols
1559 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c)
1560 --enable-dnscrypt Enable dnscrypt support (requires libsodium)
1561 --enable-cachedb enable cachedb module that can use external cache
1563 --enable-ipsecmod Enable ipsecmod module that facilitates
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1569 --with-conf-file=path Pathname to the Unbound configuration file
1570 --with-run-dir=path set default directory to chdir to (by default dir
1572 --with-chroot-dir=path set default directory to chroot to (by default same
1574 --with-share-dir=path set default directory with shared data (by default
1575 same as share/unbound)
1576 --with-pidfile=filename set default pathname to unbound pidfile (default
1577 run-dir/unbound.pid)
1578 --with-rootkey-file=filename
1579 set default pathname to root key file (default
1580 run-dir/root.key). This file is read and written.
1581 --with-rootcert-file=filename
1582 set default pathname to root update certificate file
1583 (default run-dir/icannbundle.pem). This file need
1584 not exist if you are content with the builtin.
1585 --with-username=user set default user that unbound changes to (default
1587 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1589 --with-aix-soname=aix|svr4|both
1590 shared library versioning (aka "SONAME") variant to
1591 provide on AIX, [default=aix].
1592 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1593 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1594 compiler's sysroot if not specified).
1595 --with-pthreads use pthreads library, or --without-pthreads to
1596 disable threading support.
1597 --with-solaris-threads use solaris native thread library.
1598 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1600 --with-pythonmodule build Python module, or --without-pythonmodule to
1601 disable script engine. (default=no)
1602 --with-nss=path use libnss instead of openssl, installed at path.
1603 --with-nettle=path use libnettle as crypto library, installed at path.
1604 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1605 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1607 --with-libevent=pathname
1608 use libevent (will check /usr/local /opt/local
1609 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1610 an explicit path). Slower, but allows use of large
1611 outgoing port ranges.
1612 --with-libexpat=path specify explicit path for libexpat.
1613 --with-dnstap-socket-path=pathname
1614 set default dnstap socket path
1615 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1616 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1617 --with-libsodium=path Path where libsodium is installed, for dnscrypt
1618 --with-libunbound-only do not build daemon and tool programs
1620 Some influential environment variables:
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1624 nonstandard directory <lib dir>
1625 LIBS libraries to pass to the linker, e.g. -l<library>
1626 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1627 you have headers in a nonstandard directory <include dir>
1629 YACC The `Yet Another Compiler Compiler' implementation to use.
1630 Defaults to the first program found out of: `bison -y', `byacc',
1632 YFLAGS The list of arguments that will be passed by default to $YACC.
1633 This script will default YFLAGS to the empty string to avoid a
1634 default value of `-d' given by some make applications.
1636 User-defined run-time library search path.
1638 The installed Python version to use, for example '2.3'. This
1639 string will be appended to the Python interpreter canonical
1641 PKG_CONFIG path to pkg-config utility
1643 directories to add to pkg-config's search path
1645 path overriding pkg-config's built-in search path
1647 C compiler flags for SYSTEMD, overriding pkg-config
1649 linker flags for SYSTEMD, overriding pkg-config
1650 SYSTEMD_DAEMON_CFLAGS
1651 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1653 linker flags for SYSTEMD_DAEMON, overriding pkg-config
1655 Use these variables to override the choices made by `configure' or to help
1656 it to find libraries and programs with nonstandard names/locations.
1658 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1663 if test "$ac_init_help" = "recursive"; then
1664 # If there are subdirs, report their specific --help.
1665 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1666 test -d "$ac_dir" ||
1667 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1675 # A ".." for each directory in $ac_dir_suffix.
1676 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1677 case $ac_top_builddir_sub in
1678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682 ac_abs_top_builddir=$ac_pwd
1683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1684 # for backward compatibility:
1685 ac_top_builddir=$ac_top_build_prefix
1688 .) # We are building in place.
1690 ac_top_srcdir=$ac_top_builddir_sub
1691 ac_abs_top_srcdir=$ac_pwd ;;
1692 [\\/]* | ?:[\\/]* ) # Absolute name.
1693 ac_srcdir=$srcdir$ac_dir_suffix;
1694 ac_top_srcdir=$srcdir
1695 ac_abs_top_srcdir=$srcdir ;;
1697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1698 ac_top_srcdir=$ac_top_build_prefix$srcdir
1699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1703 cd "$ac_dir" || { ac_status=$?; continue; }
1704 # Check for guested configure.
1705 if test -f "$ac_srcdir/configure.gnu"; then
1707 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1708 elif test -f "$ac_srcdir/configure"; then
1710 $SHELL "$ac_srcdir/configure" --help=recursive
1712 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1714 cd "$ac_pwd" || { ac_status=$?; break; }
1718 test -n "$ac_init_help" && exit $ac_status
1719 if $ac_init_version; then
1721 unbound configure 1.7.0
1722 generated by GNU Autoconf 2.69
1724 Copyright (C) 2012 Free Software Foundation, Inc.
1725 This configure script is free software; the Free Software Foundation
1726 gives unlimited permission to copy, distribute and modify it.
1731 ## ------------------------ ##
1732 ## Autoconf initialization. ##
1733 ## ------------------------ ##
1735 # ac_fn_c_try_compile LINENO
1736 # --------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_compile ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1771 } # ac_fn_c_try_compile
1773 # ac_fn_c_try_cpp LINENO
1774 # ----------------------
1775 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_cpp conftest.$ac_ext"
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } > conftest.i && {
1795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1815 ac_fn_c_check_header_mongrel ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if eval \${$3+:} false; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1828 # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_header_compiler=yes
1839 ac_header_compiler=no
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853 ac_header_preproc=yes
1855 ac_header_preproc=no
1857 rm -f conftest.err conftest.i conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1861 # So? What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 ( $as_echo "## ---------------------------------------- ##
1881 ## Report this to unbound-bugs@nlnetlabs.nl ##
1882 ## ---------------------------------------- ##"
1883 ) | sed "s/^/$as_me: WARNING: /" >&2
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1891 eval "$3=\$ac_header_compiler"
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_c_check_header_mongrel
1901 # ac_fn_c_try_run LINENO
1902 # ----------------------
1903 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1904 # that executables *can* be run.
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if { { ac_try="$ac_link"
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_link") 2>&5
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1919 { { case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_try") 2>&5
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; }; }; then :
1931 $as_echo "$as_me: program exited with status $ac_status" >&5
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1935 ac_retval=$ac_status
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1943 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists and can be compiled using the include files in
1946 # INCLUDES, setting the cache variable VAR accordingly.
1947 ac_fn_c_check_header_compile ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1960 if ac_fn_c_try_compile "$LINENO"; then :
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 } # ac_fn_c_check_header_compile
1974 # ac_fn_c_try_link LINENO
1975 # -----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded.
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext conftest$ac_exeext
1981 if { { ac_try="$ac_link"
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>conftest.err
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_c_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest$ac_exeext && {
2000 test "$cross_compiling" = yes ||
2001 test -x conftest$ac_exeext
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2010 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2011 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2012 # interfere with the next link command; also delete a directory that is
2013 # left behind by Apple's compiler. We do this before executing the actions.
2014 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 as_fn_set_status $ac_retval
2018 } # ac_fn_c_try_link
2020 # ac_fn_c_check_func LINENO FUNC VAR
2021 # ----------------------------------
2022 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2023 ac_fn_c_check_func ()
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if eval \${$3+:} false; then :
2029 $as_echo_n "(cached) " >&6
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2035 #define $2 innocuous_$2
2037 /* System header to define __stub macros and hopefully few prototypes,
2038 which can conflict with char $2 (); below.
2039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2040 <limits.h> exists even on freestanding compilers. */
2043 # include <limits.h>
2045 # include <assert.h>
2050 /* Override any GCC internal prototype to avoid an error.
2051 Use char because int might match the return type of a GCC
2052 builtin and then its argument prototype would still apply. */
2057 /* The GNU C library defines this for functions which it implements
2058 to always fail with ENOSYS. Some functions are actually named
2059 something starting with __ and the normal name is an alias. */
2060 #if defined __stub_$2 || defined __stub___$2
2072 if ac_fn_c_try_link "$LINENO"; then :
2077 rm -f core conftest.err conftest.$ac_objext \
2078 conftest$ac_exeext conftest.$ac_ext
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085 } # ac_fn_c_check_func
2087 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2088 # -------------------------------------------
2089 # Tests whether TYPE exists after having included INCLUDES, setting cache
2090 # variable VAR accordingly.
2091 ac_fn_c_check_type ()
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095 $as_echo_n "checking for $2... " >&6; }
2096 if eval \${$3+:} false; then :
2097 $as_echo_n "(cached) " >&6
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2125 if ac_fn_c_try_compile "$LINENO"; then :
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 $as_echo "$ac_res" >&6; }
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139 } # ac_fn_c_check_type
2141 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2142 # --------------------------------------------
2143 # Tries to find the compile-time value of EXPR in a program that includes
2144 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2146 ac_fn_c_compute_int ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 if test "$cross_compiling" = yes; then
2150 # Depending upon the size, compute the lo and hi bounds.
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2157 static int test_array [1 - 2 * !(($2) >= 0)];
2159 return test_array [0];
2165 if ac_fn_c_try_compile "$LINENO"; then :
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2176 return test_array [0];
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183 ac_hi=$ac_mid; break
2185 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2186 if test $ac_lo -le $ac_mid; then
2190 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2201 static int test_array [1 - 2 * !(($2) < 0)];
2203 return test_array [0];
2209 if ac_fn_c_try_compile "$LINENO"; then :
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2218 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2220 return test_array [0];
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_lo=$ac_mid; break
2229 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2230 if test $ac_mid -le $ac_hi; then
2234 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 # Binary search between lo and hi bounds.
2245 while test "x$ac_lo" != "x$ac_hi"; do
2246 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2253 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2255 return test_array [0];
2261 if ac_fn_c_try_compile "$LINENO"; then :
2264 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2276 static long int longval () { return $2; }
2277 static unsigned long int ulongval () { return $2; }
2284 FILE *f = fopen ("conftest.val", "w");
2289 long int i = longval ();
2292 fprintf (f, "%ld", i);
2296 unsigned long int i = ulongval ();
2299 fprintf (f, "%lu", i);
2301 /* Do not output a trailing newline, as this causes \r\n confusion
2302 on some platforms. */
2303 return ferror (f) || fclose (f) != 0;
2309 if ac_fn_c_try_run "$LINENO"; then :
2310 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2315 conftest.$ac_objext conftest.beam conftest.$ac_ext
2319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320 as_fn_set_status $ac_retval
2322 } # ac_fn_c_compute_int
2324 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2325 # ---------------------------------------------
2326 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2328 ac_fn_c_check_decl ()
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 as_decl_name=`echo $2|sed 's/ *(.*//'`
2332 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2334 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2335 if eval \${$3+:} false; then :
2336 $as_echo_n "(cached) " >&6
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2344 #ifndef $as_decl_name
2346 (void) $as_decl_use;
2348 (void) $as_decl_name;
2356 if ac_fn_c_try_compile "$LINENO"; then :
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 } # ac_fn_c_check_decl
2370 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2371 # ----------------------------------------------------
2372 # Tries to find if the field MEMBER exists in type AGGR, after including
2373 # INCLUDES, setting cache variable VAR accordingly.
2374 ac_fn_c_check_member ()
2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2378 $as_echo_n "checking for $2.$3... " >&6; }
2379 if eval \${$4+:} false; then :
2380 $as_echo_n "(cached) " >&6
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2395 if ac_fn_c_try_compile "$LINENO"; then :
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2405 if (sizeof ac_aggr.$3)
2411 if ac_fn_c_try_compile "$LINENO"; then :
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2422 $as_echo "$ac_res" >&6; }
2423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2425 } # ac_fn_c_check_member
2426 cat >config.log <<_ACEOF
2427 This file contains any messages produced by compilers while
2428 running configure, to aid debugging if configure makes a mistake.
2430 It was created by unbound $as_me 1.7.0, which was
2431 generated by GNU Autoconf 2.69. Invocation command line was
2443 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2444 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2445 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2446 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2447 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2449 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2450 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2452 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2453 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2454 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2455 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2456 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2457 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2458 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir=.
2467 $as_echo "PATH: $as_dir"
2483 # Keep a trace of the command line.
2484 # Strip out --no-create and --no-recursion so they do not pile up.
2485 # Strip out --silent because we don't want to record it for future runs.
2486 # Also quote any args containing shell meta-characters.
2487 # Make two passes to allow for proper duplicate-argument suppression.
2491 ac_must_keep_next=false
2497 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2498 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2499 | -silent | --silent | --silen | --sile | --sil)
2502 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2505 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2507 as_fn_append ac_configure_args1 " '$ac_arg'"
2508 if test $ac_must_keep_next = true; then
2509 ac_must_keep_next=false # Got value, back to normal.
2512 *=* | --config-cache | -C | -disable-* | --disable-* \
2513 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2514 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2515 | -with-* | --with-* | -without-* | --without-* | --x)
2516 case "$ac_configure_args0 " in
2517 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2520 -* ) ac_must_keep_next=true ;;
2523 as_fn_append ac_configure_args " '$ac_arg'"
2528 { ac_configure_args0=; unset ac_configure_args0;}
2529 { ac_configure_args1=; unset ac_configure_args1;}
2531 # When interrupted or exit'd, cleanup temporary files, and complete
2532 # config.log. We remove comments because anyway the quotes in there
2533 # would cause problems or look ugly.
2534 # WARNING: Use '\'' to represent an apostrophe within the trap.
2535 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2536 trap 'exit_status=$?
2537 # Save into config.log some information that might help in debugging.
2541 $as_echo "## ---------------- ##
2542 ## Cache variables. ##
2543 ## ---------------- ##"
2545 # The following way of writing the cache mishandles newlines in values,
2547 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2548 eval ac_val=\$$ac_var
2552 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2553 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2556 _ | IFS | as_nl) ;; #(
2557 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2558 *) { eval $ac_var=; unset $ac_var;} ;;
2563 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2564 *${as_nl}ac_space=\ *)
2566 "s/'\''/'\''\\\\'\'''\''/g;
2567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2577 $as_echo "## ----------------- ##
2578 ## Output variables. ##
2579 ## ----------------- ##"
2581 for ac_var in $ac_subst_vars
2583 eval ac_val=\$$ac_var
2585 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2587 $as_echo "$ac_var='\''$ac_val'\''"
2591 if test -n "$ac_subst_files"; then
2592 $as_echo "## ------------------- ##
2593 ## File substitutions. ##
2594 ## ------------------- ##"
2596 for ac_var in $ac_subst_files
2598 eval ac_val=\$$ac_var
2600 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2602 $as_echo "$ac_var='\''$ac_val'\''"
2607 if test -s confdefs.h; then
2608 $as_echo "## ----------- ##
2615 test "$ac_signal" != 0 &&
2616 $as_echo "$as_me: caught signal $ac_signal"
2617 $as_echo "$as_me: exit $exit_status"
2619 rm -f core *.core core.conftest.* &&
2620 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2623 for ac_signal in 1 2 13 15; do
2624 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2628 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2629 rm -f -r conftest* confdefs.h
2631 $as_echo "/* confdefs.h */" > confdefs.h
2633 # Predefined preprocessor variables.
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_NAME "$PACKAGE_NAME"
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_STRING "$PACKAGE_STRING"
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2655 cat >>confdefs.h <<_ACEOF
2656 #define PACKAGE_URL "$PACKAGE_URL"
2660 # Let the site file select an alternate cache file if it wants to.
2661 # Prefer an explicitly selected file to automatically selected ones.
2664 if test -n "$CONFIG_SITE"; then
2665 # We do not want a PATH search for config.site.
2666 case $CONFIG_SITE in #((
2667 -*) ac_site_file1=./$CONFIG_SITE;;
2668 */*) ac_site_file1=$CONFIG_SITE;;
2669 *) ac_site_file1=./$CONFIG_SITE;;
2671 elif test "x$prefix" != xNONE; then
2672 ac_site_file1=$prefix/share/config.site
2673 ac_site_file2=$prefix/etc/config.site
2675 ac_site_file1=$ac_default_prefix/share/config.site
2676 ac_site_file2=$ac_default_prefix/etc/config.site
2678 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2680 test "x$ac_site_file" = xNONE && continue
2681 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2683 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2684 sed 's/^/| /' "$ac_site_file" >&5
2686 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688 as_fn_error $? "failed to load site script $ac_site_file
2689 See \`config.log' for more details" "$LINENO" 5; }
2693 if test -r "$cache_file"; then
2694 # Some versions of bash will fail to source /dev/null (special files
2695 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2696 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2698 $as_echo "$as_me: loading cache $cache_file" >&6;}
2700 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2701 *) . "./$cache_file";;
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2706 $as_echo "$as_me: creating cache $cache_file" >&6;}
2710 # Check that the precious variables saved in the cache have kept the same
2712 ac_cache_corrupted=false
2713 for ac_var in $ac_precious_vars; do
2714 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2715 eval ac_new_set=\$ac_env_${ac_var}_set
2716 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2717 eval ac_new_val=\$ac_env_${ac_var}_value
2718 case $ac_old_set,$ac_new_set in
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2721 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2722 ac_cache_corrupted=: ;;
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2725 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2726 ac_cache_corrupted=: ;;
2729 if test "x$ac_old_val" != "x$ac_new_val"; then
2730 # differences in whitespace do not lead to failure.
2731 ac_old_val_w=`echo x $ac_old_val`
2732 ac_new_val_w=`echo x $ac_new_val`
2733 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2735 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2736 ac_cache_corrupted=:
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2739 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2740 eval $ac_var=\$ac_old_val
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2743 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2745 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2748 # Pass precious variables to config.status.
2749 if test "$ac_new_set" = set; then
2751 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2752 *) ac_arg=$ac_var=$ac_new_val ;;
2754 case " $ac_configure_args " in
2755 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2756 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2760 if $ac_cache_corrupted; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2764 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2765 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2767 ## -------------------- ##
2768 ## Main body of script. ##
2769 ## -------------------- ##
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778 UNBOUND_VERSION_MAJOR=1
2780 UNBOUND_VERSION_MINOR=7
2782 UNBOUND_VERSION_MICRO=0
2785 LIBUNBOUND_CURRENT=7
2786 LIBUNBOUND_REVISION=8
2795 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2800 # 1.4.0-snapshots had 1:5:0
2801 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2815 # and 1.4.13p1 and 1.4.13.p2
2817 # 1.4.15 had 3:0:1 # adds ub_version()
2822 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2825 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2833 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2837 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2847 # Current -- the number of the binary API that we're implementing
2848 # Revision -- which iteration of the implementation of the binary
2849 # API are we supplying?
2850 # Age -- How many previous binary API versions do we also
2853 # If we release a new version that does not change the binary API,
2854 # increment Revision.
2856 # If we release a new version that changes the binary API, but does
2857 # not break programs compiled against the old binary API, increment
2858 # Current and Age. Set Revision to 0, since this is the first
2859 # implementation of the new API.
2861 # Otherwise, we're changing the binary API and breaking backward
2862 # compatibility with old binaries. Increment Current. Set Age to 0,
2863 # since we're backward compatible with no previous APIs. Set Revision
2871 ac_cpp='$CPP $CPPFLAGS'
2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875 if test -n "$ac_tool_prefix"; then
2876 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2877 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_CC+:} false; then :
2881 $as_echo_n "(cached) " >&6
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 if test -n "$CC"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906 $as_echo "$CC" >&6; }
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2914 if test -z "$ac_cv_prog_CC"; then
2916 # Extract the first word of "gcc", so it can be a program name with args.
2917 set dummy gcc; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2921 $as_echo_n "(cached) " >&6
2923 if test -n "$ac_ct_CC"; then
2924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933 ac_cv_prog_ac_ct_CC="gcc"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944 if test -n "$ac_ct_CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2946 $as_echo "$ac_ct_CC" >&6; }
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2952 if test "x$ac_ct_CC" = x; then
2955 case $cross_compiling:$ac_tool_warned in
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2959 ac_tool_warned=yes ;;
2967 if test -z "$CC"; then
2968 if test -n "$ac_tool_prefix"; then
2969 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2970 set dummy ${ac_tool_prefix}cc; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if ${ac_cv_prog_CC+:} false; then :
2974 $as_echo_n "(cached) " >&6
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986 ac_cv_prog_CC="${ac_tool_prefix}cc"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 if test -n "$CC"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2999 $as_echo "$CC" >&6; }
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3008 if test -z "$CC"; then
3009 # Extract the first word of "cc", so it can be a program name with args.
3010 set dummy cc; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if ${ac_cv_prog_CC+:} false; then :
3014 $as_echo_n "(cached) " >&6
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3028 ac_prog_rejected=yes
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 if test $ac_prog_rejected = yes; then
3040 # We found a bogon in the path, so make sure we never use it.
3041 set dummy $ac_cv_prog_CC
3043 if test $# != 0; then
3044 # We chose a different compiler from the bogus one.
3045 # However, it has the same basename, so the bogon will be chosen
3046 # first if we set CC to just the basename; use the full file name.
3048 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3054 if test -n "$CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3064 if test -z "$CC"; then
3065 if test -n "$ac_tool_prefix"; then
3066 for ac_prog in cl.exe
3068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071 $as_echo_n "checking for $ac_word... " >&6; }
3072 if ${ac_cv_prog_CC+:} false; then :
3073 $as_echo_n "(cached) " >&6
3075 if test -n "$CC"; then
3076 ac_cv_prog_CC="$CC" # Let the user override the test.
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 if test -n "$CC"; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3098 $as_echo "$CC" >&6; }
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 $as_echo "no" >&6; }
3105 test -n "$CC" && break
3108 if test -z "$CC"; then
3110 for ac_prog in cl.exe
3112 # Extract the first word of "$ac_prog", so it can be a program name with args.
3113 set dummy $ac_prog; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3117 $as_echo_n "(cached) " >&6
3119 if test -n "$ac_ct_CC"; then
3120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129 ac_cv_prog_ac_ct_CC="$ac_prog"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3140 if test -n "$ac_ct_CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3142 $as_echo "$ac_ct_CC" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3149 test -n "$ac_ct_CC" && break
3152 if test "x$ac_ct_CC" = x; then
3155 case $cross_compiling:$ac_tool_warned in
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3159 ac_tool_warned=yes ;;
3168 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170 as_fn_error $? "no acceptable C compiler found in \$PATH
3171 See \`config.log' for more details" "$LINENO" 5; }
3173 # Provide some information about the compiler.
3174 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3177 for ac_option in --version -v -V -qversion; do
3178 { { ac_try="$ac_compiler $ac_option >&5"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3187 if test -s conftest.err; then
3189 ... rest of stderr output deleted ...
3190 10q' conftest.err >conftest.er1
3191 cat conftest.er1 >&5
3193 rm -f conftest.er1 conftest.err
3194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195 test $ac_status = 0; }
3198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199 /* end confdefs.h. */
3209 ac_clean_files_save=$ac_clean_files
3210 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3211 # Try to create an executable without -o first, disregard a.out.
3212 # It will help us diagnose broken compilers, and finding out an intuition
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3215 $as_echo_n "checking whether the C compiler works... " >&6; }
3216 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3218 # The possible output files:
3219 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3222 for ac_file in $ac_files
3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3226 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3231 if { { ac_try="$ac_link_default"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_link_default") 2>&5
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }; then :
3242 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3243 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3244 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3245 # so that the user can short-circuit this test for compilers unknown to
3247 for ac_file in $ac_files ''
3249 test -f "$ac_file" || continue
3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3254 # We found the default executable, but exeext='' is most
3258 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3260 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3262 # We set ac_cv_exeext here because the later test for it is not
3263 # safe: cross compilers may not add the suffix if given an `-o'
3264 # argument, so we may need to know it at that point already.
3265 # Even if this section looks crufty: it has the advantage of
3272 test "$ac_cv_exeext" = no && ac_cv_exeext=
3277 if test -z "$ac_file"; then :
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3280 $as_echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285 as_fn_error 77 "C compiler cannot create executables
3286 See \`config.log' for more details" "$LINENO" 5; }
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3289 $as_echo "yes" >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3292 $as_echo_n "checking for C compiler default output file name... " >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3294 $as_echo "$ac_file" >&6; }
3295 ac_exeext=$ac_cv_exeext
3297 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3298 ac_clean_files=$ac_clean_files_save
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3300 $as_echo_n "checking for suffix of executables... " >&6; }
3301 if { { ac_try="$ac_link"
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308 (eval "$ac_link") 2>&5
3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311 test $ac_status = 0; }; then :
3312 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3313 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3314 # work properly (i.e., refer to `conftest.exe'), while it won't with
3316 for ac_file in conftest.exe conftest conftest.*; do
3317 test -f "$ac_file" || continue
3319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3320 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3329 See \`config.log' for more details" "$LINENO" 5; }
3331 rm -f conftest conftest$ac_cv_exeext
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3333 $as_echo "$ac_cv_exeext" >&6; }
3335 rm -f conftest.$ac_ext
3336 EXEEXT=$ac_cv_exeext
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3344 FILE *f = fopen ("conftest.out", "w");
3345 return ferror (f) || fclose (f) != 0;
3351 ac_clean_files="$ac_clean_files conftest.out"
3352 # Check that the compiler produces executables we can run. If not, either
3353 # the compiler is broken, or we cross compile.
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3355 $as_echo_n "checking whether we are cross compiling... " >&6; }
3356 if test "$cross_compiling" != yes; then
3357 { { ac_try="$ac_link"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 $as_echo "$ac_try_echo"; } >&5
3364 (eval "$ac_link") 2>&5
3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }
3368 if { ac_try='./conftest$ac_cv_exeext'
3369 { { case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_try") 2>&5
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; }; then
3381 if test "$cross_compiling" = maybe; then
3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error $? "cannot run C compiled programs.
3387 If you meant to cross compile, use \`--host'.
3388 See \`config.log' for more details" "$LINENO" 5; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3393 $as_echo "$cross_compiling" >&6; }
3395 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3396 ac_clean_files=$ac_clean_files_save
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3398 $as_echo_n "checking for suffix of object files... " >&6; }
3399 if ${ac_cv_objext+:} false; then :
3400 $as_echo_n "(cached) " >&6
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3413 rm -f conftest.o conftest.obj
3414 if { { ac_try="$ac_compile"
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421 (eval "$ac_compile") 2>&5
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }; then :
3425 for ac_file in conftest.o conftest.obj conftest.*; do
3426 test -f "$ac_file" || continue;
3428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3429 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3434 $as_echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439 as_fn_error $? "cannot compute suffix of object files: cannot compile
3440 See \`config.log' for more details" "$LINENO" 5; }
3442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3445 $as_echo "$ac_cv_objext" >&6; }
3446 OBJEXT=$ac_cv_objext
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3449 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3450 if ${ac_cv_c_compiler_gnu+:} false; then :
3451 $as_echo_n "(cached) " >&6
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3467 if ac_fn_c_try_compile "$LINENO"; then :
3472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3477 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3478 if test $ac_compiler_gnu = yes; then
3483 ac_test_CFLAGS=${CFLAGS+set}
3484 ac_save_CFLAGS=$CFLAGS
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3486 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3487 if ${ac_cv_prog_cc_g+:} false; then :
3488 $as_echo_n "(cached) " >&6
3490 ac_save_c_werror_flag=$ac_c_werror_flag
3491 ac_c_werror_flag=yes
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3505 if ac_fn_c_try_compile "$LINENO"; then :
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3520 if ac_fn_c_try_compile "$LINENO"; then :
3523 ac_c_werror_flag=$ac_save_c_werror_flag
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3536 if ac_fn_c_try_compile "$LINENO"; then :
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 ac_c_werror_flag=$ac_save_c_werror_flag
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3547 $as_echo "$ac_cv_prog_cc_g" >&6; }
3548 if test "$ac_test_CFLAGS" = set; then
3549 CFLAGS=$ac_save_CFLAGS
3550 elif test $ac_cv_prog_cc_g = yes; then
3551 if test "$GCC" = yes; then
3557 if test "$GCC" = yes; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3564 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3565 if ${ac_cv_prog_cc_c89+:} false; then :
3566 $as_echo_n "(cached) " >&6
3568 ac_cv_prog_cc_c89=no
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3575 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3576 struct buf { int x; };
3577 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3578 static char *e (p, i)
3584 static char *f (char * (*g) (char **, int), char **p, ...)
3589 s = g (p, va_arg (v,int));
3594 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3595 function prototypes and stuff, but not '\xHH' hex character constants.
3596 These don't provoke an error unfortunately, instead are silently treated
3597 as 'x'. The following induces an error, until -std is added to get
3598 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3599 array size at least. It's necessary to write '\x00'==0 to get something
3600 that's true only with -std. */
3601 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3603 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3604 inside strings and character constants. */
3606 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3608 int test (int i, double x);
3609 struct s1 {int (*f) (int a);};
3610 struct s2 {int (*f) (double a);};
3611 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3617 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3622 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3623 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3625 CC="$ac_save_CC $ac_arg"
3626 if ac_fn_c_try_compile "$LINENO"; then :
3627 ac_cv_prog_cc_c89=$ac_arg
3629 rm -f core conftest.err conftest.$ac_objext
3630 test "x$ac_cv_prog_cc_c89" != "xno" && break
3632 rm -f conftest.$ac_ext
3637 case "x$ac_cv_prog_cc_c89" in
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3640 $as_echo "none needed" >&6; } ;;
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3643 $as_echo "unsupported" >&6; } ;;
3645 CC="$CC $ac_cv_prog_cc_c89"
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3647 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3649 if test "x$ac_cv_prog_cc_c89" != xno; then :
3654 ac_cpp='$CPP $CPPFLAGS'
3655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3666 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3667 # On Suns, sometimes $CPP names a directory.
3668 if test -n "$CPP" && test -d "$CPP"; then
3671 if test -z "$CPP"; then
3672 if ${ac_cv_prog_CPP+:} false; then :
3673 $as_echo_n "(cached) " >&6
3675 # Double quotes because CPP needs to be expanded
3676 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3679 for ac_c_preproc_warn_flag in '' yes
3681 # Use a header file that comes with gcc, so configuring glibc
3682 # with a fresh cross-compiler works.
3683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3684 # <limits.h> exists even on freestanding compilers.
3685 # On the NeXT, cc -E runs the code through the compiler's parser,
3686 # not just through cpp. "Syntax error" is here to catch this case.
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3690 # include <limits.h>
3692 # include <assert.h>
3696 if ac_fn_c_try_cpp "$LINENO"; then :
3699 # Broken: fails on valid input.
3702 rm -f conftest.err conftest.i conftest.$ac_ext
3704 # OK, works on sane cases. Now check whether nonexistent headers
3705 # can be detected and how.
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3708 #include <ac_nonexistent.h>
3710 if ac_fn_c_try_cpp "$LINENO"; then :
3711 # Broken: success on invalid input.
3714 # Passes both tests.
3718 rm -f conftest.err conftest.i conftest.$ac_ext
3721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3722 rm -f conftest.i conftest.err conftest.$ac_ext
3723 if $ac_preproc_ok; then :
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3736 $as_echo "$CPP" >&6; }
3738 for ac_c_preproc_warn_flag in '' yes
3740 # Use a header file that comes with gcc, so configuring glibc
3741 # with a fresh cross-compiler works.
3742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3743 # <limits.h> exists even on freestanding compilers.
3744 # On the NeXT, cc -E runs the code through the compiler's parser,
3745 # not just through cpp. "Syntax error" is here to catch this case.
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3749 # include <limits.h>
3751 # include <assert.h>
3755 if ac_fn_c_try_cpp "$LINENO"; then :
3758 # Broken: fails on valid input.
3761 rm -f conftest.err conftest.i conftest.$ac_ext
3763 # OK, works on sane cases. Now check whether nonexistent headers
3764 # can be detected and how.
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767 #include <ac_nonexistent.h>
3769 if ac_fn_c_try_cpp "$LINENO"; then :
3770 # Broken: success on invalid input.
3773 # Passes both tests.
3777 rm -f conftest.err conftest.i conftest.$ac_ext
3780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3781 rm -f conftest.i conftest.err conftest.$ac_ext
3782 if $ac_preproc_ok; then :
3785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3788 See \`config.log' for more details" "$LINENO" 5; }
3792 ac_cpp='$CPP $CPPFLAGS'
3793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3799 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3800 if ${ac_cv_path_GREP+:} false; then :
3801 $as_echo_n "(cached) " >&6
3803 if test -z "$GREP"; then
3804 ac_path_GREP_found=false
3805 # Loop through the user's path and test for each of PROGNAME-LIST
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3810 test -z "$as_dir" && as_dir=.
3811 for ac_prog in grep ggrep; do
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3814 as_fn_executable_p "$ac_path_GREP" || continue
3815 # Check for GNU ac_path_GREP and select it if it is found.
3816 # Check for GNU $ac_path_GREP
3817 case `"$ac_path_GREP" --version 2>&1` in
3819 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3822 $as_echo_n 0123456789 >"conftest.in"
3825 cat "conftest.in" "conftest.in" >"conftest.tmp"
3826 mv "conftest.tmp" "conftest.in"
3827 cp "conftest.in" "conftest.nl"
3828 $as_echo 'GREP' >> "conftest.nl"
3829 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3831 as_fn_arith $ac_count + 1 && ac_count=$as_val
3832 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3833 # Best one so far, save it but keep looking for a better one
3834 ac_cv_path_GREP="$ac_path_GREP"
3835 ac_path_GREP_max=$ac_count
3837 # 10*(2^10) chars as input seems more than enough
3838 test $ac_count -gt 10 && break
3840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3843 $ac_path_GREP_found && break 3
3848 if test -z "$ac_cv_path_GREP"; then
3849 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3852 ac_cv_path_GREP=$GREP
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3857 $as_echo "$ac_cv_path_GREP" >&6; }
3858 GREP="$ac_cv_path_GREP"
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3862 $as_echo_n "checking for egrep... " >&6; }
3863 if ${ac_cv_path_EGREP+:} false; then :
3864 $as_echo_n "(cached) " >&6
3866 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3867 then ac_cv_path_EGREP="$GREP -E"
3869 if test -z "$EGREP"; then
3870 ac_path_EGREP_found=false
3871 # Loop through the user's path and test for each of PROGNAME-LIST
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3876 test -z "$as_dir" && as_dir=.
3877 for ac_prog in egrep; do
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3880 as_fn_executable_p "$ac_path_EGREP" || continue
3881 # Check for GNU ac_path_EGREP and select it if it is found.
3882 # Check for GNU $ac_path_EGREP
3883 case `"$ac_path_EGREP" --version 2>&1` in
3885 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3888 $as_echo_n 0123456789 >"conftest.in"
3891 cat "conftest.in" "conftest.in" >"conftest.tmp"
3892 mv "conftest.tmp" "conftest.in"
3893 cp "conftest.in" "conftest.nl"
3894 $as_echo 'EGREP' >> "conftest.nl"
3895 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3897 as_fn_arith $ac_count + 1 && ac_count=$as_val
3898 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3899 # Best one so far, save it but keep looking for a better one
3900 ac_cv_path_EGREP="$ac_path_EGREP"
3901 ac_path_EGREP_max=$ac_count
3903 # 10*(2^10) chars as input seems more than enough
3904 test $ac_count -gt 10 && break
3906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3909 $ac_path_EGREP_found && break 3
3914 if test -z "$ac_cv_path_EGREP"; then
3915 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3918 ac_cv_path_EGREP=$EGREP
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3924 $as_echo "$ac_cv_path_EGREP" >&6; }
3925 EGREP="$ac_cv_path_EGREP"
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3929 $as_echo_n "checking for ANSI C header files... " >&6; }
3930 if ${ac_cv_header_stdc+:} false; then :
3931 $as_echo_n "(cached) " >&6
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3948 if ac_fn_c_try_compile "$LINENO"; then :
3949 ac_cv_header_stdc=yes
3951 ac_cv_header_stdc=no
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 if test $ac_cv_header_stdc = yes; then
3956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3963 $EGREP "memchr" >/dev/null 2>&1; then :
3966 ac_cv_header_stdc=no
3972 if test $ac_cv_header_stdc = yes; then
3973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3980 $EGREP "free" >/dev/null 2>&1; then :
3983 ac_cv_header_stdc=no
3989 if test $ac_cv_header_stdc = yes; then
3990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3991 if test "$cross_compiling" = yes; then :
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3998 #if ((' ' & 0x0FF) == 0x020)
3999 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4000 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4002 # define ISLOWER(c) \
4003 (('a' <= (c) && (c) <= 'i') \
4004 || ('j' <= (c) && (c) <= 'r') \
4005 || ('s' <= (c) && (c) <= 'z'))
4006 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4009 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4014 for (i = 0; i < 256; i++)
4015 if (XOR (islower (i), ISLOWER (i))
4016 || toupper (i) != TOUPPER (i))
4021 if ac_fn_c_try_run "$LINENO"; then :
4024 ac_cv_header_stdc=no
4026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4027 conftest.$ac_objext conftest.beam conftest.$ac_ext
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4033 $as_echo "$ac_cv_header_stdc" >&6; }
4034 if test $ac_cv_header_stdc = yes; then
4036 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4041 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4042 inttypes.h stdint.h unistd.h
4044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4045 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4047 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4048 cat >>confdefs.h <<_ACEOF
4049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4058 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4059 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4066 if test "$MINIX" = yes; then
4068 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4071 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4074 $as_echo "#define _MINIX 1" >>confdefs.h
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4080 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4081 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4082 $as_echo_n "(cached) " >&6
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4087 # define __EXTENSIONS__ 1
4088 $ac_includes_default
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_cv_safe_to_define___extensions__=yes
4100 ac_cv_safe_to_define___extensions__=no
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4105 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4106 test $ac_cv_safe_to_define___extensions__ = yes &&
4107 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4109 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4111 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4113 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4115 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4119 if test "$ac_cv_header_minix_config_h" = "yes"; then
4121 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4130 case "$exec_prefix" in
4132 exec_prefix="$prefix"
4137 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4139 if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes"
4140 else on_mingw="no"; fi
4144 # Determine configuration file
4145 # the eval is to evaluate shell expansion twice
4146 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4148 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4150 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4152 if test $on_mingw = "no"; then
4153 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4155 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4158 # Check whether --with-conf_file was given.
4159 if test "${with_conf_file+set}" = set; then :
4160 withval=$with_conf_file; ub_conf_file="$withval"
4164 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4167 cat >>confdefs.h <<_ACEOF
4168 #define CONFIGFILE "$hdr_config"
4171 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4172 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4173 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4174 X"$ub_conf_file" : 'X\(//\)$' \| \
4175 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4176 $as_echo X"$ub_conf_file" |
4177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4196 # Determine run, chroot directory and pidfile locations
4198 # Check whether --with-run-dir was given.
4199 if test "${with_run_dir+set}" = set; then :
4200 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4202 if test $on_mingw = no; then
4203 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4211 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4214 cat >>confdefs.h <<_ACEOF
4215 #define RUN_DIR "$hdr_run"
4220 # Check whether --with-chroot-dir was given.
4221 if test "${with_chroot_dir+set}" = set; then :
4222 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4224 if test $on_mingw = no; then
4225 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4227 UNBOUND_CHROOT_DIR=""
4233 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4236 cat >>confdefs.h <<_ACEOF
4237 #define CHROOT_DIR "$hdr_chroot"
4242 # Check whether --with-share-dir was given.
4243 if test "${with_share_dir+set}" = set; then :
4244 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4246 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4251 cat >>confdefs.h <<_ACEOF
4252 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4257 # Check whether --with-pidfile was given.
4258 if test "${with_pidfile+set}" = set; then :
4259 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4261 if test $on_mingw = no; then
4262 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4270 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4273 cat >>confdefs.h <<_ACEOF
4274 #define PIDFILE "$hdr_pid"
4279 # Check whether --with-rootkey-file was given.
4280 if test "${with_rootkey_file+set}" = set; then :
4281 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4283 if test $on_mingw = no; then
4284 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4286 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4292 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4295 cat >>confdefs.h <<_ACEOF
4296 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4301 # Check whether --with-rootcert-file was given.
4302 if test "${with_rootcert_file+set}" = set; then :
4303 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4305 if test $on_mingw = no; then
4306 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4308 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4314 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4317 cat >>confdefs.h <<_ACEOF
4318 #define ROOT_CERT_FILE "$hdr_rpem"
4323 # Check whether --with-username was given.
4324 if test "${with_username+set}" = set; then :
4325 withval=$with_username; UNBOUND_USERNAME="$withval"
4327 UNBOUND_USERNAME="unbound"
4332 cat >>confdefs.h <<_ACEOF
4333 #define UB_USERNAME "$UNBOUND_USERNAME"
4338 $as_echo "#define WINVER 0x0502" >>confdefs.h
4340 wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\).*$/\1,\2,\3,\4/' -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1,\2,\3,0/' `
4343 cat >>confdefs.h <<_ACEOF
4344 #define RSRC_PACKAGE_VERSION $wnvs
4348 # Checks for typedefs, structures, and compiler characteristics.
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4350 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4351 if ${ac_cv_c_const+:} false; then :
4352 $as_echo_n "(cached) " >&6
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4362 /* Ultrix mips cc rejects this sort of thing. */
4363 typedef int charset[2];
4364 const charset cs = { 0, 0 };
4365 /* SunOS 4.1.1 cc rejects this. */
4366 char const *const *pcpcc;
4368 /* NEC SVR4.0.2 mips cc rejects this. */
4369 struct point {int x, y;};
4370 static struct point const zero = {0,0};
4371 /* AIX XL C 1.02.0.0 rejects this.
4372 It does not let you subtract one const X* pointer from another in
4373 an arm of an if-expression whose if-part is not a constant
4375 const char *g = "string";
4376 pcpcc = &g + (g ? g-g : 0);
4377 /* HPUX 7.0 cc rejects these. */
4379 ppc = (char**) pcpcc;
4380 pcpcc = (char const *const *) ppc;
4381 { /* SCO 3.2v4 cc rejects this sort of thing. */
4384 char const *s = 0 ? (char *) 0 : (char const *) 0;
4389 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4391 const int *foo = &x[0];
4394 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4395 typedef const int *iptr;
4399 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4400 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4401 struct s { int j; const int *ap[3]; } bx;
4402 struct s *b = &bx; b->j = 5;
4404 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4408 return !cs[0] && !zero.x;
4415 if ac_fn_c_try_compile "$LINENO"; then :
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4423 $as_echo "$ac_cv_c_const" >&6; }
4424 if test $ac_cv_c_const = no; then
4426 $as_echo "#define const /**/" >>confdefs.h
4431 ac_cpp='$CPP $CPPFLAGS'
4432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436 # allow user to override the -g -O2 flags.
4438 if test "x$CFLAGS" = "x" ; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4442 $as_echo_n "checking whether $CC supports -g... " >&6; }
4443 cache=`echo g | sed 'y%.=/+-%___p_%'`
4444 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4445 $as_echo_n "(cached) " >&6
4448 echo 'void f(void){}' >conftest.c
4449 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4450 eval "cv_prog_cc_flag_$cache=yes"
4452 eval "cv_prog_cc_flag_$cache=no"
4454 rm -f conftest conftest.o conftest.c
4458 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460 $as_echo "yes" >&6; }
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4473 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4474 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4475 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4476 $as_echo_n "(cached) " >&6
4479 echo 'void f(void){}' >conftest.c
4480 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4481 eval "cv_prog_cc_flag_$cache=yes"
4483 eval "cv_prog_cc_flag_$cache=no"
4485 rm -f conftest conftest.o conftest.c
4489 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4491 $as_echo "yes" >&6; }
4493 CFLAGS="$CFLAGS -O2"
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508 if test -n "$ac_tool_prefix"; then
4509 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4510 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_CC+:} false; then :
4514 $as_echo_n "(cached) " >&6
4516 if test -n "$CC"; then
4517 ac_cv_prog_CC="$CC" # Let the user override the test.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 if test -n "$CC"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4539 $as_echo "$CC" >&6; }
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4547 if test -z "$ac_cv_prog_CC"; then
4549 # Extract the first word of "gcc", so it can be a program name with args.
4550 set dummy gcc; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4554 $as_echo_n "(cached) " >&6
4556 if test -n "$ac_ct_CC"; then
4557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566 ac_cv_prog_ac_ct_CC="gcc"
4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4577 if test -n "$ac_ct_CC"; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4579 $as_echo "$ac_ct_CC" >&6; }
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4585 if test "x$ac_ct_CC" = x; then
4588 case $cross_compiling:$ac_tool_warned in
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4592 ac_tool_warned=yes ;;
4600 if test -z "$CC"; then
4601 if test -n "$ac_tool_prefix"; then
4602 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4603 set dummy ${ac_tool_prefix}cc; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if ${ac_cv_prog_CC+:} false; then :
4607 $as_echo_n "(cached) " >&6
4609 if test -n "$CC"; then
4610 ac_cv_prog_CC="$CC" # Let the user override the test.
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_CC="${ac_tool_prefix}cc"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 if test -n "$CC"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4632 $as_echo "$CC" >&6; }
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4641 if test -z "$CC"; then
4642 # Extract the first word of "cc", so it can be a program name with args.
4643 set dummy cc; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if ${ac_cv_prog_CC+:} false; then :
4647 $as_echo_n "(cached) " >&6
4649 if test -n "$CC"; then
4650 ac_cv_prog_CC="$CC" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4661 ac_prog_rejected=yes
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 if test $ac_prog_rejected = yes; then
4673 # We found a bogon in the path, so make sure we never use it.
4674 set dummy $ac_cv_prog_CC
4676 if test $# != 0; then
4677 # We chose a different compiler from the bogus one.
4678 # However, it has the same basename, so the bogon will be chosen
4679 # first if we set CC to just the basename; use the full file name.
4681 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4687 if test -n "$CC"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4689 $as_echo "$CC" >&6; }
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4697 if test -z "$CC"; then
4698 if test -n "$ac_tool_prefix"; then
4699 for ac_prog in cl.exe
4701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if ${ac_cv_prog_CC+:} false; then :
4706 $as_echo_n "(cached) " >&6
4708 if test -n "$CC"; then
4709 ac_cv_prog_CC="$CC" # Let the user override the test.
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 if test -n "$CC"; then
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4731 $as_echo "$CC" >&6; }
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4738 test -n "$CC" && break
4741 if test -z "$CC"; then
4743 for ac_prog in cl.exe
4745 # Extract the first word of "$ac_prog", so it can be a program name with args.
4746 set dummy $ac_prog; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4750 $as_echo_n "(cached) " >&6
4752 if test -n "$ac_ct_CC"; then
4753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762 ac_cv_prog_ac_ct_CC="$ac_prog"
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4773 if test -n "$ac_ct_CC"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4775 $as_echo "$ac_ct_CC" >&6; }
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4782 test -n "$ac_ct_CC" && break
4785 if test "x$ac_ct_CC" = x; then
4788 case $cross_compiling:$ac_tool_warned in
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4792 ac_tool_warned=yes ;;
4801 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4803 as_fn_error $? "no acceptable C compiler found in \$PATH
4804 See \`config.log' for more details" "$LINENO" 5; }
4806 # Provide some information about the compiler.
4807 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4810 for ac_option in --version -v -V -qversion; do
4811 { { ac_try="$ac_compiler $ac_option >&5"
4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814 *) ac_try_echo=$ac_try;;
4816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4817 $as_echo "$ac_try_echo"; } >&5
4818 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4820 if test -s conftest.err; then
4822 ... rest of stderr output deleted ...
4823 10q' conftest.err >conftest.er1
4824 cat conftest.er1 >&5
4826 rm -f conftest.er1 conftest.err
4827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4828 test $ac_status = 0; }
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4832 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4833 if ${ac_cv_c_compiler_gnu+:} false; then :
4834 $as_echo_n "(cached) " >&6
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4850 if ac_fn_c_try_compile "$LINENO"; then :
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4860 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4861 if test $ac_compiler_gnu = yes; then
4866 ac_test_CFLAGS=${CFLAGS+set}
4867 ac_save_CFLAGS=$CFLAGS
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4869 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4870 if ${ac_cv_prog_cc_g+:} false; then :
4871 $as_echo_n "(cached) " >&6
4873 ac_save_c_werror_flag=$ac_c_werror_flag
4874 ac_c_werror_flag=yes
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4888 if ac_fn_c_try_compile "$LINENO"; then :
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4903 if ac_fn_c_try_compile "$LINENO"; then :
4906 ac_c_werror_flag=$ac_save_c_werror_flag
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4919 if ac_fn_c_try_compile "$LINENO"; then :
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 ac_c_werror_flag=$ac_save_c_werror_flag
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4930 $as_echo "$ac_cv_prog_cc_g" >&6; }
4931 if test "$ac_test_CFLAGS" = set; then
4932 CFLAGS=$ac_save_CFLAGS
4933 elif test $ac_cv_prog_cc_g = yes; then
4934 if test "$GCC" = yes; then
4940 if test "$GCC" = yes; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4947 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4948 if ${ac_cv_prog_cc_c89+:} false; then :
4949 $as_echo_n "(cached) " >&6
4951 ac_cv_prog_cc_c89=no
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4958 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4959 struct buf { int x; };
4960 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4961 static char *e (p, i)
4967 static char *f (char * (*g) (char **, int), char **p, ...)
4972 s = g (p, va_arg (v,int));
4977 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4978 function prototypes and stuff, but not '\xHH' hex character constants.
4979 These don't provoke an error unfortunately, instead are silently treated
4980 as 'x'. The following induces an error, until -std is added to get
4981 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4982 array size at least. It's necessary to write '\x00'==0 to get something
4983 that's true only with -std. */
4984 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4986 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4987 inside strings and character constants. */
4989 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4991 int test (int i, double x);
4992 struct s1 {int (*f) (int a);};
4993 struct s2 {int (*f) (double a);};
4994 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5000 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5005 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5006 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5008 CC="$ac_save_CC $ac_arg"
5009 if ac_fn_c_try_compile "$LINENO"; then :
5010 ac_cv_prog_cc_c89=$ac_arg
5012 rm -f core conftest.err conftest.$ac_objext
5013 test "x$ac_cv_prog_cc_c89" != "xno" && break
5015 rm -f conftest.$ac_ext
5020 case "x$ac_cv_prog_cc_c89" in
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5023 $as_echo "none needed" >&6; } ;;
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5026 $as_echo "unsupported" >&6; } ;;
5028 CC="$CC $ac_cv_prog_cc_c89"
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5030 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5032 if test "x$ac_cv_prog_cc_c89" != xno; then :
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5044 $as_echo_n "checking $CC dependency flag... " >&6; }
5045 echo 'void f(){}' >conftest.c
5046 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5049 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5052 DEPFLAG="-MM" # dunno do something
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5056 $as_echo "$DEPFLAG" >&6; }
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5064 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
5065 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5066 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5067 $as_echo_n "(cached) " >&6
5070 echo 'void f(void){}' >conftest.c
5071 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5072 eval "cv_prog_cc_flag_$cache=yes"
5074 eval "cv_prog_cc_flag_$cache=no"
5076 rm -f conftest conftest.o conftest.c
5080 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5082 $as_echo "yes" >&6; }
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5095 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5096 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5097 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5098 $as_echo_n "(cached) " >&6
5101 echo 'void f(void){}' >conftest.c
5102 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5103 eval "cv_prog_cc_flag_$cache=yes"
5105 eval "cv_prog_cc_flag_$cache=no"
5107 rm -f conftest conftest.o conftest.c
5111 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5113 $as_echo "yes" >&6; }
5115 ERRFLAG="$ERRFLAG -Wall"
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5120 ERRFLAG="$ERRFLAG -errfmt"
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5128 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5129 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5130 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5131 $as_echo_n "(cached) " >&6
5134 echo 'void f(void){}' >conftest.c
5135 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5136 eval "cv_prog_cc_flag_$cache=yes"
5138 eval "cv_prog_cc_flag_$cache=no"
5140 rm -f conftest conftest.o conftest.c
5144 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5146 $as_echo "yes" >&6; }
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5159 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5160 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5161 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5162 $as_echo_n "(cached) " >&6
5165 echo 'void f(void){}' >conftest.c
5166 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5167 eval "cv_prog_cc_flag_$cache=yes"
5169 eval "cv_prog_cc_flag_$cache=no"
5171 rm -f conftest conftest.o conftest.c
5175 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5177 $as_echo "yes" >&6; }
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5188 for ac_header in getopt.h time.h
5190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5191 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5193 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5194 cat >>confdefs.h <<_ACEOF
5195 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5207 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5208 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5209 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5210 $as_echo_n "(cached) " >&6
5214 #include "confdefs.h"
5217 #include <sys/time.h>
5223 #ifdef HAVE_GETOPT_H
5234 const char* str = NULL;
5236 msg.msg_control = 0;
5237 t = ctime_r(&time, buf);
5240 a = getopt(2, opts, "a");
5242 str = gai_strerror(0);
5243 if(str && t && tv.tv_usec && msg.msg_control)
5248 echo 'void f(){}' >>conftest.c
5249 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5250 eval "cv_prog_cc_flag_needed_$cache=no"
5253 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5254 eval "cv_prog_cc_flag_needed_$cache=yes"
5256 eval "cv_prog_cc_flag_needed_$cache=fail"
5257 #echo 'Test with flag fails too!'
5259 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5260 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5265 rm -f conftest conftest.c conftest.o
5269 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5271 $as_echo "yes" >&6; }
5273 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5275 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5278 #echo 'Test with flag is no!'
5280 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5281 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5287 $as_echo "failed" >&6; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5298 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5299 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5300 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5301 $as_echo_n "(cached) " >&6
5305 #include "confdefs.h"
5308 #include <sys/time.h>
5314 #ifdef HAVE_GETOPT_H
5325 const char* str = NULL;
5327 msg.msg_control = 0;
5328 t = ctime_r(&time, buf);
5331 a = getopt(2, opts, "a");
5333 str = gai_strerror(0);
5334 if(str && t && tv.tv_usec && msg.msg_control)
5339 echo 'void f(){}' >>conftest.c
5340 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5341 eval "cv_prog_cc_flag_needed_$cache=no"
5344 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5345 eval "cv_prog_cc_flag_needed_$cache=yes"
5347 eval "cv_prog_cc_flag_needed_$cache=fail"
5348 #echo 'Test with flag fails too!'
5350 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5351 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5356 rm -f conftest conftest.c conftest.o
5360 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5362 $as_echo "yes" >&6; }
5364 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5366 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 #echo 'Test with flag is no!'
5371 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5372 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5378 $as_echo "failed" >&6; }
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5389 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5390 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5391 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5392 $as_echo_n "(cached) " >&6
5396 #include <stdbool.h>
5403 echo 'void f(){}' >>conftest.c
5404 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5405 eval "cv_prog_cc_flag_needed_$cache=no"
5408 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5409 eval "cv_prog_cc_flag_needed_$cache=yes"
5411 eval "cv_prog_cc_flag_needed_$cache=fail"
5412 #echo 'Test with flag fails too!'
5414 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5415 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5420 rm -f conftest conftest.c conftest.o
5424 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5426 $as_echo "yes" >&6; }
5428 CFLAGS="$CFLAGS $C99FLAG"
5430 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5433 #echo 'Test with flag is no!'
5435 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5436 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5442 $as_echo "failed" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5453 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5454 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5455 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5456 $as_echo_n "(cached) " >&6
5468 echo 'void f(){}' >>conftest.c
5469 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5470 eval "cv_prog_cc_flag_needed_$cache=no"
5473 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5474 eval "cv_prog_cc_flag_needed_$cache=yes"
5476 eval "cv_prog_cc_flag_needed_$cache=fail"
5477 #echo 'Test with flag fails too!'
5479 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5480 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5485 rm -f conftest conftest.c conftest.o
5489 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5491 $as_echo "yes" >&6; }
5493 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5495 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5498 #echo 'Test with flag is no!'
5500 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5501 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5507 $as_echo "failed" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5518 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5520 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5521 $as_echo_n "(cached) " >&6
5525 #include <netinet/in.h>
5528 struct in6_pktinfo inf;
5529 int a = (int)sizeof(inf);
5533 echo 'void f(){}' >>conftest.c
5534 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5535 eval "cv_prog_cc_flag_needed_$cache=no"
5538 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5539 eval "cv_prog_cc_flag_needed_$cache=yes"
5541 eval "cv_prog_cc_flag_needed_$cache=fail"
5542 #echo 'Test with flag fails too!'
5544 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5545 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5550 rm -f conftest conftest.c conftest.o
5554 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5556 $as_echo "yes" >&6; }
5558 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5560 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5563 #echo 'Test with flag is no!'
5565 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5566 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5572 $as_echo "failed" >&6; }
5579 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5580 # is not available at all. -D_FRSRESGID is to make this check unique.
5581 # otherwise we would get the previous cached result.
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5586 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5587 cache=_D_GNU_SOURCE__D_FRSRESGID
5588 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5589 $as_echo_n "(cached) " >&6
5596 int a = setresgid(0,0,0);
5597 a = setresuid(0,0,0);
5601 echo 'void f(){}' >>conftest.c
5602 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5603 eval "cv_prog_cc_flag_needed_$cache=no"
5606 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5607 eval "cv_prog_cc_flag_needed_$cache=yes"
5609 eval "cv_prog_cc_flag_needed_$cache=fail"
5610 #echo 'Test with flag fails too!'
5612 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5613 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5618 rm -f conftest conftest.c conftest.o
5622 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5624 $as_echo "yes" >&6; }
5626 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5628 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 $as_echo "no" >&6; }
5631 #echo 'Test with flag is no!'
5633 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5634 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5640 $as_echo "failed" >&6; }
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5651 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5652 cache=_D_POSIX_C_SOURCE_200112
5653 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5654 $as_echo_n "(cached) " >&6
5658 #include "confdefs.h"
5669 const char* str = NULL;
5670 t = ctime_r(&time, buf);
5671 str = gai_strerror(0);
5677 echo 'void f(){}' >>conftest.c
5678 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5679 eval "cv_prog_cc_flag_needed_$cache=no"
5682 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5683 eval "cv_prog_cc_flag_needed_$cache=yes"
5685 eval "cv_prog_cc_flag_needed_$cache=fail"
5686 #echo 'Test with flag fails too!'
5688 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5689 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5694 rm -f conftest conftest.c conftest.o
5698 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5700 $as_echo "yes" >&6; }
5702 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5704 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5707 #echo 'Test with flag is no!'
5709 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5710 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5716 $as_echo "failed" >&6; }
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5727 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5728 cache=_D__EXTENSIONS__
5729 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5730 $as_echo_n "(cached) " >&6
5734 #include "confdefs.h"
5737 #include <sys/time.h>
5742 #ifdef HAVE_GETOPT_H
5752 a = getopt(2, opts, "a");
5759 echo 'void f(){}' >>conftest.c
5760 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5761 eval "cv_prog_cc_flag_needed_$cache=no"
5764 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5765 eval "cv_prog_cc_flag_needed_$cache=yes"
5767 eval "cv_prog_cc_flag_needed_$cache=fail"
5768 #echo 'Test with flag fails too!'
5770 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5771 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5776 rm -f conftest conftest.c conftest.o
5780 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5782 $as_echo "yes" >&6; }
5784 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5786 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5789 #echo 'Test with flag is no!'
5791 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5792 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5798 $as_echo "failed" >&6; }
5807 # debug mode flags warnings
5808 # Check whether --enable-checking was given.
5809 if test "${enable_checking+set}" = set; then :
5810 enableval=$enable_checking;
5813 # Check whether --enable-debug was given.
5814 if test "${enable_debug+set}" = set; then :
5815 enableval=$enable_debug;
5818 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5819 else debug_enabled="$enable_checking"; fi
5821 case "$debug_enabled" in
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5826 $as_echo_n "checking whether $CC supports -W... " >&6; }
5827 cache=`echo W | sed 'y%.=/+-%___p_%'`
5828 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5829 $as_echo_n "(cached) " >&6
5832 echo 'void f(void){}' >conftest.c
5833 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5834 eval "cv_prog_cc_flag_$cache=yes"
5836 eval "cv_prog_cc_flag_$cache=no"
5838 rm -f conftest conftest.o conftest.c
5842 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5844 $as_echo "yes" >&6; }
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5857 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5858 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5859 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5860 $as_echo_n "(cached) " >&6
5863 echo 'void f(void){}' >conftest.c
5864 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5865 eval "cv_prog_cc_flag_$cache=yes"
5867 eval "cv_prog_cc_flag_$cache=no"
5869 rm -f conftest conftest.o conftest.c
5873 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5875 $as_echo "yes" >&6; }
5877 CFLAGS="$CFLAGS -Wall"
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5888 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5889 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5890 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5891 $as_echo_n "(cached) " >&6
5894 echo 'void f(void){}' >conftest.c
5895 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5896 eval "cv_prog_cc_flag_$cache=yes"
5898 eval "cv_prog_cc_flag_$cache=no"
5900 rm -f conftest conftest.o conftest.c
5904 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5906 $as_echo "yes" >&6; }
5908 CFLAGS="$CFLAGS -Wextra"
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5919 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5920 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5921 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5922 $as_echo_n "(cached) " >&6
5925 echo 'void f(void){}' >conftest.c
5926 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5927 eval "cv_prog_cc_flag_$cache=yes"
5929 eval "cv_prog_cc_flag_$cache=no"
5931 rm -f conftest conftest.o conftest.c
5935 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5937 $as_echo "yes" >&6; }
5939 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5948 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5955 if test "$default_cflags" = "yes"; then
5956 # only when CFLAGS was "" at the start, if the users wants to
5957 # override we shouldn't add default cflags, because they wouldn't
5958 # be able to turn off these options and set the CFLAGS wanted.
5960 # Check whether --enable-flto was given.
5961 if test "${enable_flto+set}" = set; then :
5962 enableval=$enable_flto;
5965 if test "x$enable_flto" != "xno"; then :
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5968 $as_echo_n "checking if $CC supports -flto... " >&6; }
5970 CFLAGS="$CFLAGS -flto"
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5982 if ac_fn_c_try_link "$LINENO"; then :
5984 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5990 $as_echo "yes" >&6; }
5992 rm -f conftest conftest.c conftest.o
5995 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
5998 rm -f core conftest.err conftest.$ac_objext \
5999 conftest$ac_exeext conftest.$ac_ext
6004 # Check whether --enable-pie was given.
6005 if test "${enable_pie+set}" = set; then :
6006 enableval=$enable_pie;
6009 if test "x$enable_pie" = "xyes"; then :
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
6012 $as_echo_n "checking if $CC supports PIE... " >&6; }
6013 BAKLDFLAGS="$LDFLAGS"
6015 LDFLAGS="$LDFLAGS -pie"
6016 CFLAGS="$CFLAGS -fPIE"
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6028 if ac_fn_c_try_link "$LINENO"; then :
6030 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6031 LDFLAGS="$BAKLDFLAGS"
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6036 $as_echo "yes" >&6; }
6038 rm -f conftest conftest.c conftest.o
6041 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6044 rm -f core conftest.err conftest.$ac_objext \
6045 conftest$ac_exeext conftest.$ac_ext
6050 # Check whether --enable-relro_now was given.
6051 if test "${enable_relro_now+set}" = set; then :
6052 enableval=$enable_relro_now;
6055 if test "x$enable_relro_now" = "xyes"; then :
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6058 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6059 BAKLDFLAGS="$LDFLAGS"
6060 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6072 if ac_fn_c_try_link "$LINENO"; then :
6074 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6075 LDFLAGS="$BAKLDFLAGS"
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6080 $as_echo "yes" >&6; }
6082 rm -f conftest conftest.c conftest.o
6085 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6088 rm -f core conftest.err conftest.$ac_objext \
6089 conftest$ac_exeext conftest.$ac_ext
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6096 $as_echo_n "checking for inline... " >&6; }
6097 if ${ac_cv_c_inline+:} false; then :
6098 $as_echo_n "(cached) " >&6
6101 for ac_kw in inline __inline__ __inline; do
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6106 static $ac_kw foo_t static_foo () {return 0; }
6107 $ac_kw foo_t foo () {return 0; }
6111 if ac_fn_c_try_compile "$LINENO"; then :
6112 ac_cv_c_inline=$ac_kw
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115 test "$ac_cv_c_inline" != no && break
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6120 $as_echo "$ac_cv_c_inline" >&6; }
6122 case $ac_cv_c_inline in
6125 case $ac_cv_c_inline in
6127 *) ac_val=$ac_cv_c_inline;;
6129 cat >>confdefs.h <<_ACEOF
6131 #define inline $ac_val
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6139 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6140 if ${ac_cv_c_format_attribute+:} false; then :
6141 $as_echo_n "(cached) " >&6
6143 ac_cv_c_format_attribute=no
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6147 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6148 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6160 if ac_fn_c_try_compile "$LINENO"; then :
6161 ac_cv_c_format_attribute="yes"
6163 ac_cv_c_format_attribute="no"
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6171 $as_echo "$ac_cv_c_format_attribute" >&6; }
6172 if test $ac_cv_c_format_attribute = yes; then
6174 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6180 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6181 if ${ac_cv_c_unused_attribute+:} false; then :
6182 $as_echo_n "(cached) " >&6
6184 ac_cv_c_unused_attribute=no
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6188 void f (char *u __attribute__((unused)));
6200 if ac_fn_c_try_compile "$LINENO"; then :
6201 ac_cv_c_unused_attribute="yes"
6203 ac_cv_c_unused_attribute="no"
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6213 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6214 if test $ac_cv_c_unused_attribute = yes; then
6216 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6224 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6225 if ${ac_cv_c_weak_attribute+:} false; then :
6226 $as_echo_n "(cached) " >&6
6228 ac_cv_c_weak_attribute=no
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6232 __attribute__((weak)) void f(int x) { printf("%d", x); }
6244 if ac_fn_c_try_compile "$LINENO"; then :
6245 ac_cv_c_weak_attribute="yes"
6247 ac_cv_c_weak_attribute="no"
6249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6255 $as_echo "$ac_cv_c_weak_attribute" >&6; }
6256 if test $ac_cv_c_weak_attribute = yes; then
6258 $as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6263 if test "$srcdir" != "."; then
6264 CPPFLAGS="$CPPFLAGS -I$srcdir"
6269 for ac_prog in flex lex
6271 # Extract the first word of "$ac_prog", so it can be a program name with args.
6272 set dummy $ac_prog; ac_word=$2
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274 $as_echo_n "checking for $ac_word... " >&6; }
6275 if ${ac_cv_prog_LEX+:} false; then :
6276 $as_echo_n "(cached) " >&6
6278 if test -n "$LEX"; then
6279 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6288 ac_cv_prog_LEX="$ac_prog"
6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 if test -n "$LEX"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6301 $as_echo "$LEX" >&6; }
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6308 test -n "$LEX" && break
6310 test -n "$LEX" || LEX=":"
6312 if test "x$LEX" != "x:"; then
6313 cat >conftest.l <<_ACEOF
6319 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6320 yyless ((input () != 0)); }
6321 f { unput (yytext[0]); }
6322 . { BEGIN INITIAL; }
6324 #ifdef YYTEXT_POINTER
6325 extern char *yytext;
6330 return ! yylex () + ! yywrap ();
6333 { { ac_try="$LEX conftest.l"
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6339 $as_echo "$ac_try_echo"; } >&5
6340 (eval "$LEX conftest.l") 2>&5
6342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6343 test $ac_status = 0; }
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6345 $as_echo_n "checking lex output file root... " >&6; }
6346 if ${ac_cv_prog_lex_root+:} false; then :
6347 $as_echo_n "(cached) " >&6
6350 if test -f lex.yy.c; then
6351 ac_cv_prog_lex_root=lex.yy
6352 elif test -f lexyy.c; then
6353 ac_cv_prog_lex_root=lexyy
6355 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6359 $as_echo "$ac_cv_prog_lex_root" >&6; }
6360 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6362 if test -z "${LEXLIB+set}"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6364 $as_echo_n "checking lex library... " >&6; }
6365 if ${ac_cv_lib_lex+:} false; then :
6366 $as_echo_n "(cached) " >&6
6370 ac_cv_lib_lex='none needed'
6371 for ac_lib in '' -lfl -ll; do
6372 LIBS="$ac_lib $ac_save_LIBS"
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6375 `cat $LEX_OUTPUT_ROOT.c`
6377 if ac_fn_c_try_link "$LINENO"; then :
6378 ac_cv_lib_lex=$ac_lib
6380 rm -f core conftest.err conftest.$ac_objext \
6381 conftest$ac_exeext conftest.$ac_ext
6382 test "$ac_cv_lib_lex" != 'none needed' && break
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6388 $as_echo "$ac_cv_lib_lex" >&6; }
6389 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6394 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6395 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6396 $as_echo_n "(cached) " >&6
6398 # POSIX says lex can declare yytext either as a pointer or an array; the
6399 # default is implementation-dependent. Figure out which it is, since
6400 # not all implementations provide the %pointer and %array declarations.
6401 ac_cv_prog_lex_yytext_pointer=no
6403 LIBS="$LEXLIB $ac_save_LIBS"
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6407 #define YYTEXT_POINTER 1
6408 `cat $LEX_OUTPUT_ROOT.c`
6410 if ac_fn_c_try_link "$LINENO"; then :
6411 ac_cv_prog_lex_yytext_pointer=yes
6413 rm -f core conftest.err conftest.$ac_objext \
6414 conftest$ac_exeext conftest.$ac_ext
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6419 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6420 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6422 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6425 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6430 $as_echo_n "checking for yylex_destroy... " >&6; }
6431 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6433 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6436 $as_echo "yes" >&6; }
6437 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }; fi
6440 for ac_prog in 'bison -y' byacc
6442 # Extract the first word of "$ac_prog", so it can be a program name with args.
6443 set dummy $ac_prog; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if ${ac_cv_prog_YACC+:} false; then :
6447 $as_echo_n "(cached) " >&6
6449 if test -n "$YACC"; then
6450 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459 ac_cv_prog_YACC="$ac_prog"
6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 YACC=$ac_cv_prog_YACC
6470 if test -n "$YACC"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6472 $as_echo "$YACC" >&6; }
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6479 test -n "$YACC" && break
6481 test -n "$YACC" || YACC="yacc"
6483 # Extract the first word of "doxygen", so it can be a program name with args.
6484 set dummy doxygen; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_doxygen+:} false; then :
6488 $as_echo_n "(cached) " >&6
6490 if test -n "$doxygen"; then
6491 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500 ac_cv_prog_doxygen="doxygen"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 doxygen=$ac_cv_prog_doxygen
6511 if test -n "$doxygen"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6513 $as_echo "$doxygen" >&6; }
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6520 if test -n "$ac_tool_prefix"; then
6521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6522 set dummy ${ac_tool_prefix}strip; ac_word=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if ${ac_cv_prog_STRIP+:} false; then :
6526 $as_echo_n "(cached) " >&6
6528 if test -n "$STRIP"; then
6529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 STRIP=$ac_cv_prog_STRIP
6549 if test -n "$STRIP"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6551 $as_echo "$STRIP" >&6; }
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6559 if test -z "$ac_cv_prog_STRIP"; then
6561 # Extract the first word of "strip", so it can be a program name with args.
6562 set dummy strip; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6566 $as_echo_n "(cached) " >&6
6568 if test -n "$ac_ct_STRIP"; then
6569 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6578 ac_cv_prog_ac_ct_STRIP="strip"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6589 if test -n "$ac_ct_STRIP"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6591 $as_echo "$ac_ct_STRIP" >&6; }
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6597 if test "x$ac_ct_STRIP" = x; then
6600 case $cross_compiling:$ac_tool_warned in
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6604 ac_tool_warned=yes ;;
6609 STRIP="$ac_cv_prog_STRIP"
6613 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6614 if test -f "$ac_dir/install-sh"; then
6616 ac_install_sh="$ac_aux_dir/install-sh -c"
6618 elif test -f "$ac_dir/install.sh"; then
6620 ac_install_sh="$ac_aux_dir/install.sh -c"
6622 elif test -f "$ac_dir/shtool"; then
6624 ac_install_sh="$ac_aux_dir/shtool install -c"
6628 if test -z "$ac_aux_dir"; then
6629 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6632 # These three variables are undocumented and unsupported,
6633 # and are intended to be withdrawn in a future Autoconf release.
6634 # They can cause serious problems if a builder's source tree is in a directory
6635 # whose full name contains unusual characters.
6636 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6637 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6638 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6641 # Make sure we can run config.sub.
6642 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6643 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6646 $as_echo_n "checking build system type... " >&6; }
6647 if ${ac_cv_build+:} false; then :
6648 $as_echo_n "(cached) " >&6
6650 ac_build_alias=$build_alias
6651 test "x$ac_build_alias" = x &&
6652 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6653 test "x$ac_build_alias" = x &&
6654 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6655 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6656 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6660 $as_echo "$ac_cv_build" >&6; }
6661 case $ac_cv_build in
6663 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6666 ac_save_IFS=$IFS; IFS='-'
6672 # Remember, the first character of IFS is used to create $*,
6673 # except with old shells:
6676 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6680 $as_echo_n "checking host system type... " >&6; }
6681 if ${ac_cv_host+:} false; then :
6682 $as_echo_n "(cached) " >&6
6684 if test "x$host_alias" = x; then
6685 ac_cv_host=$ac_cv_build
6687 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6688 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6693 $as_echo "$ac_cv_host" >&6; }
6696 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6699 ac_save_IFS=$IFS; IFS='-'
6705 # Remember, the first character of IFS is used to create $*,
6706 # except with old shells:
6709 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6713 # skip these tests, we do not need them.
6722 # always use ./libtool unless override from commandline (libtool=mylibtool)
6723 if test -z "$libtool"; then
6727 # avoid libtool max commandline length test on systems that fork slowly.
6729 if echo "$host_os" | grep "sunos4" >/dev/null; then
6730 lt_cv_sys_max_cmd_len=32750;
6732 if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}ar; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_path_AR+:} false; then :
6738 $as_echo_n "(cached) " >&6
6742 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 if test -n "$AR"; then
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6766 $as_echo "$AR" >&6; }
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6774 if test -z "$ac_cv_path_AR"; then
6776 # Extract the first word of "ar", so it can be a program name with args.
6777 set dummy ar; ac_word=$2
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779 $as_echo_n "checking for $ac_word... " >&6; }
6780 if ${ac_cv_path_ac_pt_AR+:} false; then :
6781 $as_echo_n "(cached) " >&6
6785 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 ac_pt_AR=$ac_cv_path_ac_pt_AR
6807 if test -n "$ac_pt_AR"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6809 $as_echo "$ac_pt_AR" >&6; }
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6815 if test "x$ac_pt_AR" = x; then
6818 case $cross_compiling:$ac_tool_warned in
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6830 if test $AR = false; then
6831 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6837 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6842 macro_version='2.4.6'
6843 macro_revision='2.4.6'
6857 ltmain=$ac_aux_dir/ltmain.sh
6859 # Backslashify metacharacters that are still active within
6860 # double-quoted strings.
6861 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6863 # Same as above, but do not quote variable references.
6864 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6866 # Sed substitution to delay expansion of an escaped shell variable in a
6867 # double_quote_subst'ed string.
6868 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6870 # Sed substitution to delay expansion of an escaped single quote.
6871 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6873 # Sed substitution to avoid accidental globbing in evaled expressions
6874 no_glob_subst='s/\*/\\\*/g'
6876 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6877 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6878 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6881 $as_echo_n "checking how to print strings... " >&6; }
6882 # Test print first, because it will be a builtin if present.
6883 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6884 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6886 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6889 # Use this function as a fallback that always works.
6890 func_fallback_echo ()
6892 eval 'cat <<_LTECHO_EOF
6896 ECHO='func_fallback_echo'
6899 # func_echo_all arg...
6900 # Invoke $ECHO with all args, space-separated.
6907 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6908 $as_echo "printf" >&6; } ;;
6909 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6910 $as_echo "print -r" >&6; } ;;
6911 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6912 $as_echo "cat" >&6; } ;;
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6929 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6930 if ${ac_cv_path_SED+:} false; then :
6931 $as_echo_n "(cached) " >&6
6933 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6934 for ac_i in 1 2 3 4 5 6 7; do
6935 ac_script="$ac_script$as_nl$ac_script"
6937 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6938 { ac_script=; unset ac_script;}
6939 if test -z "$SED"; then
6940 ac_path_SED_found=false
6941 # Loop through the user's path and test for each of PROGNAME-LIST
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 test -z "$as_dir" && as_dir=.
6947 for ac_prog in sed gsed; do
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6950 as_fn_executable_p "$ac_path_SED" || continue
6951 # Check for GNU ac_path_SED and select it if it is found.
6952 # Check for GNU $ac_path_SED
6953 case `"$ac_path_SED" --version 2>&1` in
6955 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6958 $as_echo_n 0123456789 >"conftest.in"
6961 cat "conftest.in" "conftest.in" >"conftest.tmp"
6962 mv "conftest.tmp" "conftest.in"
6963 cp "conftest.in" "conftest.nl"
6964 $as_echo '' >> "conftest.nl"
6965 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6967 as_fn_arith $ac_count + 1 && ac_count=$as_val
6968 if test $ac_count -gt ${ac_path_SED_max-0}; then
6969 # Best one so far, save it but keep looking for a better one
6970 ac_cv_path_SED="$ac_path_SED"
6971 ac_path_SED_max=$ac_count
6973 # 10*(2^10) chars as input seems more than enough
6974 test $ac_count -gt 10 && break
6976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6979 $ac_path_SED_found && break 3
6984 if test -z "$ac_cv_path_SED"; then
6985 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6993 $as_echo "$ac_cv_path_SED" >&6; }
6994 SED="$ac_cv_path_SED"
6997 test -z "$SED" && SED=sed
6998 Xsed="$SED -e 1s/^X//"
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7011 $as_echo_n "checking for fgrep... " >&6; }
7012 if ${ac_cv_path_FGREP+:} false; then :
7013 $as_echo_n "(cached) " >&6
7015 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7016 then ac_cv_path_FGREP="$GREP -F"
7018 if test -z "$FGREP"; then
7019 ac_path_FGREP_found=false
7020 # Loop through the user's path and test for each of PROGNAME-LIST
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7025 test -z "$as_dir" && as_dir=.
7026 for ac_prog in fgrep; do
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7029 as_fn_executable_p "$ac_path_FGREP" || continue
7030 # Check for GNU ac_path_FGREP and select it if it is found.
7031 # Check for GNU $ac_path_FGREP
7032 case `"$ac_path_FGREP" --version 2>&1` in
7034 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7037 $as_echo_n 0123456789 >"conftest.in"
7040 cat "conftest.in" "conftest.in" >"conftest.tmp"
7041 mv "conftest.tmp" "conftest.in"
7042 cp "conftest.in" "conftest.nl"
7043 $as_echo 'FGREP' >> "conftest.nl"
7044 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7045 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7046 as_fn_arith $ac_count + 1 && ac_count=$as_val
7047 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7048 # Best one so far, save it but keep looking for a better one
7049 ac_cv_path_FGREP="$ac_path_FGREP"
7050 ac_path_FGREP_max=$ac_count
7052 # 10*(2^10) chars as input seems more than enough
7053 test $ac_count -gt 10 && break
7055 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7058 $ac_path_FGREP_found && break 3
7063 if test -z "$ac_cv_path_FGREP"; then
7064 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7067 ac_cv_path_FGREP=$FGREP
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7073 $as_echo "$ac_cv_path_FGREP" >&6; }
7074 FGREP="$ac_cv_path_FGREP"
7077 test -z "$GREP" && GREP=grep
7097 # Check whether --with-gnu-ld was given.
7098 if test "${with_gnu_ld+set}" = set; then :
7099 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7105 if test yes = "$GCC"; then
7106 # Check if gcc -print-prog-name=ld gives a path.
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7108 $as_echo_n "checking for ld used by $CC... " >&6; }
7111 # gcc leaves a trailing carriage return, which upsets mingw
7112 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7114 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7117 # Accept absolute paths.
7119 re_direlt='/[^/][^/]*/\.\./'
7120 # Canonicalize the pathname of ld
7121 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7122 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7123 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7125 test -z "$LD" && LD=$ac_prog
7128 # If it fails, then pretend we aren't using GCC.
7132 # If it is relative, then search for the first ld in PATH.
7136 elif test yes = "$with_gnu_ld"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7138 $as_echo_n "checking for GNU ld... " >&6; }
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7141 $as_echo_n "checking for non-GNU ld... " >&6; }
7143 if ${lt_cv_path_LD+:} false; then :
7144 $as_echo_n "(cached) " >&6
7146 if test -z "$LD"; then
7147 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7148 for ac_dir in $PATH; do
7150 test -z "$ac_dir" && ac_dir=.
7151 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7152 lt_cv_path_LD=$ac_dir/$ac_prog
7153 # Check to see if the program is GNU ld. I'd rather use --version,
7154 # but apparently some variants of GNU ld only accept -v.
7155 # Break only if it was the GNU/non-GNU ld that we prefer.
7156 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7157 *GNU* | *'with BFD'*)
7158 test no != "$with_gnu_ld" && break
7161 test yes != "$with_gnu_ld" && break
7168 lt_cv_path_LD=$LD # Let the user override the test with a path.
7173 if test -n "$LD"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7175 $as_echo "$LD" >&6; }
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 $as_echo "no" >&6; }
7180 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7182 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7183 if ${lt_cv_prog_gnu_ld+:} false; then :
7184 $as_echo_n "(cached) " >&6
7186 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7187 case `$LD -v 2>&1 </dev/null` in
7188 *GNU* | *'with BFD'*)
7189 lt_cv_prog_gnu_ld=yes
7192 lt_cv_prog_gnu_ld=no
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7197 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7198 with_gnu_ld=$lt_cv_prog_gnu_ld
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7209 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7210 if ${lt_cv_path_NM+:} false; then :
7211 $as_echo_n "(cached) " >&6
7213 if test -n "$NM"; then
7214 # Let the user override the test.
7217 lt_nm_to_check=${ac_tool_prefix}nm
7218 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7219 lt_nm_to_check="$lt_nm_to_check nm"
7221 for lt_tmp_nm in $lt_nm_to_check; do
7222 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7223 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7225 test -z "$ac_dir" && ac_dir=.
7226 tmp_nm=$ac_dir/$lt_tmp_nm
7227 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7228 # Check to see if the nm accepts a BSD-compat flag.
7229 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7230 # nm: unknown option "B" ignored
7231 # Tru64's nm complains that /dev/null is an invalid object file
7232 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7234 mingw*) lt_bad_file=conftest.nm/nofile ;;
7235 *) lt_bad_file=/dev/null ;;
7237 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7238 *$lt_bad_file* | *'Invalid file or object type'*)
7239 lt_cv_path_NM="$tmp_nm -B"
7243 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7245 lt_cv_path_NM="$tmp_nm -p"
7249 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7250 continue # so that we can try to find one that supports BSD flags
7259 : ${lt_cv_path_NM=no}
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7263 $as_echo "$lt_cv_path_NM" >&6; }
7264 if test no != "$lt_cv_path_NM"; then
7267 # Didn't find any BSD compatible name lister, look for dumpbin.
7268 if test -n "$DUMPBIN"; then :
7269 # Let the user override the test.
7271 if test -n "$ac_tool_prefix"; then
7272 for ac_prog in dumpbin "link -dump"
7274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277 $as_echo_n "checking for $ac_word... " >&6; }
7278 if ${ac_cv_prog_DUMPBIN+:} false; then :
7279 $as_echo_n "(cached) " >&6
7281 if test -n "$DUMPBIN"; then
7282 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 test -z "$as_dir" && as_dir=.
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7291 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 DUMPBIN=$ac_cv_prog_DUMPBIN
7302 if test -n "$DUMPBIN"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7304 $as_echo "$DUMPBIN" >&6; }
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7311 test -n "$DUMPBIN" && break
7314 if test -z "$DUMPBIN"; then
7315 ac_ct_DUMPBIN=$DUMPBIN
7316 for ac_prog in dumpbin "link -dump"
7318 # Extract the first word of "$ac_prog", so it can be a program name with args.
7319 set dummy $ac_prog; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7323 $as_echo_n "(cached) " >&6
7325 if test -n "$ac_ct_DUMPBIN"; then
7326 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7346 if test -n "$ac_ct_DUMPBIN"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7348 $as_echo "$ac_ct_DUMPBIN" >&6; }
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7355 test -n "$ac_ct_DUMPBIN" && break
7358 if test "x$ac_ct_DUMPBIN" = x; then
7361 case $cross_compiling:$ac_tool_warned in
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7365 ac_tool_warned=yes ;;
7367 DUMPBIN=$ac_ct_DUMPBIN
7371 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7373 DUMPBIN="$DUMPBIN -symbols -headers"
7381 if test : != "$DUMPBIN"; then
7385 test -z "$NM" && NM=nm
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7393 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7394 if ${lt_cv_nm_interface+:} false; then :
7395 $as_echo_n "(cached) " >&6
7397 lt_cv_nm_interface="BSD nm"
7398 echo "int some_variable = 0;" > conftest.$ac_ext
7399 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7400 (eval "$ac_compile" 2>conftest.err)
7401 cat conftest.err >&5
7402 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7403 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7404 cat conftest.err >&5
7405 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7406 cat conftest.out >&5
7407 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7408 lt_cv_nm_interface="MS dumpbin"
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7413 $as_echo "$lt_cv_nm_interface" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7416 $as_echo_n "checking whether ln -s works... " >&6; }
7418 if test "$LN_S" = "ln -s"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7420 $as_echo "yes" >&6; }
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7423 $as_echo "no, using $LN_S" >&6; }
7426 # find the maximum length of command line arguments
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7428 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7429 if ${lt_cv_sys_max_cmd_len+:} false; then :
7430 $as_echo_n "(cached) " >&6
7437 # On DJGPP, this test can blow up pretty badly due to problems in libc
7438 # (any single argument exceeding 2000 bytes causes a buffer overrun
7439 # during glob expansion). Even if it were fixed, the result of this
7440 # check would be larger than it should be.
7441 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7445 # Under GNU Hurd, this test is not required because there is
7446 # no limit to the length of command line arguments.
7447 # Libtool will interpret -1 as no limit whatsoever
7448 lt_cv_sys_max_cmd_len=-1;
7451 cygwin* | mingw* | cegcc*)
7452 # On Win9x/ME, this test blows up -- it succeeds, but takes
7453 # about 5 minutes as the teststring grows exponentially.
7454 # Worse, since 9x/ME are not pre-emptively multitasking,
7455 # you end up with a "frozen" computer, even though with patience
7456 # the test eventually succeeds (with a max line length of 256k).
7457 # Instead, let's just punt: use the minimum linelength reported by
7458 # all of the supported platforms: 8192 (on NT/2K/XP).
7459 lt_cv_sys_max_cmd_len=8192;
7463 # On MiNT this can take a long time and run out of memory.
7464 lt_cv_sys_max_cmd_len=8192;
7468 # On AmigaOS with pdksh, this test takes hours, literally.
7469 # So we just punt and use a minimum line length of 8192.
7470 lt_cv_sys_max_cmd_len=8192;
7473 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7474 # This has been around since 386BSD, at least. Likely further.
7475 if test -x /sbin/sysctl; then
7476 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7477 elif test -x /usr/sbin/sysctl; then
7478 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7480 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7482 # And add a safety zone
7483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7488 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7489 lt_cv_sys_max_cmd_len=196608
7493 # The test takes a long time on OS/2.
7494 lt_cv_sys_max_cmd_len=8192
7498 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7499 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7500 # nice to cause kernel panics so lets avoid the loop below.
7501 # First set a reasonable default.
7502 lt_cv_sys_max_cmd_len=16384
7504 if test -x /sbin/sysconfig; then
7505 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7506 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7511 lt_cv_sys_max_cmd_len=102400
7513 sysv5* | sco5v6* | sysv4.2uw2*)
7514 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7515 if test -n "$kargmax"; then
7516 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7518 lt_cv_sys_max_cmd_len=32768
7522 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7523 if test -n "$lt_cv_sys_max_cmd_len" && \
7524 test undefined != "$lt_cv_sys_max_cmd_len"; then
7525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7528 # Make teststring a little bigger before we do anything with it.
7529 # a 1K string should be a reasonable start.
7530 for i in 1 2 3 4 5 6 7 8; do
7531 teststring=$teststring$teststring
7533 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7534 # If test is not a shell built-in, we'll probably end up computing a
7535 # maximum length that is only half of the actual maximum length, but
7537 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7538 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7539 test 17 != "$i" # 1/2 MB should be enough
7542 teststring=$teststring$teststring
7544 # Only check the string length outside the loop.
7545 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7547 # Add a significant safety factor because C++ compilers can tack on
7548 # massive amounts of additional arguments before passing them to the
7549 # linker. It appears as though 1/2 is a usable value.
7550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7557 if test -n "$lt_cv_sys_max_cmd_len"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7559 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7562 $as_echo "none" >&6; }
7564 max_cmd_len=$lt_cv_sys_max_cmd_len
7575 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7585 # test EBCDIC or ASCII
7586 case `echo X|tr X '\101'` in
7587 A) # ASCII based system
7588 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7589 lt_SP2NL='tr \040 \012'
7590 lt_NL2SP='tr \015\012 \040\040'
7592 *) # EBCDIC based system
7593 lt_SP2NL='tr \100 \n'
7594 lt_NL2SP='tr \r\n \100\100'
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7607 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7608 if ${lt_cv_to_host_file_cmd+:} false; then :
7609 $as_echo_n "(cached) " >&6
7614 *-*-mingw* ) # actually msys
7615 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7618 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7620 * ) # otherwise, assume *nix
7621 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7627 *-*-mingw* ) # actually msys
7628 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7631 lt_cv_to_host_file_cmd=func_convert_file_noop
7633 * ) # otherwise, assume *nix
7634 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7638 * ) # unhandled hosts (and "normal" native builds)
7639 lt_cv_to_host_file_cmd=func_convert_file_noop
7645 to_host_file_cmd=$lt_cv_to_host_file_cmd
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7647 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7654 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7655 if ${lt_cv_to_tool_file_cmd+:} false; then :
7656 $as_echo_n "(cached) " >&6
7658 #assume ordinary cross tools, or native build.
7659 lt_cv_to_tool_file_cmd=func_convert_file_noop
7663 *-*-mingw* ) # actually msys
7664 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7672 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7674 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7681 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7682 if ${lt_cv_ld_reload_flag+:} false; then :
7683 $as_echo_n "(cached) " >&6
7685 lt_cv_ld_reload_flag='-r'
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7688 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7689 reload_flag=$lt_cv_ld_reload_flag
7690 case $reload_flag in
7692 *) reload_flag=" $reload_flag" ;;
7694 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7696 cygwin* | mingw* | pw32* | cegcc*)
7697 if test yes != "$GCC"; then
7702 if test yes = "$GCC"; then
7703 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7705 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7718 if test -n "$ac_tool_prefix"; then
7719 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7720 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if ${ac_cv_prog_OBJDUMP+:} false; then :
7724 $as_echo_n "(cached) " >&6
7726 if test -n "$OBJDUMP"; then
7727 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 OBJDUMP=$ac_cv_prog_OBJDUMP
7747 if test -n "$OBJDUMP"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7749 $as_echo "$OBJDUMP" >&6; }
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7757 if test -z "$ac_cv_prog_OBJDUMP"; then
7758 ac_ct_OBJDUMP=$OBJDUMP
7759 # Extract the first word of "objdump", so it can be a program name with args.
7760 set dummy objdump; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7764 $as_echo_n "(cached) " >&6
7766 if test -n "$ac_ct_OBJDUMP"; then
7767 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7787 if test -n "$ac_ct_OBJDUMP"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7789 $as_echo "$ac_ct_OBJDUMP" >&6; }
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7795 if test "x$ac_ct_OBJDUMP" = x; then
7798 case $cross_compiling:$ac_tool_warned in
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7802 ac_tool_warned=yes ;;
7804 OBJDUMP=$ac_ct_OBJDUMP
7807 OBJDUMP="$ac_cv_prog_OBJDUMP"
7810 test -z "$OBJDUMP" && OBJDUMP=objdump
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7821 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7822 if ${lt_cv_deplibs_check_method+:} false; then :
7823 $as_echo_n "(cached) " >&6
7825 lt_cv_file_magic_cmd='$MAGIC_CMD'
7826 lt_cv_file_magic_test_file=
7827 lt_cv_deplibs_check_method='unknown'
7828 # Need to set the preceding variable on all platforms that support
7829 # interlibrary dependencies.
7830 # 'none' -- dependencies not supported.
7831 # 'unknown' -- same as none, but documents that we really don't know.
7832 # 'pass_all' -- all dependencies passed with no checks.
7833 # 'test_compile' -- check by making test program.
7834 # 'file_magic [[regex]]' -- check by looking for files in library path
7835 # that responds to the $file_magic_cmd with a given extended regex.
7836 # If you have 'file' or equivalent on your system and you're not sure
7837 # whether 'pass_all' will *always* work, you probably want this one.
7841 lt_cv_deplibs_check_method=pass_all
7845 lt_cv_deplibs_check_method=pass_all
7849 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7850 lt_cv_file_magic_cmd='/usr/bin/file -L'
7851 lt_cv_file_magic_test_file=/shlib/libc.so
7855 # func_win32_libid is a shell function defined in ltmain.sh
7856 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7857 lt_cv_file_magic_cmd='func_win32_libid'
7861 # Base MSYS/MinGW do not provide the 'file' command needed by
7862 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7863 # unless we find 'file', for example because we are cross-compiling.
7864 if ( file / ) >/dev/null 2>&1; then
7865 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7866 lt_cv_file_magic_cmd='func_win32_libid'
7868 # Keep this pattern in sync with the one in func_win32_libid.
7869 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7870 lt_cv_file_magic_cmd='$OBJDUMP -f'
7875 # use the weaker test based on 'objdump'. See mingw*.
7876 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7877 lt_cv_file_magic_cmd='$OBJDUMP -f'
7880 darwin* | rhapsody*)
7881 lt_cv_deplibs_check_method=pass_all
7884 freebsd* | dragonfly*)
7885 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7888 # Not sure whether the presence of OpenBSD here was a mistake.
7889 # Let's accept both of them until this is cleared up.
7890 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7891 lt_cv_file_magic_cmd=/usr/bin/file
7892 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7896 lt_cv_deplibs_check_method=pass_all
7901 lt_cv_deplibs_check_method=pass_all
7904 hpux10.20* | hpux11*)
7905 lt_cv_file_magic_cmd=/usr/bin/file
7908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7909 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7912 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7913 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7916 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7917 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7923 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7927 irix5* | irix6* | nonstopux*)
7929 *-32|*"-32 ") libmagic=32-bit;;
7930 *-n32|*"-n32 ") libmagic=N32;;
7931 *-64|*"-64 ") libmagic=64-bit;;
7932 *) libmagic=never-match;;
7934 lt_cv_deplibs_check_method=pass_all
7937 # This must be glibc/ELF.
7938 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7939 lt_cv_deplibs_check_method=pass_all
7943 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7952 lt_cv_file_magic_cmd=/usr/bin/file
7953 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7957 lt_cv_deplibs_check_method=pass_all
7961 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7962 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7968 osf3* | osf4* | osf5*)
7969 lt_cv_deplibs_check_method=pass_all
7973 lt_cv_deplibs_check_method=pass_all
7977 lt_cv_deplibs_check_method=pass_all
7980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7981 lt_cv_deplibs_check_method=pass_all
7985 case $host_vendor in
7987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7988 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7991 lt_cv_deplibs_check_method=pass_all
7994 lt_cv_file_magic_cmd='/bin/file'
7995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7998 lt_cv_file_magic_cmd='/bin/file'
7999 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8000 lt_cv_file_magic_test_file=/lib/libc.so
8003 lt_cv_deplibs_check_method=pass_all
8006 lt_cv_deplibs_check_method=pass_all
8012 lt_cv_deplibs_check_method=pass_all
8015 lt_cv_deplibs_check_method=pass_all
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8021 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8025 if test "$build" = "$host"; then
8028 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8031 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8037 file_magic_cmd=$lt_cv_file_magic_cmd
8038 deplibs_check_method=$lt_cv_deplibs_check_method
8039 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8062 if test -n "$ac_tool_prefix"; then
8063 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8064 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_prog_DLLTOOL+:} false; then :
8068 $as_echo_n "(cached) " >&6
8070 if test -n "$DLLTOOL"; then
8071 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 DLLTOOL=$ac_cv_prog_DLLTOOL
8091 if test -n "$DLLTOOL"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8093 $as_echo "$DLLTOOL" >&6; }
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8101 if test -z "$ac_cv_prog_DLLTOOL"; then
8102 ac_ct_DLLTOOL=$DLLTOOL
8103 # Extract the first word of "dlltool", so it can be a program name with args.
8104 set dummy dlltool; ac_word=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8108 $as_echo_n "(cached) " >&6
8110 if test -n "$ac_ct_DLLTOOL"; then
8111 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8131 if test -n "$ac_ct_DLLTOOL"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8133 $as_echo "$ac_ct_DLLTOOL" >&6; }
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8139 if test "x$ac_ct_DLLTOOL" = x; then
8142 case $cross_compiling:$ac_tool_warned in
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8146 ac_tool_warned=yes ;;
8148 DLLTOOL=$ac_ct_DLLTOOL
8151 DLLTOOL="$ac_cv_prog_DLLTOOL"
8154 test -z "$DLLTOOL" && DLLTOOL=dlltool
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8166 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8167 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8168 $as_echo_n "(cached) " >&6
8170 lt_cv_sharedlib_from_linklib_cmd='unknown'
8173 cygwin* | mingw* | pw32* | cegcc*)
8174 # two different shell functions defined in ltmain.sh;
8175 # decide which one to use based on capabilities of $DLLTOOL
8176 case `$DLLTOOL --help 2>&1` in
8177 *--identify-strict*)
8178 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8181 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8186 # fallback: assume linklib IS sharedlib
8187 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8193 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8194 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8195 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8203 if test -n "$ac_tool_prefix"; then
8206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209 $as_echo_n "checking for $ac_word... " >&6; }
8210 if ${ac_cv_prog_AR+:} false; then :
8211 $as_echo_n "(cached) " >&6
8213 if test -n "$AR"; then
8214 ac_cv_prog_AR="$AR" # Let the user override the test.
8216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 test -z "$as_dir" && as_dir=.
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8223 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 if test -n "$AR"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8236 $as_echo "$AR" >&6; }
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8243 test -n "$AR" && break
8246 if test -z "$AR"; then
8250 # Extract the first word of "$ac_prog", so it can be a program name with args.
8251 set dummy $ac_prog; ac_word=$2
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253 $as_echo_n "checking for $ac_word... " >&6; }
8254 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8255 $as_echo_n "(cached) " >&6
8257 if test -n "$ac_ct_AR"; then
8258 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8267 ac_cv_prog_ac_ct_AR="$ac_prog"
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8278 if test -n "$ac_ct_AR"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8280 $as_echo "$ac_ct_AR" >&6; }
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8287 test -n "$ac_ct_AR" && break
8290 if test "x$ac_ct_AR" = x; then
8293 case $cross_compiling:$ac_tool_warned in
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8297 ac_tool_warned=yes ;;
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8317 $as_echo_n "checking for archiver @FILE support... " >&6; }
8318 if ${lt_cv_ar_at_file+:} false; then :
8319 $as_echo_n "(cached) " >&6
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8333 if ac_fn_c_try_compile "$LINENO"; then :
8334 echo conftest.$ac_objext > conftest.lst
8335 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8337 (eval $lt_ar_try) 2>&5
8339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8340 test $ac_status = 0; }
8341 if test 0 -eq "$ac_status"; then
8342 # Ensure the archiver fails upon bogus file names.
8343 rm -f conftest.$ac_objext libconftest.a
8344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8345 (eval $lt_ar_try) 2>&5
8347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8348 test $ac_status = 0; }
8349 if test 0 -ne "$ac_status"; then
8353 rm -f conftest.* libconftest.a
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8360 $as_echo "$lt_cv_ar_at_file" >&6; }
8362 if test no = "$lt_cv_ar_at_file"; then
8365 archiver_list_spec=$lt_cv_ar_at_file
8374 if test -n "$ac_tool_prefix"; then
8375 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8376 set dummy ${ac_tool_prefix}strip; ac_word=$2
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378 $as_echo_n "checking for $ac_word... " >&6; }
8379 if ${ac_cv_prog_STRIP+:} false; then :
8380 $as_echo_n "(cached) " >&6
8382 if test -n "$STRIP"; then
8383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 test -z "$as_dir" && as_dir=.
8390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8392 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 STRIP=$ac_cv_prog_STRIP
8403 if test -n "$STRIP"; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8405 $as_echo "$STRIP" >&6; }
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo "no" >&6; }
8413 if test -z "$ac_cv_prog_STRIP"; then
8415 # Extract the first word of "strip", so it can be a program name with args.
8416 set dummy strip; ac_word=$2
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418 $as_echo_n "checking for $ac_word... " >&6; }
8419 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8420 $as_echo_n "(cached) " >&6
8422 if test -n "$ac_ct_STRIP"; then
8423 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429 test -z "$as_dir" && as_dir=.
8430 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8432 ac_cv_prog_ac_ct_STRIP="strip"
8433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8443 if test -n "$ac_ct_STRIP"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8445 $as_echo "$ac_ct_STRIP" >&6; }
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448 $as_echo "no" >&6; }
8451 if test "x$ac_ct_STRIP" = x; then
8454 case $cross_compiling:$ac_tool_warned in
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8458 ac_tool_warned=yes ;;
8463 STRIP="$ac_cv_prog_STRIP"
8466 test -z "$STRIP" && STRIP=:
8473 if test -n "$ac_tool_prefix"; then
8474 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477 $as_echo_n "checking for $ac_word... " >&6; }
8478 if ${ac_cv_prog_RANLIB+:} false; then :
8479 $as_echo_n "(cached) " >&6
8481 if test -n "$RANLIB"; then
8482 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8491 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8501 RANLIB=$ac_cv_prog_RANLIB
8502 if test -n "$RANLIB"; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8504 $as_echo "$RANLIB" >&6; }
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 $as_echo "no" >&6; }
8512 if test -z "$ac_cv_prog_RANLIB"; then
8513 ac_ct_RANLIB=$RANLIB
8514 # Extract the first word of "ranlib", so it can be a program name with args.
8515 set dummy ranlib; ac_word=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8519 $as_echo_n "(cached) " >&6
8521 if test -n "$ac_ct_RANLIB"; then
8522 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8531 ac_cv_prog_ac_ct_RANLIB="ranlib"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8542 if test -n "$ac_ct_RANLIB"; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8544 $as_echo "$ac_ct_RANLIB" >&6; }
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 $as_echo "no" >&6; }
8550 if test "x$ac_ct_RANLIB" = x; then
8553 case $cross_compiling:$ac_tool_warned in
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8557 ac_tool_warned=yes ;;
8559 RANLIB=$ac_ct_RANLIB
8562 RANLIB="$ac_cv_prog_RANLIB"
8565 test -z "$RANLIB" && RANLIB=:
8572 # Determine commands to create old-style static archives.
8573 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8574 old_postinstall_cmds='chmod 644 $oldlib'
8575 old_postuninstall_cmds=
8577 if test -n "$RANLIB"; then
8580 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8583 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8586 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8591 lock_old_archive_extraction=yes ;;
8593 lock_old_archive_extraction=no ;;
8616 for ac_prog in gawk mawk nawk awk
8618 # Extract the first word of "$ac_prog", so it can be a program name with args.
8619 set dummy $ac_prog; ac_word=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if ${ac_cv_prog_AWK+:} false; then :
8623 $as_echo_n "(cached) " >&6
8625 if test -n "$AWK"; then
8626 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632 test -z "$as_dir" && as_dir=.
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8635 ac_cv_prog_AWK="$ac_prog"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8646 if test -n "$AWK"; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8648 $as_echo "$AWK" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8655 test -n "$AWK" && break
8676 # If no C compiler was specified, use CC.
8679 # If no C compiler flags were specified, use CFLAGS.
8680 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8682 # Allow CC to be a program name with arguments.
8686 # Check for command to grab the raw symbol name followed by C symbol from nm.
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8688 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8689 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8690 $as_echo_n "(cached) " >&6
8693 # These are sane defaults that work on at least a few old systems.
8694 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8696 # Character class describing NM global symbol codes.
8697 symcode='[BCDEGRST]'
8699 # Regexp to match symbols that can be accessed directly from C.
8700 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8702 # Define system-specific variables.
8707 cygwin* | mingw* | pw32* | cegcc*)
8708 symcode='[ABCDGISTW]'
8711 if test ia64 = "$host_cpu"; then
8712 symcode='[ABCDEGRST]'
8716 symcode='[BCDEGRST]'
8719 symcode='[BCDEGQRST]'
8730 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8738 # If we're using GNU nm, then use its standard symbol codes.
8739 case `$NM -V 2>&1` in
8740 *GNU* | *'with BFD'*)
8741 symcode='[ABCDGIRSTW]' ;;
8744 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8745 # Gets list of data symbols to import.
8746 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8747 # Adjust the below global symbol transforms to fixup imported variables.
8748 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8749 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8750 lt_c_name_lib_hook="\
8751 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8752 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8754 # Disable hooks by default.
8755 lt_cv_sys_global_symbol_to_import=
8761 # Transform an extracted symbol line into a proper C declaration.
8762 # Some systems (esp. on ia64) link data and code symbols differently,
8763 # so use this general approach.
8764 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8766 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8767 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8769 # Transform an extracted symbol line into symbol name and symbol address
8770 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8772 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8773 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8775 # Transform an extracted symbol line into symbol name with lib prefix and
8777 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8778 $lt_c_name_lib_hook\
8779 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8780 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8781 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8783 # Handle CRLF in mingw tool chain
8787 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8791 # Try without a prefix underscore, then with it.
8792 for ac_symprfx in "" "_"; do
8794 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8795 symxfrm="\\1 $ac_symprfx\\2 \\2"
8797 # Write the raw and C identifiers.
8798 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8799 # Fake it for dumpbin and say T for any non-static function,
8800 # D for any global variable and I for any imported variable.
8801 # Also find C++ and __fastcall symbols from MSVC++,
8802 # which start with @ or ?.
8803 lt_cv_sys_global_symbol_pipe="$AWK '"\
8804 " {last_section=section; section=\$ 3};"\
8805 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8806 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8807 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8808 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8809 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8810 " \$ 0!~/External *\|/{next};"\
8811 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8812 " {if(hide[section]) next};"\
8813 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8814 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8815 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8816 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8817 " ' prfx=^$ac_symprfx"
8819 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8821 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8823 # Check to see that the pipe works correctly.
8827 cat > conftest.$ac_ext <<_LT_EOF
8832 void nm_test_func(void);
8833 void nm_test_func(void){}
8837 int main(){nm_test_var='a';nm_test_func();return(0);}
8840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8841 (eval $ac_compile) 2>&5
8843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8844 test $ac_status = 0; }; then
8845 # Now try to grab the symbols.
8847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8848 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8851 test $ac_status = 0; } && test -s "$nlist"; then
8852 # Try sorting and uniquifying the output.
8853 if sort "$nlist" | uniq > "$nlist"T; then
8854 mv -f "$nlist"T "$nlist"
8859 # Make sure that we snagged all the symbols we need.
8860 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8861 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8862 cat <<_LT_EOF > conftest.$ac_ext
8863 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8864 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8865 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8866 relocations are performed -- see ld's documentation on pseudo-relocs. */
8867 # define LT_DLSYM_CONST
8868 #elif defined __osf__
8869 /* This system does not cope well with relocations in const data. */
8870 # define LT_DLSYM_CONST
8872 # define LT_DLSYM_CONST const
8880 # Now generate the symbol file.
8881 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8883 cat <<_LT_EOF >> conftest.$ac_ext
8885 /* The mapping between symbol names and symbols. */
8886 LT_DLSYM_CONST struct {
8890 lt__PROGRAM__LTX_preloaded_symbols[] =
8892 { "@PROGRAM@", (void *) 0 },
8894 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8895 cat <<\_LT_EOF >> conftest.$ac_ext
8899 /* This works around a problem in FreeBSD linker */
8900 #ifdef FREEBSD_WORKAROUND
8901 static const void *lt_preloaded_setup() {
8902 return lt__PROGRAM__LTX_preloaded_symbols;
8910 # Now try linking the two files.
8911 mv conftest.$ac_objext conftstm.$ac_objext
8912 lt_globsym_save_LIBS=$LIBS
8913 lt_globsym_save_CFLAGS=$CFLAGS
8914 LIBS=conftstm.$ac_objext
8915 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8917 (eval $ac_link) 2>&5
8919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8920 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8923 LIBS=$lt_globsym_save_LIBS
8924 CFLAGS=$lt_globsym_save_CFLAGS
8926 echo "cannot find nm_test_func in $nlist" >&5
8929 echo "cannot find nm_test_var in $nlist" >&5
8932 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8935 echo "$progname: failed program was:" >&5
8936 cat conftest.$ac_ext >&5
8938 rm -rf conftest* conftst*
8940 # Do not use the global_symbol_pipe unless it works.
8941 if test yes = "$pipe_works"; then
8944 lt_cv_sys_global_symbol_pipe=
8950 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8951 lt_cv_sys_global_symbol_to_cdecl=
8953 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8955 $as_echo "failed" >&6; }
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8958 $as_echo "ok" >&6; }
8961 # Response file support.
8962 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8963 nm_file_list_spec='@'
8964 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8965 nm_file_list_spec='@'
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9005 $as_echo_n "checking for sysroot... " >&6; }
9007 # Check whether --with-sysroot was given.
9008 if test "${with_sysroot+set}" = set; then :
9009 withval=$with_sysroot;
9016 case $with_sysroot in #(
9018 if test yes = "$GCC"; then
9019 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9023 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9029 $as_echo "$with_sysroot" >&6; }
9030 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9035 $as_echo "${lt_sysroot:-no}" >&6; }
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9042 $as_echo_n "checking for a working dd... " >&6; }
9043 if ${ac_cv_path_lt_DD+:} false; then :
9044 $as_echo_n "(cached) " >&6
9046 printf 0123456789abcdef0123456789abcdef >conftest.i
9047 cat conftest.i conftest.i >conftest2.i
9049 if test -z "$lt_DD"; then
9050 ac_path_lt_DD_found=false
9051 # Loop through the user's path and test for each of PROGNAME-LIST
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 test -z "$as_dir" && as_dir=.
9057 for ac_prog in dd; do
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9060 as_fn_executable_p "$ac_path_lt_DD" || continue
9061 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9062 cmp -s conftest.i conftest.out \
9063 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9065 $ac_path_lt_DD_found && break 3
9070 if test -z "$ac_cv_path_lt_DD"; then
9074 ac_cv_path_lt_DD=$lt_DD
9077 rm -f conftest.i conftest2.i conftest.out
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9080 $as_echo "$ac_cv_path_lt_DD" >&6; }
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9084 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9085 if ${lt_cv_truncate_bin+:} false; then :
9086 $as_echo_n "(cached) " >&6
9088 printf 0123456789abcdef0123456789abcdef >conftest.i
9089 cat conftest.i conftest.i >conftest2.i
9091 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9092 cmp -s conftest.i conftest.out \
9093 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9095 rm -f conftest.i conftest2.i conftest.out
9096 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9099 $as_echo "$lt_cv_truncate_bin" >&6; }
9107 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9110 for cc_temp in $*""; do
9112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9118 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9121 # Check whether --enable-libtool-lock was given.
9122 if test "${enable_libtool_lock+set}" = set; then :
9123 enableval=$enable_libtool_lock;
9126 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9128 # Some flags need to be propagated to the compiler or linker for good
9132 # Find out what ABI is being produced by ac_compile, and set mode
9133 # options accordingly.
9134 echo 'int i;' > conftest.$ac_ext
9135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9136 (eval $ac_compile) 2>&5
9138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9139 test $ac_status = 0; }; then
9140 case `/usr/bin/file conftest.$ac_objext` in
9152 # Find out what ABI is being produced by ac_compile, and set linker
9153 # options accordingly.
9154 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9156 (eval $ac_compile) 2>&5
9158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9159 test $ac_status = 0; }; then
9160 if test yes = "$lt_cv_prog_gnu_ld"; then
9161 case `/usr/bin/file conftest.$ac_objext` in
9163 LD="${LD-ld} -melf32bsmip"
9166 LD="${LD-ld} -melf32bmipn32"
9169 LD="${LD-ld} -melf64bmip"
9173 case `/usr/bin/file conftest.$ac_objext` in
9190 # Find out what ABI is being produced by ac_compile, and set linker
9191 # options accordingly.
9192 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9194 (eval $ac_compile) 2>&5
9196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9197 test $ac_status = 0; }; then
9199 case `/usr/bin/file conftest.$ac_objext` in
9207 case `/usr/bin/file conftest.$ac_objext` in
9209 emul="${emul}btsmip"
9212 emul="${emul}ltsmip"
9215 case `/usr/bin/file conftest.$ac_objext` in
9220 LD="${LD-ld} -m $emul"
9225 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9226 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9227 # Find out what ABI is being produced by ac_compile, and set linker
9228 # options accordingly. Note that the listed cases only cover the
9229 # situations where additional linker options are needed (such as when
9230 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9231 # vice versa); the common cases where no linker options are needed do
9232 # not appear in the list.
9233 echo 'int i;' > conftest.$ac_ext
9234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9235 (eval $ac_compile) 2>&5
9237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9238 test $ac_status = 0; }; then
9239 case `/usr/bin/file conftest.o` in
9242 x86_64-*kfreebsd*-gnu)
9243 LD="${LD-ld} -m elf_i386_fbsd"
9246 case `/usr/bin/file conftest.o` in
9248 LD="${LD-ld} -m elf32_x86_64"
9251 LD="${LD-ld} -m elf_i386"
9255 powerpc64le-*linux*)
9256 LD="${LD-ld} -m elf32lppclinux"
9259 LD="${LD-ld} -m elf32ppclinux"
9262 LD="${LD-ld} -m elf_s390"
9265 LD="${LD-ld} -m elf32_sparc"
9271 x86_64-*kfreebsd*-gnu)
9272 LD="${LD-ld} -m elf_x86_64_fbsd"
9275 LD="${LD-ld} -m elf_x86_64"
9278 LD="${LD-ld} -m elf64lppc"
9281 LD="${LD-ld} -m elf64ppc"
9283 s390*-*linux*|s390*-*tpf*)
9284 LD="${LD-ld} -m elf64_s390"
9287 LD="${LD-ld} -m elf64_sparc"
9297 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9299 CFLAGS="$CFLAGS -belf"
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9301 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9302 if ${lt_cv_cc_needs_belf+:} false; then :
9303 $as_echo_n "(cached) " >&6
9306 ac_cpp='$CPP $CPPFLAGS'
9307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9322 if ac_fn_c_try_link "$LINENO"; then :
9323 lt_cv_cc_needs_belf=yes
9325 lt_cv_cc_needs_belf=no
9327 rm -f core conftest.err conftest.$ac_objext \
9328 conftest$ac_exeext conftest.$ac_ext
9330 ac_cpp='$CPP $CPPFLAGS'
9331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9337 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9338 if test yes != "$lt_cv_cc_needs_belf"; then
9339 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9344 # Find out what ABI is being produced by ac_compile, and set linker
9345 # options accordingly.
9346 echo 'int i;' > conftest.$ac_ext
9347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9348 (eval $ac_compile) 2>&5
9350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9351 test $ac_status = 0; }; then
9352 case `/usr/bin/file conftest.o` in
9354 case $lt_cv_prog_gnu_ld in
9357 i?86-*-solaris*|x86_64-*-solaris*)
9358 LD="${LD-ld} -m elf_x86_64"
9361 LD="${LD-ld} -m elf64_sparc"
9364 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9365 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9370 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9382 need_locks=$enable_libtool_lock
9384 if test -n "$ac_tool_prefix"; then
9385 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9386 set dummy ${ac_tool_prefix}mt; ac_word=$2
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9388 $as_echo_n "checking for $ac_word... " >&6; }
9389 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9390 $as_echo_n "(cached) " >&6
9392 if test -n "$MANIFEST_TOOL"; then
9393 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399 test -z "$as_dir" && as_dir=.
9400 for ac_exec_ext in '' $ac_executable_extensions; do
9401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9402 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9412 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9413 if test -n "$MANIFEST_TOOL"; then
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9415 $as_echo "$MANIFEST_TOOL" >&6; }
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 $as_echo "no" >&6; }
9423 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9424 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9425 # Extract the first word of "mt", so it can be a program name with args.
9426 set dummy mt; ac_word=$2
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428 $as_echo_n "checking for $ac_word... " >&6; }
9429 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9430 $as_echo_n "(cached) " >&6
9432 if test -n "$ac_ct_MANIFEST_TOOL"; then
9433 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439 test -z "$as_dir" && as_dir=.
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9442 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9452 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9453 if test -n "$ac_ct_MANIFEST_TOOL"; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9455 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458 $as_echo "no" >&6; }
9461 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9464 case $cross_compiling:$ac_tool_warned in
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9468 ac_tool_warned=yes ;;
9470 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9473 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9476 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9478 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9479 if ${lt_cv_path_mainfest_tool+:} false; then :
9480 $as_echo_n "(cached) " >&6
9482 lt_cv_path_mainfest_tool=no
9483 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9484 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9485 cat conftest.err >&5
9486 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9487 lt_cv_path_mainfest_tool=yes
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9492 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9493 if test yes != "$lt_cv_path_mainfest_tool"; then
9503 rhapsody* | darwin*)
9504 if test -n "$ac_tool_prefix"; then
9505 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9506 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9508 $as_echo_n "checking for $ac_word... " >&6; }
9509 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9510 $as_echo_n "(cached) " >&6
9512 if test -n "$DSYMUTIL"; then
9513 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519 test -z "$as_dir" && as_dir=.
9520 for ac_exec_ext in '' $ac_executable_extensions; do
9521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9522 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9532 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9533 if test -n "$DSYMUTIL"; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9535 $as_echo "$DSYMUTIL" >&6; }
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538 $as_echo "no" >&6; }
9543 if test -z "$ac_cv_prog_DSYMUTIL"; then
9544 ac_ct_DSYMUTIL=$DSYMUTIL
9545 # Extract the first word of "dsymutil", so it can be a program name with args.
9546 set dummy dsymutil; ac_word=$2
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9548 $as_echo_n "checking for $ac_word... " >&6; }
9549 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9550 $as_echo_n "(cached) " >&6
9552 if test -n "$ac_ct_DSYMUTIL"; then
9553 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559 test -z "$as_dir" && as_dir=.
9560 for ac_exec_ext in '' $ac_executable_extensions; do
9561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9562 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9572 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9573 if test -n "$ac_ct_DSYMUTIL"; then
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9575 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 $as_echo "no" >&6; }
9581 if test "x$ac_ct_DSYMUTIL" = x; then
9584 case $cross_compiling:$ac_tool_warned in
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9588 ac_tool_warned=yes ;;
9590 DSYMUTIL=$ac_ct_DSYMUTIL
9593 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9596 if test -n "$ac_tool_prefix"; then
9597 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9598 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9600 $as_echo_n "checking for $ac_word... " >&6; }
9601 if ${ac_cv_prog_NMEDIT+:} false; then :
9602 $as_echo_n "(cached) " >&6
9604 if test -n "$NMEDIT"; then
9605 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611 test -z "$as_dir" && as_dir=.
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9614 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9624 NMEDIT=$ac_cv_prog_NMEDIT
9625 if test -n "$NMEDIT"; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9627 $as_echo "$NMEDIT" >&6; }
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630 $as_echo "no" >&6; }
9635 if test -z "$ac_cv_prog_NMEDIT"; then
9636 ac_ct_NMEDIT=$NMEDIT
9637 # Extract the first word of "nmedit", so it can be a program name with args.
9638 set dummy nmedit; ac_word=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9642 $as_echo_n "(cached) " >&6
9644 if test -n "$ac_ct_NMEDIT"; then
9645 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 test -z "$as_dir" && as_dir=.
9652 for ac_exec_ext in '' $ac_executable_extensions; do
9653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9654 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9665 if test -n "$ac_ct_NMEDIT"; then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9667 $as_echo "$ac_ct_NMEDIT" >&6; }
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670 $as_echo "no" >&6; }
9673 if test "x$ac_ct_NMEDIT" = x; then
9676 case $cross_compiling:$ac_tool_warned in
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9680 ac_tool_warned=yes ;;
9682 NMEDIT=$ac_ct_NMEDIT
9685 NMEDIT="$ac_cv_prog_NMEDIT"
9688 if test -n "$ac_tool_prefix"; then
9689 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9690 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if ${ac_cv_prog_LIPO+:} false; then :
9694 $as_echo_n "(cached) " >&6
9696 if test -n "$LIPO"; then
9697 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9706 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9716 LIPO=$ac_cv_prog_LIPO
9717 if test -n "$LIPO"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9719 $as_echo "$LIPO" >&6; }
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9727 if test -z "$ac_cv_prog_LIPO"; then
9729 # Extract the first word of "lipo", so it can be a program name with args.
9730 set dummy lipo; ac_word=$2
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732 $as_echo_n "checking for $ac_word... " >&6; }
9733 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9734 $as_echo_n "(cached) " >&6
9736 if test -n "$ac_ct_LIPO"; then
9737 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743 test -z "$as_dir" && as_dir=.
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9746 ac_cv_prog_ac_ct_LIPO="lipo"
9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9756 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9757 if test -n "$ac_ct_LIPO"; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9759 $as_echo "$ac_ct_LIPO" >&6; }
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762 $as_echo "no" >&6; }
9765 if test "x$ac_ct_LIPO" = x; then
9768 case $cross_compiling:$ac_tool_warned in
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9772 ac_tool_warned=yes ;;
9777 LIPO="$ac_cv_prog_LIPO"
9780 if test -n "$ac_tool_prefix"; then
9781 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9782 set dummy ${ac_tool_prefix}otool; ac_word=$2
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9784 $as_echo_n "checking for $ac_word... " >&6; }
9785 if ${ac_cv_prog_OTOOL+:} false; then :
9786 $as_echo_n "(cached) " >&6
9788 if test -n "$OTOOL"; then
9789 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 test -z "$as_dir" && as_dir=.
9796 for ac_exec_ext in '' $ac_executable_extensions; do
9797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9798 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9808 OTOOL=$ac_cv_prog_OTOOL
9809 if test -n "$OTOOL"; then
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9811 $as_echo "$OTOOL" >&6; }
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814 $as_echo "no" >&6; }
9819 if test -z "$ac_cv_prog_OTOOL"; then
9821 # Extract the first word of "otool", so it can be a program name with args.
9822 set dummy otool; ac_word=$2
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9824 $as_echo_n "checking for $ac_word... " >&6; }
9825 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9826 $as_echo_n "(cached) " >&6
9828 if test -n "$ac_ct_OTOOL"; then
9829 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835 test -z "$as_dir" && as_dir=.
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9838 ac_cv_prog_ac_ct_OTOOL="otool"
9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9848 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9849 if test -n "$ac_ct_OTOOL"; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9851 $as_echo "$ac_ct_OTOOL" >&6; }
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854 $as_echo "no" >&6; }
9857 if test "x$ac_ct_OTOOL" = x; then
9860 case $cross_compiling:$ac_tool_warned in
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9864 ac_tool_warned=yes ;;
9869 OTOOL="$ac_cv_prog_OTOOL"
9872 if test -n "$ac_tool_prefix"; then
9873 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9874 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876 $as_echo_n "checking for $ac_word... " >&6; }
9877 if ${ac_cv_prog_OTOOL64+:} false; then :
9878 $as_echo_n "(cached) " >&6
9880 if test -n "$OTOOL64"; then
9881 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 test -z "$as_dir" && as_dir=.
9888 for ac_exec_ext in '' $ac_executable_extensions; do
9889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9890 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 OTOOL64=$ac_cv_prog_OTOOL64
9901 if test -n "$OTOOL64"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9903 $as_echo "$OTOOL64" >&6; }
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9911 if test -z "$ac_cv_prog_OTOOL64"; then
9912 ac_ct_OTOOL64=$OTOOL64
9913 # Extract the first word of "otool64", so it can be a program name with args.
9914 set dummy otool64; ac_word=$2
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916 $as_echo_n "checking for $ac_word... " >&6; }
9917 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9918 $as_echo_n "(cached) " >&6
9920 if test -n "$ac_ct_OTOOL64"; then
9921 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9930 ac_cv_prog_ac_ct_OTOOL64="otool64"
9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9941 if test -n "$ac_ct_OTOOL64"; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9943 $as_echo "$ac_ct_OTOOL64" >&6; }
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; }
9949 if test "x$ac_ct_OTOOL64" = x; then
9952 case $cross_compiling:$ac_tool_warned in
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9956 ac_tool_warned=yes ;;
9958 OTOOL64=$ac_ct_OTOOL64
9961 OTOOL64="$ac_cv_prog_OTOOL64"
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9991 $as_echo_n "checking for -single_module linker flag... " >&6; }
9992 if ${lt_cv_apple_cc_single_mod+:} false; then :
9993 $as_echo_n "(cached) " >&6
9995 lt_cv_apple_cc_single_mod=no
9996 if test -z "$LT_MULTI_MODULE"; then
9997 # By default we will add the -single_module flag. You can override
9998 # by either setting the environment variable LT_MULTI_MODULE
9999 # non-empty at configure time, or by adding -multi_module to the
10001 rm -rf libconftest.dylib*
10002 echo "int foo(void){return 1;}" > conftest.c
10003 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10004 -dynamiclib -Wl,-single_module conftest.c" >&5
10005 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10006 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10008 # If there is a non-empty error log, and "single_module"
10009 # appears in it, assume the flag caused a linker warning
10010 if test -s conftest.err && $GREP single_module conftest.err; then
10011 cat conftest.err >&5
10012 # Otherwise, if the output was created with a 0 exit code from
10013 # the compiler, it worked.
10014 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10015 lt_cv_apple_cc_single_mod=yes
10017 cat conftest.err >&5
10019 rm -rf libconftest.dylib*
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10024 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10027 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10028 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10029 $as_echo_n "(cached) " >&6
10031 lt_cv_ld_exported_symbols_list=no
10032 save_LDFLAGS=$LDFLAGS
10033 echo "_main" > conftest.sym
10034 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10046 if ac_fn_c_try_link "$LINENO"; then :
10047 lt_cv_ld_exported_symbols_list=yes
10049 lt_cv_ld_exported_symbols_list=no
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053 LDFLAGS=$save_LDFLAGS
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10057 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10060 $as_echo_n "checking for -force_load linker flag... " >&6; }
10061 if ${lt_cv_ld_force_load+:} false; then :
10062 $as_echo_n "(cached) " >&6
10064 lt_cv_ld_force_load=no
10065 cat > conftest.c << _LT_EOF
10066 int forced_loaded() { return 2;}
10068 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10069 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10070 echo "$AR cru libconftest.a conftest.o" >&5
10071 $AR cru libconftest.a conftest.o 2>&5
10072 echo "$RANLIB libconftest.a" >&5
10073 $RANLIB libconftest.a 2>&5
10074 cat > conftest.c << _LT_EOF
10075 int main() { return 0;}
10077 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10078 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10080 if test -s conftest.err && $GREP force_load conftest.err; then
10081 cat conftest.err >&5
10082 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10083 lt_cv_ld_force_load=yes
10085 cat conftest.err >&5
10087 rm -f conftest.err libconftest.a conftest conftest.c
10088 rm -rf conftest.dSYM
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10092 $as_echo "$lt_cv_ld_force_load" >&6; }
10094 rhapsody* | darwin1.[012])
10095 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10097 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10098 darwin*) # darwin 5.x on
10099 # if running on 10.5 or later, the deployment target defaults
10100 # to the OS version, if on x86, and 10.4, the deployment
10101 # target defaults to 10.4. Don't you love it?
10102 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10103 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10104 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10106 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10108 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10112 if test yes = "$lt_cv_apple_cc_single_mod"; then
10113 _lt_dar_single_mod='$single_module'
10115 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10116 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10118 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10120 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10121 _lt_dsymutil='~$DSYMUTIL $lib || :'
10128 # func_munge_path_list VARIABLE PATH
10129 # -----------------------------------
10130 # VARIABLE is name of variable containing _space_ separated list of
10131 # directories to be munged by the contents of PATH, which is string
10134 # string "DIR[ DIR]" will be prepended to VARIABLE
10136 # string "DIR[ DIR]" will be appended to VARIABLE
10137 # "DIRP[:DIRP]::[DIRA:]DIRA"
10138 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10139 # "DIRA[ DIRA]" will be appended to VARIABLE
10141 # VARIABLE will be replaced by "DIR[ DIR]"
10142 func_munge_path_list ()
10148 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10151 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10154 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10155 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10158 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10163 for ac_header in dlfcn.h
10165 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10167 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10168 cat >>confdefs.h <<_ACEOF
10169 #define HAVE_DLFCN_H 1
10189 enable_win32_dll=no
10192 # Check whether --enable-shared was given.
10193 if test "${enable_shared+set}" = set; then :
10194 enableval=$enable_shared; p=${PACKAGE-default}
10196 yes) enable_shared=yes ;;
10197 no) enable_shared=no ;;
10200 # Look at the argument we got. We use all the common list separators.
10201 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10202 for pkg in $enableval; do
10204 if test "X$pkg" = "X$p"; then
10223 # Check whether --enable-static was given.
10224 if test "${enable_static+set}" = set; then :
10225 enableval=$enable_static; p=${PACKAGE-default}
10227 yes) enable_static=yes ;;
10228 no) enable_static=no ;;
10231 # Look at the argument we got. We use all the common list separators.
10232 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10233 for pkg in $enableval; do
10235 if test "X$pkg" = "X$p"; then
10255 # Check whether --with-pic was given.
10256 if test "${with_pic+set}" = set; then :
10257 withval=$with_pic; lt_p=${PACKAGE-default}
10259 yes|no) pic_mode=$withval ;;
10262 # Look at the argument we got. We use all the common list separators.
10263 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10264 for lt_pkg in $withval; do
10266 if test "X$lt_pkg" = "X$lt_p"; then
10284 # Check whether --enable-fast-install was given.
10285 if test "${enable_fast_install+set}" = set; then :
10286 enableval=$enable_fast_install; p=${PACKAGE-default}
10288 yes) enable_fast_install=yes ;;
10289 no) enable_fast_install=no ;;
10291 enable_fast_install=no
10292 # Look at the argument we got. We use all the common list separators.
10293 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10294 for pkg in $enableval; do
10296 if test "X$pkg" = "X$p"; then
10297 enable_fast_install=yes
10304 enable_fast_install=yes
10314 shared_archive_member_spec=
10315 case $host,$enable_shared in
10316 power*-*-aix[5-9]*,yes)
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10318 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10320 # Check whether --with-aix-soname was given.
10321 if test "${with_aix_soname+set}" = set; then :
10322 withval=$with_aix_soname; case $withval in
10326 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10329 lt_cv_with_aix_soname=$with_aix_soname
10331 if ${lt_cv_with_aix_soname+:} false; then :
10332 $as_echo_n "(cached) " >&6
10334 lt_cv_with_aix_soname=aix
10337 with_aix_soname=$lt_cv_with_aix_soname
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10341 $as_echo "$with_aix_soname" >&6; }
10342 if test aix != "$with_aix_soname"; then
10343 # For the AIX way of multilib, we name the shared archive member
10344 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10345 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10346 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10347 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10348 if test 64 = "${OBJECT_MODE-32}"; then
10349 shared_archive_member_spec=shr_64
10351 shared_archive_member_spec=shr
10356 with_aix_soname=aix
10369 # This can be used to rebuild libtool when needed
10370 LIBTOOL_DEPS=$ltmain
10372 # Always use our own libtool.
10373 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10404 test -z "$LN_S" && LN_S="ln -s"
10419 if test -n "${ZSH_VERSION+set}"; then
10420 setopt NO_GLOB_SUBST
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10424 $as_echo_n "checking for objdir... " >&6; }
10425 if ${lt_cv_objdir+:} false; then :
10426 $as_echo_n "(cached) " >&6
10428 rm -f .libs 2>/dev/null
10429 mkdir .libs 2>/dev/null
10430 if test -d .libs; then
10433 # MS-DOS does not allow filenames that begin with a dot.
10436 rmdir .libs 2>/dev/null
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10439 $as_echo "$lt_cv_objdir" >&6; }
10440 objdir=$lt_cv_objdir
10446 cat >>confdefs.h <<_ACEOF
10447 #define LT_OBJDIR "$lt_cv_objdir/"
10455 # AIX sometimes has problems with the GCC collect2 program. For some
10456 # reason, if we set the COLLECT_NAMES environment variable, the problems
10457 # vanish in a puff of smoke.
10458 if test set != "${COLLECT_NAMES+set}"; then
10460 export COLLECT_NAMES
10465 # Global variables:
10467 can_build_shared=yes
10469 # All known linkers require a '.a' archive for static linking (except MSVC,
10470 # which needs '.lib').
10473 with_gnu_ld=$lt_cv_prog_gnu_ld
10478 # Set sane defaults for various variables
10479 test -z "$CC" && CC=cc
10480 test -z "$LTCC" && LTCC=$CC
10481 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10482 test -z "$LD" && LD=ld
10483 test -z "$ac_objext" && ac_objext=o
10485 func_cc_basename $compiler
10486 cc_basename=$func_cc_basename_result
10489 # Only perform the check for file, if the check method requires it
10490 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10491 case $deplibs_check_method in
10493 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10495 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10496 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10497 $as_echo_n "(cached) " >&6
10501 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10504 lt_save_MAGIC_CMD=$MAGIC_CMD
10505 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10506 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10507 for ac_dir in $ac_dummy; do
10509 test -z "$ac_dir" && ac_dir=.
10510 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10511 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10512 if test -n "$file_magic_test_file"; then
10513 case $deplibs_check_method in
10515 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10516 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10517 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10518 $EGREP "$file_magic_regex" > /dev/null; then
10523 *** Warning: the command libtool uses to detect shared libraries,
10524 *** $file_magic_cmd, produces output that libtool cannot recognize.
10525 *** The result is that libtool may fail to recognize shared libraries
10526 *** as such. This will affect the creation of libtool libraries that
10527 *** depend on shared libraries, but programs linked with such libtool
10528 *** libraries will work regardless of this problem. Nevertheless, you
10529 *** may want to report the problem to your system manager and/or to
10530 *** bug-libtool@gnu.org
10540 MAGIC_CMD=$lt_save_MAGIC_CMD
10545 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10546 if test -n "$MAGIC_CMD"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10548 $as_echo "$MAGIC_CMD" >&6; }
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10558 if test -z "$lt_cv_path_MAGIC_CMD"; then
10559 if test -n "$ac_tool_prefix"; then
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10561 $as_echo_n "checking for file... " >&6; }
10562 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10563 $as_echo_n "(cached) " >&6
10567 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10570 lt_save_MAGIC_CMD=$MAGIC_CMD
10571 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10572 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10573 for ac_dir in $ac_dummy; do
10575 test -z "$ac_dir" && ac_dir=.
10576 if test -f "$ac_dir/file"; then
10577 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10578 if test -n "$file_magic_test_file"; then
10579 case $deplibs_check_method in
10581 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10582 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10583 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10584 $EGREP "$file_magic_regex" > /dev/null; then
10589 *** Warning: the command libtool uses to detect shared libraries,
10590 *** $file_magic_cmd, produces output that libtool cannot recognize.
10591 *** The result is that libtool may fail to recognize shared libraries
10592 *** as such. This will affect the creation of libtool libraries that
10593 *** depend on shared libraries, but programs linked with such libtool
10594 *** libraries will work regardless of this problem. Nevertheless, you
10595 *** may want to report the problem to your system manager and/or to
10596 *** bug-libtool@gnu.org
10606 MAGIC_CMD=$lt_save_MAGIC_CMD
10611 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10612 if test -n "$MAGIC_CMD"; then
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10614 $as_echo "$MAGIC_CMD" >&6; }
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617 $as_echo "no" >&6; }
10630 # Use C for the default configuration in the libtool script
10634 ac_cpp='$CPP $CPPFLAGS'
10635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10640 # Source file extension for C test sources.
10643 # Object file extension for compiled C test sources.
10647 # Code to be used in simple compile tests
10648 lt_simple_compile_test_code="int some_variable = 0;"
10650 # Code to be used in simple link tests
10651 lt_simple_link_test_code='int main(){return(0);}'
10659 # If no C compiler was specified, use CC.
10662 # If no C compiler flags were specified, use CFLAGS.
10663 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10665 # Allow CC to be a program name with arguments.
10668 # Save the default compiler, since it gets overwritten when the other
10669 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10670 compiler_DEFAULT=$CC
10672 # save warnings/boilerplate of simple test code
10673 ac_outfile=conftest.$ac_objext
10674 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10675 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10676 _lt_compiler_boilerplate=`cat conftest.err`
10679 ac_outfile=conftest.$ac_objext
10680 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10681 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10682 _lt_linker_boilerplate=`cat conftest.err`
10686 if test -n "$compiler"; then
10688 lt_prog_compiler_no_builtin_flag=
10690 if test yes = "$GCC"; then
10691 case $cc_basename in
10693 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10695 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10699 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10700 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10701 $as_echo_n "(cached) " >&6
10703 lt_cv_prog_compiler_rtti_exceptions=no
10704 ac_outfile=conftest.$ac_objext
10705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10706 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10707 # Insert the option either (1) after the last *FLAGS variable, or
10708 # (2) before a word containing "conftest.", or (3) at the end.
10709 # Note that $ac_compile itself does not contain backslashes and begins
10710 # with a dollar sign (not a hyphen), so the echo should work correctly.
10711 # The option is referenced via a variable to avoid confusing sed.
10712 lt_compile=`echo "$ac_compile" | $SED \
10713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10715 -e 's:$: $lt_compiler_flag:'`
10716 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10717 (eval "$lt_compile" 2>conftest.err)
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 if (exit $ac_status) && test -s "$ac_outfile"; then
10722 # The compiler can only warn and ignore the option if not recognized
10723 # So say no if there are warnings other than the usual output.
10724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10726 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10727 lt_cv_prog_compiler_rtti_exceptions=yes
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10734 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10736 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10737 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10749 lt_prog_compiler_wl=
10750 lt_prog_compiler_pic=
10751 lt_prog_compiler_static=
10754 if test yes = "$GCC"; then
10755 lt_prog_compiler_wl='-Wl,'
10756 lt_prog_compiler_static='-static'
10760 # All AIX code is PIC.
10761 if test ia64 = "$host_cpu"; then
10762 # AIX 5 now supports IA64 processor
10763 lt_prog_compiler_static='-Bstatic'
10765 lt_prog_compiler_pic='-fPIC'
10771 # see comment about AmigaOS4 .so support
10772 lt_prog_compiler_pic='-fPIC'
10775 # FIXME: we need at least 68020 code to build shared libraries, but
10776 # adding the '-m68020' flag to GCC prevents building anything better,
10778 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10783 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10784 # PIC is the default for these OSes.
10787 mingw* | cygwin* | pw32* | os2* | cegcc*)
10788 # This hack is so that the source file can tell whether it is being
10789 # built for inclusion in a dll (and should export symbols for example).
10790 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10791 # (--disable-auto-import) libraries
10792 lt_prog_compiler_pic='-DDLL_EXPORT'
10795 lt_prog_compiler_static='$wl-static'
10800 darwin* | rhapsody*)
10801 # PIC is the default on this platform
10802 # Common symbols not allowed in MH_DYLIB files
10803 lt_prog_compiler_pic='-fno-common'
10807 # PIC is the default for Haiku.
10808 # The "-static" flag exists, but is broken.
10809 lt_prog_compiler_static=
10813 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10814 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10815 # sets the default TLS model and affects inlining.
10821 lt_prog_compiler_pic='-fPIC'
10827 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10828 # Instead, we relocate shared libraries at runtime.
10832 # Just because we use GCC doesn't mean we suddenly get shared libraries
10833 # on systems that don't support them.
10834 lt_prog_compiler_can_build_shared=no
10839 # QNX uses GNU C++, but need to define -shared option too, otherwise
10840 # it will coredump.
10841 lt_prog_compiler_pic='-fPIC -shared'
10845 if test -d /usr/nec; then
10846 lt_prog_compiler_pic=-Kconform_pic
10851 lt_prog_compiler_pic='-fPIC'
10855 case $cc_basename in
10856 nvcc*) # Cuda Compiler Driver 2.2
10857 lt_prog_compiler_wl='-Xlinker '
10858 if test -n "$lt_prog_compiler_pic"; then
10859 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10864 # PORTME Check for flag to pass linker flags through the system compiler.
10867 lt_prog_compiler_wl='-Wl,'
10868 if test ia64 = "$host_cpu"; then
10869 # AIX 5 now supports IA64 processor
10870 lt_prog_compiler_static='-Bstatic'
10872 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10876 darwin* | rhapsody*)
10877 # PIC is the default on this platform
10878 # Common symbols not allowed in MH_DYLIB files
10879 lt_prog_compiler_pic='-fno-common'
10880 case $cc_basename in
10882 # NAG Fortran compiler
10883 lt_prog_compiler_wl='-Wl,-Wl,,'
10884 lt_prog_compiler_pic='-PIC'
10885 lt_prog_compiler_static='-Bstatic'
10890 mingw* | cygwin* | pw32* | os2* | cegcc*)
10891 # This hack is so that the source file can tell whether it is being
10892 # built for inclusion in a dll (and should export symbols for example).
10893 lt_prog_compiler_pic='-DDLL_EXPORT'
10896 lt_prog_compiler_static='$wl-static'
10901 hpux9* | hpux10* | hpux11*)
10902 lt_prog_compiler_wl='-Wl,'
10903 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10904 # not for PA HP-UX.
10910 lt_prog_compiler_pic='+Z'
10913 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10914 lt_prog_compiler_static='$wl-a ${wl}archive'
10917 irix5* | irix6* | nonstopux*)
10918 lt_prog_compiler_wl='-Wl,'
10919 # PIC (with -KPIC) is the default.
10920 lt_prog_compiler_static='-non_shared'
10923 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10924 case $cc_basename in
10925 # old Intel for x86_64, which still supported -KPIC.
10927 lt_prog_compiler_wl='-Wl,'
10928 lt_prog_compiler_pic='-KPIC'
10929 lt_prog_compiler_static='-static'
10931 # icc used to be incompatible with GCC.
10932 # ICC 10 doesn't accept -KPIC any more.
10934 lt_prog_compiler_wl='-Wl,'
10935 lt_prog_compiler_pic='-fPIC'
10936 lt_prog_compiler_static='-static'
10938 # Lahey Fortran 8.1.
10940 lt_prog_compiler_wl='-Wl,'
10941 lt_prog_compiler_pic='--shared'
10942 lt_prog_compiler_static='--static'
10945 # NAG Fortran compiler
10946 lt_prog_compiler_wl='-Wl,-Wl,,'
10947 lt_prog_compiler_pic='-PIC'
10948 lt_prog_compiler_static='-Bstatic'
10951 # Fabrice Bellard et al's Tiny C Compiler
10952 lt_prog_compiler_wl='-Wl,'
10953 lt_prog_compiler_pic='-fPIC'
10954 lt_prog_compiler_static='-static'
10956 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10957 # Portland Group compilers (*not* the Pentium gcc compiler,
10958 # which looks to be a dead project)
10959 lt_prog_compiler_wl='-Wl,'
10960 lt_prog_compiler_pic='-fpic'
10961 lt_prog_compiler_static='-Bstatic'
10964 lt_prog_compiler_wl='-Wl,'
10965 # All Alpha code is PIC.
10966 lt_prog_compiler_static='-non_shared'
10968 xl* | bgxl* | bgf* | mpixl*)
10969 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10970 lt_prog_compiler_wl='-Wl,'
10971 lt_prog_compiler_pic='-qpic'
10972 lt_prog_compiler_static='-qstaticlink'
10975 case `$CC -V 2>&1 | sed 5q` in
10976 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10977 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10978 lt_prog_compiler_pic='-KPIC'
10979 lt_prog_compiler_static='-Bstatic'
10980 lt_prog_compiler_wl=''
10982 *Sun\ F* | *Sun*Fortran*)
10983 lt_prog_compiler_pic='-KPIC'
10984 lt_prog_compiler_static='-Bstatic'
10985 lt_prog_compiler_wl='-Qoption ld '
10989 lt_prog_compiler_pic='-KPIC'
10990 lt_prog_compiler_static='-Bstatic'
10991 lt_prog_compiler_wl='-Wl,'
10993 *Intel*\ [CF]*Compiler*)
10994 lt_prog_compiler_wl='-Wl,'
10995 lt_prog_compiler_pic='-fPIC'
10996 lt_prog_compiler_static='-static'
10999 lt_prog_compiler_wl='-Wl,'
11000 lt_prog_compiler_pic='-fpic'
11001 lt_prog_compiler_static='-Bstatic'
11009 lt_prog_compiler_pic='-KPIC'
11010 lt_prog_compiler_static='-Bstatic'
11014 # QNX uses GNU C++, but need to define -shared option too, otherwise
11015 # it will coredump.
11016 lt_prog_compiler_pic='-fPIC -shared'
11019 osf3* | osf4* | osf5*)
11020 lt_prog_compiler_wl='-Wl,'
11021 # All OSF/1 code is PIC.
11022 lt_prog_compiler_static='-non_shared'
11026 lt_prog_compiler_static='-non_shared'
11030 lt_prog_compiler_pic='-KPIC'
11031 lt_prog_compiler_static='-Bstatic'
11032 case $cc_basename in
11033 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11034 lt_prog_compiler_wl='-Qoption ld ';;
11036 lt_prog_compiler_wl='-Wl,';;
11041 lt_prog_compiler_wl='-Qoption ld '
11042 lt_prog_compiler_pic='-PIC'
11043 lt_prog_compiler_static='-Bstatic'
11046 sysv4 | sysv4.2uw2* | sysv4.3*)
11047 lt_prog_compiler_wl='-Wl,'
11048 lt_prog_compiler_pic='-KPIC'
11049 lt_prog_compiler_static='-Bstatic'
11053 if test -d /usr/nec; then
11054 lt_prog_compiler_pic='-Kconform_pic'
11055 lt_prog_compiler_static='-Bstatic'
11059 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11060 lt_prog_compiler_wl='-Wl,'
11061 lt_prog_compiler_pic='-KPIC'
11062 lt_prog_compiler_static='-Bstatic'
11066 lt_prog_compiler_wl='-Wl,'
11067 lt_prog_compiler_can_build_shared=no
11071 lt_prog_compiler_pic='-pic'
11072 lt_prog_compiler_static='-Bstatic'
11076 lt_prog_compiler_can_build_shared=no
11082 # For platforms that do not support PIC, -DPIC is meaningless:
11084 lt_prog_compiler_pic=
11087 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11092 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11093 if ${lt_cv_prog_compiler_pic+:} false; then :
11094 $as_echo_n "(cached) " >&6
11096 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11099 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11100 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11103 # Check to make sure the PIC flag actually works.
11105 if test -n "$lt_prog_compiler_pic"; then
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11107 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11108 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11109 $as_echo_n "(cached) " >&6
11111 lt_cv_prog_compiler_pic_works=no
11112 ac_outfile=conftest.$ac_objext
11113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11114 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11115 # Insert the option either (1) after the last *FLAGS variable, or
11116 # (2) before a word containing "conftest.", or (3) at the end.
11117 # Note that $ac_compile itself does not contain backslashes and begins
11118 # with a dollar sign (not a hyphen), so the echo should work correctly.
11119 # The option is referenced via a variable to avoid confusing sed.
11120 lt_compile=`echo "$ac_compile" | $SED \
11121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11123 -e 's:$: $lt_compiler_flag:'`
11124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11125 (eval "$lt_compile" 2>conftest.err)
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 if (exit $ac_status) && test -s "$ac_outfile"; then
11130 # The compiler can only warn and ignore the option if not recognized
11131 # So say no if there are warnings other than the usual output.
11132 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11135 lt_cv_prog_compiler_pic_works=yes
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11142 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11144 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11145 case $lt_prog_compiler_pic in
11147 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11150 lt_prog_compiler_pic=
11151 lt_prog_compiler_can_build_shared=no
11167 # Check to make sure the static flag actually works.
11169 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11171 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11172 if ${lt_cv_prog_compiler_static_works+:} false; then :
11173 $as_echo_n "(cached) " >&6
11175 lt_cv_prog_compiler_static_works=no
11176 save_LDFLAGS=$LDFLAGS
11177 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11178 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11179 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11180 # The linker can only warn and ignore the option if not recognized
11181 # So say no if there are warnings
11182 if test -s conftest.err; then
11183 # Append any errors to the config.log.
11184 cat conftest.err 1>&5
11185 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11187 if diff conftest.exp conftest.er2 >/dev/null; then
11188 lt_cv_prog_compiler_static_works=yes
11191 lt_cv_prog_compiler_static_works=yes
11195 LDFLAGS=$save_LDFLAGS
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11199 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11201 if test yes = "$lt_cv_prog_compiler_static_works"; then
11204 lt_prog_compiler_static=
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11214 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11215 if ${lt_cv_prog_compiler_c_o+:} false; then :
11216 $as_echo_n "(cached) " >&6
11218 lt_cv_prog_compiler_c_o=no
11219 $RM -r conftest 2>/dev/null
11223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11225 lt_compiler_flag="-o out/conftest2.$ac_objext"
11226 # Insert the option either (1) after the last *FLAGS variable, or
11227 # (2) before a word containing "conftest.", or (3) at the end.
11228 # Note that $ac_compile itself does not contain backslashes and begins
11229 # with a dollar sign (not a hyphen), so the echo should work correctly.
11230 lt_compile=`echo "$ac_compile" | $SED \
11231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11233 -e 's:$: $lt_compiler_flag:'`
11234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11235 (eval "$lt_compile" 2>out/conftest.err)
11237 cat out/conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11241 # The compiler can only warn and ignore the option if not recognized
11242 # So say no if there are warnings
11243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11244 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11245 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11246 lt_cv_prog_compiler_c_o=yes
11251 # SGI C++ compiler will create directory out/ii_files/ for
11252 # template instantiation
11253 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11254 $RM out/* && rmdir out
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11261 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11269 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11270 if ${lt_cv_prog_compiler_c_o+:} false; then :
11271 $as_echo_n "(cached) " >&6
11273 lt_cv_prog_compiler_c_o=no
11274 $RM -r conftest 2>/dev/null
11278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11280 lt_compiler_flag="-o out/conftest2.$ac_objext"
11281 # Insert the option either (1) after the last *FLAGS variable, or
11282 # (2) before a word containing "conftest.", or (3) at the end.
11283 # Note that $ac_compile itself does not contain backslashes and begins
11284 # with a dollar sign (not a hyphen), so the echo should work correctly.
11285 lt_compile=`echo "$ac_compile" | $SED \
11286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11288 -e 's:$: $lt_compiler_flag:'`
11289 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11290 (eval "$lt_compile" 2>out/conftest.err)
11292 cat out/conftest.err >&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11296 # The compiler can only warn and ignore the option if not recognized
11297 # So say no if there are warnings
11298 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11299 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11300 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11301 lt_cv_prog_compiler_c_o=yes
11306 # SGI C++ compiler will create directory out/ii_files/ for
11307 # template instantiation
11308 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11309 $RM out/* && rmdir out
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11316 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11321 hard_links=nottested
11322 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11323 # do not overwrite the value of need_locks provided by the user
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11325 $as_echo_n "checking if we can lock with hard links... " >&6; }
11328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11330 ln conftest.a conftest.b 2>&5 || hard_links=no
11331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11333 $as_echo "$hard_links" >&6; }
11334 if test no = "$hard_links"; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11336 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11349 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11352 allow_undefined_flag=
11353 always_export_symbols=no
11355 archive_expsym_cmds=
11356 compiler_needs_object=no
11357 enable_shared_with_static_runtimes=no
11358 export_dynamic_flag_spec=
11359 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11360 hardcode_automatic=no
11362 hardcode_direct_absolute=no
11363 hardcode_libdir_flag_spec=
11364 hardcode_libdir_separator=
11365 hardcode_minus_L=no
11366 hardcode_shlibpath_var=unsupported
11368 link_all_deplibs=unknown
11370 module_expsym_cmds=
11371 old_archive_from_new_cmds=
11372 old_archive_from_expsyms_cmds=
11373 thread_safe_flag_spec=
11374 whole_archive_flag_spec=
11375 # include_expsyms should be a list of space-separated symbols to be *always*
11376 # included in the symbol list
11378 # exclude_expsyms can be an extended regexp of symbols to exclude
11379 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11380 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11381 # as well as any symbol that contains 'd'.
11382 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11383 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11384 # platforms (ab)use it in PIC code, but their linkers get confused if
11385 # the symbol is explicitly referenced. Since portable code cannot
11386 # rely on this symbol name, it's probably fine to never include it in
11387 # preloaded symbol tables.
11388 # Exclude shared library initialization/finalization symbols.
11389 extract_expsyms_cmds=
11392 cygwin* | mingw* | pw32* | cegcc*)
11393 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11394 # When not using gcc, we currently assume that we are using
11395 # Microsoft Visual C++.
11396 if test yes != "$GCC"; then
11401 # we just hope/assume this is gcc and not c89 (= MSVC++)
11404 openbsd* | bitrig*)
11411 # On some targets, GNU ld is compatible enough with the native linker
11412 # that we're better off using the native interface for both.
11413 lt_use_gnu_ld_interface=no
11414 if test yes = "$with_gnu_ld"; then
11417 # The AIX port of GNU ld has always aspired to compatibility
11418 # with the native linker. However, as the warning in the GNU ld
11419 # block says, versions before 2.19.5* couldn't really create working
11420 # shared libraries, regardless of the interface used.
11421 case `$LD -v 2>&1` in
11422 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11423 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11424 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11426 lt_use_gnu_ld_interface=yes
11431 lt_use_gnu_ld_interface=yes
11436 if test yes = "$lt_use_gnu_ld_interface"; then
11437 # If archive_cmds runs LD, not CC, wlarc should be empty
11440 # Set some defaults for GNU ld with shared library support. These
11441 # are reset later if shared libraries are not supported. Putting them
11442 # here allows them to be overridden if necessary.
11443 runpath_var=LD_RUN_PATH
11444 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11445 export_dynamic_flag_spec='$wl--export-dynamic'
11446 # ancient GNU ld didn't support --whole-archive et. al.
11447 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11448 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11450 whole_archive_flag_spec=
11452 supports_anon_versioning=no
11453 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11454 *GNU\ gold*) supports_anon_versioning=yes ;;
11455 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11456 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11457 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11458 *\ 2.11.*) ;; # other 2.11 versions
11459 *) supports_anon_versioning=yes ;;
11462 # See if GNU ld supports shared libraries.
11465 # On AIX/PPC, the GNU linker is very broken
11466 if test ia64 != "$host_cpu"; then
11470 *** Warning: the GNU linker, at least up to release 2.19, is reported
11471 *** to be unable to reliably create shared libraries on AIX.
11472 *** Therefore, libtool is disabling shared libraries support. If you
11473 *** really care for shared libraries, you may want to install binutils
11474 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11475 *** You will then need to restart the configuration process.
11484 # see comment about AmigaOS4 .so support
11485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11486 archive_expsym_cmds=''
11489 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11490 hardcode_libdir_flag_spec='-L$libdir'
11491 hardcode_minus_L=yes
11497 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11498 allow_undefined_flag=unsupported
11499 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11500 # support --undefined. This deserves some investigation. FIXME
11501 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11507 cygwin* | mingw* | pw32* | cegcc*)
11508 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11509 # as there is no search path for DLLs.
11510 hardcode_libdir_flag_spec='-L$libdir'
11511 export_dynamic_flag_spec='$wl--export-all-symbols'
11512 allow_undefined_flag=unsupported
11513 always_export_symbols=no
11514 enable_shared_with_static_runtimes=yes
11515 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11516 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11518 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11520 # If the export-symbols file already is a .def file, use it as
11521 # is; otherwise, prepend EXPORTS...
11522 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11523 cp $export_symbols $output_objdir/$soname.def;
11525 echo EXPORTS > $output_objdir/$soname.def;
11526 cat $export_symbols >> $output_objdir/$soname.def;
11528 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11536 link_all_deplibs=yes
11540 hardcode_libdir_flag_spec='-L$libdir'
11541 hardcode_minus_L=yes
11542 allow_undefined_flag=unsupported
11544 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11545 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11546 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11547 $ECHO EXPORTS >> $output_objdir/$libname.def~
11548 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11549 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11550 emximp -o $lib $output_objdir/$libname.def'
11551 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11552 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11553 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11554 $ECHO EXPORTS >> $output_objdir/$libname.def~
11555 prefix_cmds="$SED"~
11556 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11557 prefix_cmds="$prefix_cmds -e 1d";
11559 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11560 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11561 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11562 emximp -o $lib $output_objdir/$libname.def'
11563 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11564 enable_shared_with_static_runtimes=yes
11569 hardcode_shlibpath_var=no
11570 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11571 export_dynamic_flag_spec='$wl-E'
11572 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11573 # Instead, shared libraries are loaded at an image base (0x10000000 by
11574 # default) and relocated if they conflict, which is a slow very memory
11575 # consuming and fragmenting process. To avoid this, we pick a random,
11576 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11577 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11579 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11582 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11584 if test linux-dietlibc = "$host_os"; then
11585 case $cc_basename in
11586 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11589 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11590 && test no = "$tmp_diet"
11592 tmp_addflag=' $pic_flag'
11593 tmp_sharedflag='-shared'
11594 case $cc_basename,$host_cpu in
11595 pgcc*) # Portland Group C compiler
11596 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11597 tmp_addflag=' $pic_flag'
11599 pgf77* | pgf90* | pgf95* | pgfortran*)
11600 # Portland Group f77 and f90 compilers
11601 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11602 tmp_addflag=' $pic_flag -Mnomain' ;;
11603 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11604 tmp_addflag=' -i_dynamic' ;;
11605 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11606 tmp_addflag=' -i_dynamic -nofor_main' ;;
11607 ifc* | ifort*) # Intel Fortran compiler
11608 tmp_addflag=' -nofor_main' ;;
11609 lf95*) # Lahey Fortran 8.1
11610 whole_archive_flag_spec=
11611 tmp_sharedflag='--shared' ;;
11612 nagfor*) # NAGFOR 5.3
11613 tmp_sharedflag='-Wl,-shared' ;;
11614 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11615 tmp_sharedflag='-qmkshrobj'
11617 nvcc*) # Cuda Compiler Driver 2.2
11618 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11619 compiler_needs_object=yes
11622 case `$CC -V 2>&1 | sed 5q` in
11623 *Sun\ C*) # Sun C 5.9
11624 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11625 compiler_needs_object=yes
11626 tmp_sharedflag='-G' ;;
11627 *Sun\ F*) # Sun Fortran 8.3
11628 tmp_sharedflag='-G' ;;
11630 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11632 if test yes = "$supports_anon_versioning"; then
11633 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11634 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11635 echo "local: *; };" >> $output_objdir/$libname.ver~
11636 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11639 case $cc_basename in
11641 export_dynamic_flag_spec='-rdynamic'
11643 xlf* | bgf* | bgxlf* | mpixlf*)
11644 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11645 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11646 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11647 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11648 if test yes = "$supports_anon_versioning"; then
11649 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11650 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11651 echo "local: *; };" >> $output_objdir/$libname.ver~
11652 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11662 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11663 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11666 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11667 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11672 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11676 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11677 *** create shared libraries on Solaris systems. Therefore, libtool
11678 *** is disabling shared libraries support. We urge you to upgrade GNU
11679 *** binutils to release 2.9.1 or newer. Another option is to modify
11680 *** your PATH or compiler configuration so that the native linker is
11681 *** used, and then restart.
11684 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11685 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11686 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11692 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11693 case `$LD -v 2>&1` in
11694 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11698 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11699 *** reliably create shared libraries on SCO systems. Therefore, libtool
11700 *** is disabling shared libraries support. We urge you to upgrade GNU
11701 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11702 *** your PATH or compiler configuration so that the native linker is
11703 *** used, and then restart.
11708 # For security reasons, it is highly recommended that you always
11709 # use absolute paths for naming shared libraries, and exclude the
11710 # DT_RUNPATH tag from executables and libraries. But doing so
11711 # requires that you compile everything twice, which is a pain.
11712 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11713 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11715 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11724 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11726 hardcode_direct=yes
11727 hardcode_shlibpath_var=no
11731 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11732 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11733 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11740 if test no = "$ld_shlibs"; then
11742 hardcode_libdir_flag_spec=
11743 export_dynamic_flag_spec=
11744 whole_archive_flag_spec=
11747 # PORTME fill in a description of your system's linker (not GNU ld)
11750 allow_undefined_flag=unsupported
11751 always_export_symbols=yes
11752 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11753 # Note: this linker hardcodes the directories in LIBPATH if there
11754 # are no directories specified by -L.
11755 hardcode_minus_L=yes
11756 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11757 # Neither direct hardcoding nor static linking is supported with a
11759 hardcode_direct=unsupported
11764 if test ia64 = "$host_cpu"; then
11765 # On IA64, the linker does run time linking by default, so we don't
11766 # have to do anything special.
11767 aix_use_runtimelinking=no
11768 exp_sym_flag='-Bexport'
11771 # If we're using GNU nm, then we don't want the "-C" option.
11772 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11773 # Without the "-l" option, or with the "-B" option, AIX nm treats
11774 # weak defined symbols like other global defined symbols, whereas
11775 # GNU nm marks them as "W".
11776 # While the 'weak' keyword is ignored in the Export File, we need
11777 # it in the Import File for the 'aix-soname' feature, so we have
11778 # to replace the "-B" option with "-P" for AIX nm.
11779 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11780 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11782 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11784 aix_use_runtimelinking=no
11786 # Test if we are trying to use run time linking or normal
11787 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11788 # have runtime linking enabled, and use it for executables.
11789 # For shared libraries, we enable/disable runtime linking
11790 # depending on the kind of the shared library created -
11791 # when "with_aix_soname,aix_use_runtimelinking" is:
11792 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11793 # "aix,yes" lib.so shared, rtl:yes, for executables
11794 # lib.a static archive
11795 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11796 # lib.a(lib.so.V) shared, rtl:no, for executables
11797 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11798 # lib.a(lib.so.V) shared, rtl:no
11799 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11800 # lib.a static archive
11801 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11802 for ld_flag in $LDFLAGS; do
11803 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11804 aix_use_runtimelinking=yes
11808 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11809 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11810 # so we don't have lib.a shared libs to link our executables.
11811 # We have to force runtime linking in this case.
11812 aix_use_runtimelinking=yes
11813 LDFLAGS="$LDFLAGS -Wl,-brtl"
11818 exp_sym_flag='-bexport'
11819 no_entry_flag='-bnoentry'
11822 # When large executables or shared objects are built, AIX ld can
11823 # have problems creating the table of contents. If linking a library
11824 # or program results in "error TOC overflow" add -mminimal-toc to
11825 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11826 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11829 hardcode_direct=yes
11830 hardcode_direct_absolute=yes
11831 hardcode_libdir_separator=':'
11832 link_all_deplibs=yes
11833 file_list_spec='$wl-f,'
11834 case $with_aix_soname,$aix_use_runtimelinking in
11835 aix,*) ;; # traditional, no import file
11836 svr4,* | *,yes) # use import file
11837 # The Import File defines what to hardcode.
11839 hardcode_direct_absolute=no
11843 if test yes = "$GCC"; then
11844 case $host_os in aix4.[012]|aix4.[012].*)
11845 # We only want to do this on AIX 4.2 and lower, the check
11846 # below for broken collect2 doesn't work under 4.3+
11847 collect2name=`$CC -print-prog-name=collect2`
11848 if test -f "$collect2name" &&
11849 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11851 # We have reworked collect2
11854 # We have old collect2
11855 hardcode_direct=unsupported
11856 # It fails to find uninstalled libraries when the uninstalled
11857 # path is not listed in the libpath. Setting hardcode_minus_L
11858 # to unsupported forces relinking
11859 hardcode_minus_L=yes
11860 hardcode_libdir_flag_spec='-L$libdir'
11861 hardcode_libdir_separator=
11865 shared_flag='-shared'
11866 if test yes = "$aix_use_runtimelinking"; then
11867 shared_flag="$shared_flag "'$wl-G'
11869 # Need to ensure runtime linking is disabled for the traditional
11870 # shared library, or the linker may eventually find shared libraries
11871 # /with/ Import File - we do not want to mix them.
11872 shared_flag_aix='-shared'
11873 shared_flag_svr4='-shared $wl-G'
11876 if test ia64 = "$host_cpu"; then
11877 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11878 # chokes on -Wl,-G. The following line is correct:
11881 if test yes = "$aix_use_runtimelinking"; then
11882 shared_flag='$wl-G'
11884 shared_flag='$wl-bM:SRE'
11886 shared_flag_aix='$wl-bM:SRE'
11887 shared_flag_svr4='$wl-G'
11891 export_dynamic_flag_spec='$wl-bexpall'
11892 # It seems that -bexpall does not export symbols beginning with
11893 # underscore (_), so it is better to generate a list of symbols to export.
11894 always_export_symbols=yes
11895 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11896 # Warning - without using the other runtime loading flags (-brtl),
11897 # -berok will link without error, but may produce a broken library.
11898 allow_undefined_flag='-berok'
11899 # Determine the default libpath from the value encoded in an
11900 # empty executable.
11901 if test set = "${lt_cv_aix_libpath+set}"; then
11902 aix_libpath=$lt_cv_aix_libpath
11904 if ${lt_cv_aix_libpath_+:} false; then :
11905 $as_echo_n "(cached) " >&6
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h. */
11918 if ac_fn_c_try_link "$LINENO"; then :
11920 lt_aix_libpath_sed='
11921 /Import File Strings/,/^$/ {
11923 s/^0 *\([^ ]*\) *$/\1/
11927 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11928 # Check for a 64-bit object if we didn't find anything.
11929 if test -z "$lt_cv_aix_libpath_"; then
11930 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11933 rm -f core conftest.err conftest.$ac_objext \
11934 conftest$ac_exeext conftest.$ac_ext
11935 if test -z "$lt_cv_aix_libpath_"; then
11936 lt_cv_aix_libpath_=/usr/lib:/lib
11941 aix_libpath=$lt_cv_aix_libpath_
11944 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11945 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11947 if test ia64 = "$host_cpu"; then
11948 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11949 allow_undefined_flag="-z nodefs"
11950 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
11952 # Determine the default libpath from the value encoded in an
11953 # empty executable.
11954 if test set = "${lt_cv_aix_libpath+set}"; then
11955 aix_libpath=$lt_cv_aix_libpath
11957 if ${lt_cv_aix_libpath_+:} false; then :
11958 $as_echo_n "(cached) " >&6
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11971 if ac_fn_c_try_link "$LINENO"; then :
11973 lt_aix_libpath_sed='
11974 /Import File Strings/,/^$/ {
11976 s/^0 *\([^ ]*\) *$/\1/
11980 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11981 # Check for a 64-bit object if we didn't find anything.
11982 if test -z "$lt_cv_aix_libpath_"; then
11983 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11986 rm -f core conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11988 if test -z "$lt_cv_aix_libpath_"; then
11989 lt_cv_aix_libpath_=/usr/lib:/lib
11994 aix_libpath=$lt_cv_aix_libpath_
11997 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11998 # Warning - without using the other run time loading flags,
11999 # -berok will link without error, but may produce a broken library.
12000 no_undefined_flag=' $wl-bernotok'
12001 allow_undefined_flag=' $wl-berok'
12002 if test yes = "$with_gnu_ld"; then
12003 # We only use this code for GNU lds that support --whole-archive.
12004 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12006 # Exported symbols can be pulled into shared objects from archives
12007 whole_archive_flag_spec='$convenience'
12009 archive_cmds_need_lc=yes
12010 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12011 # -brtl affects multiple linker settings, -berok does not and is overridden later
12012 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12013 if test svr4 != "$with_aix_soname"; then
12014 # This is similar to how AIX traditionally builds its shared libraries.
12015 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12017 if test aix != "$with_aix_soname"; then
12018 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12020 # used by -dlpreopen to get the symbols
12021 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12023 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12031 # see comment about AmigaOS4 .so support
12032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12033 archive_expsym_cmds=''
12036 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12037 hardcode_libdir_flag_spec='-L$libdir'
12038 hardcode_minus_L=yes
12044 export_dynamic_flag_spec=-rdynamic
12047 cygwin* | mingw* | pw32* | cegcc*)
12048 # When not using gcc, we currently assume that we are using
12049 # Microsoft Visual C++.
12050 # hardcode_libdir_flag_spec is actually meaningless, as there is
12051 # no search path for DLLs.
12052 case $cc_basename in
12055 hardcode_libdir_flag_spec=' '
12056 allow_undefined_flag=unsupported
12057 always_export_symbols=yes
12059 # Tell ltmain to make .lib files, not .a files.
12061 # Tell ltmain to make .dll files, not .so files.
12063 # FIXME: Setting linknames here is a bad hack.
12064 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12065 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12066 cp "$export_symbols" "$output_objdir/$soname.def";
12067 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12069 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12071 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12073 # The linker will not automatically build a static lib if we build a DLL.
12074 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12075 enable_shared_with_static_runtimes=yes
12076 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12077 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12079 old_postinstall_cmds='chmod 644 $oldlib'
12080 postlink_cmds='lt_outputfile="@OUTPUT@"~
12081 lt_tool_outputfile="@TOOL_OUTPUT@"~
12082 case $lt_outputfile in
12085 lt_outputfile=$lt_outputfile.exe
12086 lt_tool_outputfile=$lt_tool_outputfile.exe
12089 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12090 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12091 $RM "$lt_outputfile.manifest";
12095 # Assume MSVC wrapper
12096 hardcode_libdir_flag_spec=' '
12097 allow_undefined_flag=unsupported
12098 # Tell ltmain to make .lib files, not .a files.
12100 # Tell ltmain to make .dll files, not .so files.
12102 # FIXME: Setting linknames here is a bad hack.
12103 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12104 # The linker will automatically build a .lib file if we build a DLL.
12105 old_archive_from_new_cmds='true'
12106 # FIXME: Should let the user specify the lib program.
12107 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12108 enable_shared_with_static_runtimes=yes
12113 darwin* | rhapsody*)
12116 archive_cmds_need_lc=no
12118 hardcode_automatic=yes
12119 hardcode_shlibpath_var=unsupported
12120 if test yes = "$lt_cv_ld_force_load"; then
12121 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12124 whole_archive_flag_spec=''
12126 link_all_deplibs=yes
12127 allow_undefined_flag=$_lt_dar_allow_undefined
12128 case $cc_basename in
12129 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12130 *) _lt_dar_can_shared=$GCC ;;
12132 if test yes = "$_lt_dar_can_shared"; then
12133 output_verbose_link_cmd=func_echo_all
12134 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12135 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12136 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
12137 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
12146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12147 hardcode_libdir_flag_spec='-L$libdir'
12148 hardcode_shlibpath_var=no
12151 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12152 # support. Future versions do this automatically, but an explicit c++rt0.o
12153 # does not break anything, and helps significantly (at the cost of a little
12156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12157 hardcode_libdir_flag_spec='-R$libdir'
12158 hardcode_direct=yes
12159 hardcode_shlibpath_var=no
12162 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12165 hardcode_direct=yes
12166 hardcode_minus_L=yes
12167 hardcode_shlibpath_var=no
12170 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12171 freebsd* | dragonfly*)
12172 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12173 hardcode_libdir_flag_spec='-R$libdir'
12174 hardcode_direct=yes
12175 hardcode_shlibpath_var=no
12179 if test yes = "$GCC"; then
12180 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12182 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12184 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12185 hardcode_libdir_separator=:
12186 hardcode_direct=yes
12188 # hardcode_minus_L: Not really in the search PATH,
12189 # but as the default location of the library.
12190 hardcode_minus_L=yes
12191 export_dynamic_flag_spec='$wl-E'
12195 if test yes,no = "$GCC,$with_gnu_ld"; then
12196 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12198 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12200 if test no = "$with_gnu_ld"; then
12201 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12202 hardcode_libdir_separator=:
12203 hardcode_direct=yes
12204 hardcode_direct_absolute=yes
12205 export_dynamic_flag_spec='$wl-E'
12206 # hardcode_minus_L: Not really in the search PATH,
12207 # but as the default location of the library.
12208 hardcode_minus_L=yes
12213 if test yes,no = "$GCC,$with_gnu_ld"; then
12216 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12219 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12222 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12228 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12231 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12235 # Older versions of the 11.00 compiler do not understand -b yet
12236 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12238 $as_echo_n "checking if $CC understands -b... " >&6; }
12239 if ${lt_cv_prog_compiler__b+:} false; then :
12240 $as_echo_n "(cached) " >&6
12242 lt_cv_prog_compiler__b=no
12243 save_LDFLAGS=$LDFLAGS
12244 LDFLAGS="$LDFLAGS -b"
12245 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12246 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12247 # The linker can only warn and ignore the option if not recognized
12248 # So say no if there are warnings
12249 if test -s conftest.err; then
12250 # Append any errors to the config.log.
12251 cat conftest.err 1>&5
12252 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12254 if diff conftest.exp conftest.er2 >/dev/null; then
12255 lt_cv_prog_compiler__b=yes
12258 lt_cv_prog_compiler__b=yes
12262 LDFLAGS=$save_LDFLAGS
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12266 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12268 if test yes = "$lt_cv_prog_compiler__b"; then
12269 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12271 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12277 if test no = "$with_gnu_ld"; then
12278 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12279 hardcode_libdir_separator=:
12284 hardcode_shlibpath_var=no
12287 hardcode_direct=yes
12288 hardcode_direct_absolute=yes
12289 export_dynamic_flag_spec='$wl-E'
12291 # hardcode_minus_L: Not really in the search PATH,
12292 # but as the default location of the library.
12293 hardcode_minus_L=yes
12299 irix5* | irix6* | nonstopux*)
12300 if test yes = "$GCC"; then
12301 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12302 # Try to use the -exported_symbol ld option, if it does not
12303 # work, assume that -exports_file does not work either and
12304 # implicitly export all symbols.
12305 # This should be the same for all languages, so no per-tag cache variable.
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12307 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12308 if ${lt_cv_irix_exported_symbol+:} false; then :
12309 $as_echo_n "(cached) " >&6
12311 save_LDFLAGS=$LDFLAGS
12312 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12315 int foo (void) { return 0; }
12317 if ac_fn_c_try_link "$LINENO"; then :
12318 lt_cv_irix_exported_symbol=yes
12320 lt_cv_irix_exported_symbol=no
12322 rm -f core conftest.err conftest.$ac_objext \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LDFLAGS=$save_LDFLAGS
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12327 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12328 if test yes = "$lt_cv_irix_exported_symbol"; then
12329 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
12332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
12335 archive_cmds_need_lc='no'
12336 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12337 hardcode_libdir_separator=:
12339 link_all_deplibs=yes
12343 case $cc_basename in
12345 # Fabrice Bellard et al's Tiny C Compiler
12347 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12356 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12358 hardcode_libdir_flag_spec='-R$libdir'
12359 hardcode_direct=yes
12360 hardcode_shlibpath_var=no
12364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12365 hardcode_direct=yes
12366 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12367 hardcode_libdir_separator=:
12368 hardcode_shlibpath_var=no
12374 openbsd* | bitrig*)
12375 if test -f /usr/libexec/ld.so; then
12376 hardcode_direct=yes
12377 hardcode_shlibpath_var=no
12378 hardcode_direct_absolute=yes
12379 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12380 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12381 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12382 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12383 export_dynamic_flag_spec='$wl-E'
12385 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12386 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12394 hardcode_libdir_flag_spec='-L$libdir'
12395 hardcode_minus_L=yes
12396 allow_undefined_flag=unsupported
12398 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12399 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12400 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12401 $ECHO EXPORTS >> $output_objdir/$libname.def~
12402 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12403 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12404 emximp -o $lib $output_objdir/$libname.def'
12405 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12406 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12407 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12408 $ECHO EXPORTS >> $output_objdir/$libname.def~
12409 prefix_cmds="$SED"~
12410 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12411 prefix_cmds="$prefix_cmds -e 1d";
12413 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12414 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12415 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12416 emximp -o $lib $output_objdir/$libname.def'
12417 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12418 enable_shared_with_static_runtimes=yes
12422 if test yes = "$GCC"; then
12423 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12424 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12426 allow_undefined_flag=' -expect_unresolved \*'
12427 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12429 archive_cmds_need_lc='no'
12430 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12431 hardcode_libdir_separator=:
12434 osf4* | osf5*) # as osf3* with the addition of -msym flag
12435 if test yes = "$GCC"; then
12436 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12437 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12438 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12440 allow_undefined_flag=' -expect_unresolved \*'
12441 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12442 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12443 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
12445 # Both c and cxx compiler support -rpath directly
12446 hardcode_libdir_flag_spec='-rpath $libdir'
12448 archive_cmds_need_lc='no'
12449 hardcode_libdir_separator=:
12453 no_undefined_flag=' -z defs'
12454 if test yes = "$GCC"; then
12456 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12457 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12458 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12460 case `$CC -V 2>&1` in
12463 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12464 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12465 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12469 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12470 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12471 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12475 hardcode_libdir_flag_spec='-R$libdir'
12476 hardcode_shlibpath_var=no
12478 solaris2.[0-5] | solaris2.[0-5].*) ;;
12480 # The compiler driver will combine and reorder linker options,
12481 # but understands '-z linker_flag'. GCC discards it without '$wl',
12482 # but is careful enough not to reorder.
12483 # Supported since Solaris 2.6 (maybe 2.5.1?)
12484 if test yes = "$GCC"; then
12485 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12487 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12491 link_all_deplibs=yes
12495 if test sequent = "$host_vendor"; then
12496 # Use $CC to link under sequent, because it throws in some extra .o
12497 # files that make .init and .fini sections work.
12498 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12500 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12502 hardcode_libdir_flag_spec='-L$libdir'
12503 hardcode_direct=yes
12504 hardcode_minus_L=yes
12505 hardcode_shlibpath_var=no
12509 case $host_vendor in
12511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12512 hardcode_direct=yes # is this really true???
12515 ## LD is ld it makes a PLAMLIB
12516 ## CC just makes a GrossModule.
12517 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12518 reload_cmds='$CC -r -o $output$reload_objs'
12522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12523 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12526 runpath_var='LD_RUN_PATH'
12527 hardcode_shlibpath_var=no
12531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12532 hardcode_shlibpath_var=no
12533 export_dynamic_flag_spec='-Bexport'
12537 if test -d /usr/nec; then
12538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12539 hardcode_shlibpath_var=no
12540 runpath_var=LD_RUN_PATH
12541 hardcode_runpath_var=yes
12546 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12547 no_undefined_flag='$wl-z,text'
12548 archive_cmds_need_lc=no
12549 hardcode_shlibpath_var=no
12550 runpath_var='LD_RUN_PATH'
12552 if test yes = "$GCC"; then
12553 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12554 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12556 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12557 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12561 sysv5* | sco3.2v5* | sco5v6*)
12562 # Note: We CANNOT use -z defs as we might desire, because we do not
12563 # link with -lc, and that would cause any symbols used from libc to
12564 # always be unresolved, which means just about no library would
12565 # ever link correctly. If we're not using GNU ld we use -z text
12566 # though, which does catch some bad symbols but isn't as heavy-handed
12568 no_undefined_flag='$wl-z,text'
12569 allow_undefined_flag='$wl-z,nodefs'
12570 archive_cmds_need_lc=no
12571 hardcode_shlibpath_var=no
12572 hardcode_libdir_flag_spec='$wl-R,$libdir'
12573 hardcode_libdir_separator=':'
12574 link_all_deplibs=yes
12575 export_dynamic_flag_spec='$wl-Bexport'
12576 runpath_var='LD_RUN_PATH'
12578 if test yes = "$GCC"; then
12579 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12580 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12582 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12583 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12589 hardcode_libdir_flag_spec='-L$libdir'
12590 hardcode_shlibpath_var=no
12598 if test sni = "$host_vendor"; then
12600 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12601 export_dynamic_flag_spec='$wl-Blargedynsym'
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12608 $as_echo "$ld_shlibs" >&6; }
12609 test no = "$ld_shlibs" && can_build_shared=no
12611 with_gnu_ld=$with_gnu_ld
12628 # Do we need to explicitly link libc?
12630 case "x$archive_cmds_need_lc" in
12632 # Assume -lc should be added
12633 archive_cmds_need_lc=yes
12635 if test yes,yes = "$GCC,$enable_shared"; then
12636 case $archive_cmds in
12638 # FIXME: we may have to deal with multi-command sequences.
12641 # Test whether the compiler implicitly links with -lc since on some
12642 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12643 # to ld, don't add -lc before -lgcc.
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12645 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12646 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12647 $as_echo_n "(cached) " >&6
12650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12653 (eval $ac_compile) 2>&5
12655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12656 test $ac_status = 0; } 2>conftest.err; then
12659 libobjs=conftest.$ac_objext
12661 wl=$lt_prog_compiler_wl
12662 pic_flag=$lt_prog_compiler_pic
12668 lt_save_allow_undefined_flag=$allow_undefined_flag
12669 allow_undefined_flag=
12670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12671 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12674 test $ac_status = 0; }
12676 lt_cv_archive_cmds_need_lc=no
12678 lt_cv_archive_cmds_need_lc=yes
12680 allow_undefined_flag=$lt_save_allow_undefined_flag
12682 cat conftest.err 1>&5
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12688 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12689 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12848 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12850 if test yes = "$GCC"; then
12852 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12853 *) lt_awk_arg='/^libraries:/' ;;
12856 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12857 *) lt_sed_strip_eq='s|=/|/|g' ;;
12859 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12860 case $lt_search_path_spec in
12862 # if the path contains ";" then we assume it to be the separator
12863 # otherwise default to the standard path separator (i.e. ":") - it is
12864 # assumed that no part of a normal pathname contains ";" but that should
12865 # okay in the real world where ";" in dirpaths is itself problematic.
12866 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12869 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12872 # Ok, now we have the path, separated by spaces, we can step through it
12873 # and add multilib dir if necessary...
12874 lt_tmp_lt_search_path_spec=
12875 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12876 # ...but if some path component already ends with the multilib dir we assume
12877 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12878 case "$lt_multi_os_dir; $lt_search_path_spec " in
12879 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12883 for lt_sys_path in $lt_search_path_spec; do
12884 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12885 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12886 elif test -n "$lt_multi_os_dir"; then
12887 test -d "$lt_sys_path" && \
12888 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12891 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12892 BEGIN {RS = " "; FS = "/|\n";} {
12895 for (lt_i = NF; lt_i > 0; lt_i--) {
12896 if ($lt_i != "" && $lt_i != ".") {
12897 if ($lt_i == "..") {
12900 if (lt_count == 0) {
12901 lt_foo = "/" $lt_i lt_foo;
12908 if (lt_foo != "") { lt_freq[lt_foo]++; }
12909 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12911 # AWK program above erroneously prepends '/' to C:/dos/paths
12914 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12915 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12917 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12919 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12921 library_names_spec=
12922 libname_spec='lib$name'
12926 postuninstall_cmds=
12930 shlibpath_overrides_runpath=unknown
12932 dynamic_linker="$host_os ld.so"
12933 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12934 need_lib_prefix=unknown
12935 hardcode_into_libs=no
12937 # when you set need_version to no, make sure it does not cause -set_version
12938 # flags to be left without arguments
12939 need_version=unknown
12945 version_type=linux # correct to gnu/linux during the next big refactor
12946 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12947 shlibpath_var=LIBPATH
12949 # AIX 3 has no versioning support, so we append a major version to the name.
12950 soname_spec='$libname$release$shared_ext$major'
12954 version_type=linux # correct to gnu/linux during the next big refactor
12957 hardcode_into_libs=yes
12958 if test ia64 = "$host_cpu"; then
12959 # AIX 5 supports IA64
12960 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12961 shlibpath_var=LD_LIBRARY_PATH
12963 # With GCC up to 2.95.x, collect2 would create an import file
12964 # for dependence libraries. The import file would start with
12965 # the line '#! .'. This would cause the generated library to
12966 # depend on '.', always an invalid library. This was fixed in
12967 # development snapshots of GCC prior to 3.0.
12969 aix4 | aix4.[01] | aix4.[01].*)
12970 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12972 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12975 can_build_shared=no
12979 # Using Import Files as archive members, it is possible to support
12980 # filename-based versioning of shared library archives on AIX. While
12981 # this would work for both with and without runtime linking, it will
12982 # prevent static linking of such archives. So we do filename-based
12983 # shared library versioning with .so extension only, which is used
12984 # when both runtime linking and shared linking is enabled.
12985 # Unfortunately, runtime linking may impact performance, so we do
12986 # not want this to be the default eventually. Also, we use the
12987 # versioned .so libs for executables only if there is the -brtl
12988 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12989 # To allow for filename-based versioning support, we need to create
12990 # libNAME.so.V as an archive file, containing:
12991 # *) an Import File, referring to the versioned filename of the
12992 # archive as well as the shared archive member, telling the
12993 # bitwidth (32 or 64) of that shared object, and providing the
12994 # list of exported symbols of that shared object, eventually
12995 # decorated with the 'weak' keyword
12996 # *) the shared object with the F_LOADONLY flag set, to really avoid
12997 # it being seen by the linker.
12998 # At run time we better use the real file rather than another symlink,
12999 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13001 case $with_aix_soname,$aix_use_runtimelinking in
13002 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13003 # soname into executable. Probably we can add versioning support to
13004 # collect2, so additional links can be useful in future.
13005 aix,yes) # traditional libtool
13006 dynamic_linker='AIX unversionable lib.so'
13007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13008 # instead of lib<name>.a to let people know that these are not
13009 # typical AIX shared libraries.
13010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13012 aix,no) # traditional AIX only
13013 dynamic_linker='AIX lib.a(lib.so.V)'
13014 # We preserve .a as extension for shared libraries through AIX4.2
13015 # and later when we are not doing run time linking.
13016 library_names_spec='$libname$release.a $libname.a'
13017 soname_spec='$libname$release$shared_ext$major'
13019 svr4,*) # full svr4 only
13020 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13021 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13022 # We do not specify a path in Import Files, so LIBPATH fires.
13023 shlibpath_overrides_runpath=yes
13025 *,yes) # both, prefer svr4
13026 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13027 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13028 # unpreferred sharedlib libNAME.a needs extra handling
13029 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13030 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13031 # We do not specify a path in Import Files, so LIBPATH fires.
13032 shlibpath_overrides_runpath=yes
13034 *,no) # both, prefer aix
13035 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13036 library_names_spec='$libname$release.a $libname.a'
13037 soname_spec='$libname$release$shared_ext$major'
13038 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13039 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13040 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13043 shlibpath_var=LIBPATH
13050 # Since July 2007 AmigaOS4 officially supports .so libraries.
13051 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13055 library_names_spec='$libname.ixlibrary $libname.a'
13056 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13057 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13063 library_names_spec='$libname$shared_ext'
13064 dynamic_linker="$host_os ld.so"
13065 shlibpath_var=LIBRARY_PATH
13069 version_type=linux # correct to gnu/linux during the next big refactor
13071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13072 soname_spec='$libname$release$shared_ext$major'
13073 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13074 shlibpath_var=LD_LIBRARY_PATH
13075 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13076 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13077 # the default ld.so.conf also contains /usr/contrib/lib and
13078 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13079 # libtool to hard-code these into programs
13082 cygwin* | mingw* | pw32* | cegcc*)
13083 version_type=windows
13088 case $GCC,$cc_basename in
13091 library_names_spec='$libname.dll.a'
13092 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13093 postinstall_cmds='base_file=`basename \$file`~
13094 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13095 dldir=$destdir/`dirname \$dlpath`~
13096 test -d \$dldir || mkdir -p \$dldir~
13097 $install_prog $dir/$dlname \$dldir/$dlname~
13098 chmod a+x \$dldir/$dlname~
13099 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13100 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13102 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13103 dlpath=$dir/\$dldll~
13105 shlibpath_overrides_runpath=yes
13109 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13110 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13112 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13115 # MinGW DLLs use traditional 'lib' prefix
13116 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13119 # pw32 DLLs use 'pw' prefix rather than 'lib'
13120 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13123 dynamic_linker='Win32 ld.exe'
13128 libname_spec='$name'
13129 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13130 library_names_spec='$libname.dll.lib'
13134 sys_lib_search_path_spec=
13137 for lt_path in $LIB
13140 # Let DOS variable expansion print the short 8.3 style file name.
13141 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13142 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13145 # Convert to MSYS style.
13146 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13149 # Convert to unix form, then to dos form, then back to unix form
13150 # but this time dos style (no spaces!) so that the unix form looks
13151 # like /cygdrive/c/PROGRA~1:/cygdr...
13152 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13153 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13154 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13157 sys_lib_search_path_spec=$LIB
13158 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13159 # It is most probably a Windows format PATH.
13160 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13162 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13164 # FIXME: find the short name or the path components, as spaces are
13165 # common. (e.g. "Program Files" -> "PROGRA~1")
13169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13170 postinstall_cmds='base_file=`basename \$file`~
13171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13172 dldir=$destdir/`dirname \$dlpath`~
13173 test -d \$dldir || mkdir -p \$dldir~
13174 $install_prog $dir/$dlname \$dldir/$dlname'
13175 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13176 dlpath=$dir/\$dldll~
13178 shlibpath_overrides_runpath=yes
13179 dynamic_linker='Win32 link.exe'
13183 # Assume MSVC wrapper
13184 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13185 dynamic_linker='Win32 ld.exe'
13188 # FIXME: first we should search . and the directory the executable is in
13192 darwin* | rhapsody*)
13193 dynamic_linker="$host_os dyld"
13194 version_type=darwin
13197 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13198 soname_spec='$libname$release$major$shared_ext'
13199 shlibpath_overrides_runpath=yes
13200 shlibpath_var=DYLD_LIBRARY_PATH
13201 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13203 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13208 version_type=linux # correct to gnu/linux during the next big refactor
13211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13212 soname_spec='$libname$release$shared_ext$major'
13213 shlibpath_var=LD_LIBRARY_PATH
13216 freebsd* | dragonfly*)
13217 # DragonFly does not have aout. When/if they implement a new
13218 # versioning mechanism, adjust this.
13219 if test -x /usr/bin/objformat; then
13220 objformat=`/usr/bin/objformat`
13223 freebsd[23].*) objformat=aout ;;
13224 *) objformat=elf ;;
13227 version_type=freebsd-$objformat
13228 case $version_type in
13230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13231 soname_spec='$libname$release$shared_ext$major'
13236 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13240 shlibpath_var=LD_LIBRARY_PATH
13243 shlibpath_overrides_runpath=yes
13245 freebsd3.[01]* | freebsdelf3.[01]*)
13246 shlibpath_overrides_runpath=yes
13247 hardcode_into_libs=yes
13249 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13250 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13251 shlibpath_overrides_runpath=no
13252 hardcode_into_libs=yes
13254 *) # from 4.6 on, and DragonFly
13255 shlibpath_overrides_runpath=yes
13256 hardcode_into_libs=yes
13262 version_type=linux # correct to gnu/linux during the next big refactor
13265 dynamic_linker="$host_os runtime_loader"
13266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13267 soname_spec='$libname$release$shared_ext$major'
13268 shlibpath_var=LIBRARY_PATH
13269 shlibpath_overrides_runpath=no
13270 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13271 hardcode_into_libs=yes
13274 hpux9* | hpux10* | hpux11*)
13275 # Give a soname corresponding to the major version so that dld.sl refuses to
13276 # link against other versions.
13283 hardcode_into_libs=yes
13284 dynamic_linker="$host_os dld.so"
13285 shlibpath_var=LD_LIBRARY_PATH
13286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13288 soname_spec='$libname$release$shared_ext$major'
13289 if test 32 = "$HPUX_IA64_MODE"; then
13290 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13291 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13293 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13294 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13299 hardcode_into_libs=yes
13300 dynamic_linker="$host_os dld.sl"
13301 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13304 soname_spec='$libname$release$shared_ext$major'
13305 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13310 dynamic_linker="$host_os dld.sl"
13311 shlibpath_var=SHLIB_PATH
13312 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13314 soname_spec='$libname$release$shared_ext$major'
13317 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13318 postinstall_cmds='chmod 555 $lib'
13319 # or fails outright, so override atomically:
13320 install_override_mode=555
13324 version_type=linux # correct to gnu/linux during the next big refactor
13327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13328 soname_spec='$libname$release$shared_ext$major'
13329 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13330 shlibpath_var=LD_LIBRARY_PATH
13331 shlibpath_overrides_runpath=no
13332 hardcode_into_libs=yes
13335 irix5* | irix6* | nonstopux*)
13337 nonstopux*) version_type=nonstopux ;;
13339 if test yes = "$lt_cv_prog_gnu_ld"; then
13340 version_type=linux # correct to gnu/linux during the next big refactor
13347 soname_spec='$libname$release$shared_ext$major'
13348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13350 irix5* | nonstopux*)
13351 libsuff= shlibsuff=
13354 case $LD in # libtool.m4 will add one of these switches to LD
13355 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13356 libsuff= shlibsuff= libmagic=32-bit;;
13357 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13358 libsuff=32 shlibsuff=N32 libmagic=N32;;
13359 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13360 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13361 *) libsuff= shlibsuff= libmagic=never-match;;
13365 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13366 shlibpath_overrides_runpath=no
13367 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13368 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13369 hardcode_into_libs=yes
13372 # No shared lib support for Linux oldld, aout, or coff.
13373 linux*oldld* | linux*aout* | linux*coff*)
13378 version_type=none # Android doesn't support versioned libraries.
13381 library_names_spec='$libname$release$shared_ext'
13382 soname_spec='$libname$release$shared_ext'
13384 shlibpath_var=LD_LIBRARY_PATH
13385 shlibpath_overrides_runpath=yes
13387 # This implies no fast_install, which is unacceptable.
13388 # Some rework will be needed to allow for fast_install
13389 # before this can be enabled.
13390 hardcode_into_libs=yes
13392 dynamic_linker='Android linker'
13393 # Don't embed -rpath directories since the linker doesn't support them.
13394 hardcode_libdir_flag_spec='-L$libdir'
13397 # This must be glibc/ELF.
13398 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13399 version_type=linux # correct to gnu/linux during the next big refactor
13402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13403 soname_spec='$libname$release$shared_ext$major'
13404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13405 shlibpath_var=LD_LIBRARY_PATH
13406 shlibpath_overrides_runpath=no
13408 # Some binutils ld are patched to set DT_RUNPATH
13409 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13410 $as_echo_n "(cached) " >&6
13412 lt_cv_shlibpath_overrides_runpath=no
13413 save_LDFLAGS=$LDFLAGS
13414 save_libdir=$libdir
13415 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13416 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13428 if ac_fn_c_try_link "$LINENO"; then :
13429 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13430 lt_cv_shlibpath_overrides_runpath=yes
13433 rm -f core conftest.err conftest.$ac_objext \
13434 conftest$ac_exeext conftest.$ac_ext
13435 LDFLAGS=$save_LDFLAGS
13436 libdir=$save_libdir
13440 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13442 # This implies no fast_install, which is unacceptable.
13443 # Some rework will be needed to allow for fast_install
13444 # before this can be enabled.
13445 hardcode_into_libs=yes
13447 # Add ABI-specific directories to the system library path.
13448 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13450 # Ideally, we could use ldconfig to report *all* directores which are
13451 # searched for libraries, however this is still not possible. Aside from not
13452 # being certain /sbin/ldconfig is available, command
13453 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13454 # even though it is searched at run-time. Try to do the best guess by
13455 # appending ld.so.conf contents (and includes) to the search path.
13456 if test -f /etc/ld.so.conf; then
13457 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13458 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13461 # We used to test for /lib/ld.so.1 and disable shared libraries on
13462 # powerpc, because MkLinux only supported shared libraries with the
13463 # GNU dynamic linker. Since this was broken with cross compilers,
13464 # most powerpc-linux boxes support dynamic linking these days and
13465 # people can always --disable-shared, the test was removed, and we
13466 # assume the GNU/Linux dynamic linker is in use.
13467 dynamic_linker='GNU/Linux ld.so'
13474 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13475 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13477 dynamic_linker='NetBSD (a.out) ld.so'
13479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13480 soname_spec='$libname$release$shared_ext$major'
13481 dynamic_linker='NetBSD ld.elf_so'
13483 shlibpath_var=LD_LIBRARY_PATH
13484 shlibpath_overrides_runpath=yes
13485 hardcode_into_libs=yes
13489 version_type=linux # correct to gnu/linux during the next big refactor
13490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13491 shlibpath_var=LD_LIBRARY_PATH
13492 shlibpath_overrides_runpath=yes
13499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13500 soname_spec='$libname$release$shared_ext$major'
13501 shlibpath_var=LD_LIBRARY_PATH
13502 shlibpath_overrides_runpath=no
13503 hardcode_into_libs=yes
13504 dynamic_linker='ldqnx.so'
13507 openbsd* | bitrig*)
13509 sys_lib_dlsearch_path_spec=/usr/lib
13511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13516 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13518 shlibpath_var=LD_LIBRARY_PATH
13519 shlibpath_overrides_runpath=yes
13523 libname_spec='$name'
13524 version_type=windows
13528 # OS/2 can only load a DLL with a base name of 8 characters or less.
13529 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13530 v=$($ECHO $release$versuffix | tr -d .-);
13531 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13532 $ECHO $n$v`$shared_ext'
13533 library_names_spec='${libname}_dll.$libext'
13534 dynamic_linker='OS/2 ld.exe'
13535 shlibpath_var=BEGINLIBPATH
13536 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13538 postinstall_cmds='base_file=`basename \$file`~
13539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13540 dldir=$destdir/`dirname \$dlpath`~
13541 test -d \$dldir || mkdir -p \$dldir~
13542 $install_prog $dir/$dlname \$dldir/$dlname~
13543 chmod a+x \$dldir/$dlname~
13544 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13545 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13548 dlpath=$dir/\$dldll~
13552 osf3* | osf4* | osf5*)
13556 soname_spec='$libname$release$shared_ext$major'
13557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13558 shlibpath_var=LD_LIBRARY_PATH
13559 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13568 version_type=linux # correct to gnu/linux during the next big refactor
13571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13572 soname_spec='$libname$release$shared_ext$major'
13573 shlibpath_var=LD_LIBRARY_PATH
13574 shlibpath_overrides_runpath=yes
13575 hardcode_into_libs=yes
13576 # ldd complains unless libraries are executable
13577 postinstall_cmds='chmod +x $lib'
13582 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13583 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13584 shlibpath_var=LD_LIBRARY_PATH
13585 shlibpath_overrides_runpath=yes
13586 if test yes = "$with_gnu_ld"; then
13593 version_type=linux # correct to gnu/linux during the next big refactor
13594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13595 soname_spec='$libname$release$shared_ext$major'
13596 shlibpath_var=LD_LIBRARY_PATH
13597 case $host_vendor in
13599 shlibpath_overrides_runpath=no
13601 runpath_var=LD_RUN_PATH
13609 shlibpath_overrides_runpath=no
13610 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13616 if test -d /usr/nec; then
13617 version_type=linux # correct to gnu/linux during the next big refactor
13618 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13619 soname_spec='$libname$shared_ext.$major'
13620 shlibpath_var=LD_LIBRARY_PATH
13624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13629 soname_spec='$libname$release$shared_ext$major'
13630 shlibpath_var=LD_LIBRARY_PATH
13631 shlibpath_overrides_runpath=yes
13632 hardcode_into_libs=yes
13633 if test yes = "$with_gnu_ld"; then
13634 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13636 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13639 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13643 sys_lib_dlsearch_path_spec='/usr/lib'
13647 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13648 version_type=linux # correct to gnu/linux during the next big refactor
13651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13652 shlibpath_var=LD_LIBRARY_PATH
13653 shlibpath_overrides_runpath=no
13654 hardcode_into_libs=yes
13658 version_type=linux # correct to gnu/linux during the next big refactor
13659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13660 soname_spec='$libname$release$shared_ext$major'
13661 shlibpath_var=LD_LIBRARY_PATH
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13669 $as_echo "$dynamic_linker" >&6; }
13670 test no = "$dynamic_linker" && can_build_shared=no
13672 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13673 if test yes = "$GCC"; then
13674 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13677 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13678 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13681 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13682 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13685 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13686 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13688 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13689 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13691 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13692 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13791 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13793 if test -n "$hardcode_libdir_flag_spec" ||
13794 test -n "$runpath_var" ||
13795 test yes = "$hardcode_automatic"; then
13797 # We can hardcode non-existent directories.
13798 if test no != "$hardcode_direct" &&
13799 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13800 # have to relink, otherwise we might link with an installed library
13801 # when we should be linking with a yet-to-be-installed one
13802 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13803 test no != "$hardcode_minus_L"; then
13804 # Linking always hardcodes the temporary library directory.
13805 hardcode_action=relink
13807 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13808 hardcode_action=immediate
13811 # We cannot hardcode anything, or else we can only hardcode existing
13813 hardcode_action=unsupported
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13816 $as_echo "$hardcode_action" >&6; }
13818 if test relink = "$hardcode_action" ||
13819 test yes = "$inherit_rpath"; then
13820 # Fast installation is not supported
13821 enable_fast_install=no
13822 elif test yes = "$shlibpath_overrides_runpath" ||
13823 test no = "$enable_shared"; then
13824 # Fast installation is not necessary
13825 enable_fast_install=needless
13833 if test yes != "$enable_dlopen"; then
13834 enable_dlopen=unknown
13835 enable_dlopen_self=unknown
13836 enable_dlopen_self_static=unknown
13843 lt_cv_dlopen=load_add_on
13845 lt_cv_dlopen_self=yes
13848 mingw* | pw32* | cegcc*)
13849 lt_cv_dlopen=LoadLibrary
13854 lt_cv_dlopen=dlopen
13859 # if libdl is installed we need to link against it
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13861 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13862 if ${ac_cv_lib_dl_dlopen+:} false; then :
13863 $as_echo_n "(cached) " >&6
13865 ac_check_lib_save_LIBS=$LIBS
13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13870 /* Override any GCC internal prototype to avoid an error.
13871 Use char because int might match the return type of a GCC
13872 builtin and then its argument prototype would still apply. */
13885 if ac_fn_c_try_link "$LINENO"; then :
13886 ac_cv_lib_dl_dlopen=yes
13888 ac_cv_lib_dl_dlopen=no
13890 rm -f core conftest.err conftest.$ac_objext \
13891 conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13895 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13896 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13897 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13902 lt_cv_dlopen_self=yes
13909 # Don't try to run any link tests for TPF. We know it's impossible
13910 # because TPF is a cross-compiler, and we know how we open DSOs.
13911 lt_cv_dlopen=dlopen
13913 lt_cv_dlopen_self=no
13917 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13918 if test "x$ac_cv_func_shl_load" = xyes; then :
13919 lt_cv_dlopen=shl_load
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13922 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13923 if ${ac_cv_lib_dld_shl_load+:} false; then :
13924 $as_echo_n "(cached) " >&6
13926 ac_check_lib_save_LIBS=$LIBS
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13931 /* Override any GCC internal prototype to avoid an error.
13932 Use char because int might match the return type of a GCC
13933 builtin and then its argument prototype would still apply. */
13941 return shl_load ();
13946 if ac_fn_c_try_link "$LINENO"; then :
13947 ac_cv_lib_dld_shl_load=yes
13949 ac_cv_lib_dld_shl_load=no
13951 rm -f core conftest.err conftest.$ac_objext \
13952 conftest$ac_exeext conftest.$ac_ext
13953 LIBS=$ac_check_lib_save_LIBS
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13956 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13957 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13958 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13960 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13961 if test "x$ac_cv_func_dlopen" = xyes; then :
13962 lt_cv_dlopen=dlopen
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13965 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13966 if ${ac_cv_lib_dl_dlopen+:} false; then :
13967 $as_echo_n "(cached) " >&6
13969 ac_check_lib_save_LIBS=$LIBS
13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972 /* end confdefs.h. */
13974 /* Override any GCC internal prototype to avoid an error.
13975 Use char because int might match the return type of a GCC
13976 builtin and then its argument prototype would still apply. */
13989 if ac_fn_c_try_link "$LINENO"; then :
13990 ac_cv_lib_dl_dlopen=yes
13992 ac_cv_lib_dl_dlopen=no
13994 rm -f core conftest.err conftest.$ac_objext \
13995 conftest$ac_exeext conftest.$ac_ext
13996 LIBS=$ac_check_lib_save_LIBS
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13999 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14000 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14001 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14004 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14005 if ${ac_cv_lib_svld_dlopen+:} false; then :
14006 $as_echo_n "(cached) " >&6
14008 ac_check_lib_save_LIBS=$LIBS
14009 LIBS="-lsvld $LIBS"
14010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011 /* end confdefs.h. */
14013 /* Override any GCC internal prototype to avoid an error.
14014 Use char because int might match the return type of a GCC
14015 builtin and then its argument prototype would still apply. */
14028 if ac_fn_c_try_link "$LINENO"; then :
14029 ac_cv_lib_svld_dlopen=yes
14031 ac_cv_lib_svld_dlopen=no
14033 rm -f core conftest.err conftest.$ac_objext \
14034 conftest$ac_exeext conftest.$ac_ext
14035 LIBS=$ac_check_lib_save_LIBS
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14038 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14039 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14040 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14043 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14044 if ${ac_cv_lib_dld_dld_link+:} false; then :
14045 $as_echo_n "(cached) " >&6
14047 ac_check_lib_save_LIBS=$LIBS
14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14050 /* end confdefs.h. */
14052 /* Override any GCC internal prototype to avoid an error.
14053 Use char because int might match the return type of a GCC
14054 builtin and then its argument prototype would still apply. */
14062 return dld_link ();
14067 if ac_fn_c_try_link "$LINENO"; then :
14068 ac_cv_lib_dld_dld_link=yes
14070 ac_cv_lib_dld_dld_link=no
14072 rm -f core conftest.err conftest.$ac_objext \
14073 conftest$ac_exeext conftest.$ac_ext
14074 LIBS=$ac_check_lib_save_LIBS
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14077 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14078 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14079 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14100 if test no = "$lt_cv_dlopen"; then
14106 case $lt_cv_dlopen in
14108 save_CPPFLAGS=$CPPFLAGS
14109 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14111 save_LDFLAGS=$LDFLAGS
14112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14115 LIBS="$lt_cv_dlopen_libs $LIBS"
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14118 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14119 if ${lt_cv_dlopen_self+:} false; then :
14120 $as_echo_n "(cached) " >&6
14122 if test yes = "$cross_compiling"; then :
14123 lt_cv_dlopen_self=cross
14125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14126 lt_status=$lt_dlunknown
14127 cat > conftest.$ac_ext <<_LT_EOF
14128 #line $LINENO "configure"
14129 #include "confdefs.h"
14138 # define LT_DLGLOBAL RTLD_GLOBAL
14141 # define LT_DLGLOBAL DL_GLOBAL
14143 # define LT_DLGLOBAL 0
14147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14148 find out it does not work in some platform. */
14149 #ifndef LT_DLLAZY_OR_NOW
14151 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14154 # define LT_DLLAZY_OR_NOW DL_LAZY
14157 # define LT_DLLAZY_OR_NOW RTLD_NOW
14160 # define LT_DLLAZY_OR_NOW DL_NOW
14162 # define LT_DLLAZY_OR_NOW 0
14169 /* When -fvisibility=hidden is used, assume the code has been annotated
14170 correspondingly for the symbols needed. */
14171 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14172 int fnord () __attribute__((visibility("default")));
14175 int fnord () { return 42; }
14178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14179 int status = $lt_dlunknown;
14183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14186 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14187 else puts (dlerror ());
14189 /* dlclose (self); */
14197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14198 (eval $ac_link) 2>&5
14200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14201 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14202 (./conftest; exit; ) >&5 2>/dev/null
14204 case x$lt_status in
14205 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14206 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14207 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14210 # compilation failed
14211 lt_cv_dlopen_self=no
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14219 $as_echo "$lt_cv_dlopen_self" >&6; }
14221 if test yes = "$lt_cv_dlopen_self"; then
14222 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14224 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14225 if ${lt_cv_dlopen_self_static+:} false; then :
14226 $as_echo_n "(cached) " >&6
14228 if test yes = "$cross_compiling"; then :
14229 lt_cv_dlopen_self_static=cross
14231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14232 lt_status=$lt_dlunknown
14233 cat > conftest.$ac_ext <<_LT_EOF
14234 #line $LINENO "configure"
14235 #include "confdefs.h"
14244 # define LT_DLGLOBAL RTLD_GLOBAL
14247 # define LT_DLGLOBAL DL_GLOBAL
14249 # define LT_DLGLOBAL 0
14253 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14254 find out it does not work in some platform. */
14255 #ifndef LT_DLLAZY_OR_NOW
14257 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14260 # define LT_DLLAZY_OR_NOW DL_LAZY
14263 # define LT_DLLAZY_OR_NOW RTLD_NOW
14266 # define LT_DLLAZY_OR_NOW DL_NOW
14268 # define LT_DLLAZY_OR_NOW 0
14275 /* When -fvisibility=hidden is used, assume the code has been annotated
14276 correspondingly for the symbols needed. */
14277 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14278 int fnord () __attribute__((visibility("default")));
14281 int fnord () { return 42; }
14284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14285 int status = $lt_dlunknown;
14289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14292 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14293 else puts (dlerror ());
14295 /* dlclose (self); */
14303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14304 (eval $ac_link) 2>&5
14306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14307 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14308 (./conftest; exit; ) >&5 2>/dev/null
14310 case x$lt_status in
14311 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14312 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14313 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14316 # compilation failed
14317 lt_cv_dlopen_self_static=no
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14325 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14328 CPPFLAGS=$save_CPPFLAGS
14329 LDFLAGS=$save_LDFLAGS
14334 case $lt_cv_dlopen_self in
14335 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14336 *) enable_dlopen_self=unknown ;;
14339 case $lt_cv_dlopen_self_static in
14340 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14341 *) enable_dlopen_self_static=unknown ;;
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14364 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14365 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14366 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14367 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14369 $as_echo "yes" >&6; }
14371 # FIXME - insert some real tests, host_os isn't really good enough
14374 if test -n "$STRIP"; then
14375 striplib="$STRIP -x"
14376 old_striplib="$STRIP -S"
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14378 $as_echo "yes" >&6; }
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14381 $as_echo "no" >&6; }
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14386 $as_echo "no" >&6; }
14402 # Report what library types will actually be built
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14404 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14406 $as_echo "$can_build_shared" >&6; }
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14409 $as_echo_n "checking whether to build shared libraries... " >&6; }
14410 test no = "$can_build_shared" && enable_shared=no
14412 # On AIX, shared libraries and static libraries use the same namespace, and
14413 # are all built from PIC.
14416 test yes = "$enable_shared" && enable_static=no
14417 if test -n "$RANLIB"; then
14418 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14419 postinstall_cmds='$RANLIB $lib'
14424 if test ia64 != "$host_cpu"; then
14425 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14426 yes,aix,yes) ;; # shared object as lib.so file only
14427 yes,svr4,*) ;; # shared object as lib.so archive member only
14428 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14434 $as_echo "$enable_shared" >&6; }
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14437 $as_echo_n "checking whether to build static libraries... " >&6; }
14438 # Make sure either enable_shared or enable_static is yes.
14439 test yes = "$enable_shared" || enable_static=yes
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14441 $as_echo "$enable_static" >&6; }
14448 ac_cpp='$CPP $CPPFLAGS'
14449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14469 ac_config_commands="$ac_config_commands libtool"
14474 # Only expand once:
14479 # Checks for header files.
14480 for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h sys/ipc.h sys/shm.h
14482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14483 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14485 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14486 cat >>confdefs.h <<_ACEOF
14487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14496 # Using own tests for int64* because autoconf builtin only give 32bit.
14497 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14498 if test "x$ac_cv_type_int8_t" = xyes; then :
14502 cat >>confdefs.h <<_ACEOF
14503 #define int8_t signed char
14508 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14509 if test "x$ac_cv_type_int16_t" = xyes; then :
14513 cat >>confdefs.h <<_ACEOF
14514 #define int16_t short
14519 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14520 if test "x$ac_cv_type_int32_t" = xyes; then :
14524 cat >>confdefs.h <<_ACEOF
14525 #define int32_t int
14530 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14531 if test "x$ac_cv_type_int64_t" = xyes; then :
14535 cat >>confdefs.h <<_ACEOF
14536 #define int64_t long long
14541 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14542 if test "x$ac_cv_type_uint8_t" = xyes; then :
14546 cat >>confdefs.h <<_ACEOF
14547 #define uint8_t unsigned char
14552 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14553 if test "x$ac_cv_type_uint16_t" = xyes; then :
14557 cat >>confdefs.h <<_ACEOF
14558 #define uint16_t unsigned short
14563 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14564 if test "x$ac_cv_type_uint32_t" = xyes; then :
14568 cat >>confdefs.h <<_ACEOF
14569 #define uint32_t unsigned int
14574 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14575 if test "x$ac_cv_type_uint64_t" = xyes; then :
14579 cat >>confdefs.h <<_ACEOF
14580 #define uint64_t unsigned long long
14585 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14586 if test "x$ac_cv_type_size_t" = xyes; then :
14590 cat >>confdefs.h <<_ACEOF
14591 #define size_t unsigned int
14596 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14597 if test "x$ac_cv_type_ssize_t" = xyes; then :
14601 cat >>confdefs.h <<_ACEOF
14602 #define ssize_t int
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14608 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14609 if ${ac_cv_type_uid_t+:} false; then :
14610 $as_echo_n "(cached) " >&6
14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613 /* end confdefs.h. */
14614 #include <sys/types.h>
14617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14618 $EGREP "uid_t" >/dev/null 2>&1; then :
14619 ac_cv_type_uid_t=yes
14621 ac_cv_type_uid_t=no
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14627 $as_echo "$ac_cv_type_uid_t" >&6; }
14628 if test $ac_cv_type_uid_t = no; then
14630 $as_echo "#define uid_t int" >>confdefs.h
14633 $as_echo "#define gid_t int" >>confdefs.h
14637 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14638 if test "x$ac_cv_type_pid_t" = xyes; then :
14642 cat >>confdefs.h <<_ACEOF
14648 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14649 if test "x$ac_cv_type_off_t" = xyes; then :
14653 cat >>confdefs.h <<_ACEOF
14654 #define off_t long int
14659 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14660 $ac_includes_default
14661 #ifdef HAVE_WINSOCK2_H
14662 # include <winsock2.h>
14666 if test "x$ac_cv_type_u_char" = xyes; then :
14670 $as_echo "#define u_char unsigned char" >>confdefs.h
14674 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14675 $ac_includes_default
14676 #ifdef HAVE_SYS_RESOURCE_H
14677 # include <sys/resource.h>
14681 if test "x$ac_cv_type_rlim_t" = xyes; then :
14685 $as_echo "#define rlim_t unsigned long" >>confdefs.h
14690 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14691 $ac_includes_default
14692 #ifdef HAVE_SYS_SOCKET_H
14693 # include <sys/socket.h>
14695 #ifdef HAVE_WS2TCPIP_H
14696 # include <ws2tcpip.h>
14700 if test "x$ac_cv_type_socklen_t" = xyes; then :
14704 $as_echo "#define socklen_t int" >>confdefs.h
14708 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14709 $ac_includes_default
14710 #ifdef HAVE_SYS_TYPES_H
14711 # include <sys/types.h>
14713 #ifdef HAVE_NETINET_IN_H
14714 # include <netinet/in.h>
14718 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14722 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14726 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14727 $ac_includes_default
14728 #ifdef HAVE_SYS_TYPES_H
14729 # include <sys/types.h>
14731 #ifdef HAVE_NETINET_IN_H
14732 # include <netinet/in.h>
14736 if test "x$ac_cv_type_in_port_t" = xyes; then :
14740 $as_echo "#define in_port_t uint16_t" >>confdefs.h
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14745 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
14746 if test "$cross_compiling" = yes; then :
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14748 $as_echo "cross-compile no" >&6; }
14750 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14752 case " $LIBOBJS " in
14753 *" memcmp.$ac_objext "* ) ;;
14754 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14761 /* end confdefs.h. */
14764 #include <stdlib.h>
14765 #include <string.h>
14768 char a = 255, b = 0;
14769 if(memcmp(&a, &b, 1) < 0)
14775 if ac_fn_c_try_run "$LINENO"; then :
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14777 $as_echo "yes" >&6; }
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14780 $as_echo "no" >&6; }
14782 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14784 case " $LIBOBJS " in
14785 *" memcmp.$ac_objext "* ) ;;
14786 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14793 conftest.$ac_objext conftest.beam conftest.$ac_ext
14797 # The cast to long int works around a bug in the HP C Compiler
14798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14800 # This bug is HP SR number 8606223364.
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14802 $as_echo_n "checking size of time_t... " >&6; }
14803 if ${ac_cv_sizeof_time_t+:} false; then :
14804 $as_echo_n "(cached) " >&6
14806 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14807 $ac_includes_default
14808 #ifdef TIME_WITH_SYS_TIME
14809 # include <sys/time.h>
14812 # ifdef HAVE_SYS_TIME_H
14813 # include <sys/time.h>
14822 if test "$ac_cv_type_time_t" = yes; then
14823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14825 as_fn_error 77 "cannot compute sizeof (time_t)
14826 See \`config.log' for more details" "$LINENO" 5; }
14828 ac_cv_sizeof_time_t=0
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14834 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14838 cat >>confdefs.h <<_ACEOF
14839 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14844 # add option to disable the evil rpath
14846 # Check whether --enable-rpath was given.
14847 if test "${enable_rpath+set}" = set; then :
14848 enableval=$enable_rpath; enable_rpath=$enableval
14853 if test "x$enable_rpath" = xno; then
14854 ac_config_commands="$ac_config_commands disable-rpath"
14860 # check to see if libraries are needed for these functions.
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14862 $as_echo_n "checking for library containing inet_pton... " >&6; }
14863 if ${ac_cv_search_inet_pton+:} false; then :
14864 $as_echo_n "(cached) " >&6
14866 ac_func_search_save_LIBS=$LIBS
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14870 /* Override any GCC internal prototype to avoid an error.
14871 Use char because int might match the return type of a GCC
14872 builtin and then its argument prototype would still apply. */
14880 return inet_pton ();
14885 for ac_lib in '' nsl; do
14886 if test -z "$ac_lib"; then
14887 ac_res="none required"
14890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14892 if ac_fn_c_try_link "$LINENO"; then :
14893 ac_cv_search_inet_pton=$ac_res
14895 rm -f core conftest.err conftest.$ac_objext \
14897 if ${ac_cv_search_inet_pton+:} false; then :
14901 if ${ac_cv_search_inet_pton+:} false; then :
14904 ac_cv_search_inet_pton=no
14906 rm conftest.$ac_ext
14907 LIBS=$ac_func_search_save_LIBS
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14910 $as_echo "$ac_cv_search_inet_pton" >&6; }
14911 ac_res=$ac_cv_search_inet_pton
14912 if test "$ac_res" != no; then :
14913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14918 $as_echo_n "checking for library containing socket... " >&6; }
14919 if ${ac_cv_search_socket+:} false; then :
14920 $as_echo_n "(cached) " >&6
14922 ac_func_search_save_LIBS=$LIBS
14923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14924 /* end confdefs.h. */
14926 /* Override any GCC internal prototype to avoid an error.
14927 Use char because int might match the return type of a GCC
14928 builtin and then its argument prototype would still apply. */
14941 for ac_lib in '' socket; do
14942 if test -z "$ac_lib"; then
14943 ac_res="none required"
14946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14948 if ac_fn_c_try_link "$LINENO"; then :
14949 ac_cv_search_socket=$ac_res
14951 rm -f core conftest.err conftest.$ac_objext \
14953 if ${ac_cv_search_socket+:} false; then :
14957 if ${ac_cv_search_socket+:} false; then :
14960 ac_cv_search_socket=no
14962 rm conftest.$ac_ext
14963 LIBS=$ac_func_search_save_LIBS
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14966 $as_echo "$ac_cv_search_socket" >&6; }
14967 ac_res=$ac_cv_search_socket
14968 if test "$ac_res" != no; then :
14969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14974 # check wether strptime also works
14976 # check some functions of the OS before linking libs (while still runnable).
14977 for ac_header in unistd.h
14979 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14980 if test "x$ac_cv_header_unistd_h" = xyes; then :
14981 cat >>confdefs.h <<_ACEOF
14982 #define HAVE_UNISTD_H 1
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14990 $as_echo_n "checking for working chown... " >&6; }
14991 if ${ac_cv_func_chown_works+:} false; then :
14992 $as_echo_n "(cached) " >&6
14994 if test "$cross_compiling" = yes; then :
14995 ac_cv_func_chown_works=no
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999 $ac_includes_default
15005 char *f = "conftest.chown";
15006 struct stat before, after;
15008 if (creat (f, 0600) < 0)
15010 if (stat (f, &before) < 0)
15012 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15014 if (stat (f, &after) < 0)
15016 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15022 if ac_fn_c_try_run "$LINENO"; then :
15023 ac_cv_func_chown_works=yes
15025 ac_cv_func_chown_works=no
15027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15028 conftest.$ac_objext conftest.beam conftest.$ac_ext
15031 rm -f conftest.chown
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15035 $as_echo "$ac_cv_func_chown_works" >&6; }
15036 if test $ac_cv_func_chown_works = yes; then
15038 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15042 for ac_header in vfork.h
15044 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15045 if test "x$ac_cv_header_vfork_h" = xyes; then :
15046 cat >>confdefs.h <<_ACEOF
15047 #define HAVE_VFORK_H 1
15054 for ac_func in fork vfork
15056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15057 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15058 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15059 cat >>confdefs.h <<_ACEOF
15060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15066 if test "x$ac_cv_func_fork" = xyes; then
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15068 $as_echo_n "checking for working fork... " >&6; }
15069 if ${ac_cv_func_fork_works+:} false; then :
15070 $as_echo_n "(cached) " >&6
15072 if test "$cross_compiling" = yes; then :
15073 ac_cv_func_fork_works=cross
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15077 $ac_includes_default
15082 /* By Ruediger Kuhlmann. */
15083 return fork () < 0;
15089 if ac_fn_c_try_run "$LINENO"; then :
15090 ac_cv_func_fork_works=yes
15092 ac_cv_func_fork_works=no
15094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15095 conftest.$ac_objext conftest.beam conftest.$ac_ext
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15100 $as_echo "$ac_cv_func_fork_works" >&6; }
15103 ac_cv_func_fork_works=$ac_cv_func_fork
15105 if test "x$ac_cv_func_fork_works" = xcross; then
15107 *-*-amigaos* | *-*-msdosdjgpp*)
15108 # Override, as these systems have only a dummy fork() stub
15109 ac_cv_func_fork_works=no
15112 ac_cv_func_fork_works=yes
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15116 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15118 ac_cv_func_vfork_works=$ac_cv_func_vfork
15119 if test "x$ac_cv_func_vfork" = xyes; then
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15121 $as_echo_n "checking for working vfork... " >&6; }
15122 if ${ac_cv_func_vfork_works+:} false; then :
15123 $as_echo_n "(cached) " >&6
15125 if test "$cross_compiling" = yes; then :
15126 ac_cv_func_vfork_works=cross
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15130 /* Thanks to Paul Eggert for this test. */
15131 $ac_includes_default
15132 #include <sys/wait.h>
15133 #ifdef HAVE_VFORK_H
15134 # include <vfork.h>
15136 /* On some sparc systems, changes by the child to local and incoming
15137 argument registers are propagated back to the parent. The compiler
15138 is told about this with #include <vfork.h>, but some compilers
15139 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15140 static variable whose address is put into a register that is
15141 clobbered by the vfork. */
15144 sparc_address_test (int arg)
15146 sparc_address_test (arg) int arg;
15149 static pid_t child;
15167 pid_t parent = getpid ();
15170 sparc_address_test (0);
15175 /* Here is another test for sparc vfork register problems. This
15176 test uses lots of local variables, at least as many local
15177 variables as main has allocated so far including compiler
15178 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15179 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15180 reuse the register of parent for one of the local variables,
15181 since it will think that parent can't possibly be used any more
15182 in this routine. Assigning to the local variable will thus
15183 munge parent in the parent process. */
15185 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15186 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15187 /* Convince the compiler that p..p7 are live; otherwise, it might
15188 use the same hardware register for all 8 local variables. */
15189 if (p != p1 || p != p2 || p != p3 || p != p4
15190 || p != p5 || p != p6 || p != p7)
15193 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15194 from child file descriptors. If the child closes a descriptor
15195 before it execs or exits, this munges the parent's descriptor
15196 as well. Test for this by closing stdout in the child. */
15197 _exit(close(fileno(stdout)) != 0);
15202 while (wait(&status) != child)
15205 /* Was there some problem with vforking? */
15208 /* Did the child fail? (This shouldn't happen.) */
15211 /* Did the vfork/compiler bug occur? */
15212 || parent != getpid()
15214 /* Did the file descriptor bug occur? */
15215 || fstat(fileno(stdout), &st) != 0
15220 if ac_fn_c_try_run "$LINENO"; then :
15221 ac_cv_func_vfork_works=yes
15223 ac_cv_func_vfork_works=no
15225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15226 conftest.$ac_objext conftest.beam conftest.$ac_ext
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15231 $as_echo "$ac_cv_func_vfork_works" >&6; }
15234 if test "x$ac_cv_func_fork_works" = xcross; then
15235 ac_cv_func_vfork_works=$ac_cv_func_vfork
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15237 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15240 if test "x$ac_cv_func_vfork_works" = xyes; then
15242 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15246 $as_echo "#define vfork fork" >>confdefs.h
15249 if test "x$ac_cv_func_fork_works" = xyes; then
15251 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15256 $as_echo_n "checking return type of signal handlers... " >&6; }
15257 if ${ac_cv_type_signal+:} false; then :
15258 $as_echo_n "(cached) " >&6
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h. */
15262 #include <sys/types.h>
15263 #include <signal.h>
15268 return *(signal (0, 0)) (0) == 1;
15273 if ac_fn_c_try_compile "$LINENO"; then :
15274 ac_cv_type_signal=int
15276 ac_cv_type_signal=void
15278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15281 $as_echo "$ac_cv_type_signal" >&6; }
15283 cat >>confdefs.h <<_ACEOF
15284 #define RETSIGTYPE $ac_cv_type_signal
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15289 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15290 if ${ac_cv_sys_largefile_source+:} false; then :
15291 $as_echo_n "(cached) " >&6
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h. */
15296 #include <sys/types.h> /* for off_t */
15301 int (*fp) (FILE *, off_t, int) = fseeko;
15302 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15307 if ac_fn_c_try_link "$LINENO"; then :
15308 ac_cv_sys_largefile_source=no; break
15310 rm -f core conftest.err conftest.$ac_objext \
15311 conftest$ac_exeext conftest.$ac_ext
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15314 #define _LARGEFILE_SOURCE 1
15315 #include <sys/types.h> /* for off_t */
15320 int (*fp) (FILE *, off_t, int) = fseeko;
15321 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15326 if ac_fn_c_try_link "$LINENO"; then :
15327 ac_cv_sys_largefile_source=1; break
15329 rm -f core conftest.err conftest.$ac_objext \
15330 conftest$ac_exeext conftest.$ac_ext
15331 ac_cv_sys_largefile_source=unknown
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15336 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15337 case $ac_cv_sys_largefile_source in #(
15340 cat >>confdefs.h <<_ACEOF
15341 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15347 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15348 # in glibc 2.1.3, but that breaks too many other things.
15349 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15350 if test $ac_cv_sys_largefile_source != unknown; then
15352 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15357 # Check whether --enable-largefile was given.
15358 if test "${enable_largefile+set}" = set; then :
15359 enableval=$enable_largefile;
15362 if test "$enable_largefile" != no; then
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15365 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15366 if ${ac_cv_sys_largefile_CC+:} false; then :
15367 $as_echo_n "(cached) " >&6
15369 ac_cv_sys_largefile_CC=no
15370 if test "$GCC" != yes; then
15373 # IRIX 6.2 and later do not support large files by default,
15374 # so use the C compiler's -n32 option if that helps.
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15377 #include <sys/types.h>
15378 /* Check that off_t can represent 2**63 - 1 correctly.
15379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15380 since some C++ compilers masquerading as C compilers
15381 incorrectly reject 9223372036854775807. */
15382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15384 && LARGE_OFF_T % 2147483647 == 1)
15394 if ac_fn_c_try_compile "$LINENO"; then :
15397 rm -f core conftest.err conftest.$ac_objext
15399 if ac_fn_c_try_compile "$LINENO"; then :
15400 ac_cv_sys_largefile_CC=' -n32'; break
15402 rm -f core conftest.err conftest.$ac_objext
15406 rm -f conftest.$ac_ext
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15410 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15411 if test "$ac_cv_sys_largefile_CC" != no; then
15412 CC=$CC$ac_cv_sys_largefile_CC
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15416 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15417 if ${ac_cv_sys_file_offset_bits+:} false; then :
15418 $as_echo_n "(cached) " >&6
15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h. */
15423 #include <sys/types.h>
15424 /* Check that off_t can represent 2**63 - 1 correctly.
15425 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15426 since some C++ compilers masquerading as C compilers
15427 incorrectly reject 9223372036854775807. */
15428 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15429 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15430 && LARGE_OFF_T % 2147483647 == 1)
15440 if ac_fn_c_try_compile "$LINENO"; then :
15441 ac_cv_sys_file_offset_bits=no; break
15443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15446 #define _FILE_OFFSET_BITS 64
15447 #include <sys/types.h>
15448 /* Check that off_t can represent 2**63 - 1 correctly.
15449 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15450 since some C++ compilers masquerading as C compilers
15451 incorrectly reject 9223372036854775807. */
15452 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15453 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15454 && LARGE_OFF_T % 2147483647 == 1)
15464 if ac_fn_c_try_compile "$LINENO"; then :
15465 ac_cv_sys_file_offset_bits=64; break
15467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15468 ac_cv_sys_file_offset_bits=unknown
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15473 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15474 case $ac_cv_sys_file_offset_bits in #(
15477 cat >>confdefs.h <<_ACEOF
15478 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15483 if test $ac_cv_sys_file_offset_bits = unknown; then
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15485 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15486 if ${ac_cv_sys_large_files+:} false; then :
15487 $as_echo_n "(cached) " >&6
15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491 /* end confdefs.h. */
15492 #include <sys/types.h>
15493 /* Check that off_t can represent 2**63 - 1 correctly.
15494 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15495 since some C++ compilers masquerading as C compilers
15496 incorrectly reject 9223372036854775807. */
15497 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15498 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15499 && LARGE_OFF_T % 2147483647 == 1)
15509 if ac_fn_c_try_compile "$LINENO"; then :
15510 ac_cv_sys_large_files=no; break
15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15515 #define _LARGE_FILES 1
15516 #include <sys/types.h>
15517 /* Check that off_t can represent 2**63 - 1 correctly.
15518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15519 since some C++ compilers masquerading as C compilers
15520 incorrectly reject 9223372036854775807. */
15521 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15523 && LARGE_OFF_T % 2147483647 == 1)
15533 if ac_fn_c_try_compile "$LINENO"; then :
15534 ac_cv_sys_large_files=1; break
15536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15537 ac_cv_sys_large_files=unknown
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15542 $as_echo "$ac_cv_sys_large_files" >&6; }
15543 case $ac_cv_sys_large_files in #(
15546 cat >>confdefs.h <<_ACEOF
15547 #define _LARGE_FILES $ac_cv_sys_large_files
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15561 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15562 cache=_D_LARGEFILE_SOURCE_1
15563 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15564 $as_echo_n "(cached) " >&6
15570 int a = fseeko(stdin, 0, 0);
15574 echo 'void f(){}' >>conftest.c
15575 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15576 eval "cv_prog_cc_flag_needed_$cache=no"
15579 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15580 eval "cv_prog_cc_flag_needed_$cache=yes"
15582 eval "cv_prog_cc_flag_needed_$cache=fail"
15583 #echo 'Test with flag fails too!'
15585 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15586 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15591 rm -f conftest conftest.c conftest.o
15595 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15597 $as_echo "yes" >&6; }
15599 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15601 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15603 $as_echo "no" >&6; }
15604 #echo 'Test with flag is no!'
15606 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15607 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15613 $as_echo "failed" >&6; }
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15622 $as_echo_n "checking if nonblocking sockets work... " >&6; }
15623 if echo $target | grep mingw32 >/dev/null; then
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15625 $as_echo "no (windows)" >&6; }
15627 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15630 if test "$cross_compiling" = yes; then :
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15633 $as_echo "crosscompile(yes)" >&6; }
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15641 #include <string.h>
15642 #include <stdlib.h>
15645 #ifdef HAVE_SYS_TYPES_H
15646 #include <sys/types.h>
15648 #ifdef HAVE_SYS_SOCKET_H
15649 #include <sys/socket.h>
15651 #ifdef HAVE_NETINET_IN_H
15652 #include <netinet/in.h>
15654 #ifdef HAVE_ARPA_INET_H
15655 #include <arpa/inet.h>
15657 #ifdef HAVE_UNISTD_H
15658 #include <unistd.h>
15670 struct sockaddr_in a;
15671 /* test if select and nonblocking reads work well together */
15673 fork child to send 10 messages.
15675 then try to nonblocking read the 10 messages
15676 then, nonblocking read must give EAGAIN
15679 port = 12345 + (time(0)%32);
15680 sfd = socket(PF_INET, SOCK_DGRAM, 0);
15685 memset(&a, 0, sizeof(a));
15686 a.sin_family = AF_INET;
15687 a.sin_port = htons(port);
15688 a.sin_addr.s_addr = inet_addr("127.0.0.1");
15689 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15693 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15698 cfd = socket(PF_INET, SOCK_DGRAM, 0);
15700 perror("client socket");
15704 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15705 perror("client bind");
15708 a.sin_port = htons(port);
15710 /* no handler, causes exit in 10 seconds */
15713 /* send and receive on the socket */
15714 if((p=fork()) == 0) {
15715 for(i=0; i<num; i++) {
15716 if(sendto(cfd, &i, sizeof(i), 0,
15717 (struct sockaddr*)&a, sizeof(a)) < 0) {
15731 FD_SET(sfd, &rset);
15732 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15738 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15739 if(errno == EAGAIN)
15746 /* now we want to get EAGAIN: nonblocking goodness */
15748 recv(sfd, &x, sizeof(x), 0);
15749 if(errno != EAGAIN) {
15750 perror("trying to recv again");
15753 /* EAGAIN encountered */
15762 if ac_fn_c_try_run "$LINENO"; then :
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15765 $as_echo "yes" >&6; }
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15770 $as_echo "no" >&6; }
15772 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15777 conftest.$ac_objext conftest.beam conftest.$ac_ext
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15784 $as_echo_n "checking whether mkdir has one arg... " >&6; }
15785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15786 /* end confdefs.h. */
15789 #include <unistd.h>
15790 #ifdef HAVE_WINSOCK2_H
15791 #include <winsock2.h>
15793 #ifdef HAVE_SYS_STAT_H
15794 #include <sys/stat.h>
15801 (void)mkdir("directory");
15807 if ac_fn_c_try_compile "$LINENO"; then :
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15809 $as_echo "yes" >&6; }
15811 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816 $as_echo "no" >&6; }
15819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15821 for ac_func in strptime
15823 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15824 if test "x$ac_cv_func_strptime" = xyes; then :
15825 cat >>confdefs.h <<_ACEOF
15826 #define HAVE_STRPTIME 1
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15830 $as_echo_n "checking whether strptime works... " >&6; }
15831 if test c${cross_compiling} = cno; then
15832 if test "$cross_compiling" = yes; then :
15833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15835 as_fn_error $? "cannot run test program while cross compiling
15836 See \`config.log' for more details" "$LINENO" 5; }
15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839 /* end confdefs.h. */
15841 #define _XOPEN_SOURCE 600
15843 int main(void) { struct tm tm; char *res;
15844 res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
15845 if (!res) return 2;
15846 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15847 if (!res) return 1; return 0; }
15850 if ac_fn_c_try_run "$LINENO"; then :
15851 eval "ac_cv_c_strptime_works=yes"
15853 eval "ac_cv_c_strptime_works=no"
15855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15856 conftest.$ac_objext conftest.beam conftest.$ac_ext
15860 eval "ac_cv_c_strptime_works=maybe"
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15863 $as_echo "$ac_cv_c_strptime_works" >&6; }
15864 if test $ac_cv_c_strptime_works = no; then
15865 case " $LIBOBJS " in
15866 *" strptime.$ac_objext "* ) ;;
15867 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15873 cat >>confdefs.h <<_ACEOF
15874 #define STRPTIME_WORKS 1
15880 case " $LIBOBJS " in
15881 *" strptime.$ac_objext "* ) ;;
15882 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15890 # set memory allocation checking if requested
15891 # Check whether --enable-alloc-checks was given.
15892 if test "${enable_alloc_checks+set}" = set; then :
15893 enableval=$enable_alloc_checks;
15896 # Check whether --enable-alloc-lite was given.
15897 if test "${enable_alloc_lite+set}" = set; then :
15898 enableval=$enable_alloc_lite;
15901 # Check whether --enable-alloc-nonregional was given.
15902 if test "${enable_alloc_nonregional+set}" = set; then :
15903 enableval=$enable_alloc_nonregional;
15906 if test x_$enable_alloc_nonregional = x_yes; then
15908 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15911 if test x_$enable_alloc_checks = x_yes; then
15913 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15916 if test x_$enable_alloc_lite = x_yes; then
15918 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15923 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15924 if test "$cross_compiling" = yes; then :
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15926 $as_echo "no (crosscompile)" >&6; }
15927 case " $LIBOBJS " in
15928 *" malloc.$ac_objext "* ) ;;
15929 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15934 cat >>confdefs.h <<_ACEOF
15935 #define malloc rpl_malloc_unbound
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15941 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15942 #include <stdlib.h>
15950 if(malloc(0) != 0) return 1;
15956 if ac_fn_c_try_run "$LINENO"; then :
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15958 $as_echo "no" >&6; }
15959 case " $LIBOBJS " in
15960 *" malloc.$ac_objext "* ) ;;
15961 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15966 cat >>confdefs.h <<_ACEOF
15967 #define malloc rpl_malloc_unbound
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15972 $as_echo "yes" >&6; }
15974 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15978 conftest.$ac_objext conftest.beam conftest.$ac_ext
15985 # check windows threads (we use them, not pthreads, on windows).
15986 if test "$on_mingw" = "yes"; then
15987 # check windows threads
15988 for ac_header in windows.h
15990 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15992 if test "x$ac_cv_header_windows_h" = xyes; then :
15993 cat >>confdefs.h <<_ACEOF
15994 #define HAVE_WINDOWS_H 1
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
16002 $as_echo_n "checking for CreateThread... " >&6; }
16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h. */
16006 #ifdef HAVE_WINDOWS_H
16007 #include <windows.h>
16014 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16020 if ac_fn_c_try_compile "$LINENO"; then :
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16022 $as_echo "yes" >&6; }
16024 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16029 $as_echo "no" >&6; }
16032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16035 # not on mingw, check thread libraries.
16037 # check for thread library.
16038 # check this first, so that the pthread lib does not get linked in via
16039 # libssl or libpython, and thus distorts the tests, and we end up using
16040 # the non-threadsafe C libraries.
16042 # Check whether --with-pthreads was given.
16043 if test "${with_pthreads+set}" = set; then :
16044 withval=$with_pthreads;
16049 ub_have_pthreads=no
16050 if test x_$withval != x_no; then
16054 ac_cpp='$CPP $CPPFLAGS'
16055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16061 # We used to check for pthread.h first, but this fails if pthread.h
16062 # requires special compiler flags (e.g. on True64 or Sequent).
16063 # It gets checked for in the link test anyway.
16065 # First of all, check if the user has set any of the PTHREAD_LIBS,
16066 # etcetera environment variables, and if threads linking works using
16068 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16069 save_CFLAGS="$CFLAGS"
16070 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16072 LIBS="$PTHREAD_LIBS $LIBS"
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16074 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16078 /* Override any GCC internal prototype to avoid an error.
16079 Use char because int might match the return type of a GCC
16080 builtin and then its argument prototype would still apply. */
16084 char pthread_join ();
16088 return pthread_join ();
16093 if ac_fn_c_try_link "$LINENO"; then :
16096 rm -f core conftest.err conftest.$ac_objext \
16097 conftest$ac_exeext conftest.$ac_ext
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16099 $as_echo "$ax_pthread_ok" >&6; }
16100 if test x"$ax_pthread_ok" = xno; then
16105 CFLAGS="$save_CFLAGS"
16108 # We must check for the threads library under a number of different
16109 # names; the ordering is very important because some systems
16110 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16111 # libraries is broken (non-POSIX).
16113 # Create a list of thread flags to try. Items starting with a "-" are
16114 # C compiler flags, and other items are library names, except for "none"
16115 # which indicates that we try without any flags at all, and "pthread-config"
16116 # which is a program returning the flags for the Pth emulation library.
16118 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16120 # The ordering *is* (sometimes) important. Some notes on the
16121 # individual items follow:
16123 # pthreads: AIX (must check this before -lpthread)
16124 # none: in case threads are in libc; should be tried before -Kthread and
16125 # other compiler flags to prevent continual compiler warnings
16126 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16127 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16128 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16129 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16130 # -pthreads: Solaris/gcc
16131 # -mthreads: Mingw32/gcc, Lynx/gcc
16132 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16133 # doesn't hurt to check since this sometimes defines pthreads too;
16134 # also defines -D_REENTRANT)
16135 # ... -mt is also the pthreads flag for HP/aCC
16136 # pthread: Linux, etcetera
16137 # --thread-safe: KAI C++
16138 # pthread-config: use pthread-config program (for GNU Pth library)
16143 # On Solaris (at least, for some versions), libc contains stubbed
16144 # (non-functional) versions of the pthreads routines, so link-based
16145 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16146 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16147 # a function called by this macro, so we could check for that, but
16148 # who knows whether they'll stub that too in a future libc.) So,
16149 # we'll just look for -pthreads and -lpthread first:
16151 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16155 ax_pthread_flags="-pthread $ax_pthread_flags"
16159 # Clang doesn't consider unrecognized options an error unless we specify
16160 # -Werror. We throw in some extra Clang-specific options to ensure that
16161 # this doesn't happen for GCC, which also accepts -Werror.
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16164 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16165 save_CFLAGS="$CFLAGS"
16166 ax_pthread_extra_flags="-Werror"
16167 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16179 if ac_fn_c_try_compile "$LINENO"; then :
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16181 $as_echo "yes" >&6; }
16183 ax_pthread_extra_flags=
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16185 $as_echo "no" >&6; }
16187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188 CFLAGS="$save_CFLAGS"
16190 if test x"$ax_pthread_ok" = xno; then
16191 for flag in $ax_pthread_flags; do
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16196 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16201 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16202 PTHREAD_CFLAGS="$flag"
16206 # Extract the first word of "pthread-config", so it can be a program name with args.
16207 set dummy pthread-config; ac_word=$2
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16209 $as_echo_n "checking for $ac_word... " >&6; }
16210 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16211 $as_echo_n "(cached) " >&6
16213 if test -n "$ax_pthread_config"; then
16214 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16217 for as_dir in $PATH
16220 test -z "$as_dir" && as_dir=.
16221 for ac_exec_ext in '' $ac_executable_extensions; do
16222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16223 ac_cv_prog_ax_pthread_config="yes"
16224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16231 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16234 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16235 if test -n "$ax_pthread_config"; then
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16237 $as_echo "$ax_pthread_config" >&6; }
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16240 $as_echo "no" >&6; }
16244 if test x"$ax_pthread_config" = xno; then continue; fi
16245 PTHREAD_CFLAGS="`pthread-config --cflags`"
16246 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16251 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16252 PTHREAD_LIBS="-l$flag"
16257 save_CFLAGS="$CFLAGS"
16258 LIBS="$PTHREAD_LIBS $LIBS"
16259 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16261 # Check for various functions. We must include pthread.h,
16262 # since some functions may be macros. (On the Sequent, we
16263 # need a special flag -Kthread to make this header compile.)
16264 # We check for pthread_join because it is in -lpthread on IRIX
16265 # while pthread_create is in libc. We check for pthread_attr_init
16266 # due to DEC craziness with -lpthreads. We check for
16267 # pthread_cleanup_push because it is one of the few pthread
16268 # functions on Solaris that doesn't have a non-functional libc stub.
16269 # We try pthread_create on general principles.
16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271 /* end confdefs.h. */
16272 #include <pthread.h>
16273 static void routine(void *a) { *((int*)a) = 0; }
16274 static void *start_routine(void *a) { return a; }
16278 pthread_t th; pthread_attr_t attr;
16279 pthread_create(&th, 0, start_routine, 0);
16280 pthread_join(th, 0);
16281 pthread_attr_init(&attr);
16282 pthread_cleanup_push(routine, 0);
16283 pthread_cleanup_pop(0) /* ; */
16288 if ac_fn_c_try_link "$LINENO"; then :
16291 rm -f core conftest.err conftest.$ac_objext \
16292 conftest$ac_exeext conftest.$ac_ext
16295 CFLAGS="$save_CFLAGS"
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16298 $as_echo "$ax_pthread_ok" >&6; }
16299 if test "x$ax_pthread_ok" = xyes; then
16308 # Various other checks:
16309 if test "x$ax_pthread_ok" = xyes; then
16311 LIBS="$PTHREAD_LIBS $LIBS"
16312 save_CFLAGS="$CFLAGS"
16313 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16315 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16317 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16319 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h. */
16322 #include <pthread.h>
16326 int attr = $attr; return attr /* ; */
16331 if ac_fn_c_try_link "$LINENO"; then :
16332 attr_name=$attr; break
16334 rm -f core conftest.err conftest.$ac_objext \
16335 conftest$ac_exeext conftest.$ac_ext
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16338 $as_echo "$attr_name" >&6; }
16339 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16341 cat >>confdefs.h <<_ACEOF
16342 #define PTHREAD_CREATE_JOINABLE $attr_name
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16348 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16351 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16352 osf* | hpux*) flag="-D_REENTRANT";;
16354 if test "$GCC" = "yes"; then
16355 flag="-D_REENTRANT"
16357 # TODO: What about Clang on Solaris?
16358 flag="-mt -D_REENTRANT"
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16363 $as_echo "$flag" >&6; }
16364 if test "x$flag" != xno; then
16365 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16369 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16370 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16371 $as_echo_n "(cached) " >&6
16374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16375 /* end confdefs.h. */
16376 #include <pthread.h>
16380 int i = PTHREAD_PRIO_INHERIT;
16385 if ac_fn_c_try_link "$LINENO"; then :
16386 ax_cv_PTHREAD_PRIO_INHERIT=yes
16388 ax_cv_PTHREAD_PRIO_INHERIT=no
16390 rm -f core conftest.err conftest.$ac_objext \
16391 conftest$ac_exeext conftest.$ac_ext
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16395 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16396 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16398 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16403 CFLAGS="$save_CFLAGS"
16405 # More AIX lossage: compile with *_r variant
16406 if test "x$GCC" != xyes; then
16410 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16411 #handle absolute path differently from PATH based program lookup
16414 if as_fn_executable_p ${CC}_r; then :
16415 PTHREAD_CC="${CC}_r"
16418 for ac_prog in ${CC}_r
16420 # Extract the first word of "$ac_prog", so it can be a program name with args.
16421 set dummy $ac_prog; ac_word=$2
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16423 $as_echo_n "checking for $ac_word... " >&6; }
16424 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16425 $as_echo_n "(cached) " >&6
16427 if test -n "$PTHREAD_CC"; then
16428 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16431 for as_dir in $PATH
16434 test -z "$as_dir" && as_dir=.
16435 for ac_exec_ext in '' $ac_executable_extensions; do
16436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16437 ac_cv_prog_PTHREAD_CC="$ac_prog"
16438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16447 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16448 if test -n "$PTHREAD_CC"; then
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16450 $as_echo "$PTHREAD_CC" >&6; }
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16453 $as_echo "no" >&6; }
16457 test -n "$PTHREAD_CC" && break
16459 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16470 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16476 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16477 if test x"$ax_pthread_ok" = xyes; then
16480 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16482 if test -n "$PTHREAD_LIBS"; then
16483 LIBS="$PTHREAD_LIBS $LIBS"
16485 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16487 ub_have_pthreads=yes
16488 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16490 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16492 cat >>confdefs.h <<_ACEOF
16493 #define HAVE_PTHREAD_SPINLOCK_T 1
16498 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16500 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16502 cat >>confdefs.h <<_ACEOF
16503 #define HAVE_PTHREAD_RWLOCK_T 1
16510 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
16512 $as_echo_n "checking if -pthread unused during linking... " >&6; }
16513 # catch clang warning 'argument unused during compilation'
16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h. */
16516 $ac_includes_default
16518 int main(void) {return 0;}
16521 pthread_unused="yes"
16523 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
16524 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
16525 if test $? = 0; then
16527 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
16528 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
16529 if test $? -ne 0; then
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16531 $as_echo "yes" >&6; }
16532 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
16533 PTHREAD_CFLAGS_ONLY="-pthread"
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16537 $as_echo "no" >&6; }
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16541 $as_echo "no" >&6; }
16542 fi # endif cc successful
16543 rm -f conftest conftest.c conftest.o
16544 fi # endif -pthread in CFLAGS
16553 ac_cpp='$CPP $CPPFLAGS'
16554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16561 # check solaris thread library
16563 # Check whether --with-solaris-threads was given.
16564 if test "${with_solaris_threads+set}" = set; then :
16565 withval=$with_solaris_threads;
16570 ub_have_sol_threads=no
16571 if test x_$withval != x_no; then
16572 if test x_$ub_have_pthreads != x_no; then
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
16574 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
16577 $as_echo_n "checking for library containing thr_create... " >&6; }
16578 if ${ac_cv_search_thr_create+:} false; then :
16579 $as_echo_n "(cached) " >&6
16581 ac_func_search_save_LIBS=$LIBS
16582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583 /* end confdefs.h. */
16585 /* Override any GCC internal prototype to avoid an error.
16586 Use char because int might match the return type of a GCC
16587 builtin and then its argument prototype would still apply. */
16591 char thr_create ();
16595 return thr_create ();
16600 for ac_lib in '' thread; do
16601 if test -z "$ac_lib"; then
16602 ac_res="none required"
16605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16607 if ac_fn_c_try_link "$LINENO"; then :
16608 ac_cv_search_thr_create=$ac_res
16610 rm -f core conftest.err conftest.$ac_objext \
16612 if ${ac_cv_search_thr_create+:} false; then :
16616 if ${ac_cv_search_thr_create+:} false; then :
16619 ac_cv_search_thr_create=no
16621 rm conftest.$ac_ext
16622 LIBS=$ac_func_search_save_LIBS
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
16625 $as_echo "$ac_cv_search_thr_create" >&6; }
16626 ac_res=$ac_cv_search_thr_create
16627 if test "$ac_res" != no; then :
16628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16631 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
16637 $as_echo_n "checking whether $CC supports -mt... " >&6; }
16638 cache=`echo mt | sed 'y%.=/+-%___p_%'`
16639 if eval \${cv_prog_cc_flag_$cache+:} false; then :
16640 $as_echo_n "(cached) " >&6
16643 echo 'void f(void){}' >conftest.c
16644 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
16645 eval "cv_prog_cc_flag_$cache=yes"
16647 eval "cv_prog_cc_flag_$cache=no"
16649 rm -f conftest conftest.o conftest.c
16653 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16655 $as_echo "yes" >&6; }
16657 CFLAGS="$CFLAGS -mt"
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16660 $as_echo "no" >&6; }
16662 CFLAGS="$CFLAGS -D_REENTRANT"
16665 ub_have_sol_threads=yes
16669 as_fn_error $? "no solaris threads found." "$LINENO" 5
16676 fi # end of non-mingw check of thread libraries
16678 # Check for PyUnbound
16680 # Check whether --with-pyunbound was given.
16681 if test "${with_pyunbound+set}" = set; then :
16682 withval=$with_pyunbound;
16689 ub_with_pyunbound=no
16690 if test x_$withval != x_no; then
16691 ub_with_pyunbound=yes
16695 # Check for Python module
16697 # Check whether --with-pythonmodule was given.
16698 if test "${with_pythonmodule+set}" = set; then :
16699 withval=$with_pythonmodule;
16705 ub_with_pythonmod=no
16706 if test x_$withval != x_no; then
16707 ub_with_pythonmod=yes
16711 # Check for Python & SWIG only on PyUnbound or PyModule
16712 if test x_$ub_test_python != x_no; then
16716 ac_save_LIBS="$LIBS"
16718 # Allow the use of a (user set) custom python version
16722 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16723 set dummy python$PYTHON_VERSION; ac_word=$2
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16725 $as_echo_n "checking for $ac_word... " >&6; }
16726 if ${ac_cv_path_PYTHON+:} false; then :
16727 $as_echo_n "(cached) " >&6
16731 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16735 for as_dir in $PATH
16738 test -z "$as_dir" && as_dir=.
16739 for ac_exec_ext in '' $ac_executable_extensions; do
16740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16741 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16752 PYTHON=$ac_cv_path_PYTHON
16753 if test -n "$PYTHON"; then
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16755 $as_echo "$PYTHON" >&6; }
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16758 $as_echo "no" >&6; }
16762 if test -z "$PYTHON"; then
16763 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16767 if test -z "$PYTHON_VERSION"; then
16768 PYTHON_VERSION=`$PYTHON -c "import sys; \
16769 print(sys.version.split()[0])"`
16773 # Check if you have distutils, else fail
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16776 $as_echo_n "checking for the distutils Python package... " >&6; }
16777 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16779 $as_echo "yes" >&6; }
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16782 $as_echo "no" >&6; }
16783 as_fn_error $? "cannot import Python module \"distutils\".
16784 Please check your Python installation. The error was:
16785 $ac_distutils_result" "$LINENO" 5
16790 # Check for Python include path
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16793 $as_echo_n "checking for Python include path... " >&6; }
16794 if test -z "$PYTHON_CPPFLAGS"; then
16795 python_path=`$PYTHON -c "import distutils.sysconfig; \
16796 print(distutils.sysconfig.get_python_inc());"`
16797 if test -n "${python_path}"; then
16798 python_path="-I$python_path"
16800 PYTHON_CPPFLAGS=$python_path
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16803 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16807 # Check for Python library path
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16810 $as_echo_n "checking for Python library path... " >&6; }
16811 if test -z "$PYTHON_LDFLAGS"; then
16812 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16813 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16816 $as_echo "$PYTHON_LDFLAGS" >&6; }
16820 # Check for site packages
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16823 $as_echo_n "checking for Python site-packages path... " >&6; }
16824 if test -z "$PYTHON_SITE_PKG"; then
16825 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16826 print(distutils.sysconfig.get_python_lib(1,0));"`
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16829 $as_echo "$PYTHON_SITE_PKG" >&6; }
16833 # final check to see if everything compiles alright
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16836 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16838 ac_cpp='$CPP $CPPFLAGS'
16839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16843 # save current global flags
16844 ac_save_LIBS="$LIBS"
16845 ac_save_CPPFLAGS="$CPPFLAGS"
16847 LIBS="$LIBS $PYTHON_LDFLAGS"
16848 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850 /* end confdefs.h. */
16852 #include <Python.h>
16864 if ac_fn_c_try_link "$LINENO"; then :
16869 rm -f core conftest.err conftest.$ac_objext \
16870 conftest$ac_exeext conftest.$ac_ext
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16873 $as_echo "$pythonexists" >&6; }
16875 if test ! "$pythonexists" = "yes"; then
16877 Could not link test program to Python. Maybe the main Python library has been
16878 installed in some non-standard library path. If so, pass it to configure,
16879 via the LDFLAGS environment variable.
16880 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16881 ============================================================================
16883 You probably have to install the development version of the Python package
16884 for your distribution. The exact name of this package varies among them.
16885 ============================================================================
16890 ac_cpp='$CPP $CPPFLAGS'
16891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16895 # turn back to default flags
16896 CPPFLAGS="$ac_save_CPPFLAGS"
16897 LIBS="$ac_save_LIBS"
16903 if test ! -z "$PYTHON_VERSION"; then
16904 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16905 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16908 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
16912 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16914 if test -n "$LIBS"; then
16915 LIBS="$PYTHON_LDFLAGS $LIBS"
16917 LIBS="$PYTHON_LDFLAGS"
16919 if test -n "$CPPFLAGS"; then
16920 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16922 CPPFLAGS="$PYTHON_CPPFLAGS"
16925 PC_PY_DEPENDENCY="python"
16930 # Check whether --enable-swig-version-check was given.
16931 if test "${enable_swig_version_check+set}" = set; then :
16932 enableval=$enable_swig_version_check;
16935 if test "$enable_swig_version_check" = "yes"; then
16937 # Extract the first word of "swig", so it can be a program name with args.
16938 set dummy swig; ac_word=$2
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16940 $as_echo_n "checking for $ac_word... " >&6; }
16941 if ${ac_cv_path_SWIG+:} false; then :
16942 $as_echo_n "(cached) " >&6
16946 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16950 for as_dir in $PATH
16953 test -z "$as_dir" && as_dir=.
16954 for ac_exec_ext in '' $ac_executable_extensions; do
16955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16956 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16967 SWIG=$ac_cv_path_SWIG
16968 if test -n "$SWIG"; then
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16970 $as_echo "$SWIG" >&6; }
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16973 $as_echo "no" >&6; }
16977 if test -z "$SWIG" ; then
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16979 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16980 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16981 elif test -n "2.0.1" ; then
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16983 $as_echo_n "checking for SWIG version... " >&6; }
16984 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16986 $as_echo "$swig_version" >&6; }
16987 if test -n "$swig_version" ; then
16988 # Calculate the required version number components
16990 required_major=`echo $required | sed 's/[^0-9].*//'`
16991 if test -z "$required_major" ; then
16994 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16995 required_minor=`echo $required | sed 's/[^0-9].*//'`
16996 if test -z "$required_minor" ; then
16999 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17000 required_patch=`echo $required | sed 's/[^0-9].*//'`
17001 if test -z "$required_patch" ; then
17004 # Calculate the available version number components
17005 available=$swig_version
17006 available_major=`echo $available | sed 's/[^0-9].*//'`
17007 if test -z "$available_major" ; then
17010 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17011 available_minor=`echo $available | sed 's/[^0-9].*//'`
17012 if test -z "$available_minor" ; then
17015 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17016 available_patch=`echo $available | sed 's/[^0-9].*//'`
17017 if test -z "$available_patch" ; then
17021 if test $available_major -lt $required_major ; then
17024 if test $available_major -eq $required_major \
17025 -a $available_minor -lt $required_minor ; then
17028 if test $available_major -eq $required_major \
17029 -a $available_minor -eq $required_minor \
17030 -a $available_patch -lt $required_patch ; then
17033 if test $badversion -eq 1 ; then
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version. You should look at http://www.swig.org" >&5
17035 $as_echo "$as_me: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
17036 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17039 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17040 SWIG_LIB=`$SWIG -swiglib`
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17042 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17046 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17047 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17054 # Extract the first word of "swig", so it can be a program name with args.
17055 set dummy swig; ac_word=$2
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17057 $as_echo_n "checking for $ac_word... " >&6; }
17058 if ${ac_cv_path_SWIG+:} false; then :
17059 $as_echo_n "(cached) " >&6
17063 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17067 for as_dir in $PATH
17070 test -z "$as_dir" && as_dir=.
17071 for ac_exec_ext in '' $ac_executable_extensions; do
17072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17073 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17084 SWIG=$ac_cv_path_SWIG
17085 if test -n "$SWIG"; then
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17087 $as_echo "$SWIG" >&6; }
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17090 $as_echo "no" >&6; }
17094 if test -z "$SWIG" ; then
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17096 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17097 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17098 elif test -n "" ; then
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17100 $as_echo_n "checking for SWIG version... " >&6; }
17101 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17103 $as_echo "$swig_version" >&6; }
17104 if test -n "$swig_version" ; then
17105 # Calculate the required version number components
17107 required_major=`echo $required | sed 's/[^0-9].*//'`
17108 if test -z "$required_major" ; then
17111 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17112 required_minor=`echo $required | sed 's/[^0-9].*//'`
17113 if test -z "$required_minor" ; then
17116 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17117 required_patch=`echo $required | sed 's/[^0-9].*//'`
17118 if test -z "$required_patch" ; then
17121 # Calculate the available version number components
17122 available=$swig_version
17123 available_major=`echo $available | sed 's/[^0-9].*//'`
17124 if test -z "$available_major" ; then
17127 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17128 available_minor=`echo $available | sed 's/[^0-9].*//'`
17129 if test -z "$available_minor" ; then
17132 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17133 available_patch=`echo $available | sed 's/[^0-9].*//'`
17134 if test -z "$available_patch" ; then
17138 if test $available_major -lt $required_major ; then
17141 if test $available_major -eq $required_major \
17142 -a $available_minor -lt $required_minor ; then
17145 if test $available_major -eq $required_major \
17146 -a $available_minor -eq $required_minor \
17147 -a $available_patch -lt $required_patch ; then
17150 if test $badversion -eq 1 ; then
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&5
17152 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
17153 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17156 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17157 SWIG_LIB=`$SWIG -swiglib`
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17159 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17163 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17164 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17171 $as_echo_n "checking SWIG... " >&6; }
17172 if test ! -x "$SWIG"; then
17173 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17176 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
17181 $as_echo "present" >&6; }
17183 # If have Python & SWIG
17184 # Declare PythonMod
17185 if test x_$ub_with_pythonmod != x_no; then
17187 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
17189 WITH_PYTHONMODULE=yes
17191 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
17193 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
17195 PYTHONMOD_INSTALL=pythonmod-install
17197 PYTHONMOD_UNINSTALL=pythonmod-uninstall
17201 # Declare PyUnbound
17202 if test x_$ub_with_pyunbound != x_no; then
17204 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
17208 PYUNBOUND_OBJ="libunbound_wrap.lo"
17210 PYUNBOUND_TARGET="_unbound.la"
17212 PYUNBOUND_INSTALL=pyunbound-install
17214 PYUNBOUND_UNINSTALL=pyunbound-uninstall
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
17220 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
17221 ub_with_pyunbound=no
17222 ub_with_pythonmod=no
17226 if test "`uname`" = "NetBSD"; then
17227 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
17230 CONFIG_DATE=`date +%Y%m%d`
17233 # Checks for libraries.
17238 # Check whether --with-nss was given.
17239 if test "${with_nss+set}" = set; then :
17243 $as_echo "#define HAVE_NSS 1" >>confdefs.h
17245 if test "$withval" != "" -a "$withval" != "yes"; then
17246 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17247 LDFLAGS="$LDFLAGS -L$withval/lib"
17249 if test "x$enable_rpath" = xyes; then
17250 if echo "$withval/lib" | grep "^/" >/dev/null; then
17251 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17255 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17257 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17258 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17260 LIBS="$LIBS -lnss3 -lnspr4"
17270 # Check whether --with-nettle was given.
17271 if test "${with_nettle+set}" = set; then :
17272 withval=$with_nettle;
17275 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17277 for ac_header in nettle/dsa-compat.h
17279 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17281 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17282 cat >>confdefs.h <<_ACEOF
17283 #define HAVE_NETTLE_DSA_COMPAT_H 1
17290 if test "$withval" != "" -a "$withval" != "yes"; then
17291 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17292 LDFLAGS="$LDFLAGS -L$withval/lib"
17294 if test "x$enable_rpath" = xyes; then
17295 if echo "$withval/lib" | grep "^/" >/dev/null; then
17296 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17301 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17303 LIBS="$LIBS -lhogweed -lnettle -lgmp"
17311 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17314 # Check whether --with-ssl was given.
17315 if test "${with_ssl+set}" = set; then :
17324 if test x_$withval = x_no; then
17325 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17329 if test x_$withval != x_no; then
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17331 $as_echo_n "checking for SSL... " >&6; }
17332 if test x_$withval = x_ -o x_$withval = x_yes; then
17333 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
17335 for dir in $withval; do
17337 if test -f "$dir/include/openssl/ssl.h"; then
17340 cat >>confdefs.h <<_ACEOF
17341 #define HAVE_SSL /**/
17344 if test "$ssldir" != "/usr"; then
17345 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
17346 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
17351 if test x_$found_ssl != x_yes; then
17352 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
17355 $as_echo "found in $ssldir" >&6; }
17357 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
17358 LDFLAGS="$LDFLAGS -L$ssldir/lib"
17359 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
17361 if test "x$enable_rpath" = xyes; then
17362 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
17363 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
17370 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
17371 LIBS="$LIBS -lcrypto"
17372 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374 /* end confdefs.h. */
17380 int HMAC_Update(void);
17381 (void)HMAC_Update();
17387 if ac_fn_c_try_link "$LINENO"; then :
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17390 $as_echo "yes" >&6; }
17392 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17398 $as_echo "no" >&6; }
17399 # check if -lwsock32 or -lgdi32 are needed.
17401 BAKSSLLIBS="$LIBSSL_LIBS"
17402 LIBS="$LIBS -lgdi32 -lws2_32"
17403 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
17405 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
17406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17407 /* end confdefs.h. */
17413 int HMAC_Update(void);
17414 (void)HMAC_Update();
17420 if ac_fn_c_try_link "$LINENO"; then :
17423 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17426 $as_echo "yes" >&6; }
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17431 $as_echo "no" >&6; }
17433 LIBSSL_LIBS="$BAKSSLLIBS"
17435 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
17437 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17439 /* end confdefs.h. */
17445 int HMAC_Update(void);
17446 (void)HMAC_Update();
17452 if ac_fn_c_try_link "$LINENO"; then :
17455 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17458 $as_echo "yes" >&6; }
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17463 $as_echo "no" >&6; }
17465 LIBSSL_LIBS="$BAKSSLLIBS"
17466 LIBS="$LIBS -ldl -pthread"
17467 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
17469 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
17470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17471 /* end confdefs.h. */
17477 int HMAC_Update(void);
17478 (void)HMAC_Update();
17484 if ac_fn_c_try_link "$LINENO"; then :
17487 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17490 $as_echo "yes" >&6; }
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17495 $as_echo "no" >&6; }
17496 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
17499 rm -f core conftest.err conftest.$ac_objext \
17500 conftest$ac_exeext conftest.$ac_ext
17503 rm -f core conftest.err conftest.$ac_objext \
17504 conftest$ac_exeext conftest.$ac_ext
17507 rm -f core conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17511 rm -f core conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17517 for ac_header in openssl/ssl.h
17519 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
17521 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
17522 cat >>confdefs.h <<_ACEOF
17523 #define HAVE_OPENSSL_SSL_H 1
17530 for ac_header in openssl/err.h
17532 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
17534 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
17535 cat >>confdefs.h <<_ACEOF
17536 #define HAVE_OPENSSL_ERR_H 1
17543 for ac_header in openssl/rand.h
17545 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
17547 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
17548 cat >>confdefs.h <<_ACEOF
17549 #define HAVE_OPENSSL_RAND_H 1
17559 # check if libssl needs libdl
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
17563 $as_echo_n "checking if libssl needs libdl... " >&6; }
17564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h. */
17567 /* Override any GCC internal prototype to avoid an error.
17568 Use char because int might match the return type of a GCC
17569 builtin and then its argument prototype would still apply. */
17573 char SSL_CTX_new ();
17577 return SSL_CTX_new ();
17582 if ac_fn_c_try_link "$LINENO"; then :
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17585 $as_echo "no" >&6; }
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17591 $as_echo "yes" >&6; }
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17594 $as_echo_n "checking for library containing dlopen... " >&6; }
17595 if ${ac_cv_search_dlopen+:} false; then :
17596 $as_echo_n "(cached) " >&6
17598 ac_func_search_save_LIBS=$LIBS
17599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17600 /* end confdefs.h. */
17602 /* Override any GCC internal prototype to avoid an error.
17603 Use char because int might match the return type of a GCC
17604 builtin and then its argument prototype would still apply. */
17617 for ac_lib in '' dl; do
17618 if test -z "$ac_lib"; then
17619 ac_res="none required"
17622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17624 if ac_fn_c_try_link "$LINENO"; then :
17625 ac_cv_search_dlopen=$ac_res
17627 rm -f core conftest.err conftest.$ac_objext \
17629 if ${ac_cv_search_dlopen+:} false; then :
17633 if ${ac_cv_search_dlopen+:} false; then :
17636 ac_cv_search_dlopen=no
17638 rm conftest.$ac_ext
17639 LIBS=$ac_func_search_save_LIBS
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17642 $as_echo "$ac_cv_search_dlopen" >&6; }
17643 ac_res=$ac_cv_search_dlopen
17644 if test "$ac_res" != no; then :
17645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17651 rm -f core conftest.err conftest.$ac_objext \
17652 conftest$ac_exeext conftest.$ac_ext
17655 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
17659 $as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h. */
17663 /* Override any GCC internal prototype to avoid an error.
17664 Use char because int might match the return type of a GCC
17665 builtin and then its argument prototype would still apply. */
17669 char HMAC_Update ();
17673 return HMAC_Update ();
17678 if ac_fn_c_try_link "$LINENO"; then :
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17681 $as_echo "no" >&6; }
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17687 $as_echo "yes" >&6; }
17689 LIBS="$LIBS -lcrypt32"
17692 rm -f core conftest.err conftest.$ac_objext \
17693 conftest$ac_exeext conftest.$ac_ext
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
17696 $as_echo_n "checking for LibreSSL... " >&6; }
17697 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17699 $as_echo "yes" >&6; }
17701 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
17703 # libressl provides these compat functions, but they may also be
17704 # declared by the OS in libc. See if they have been declared.
17705 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
17706 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
17712 cat >>confdefs.h <<_ACEOF
17713 #define HAVE_DECL_STRLCPY $ac_have_decl
17715 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
17716 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
17722 cat >>confdefs.h <<_ACEOF
17723 #define HAVE_DECL_STRLCAT $ac_have_decl
17725 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
17726 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
17732 cat >>confdefs.h <<_ACEOF
17733 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
17735 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
17736 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
17742 cat >>confdefs.h <<_ACEOF
17743 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
17745 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
17746 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
17752 cat >>confdefs.h <<_ACEOF
17753 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17758 $as_echo "no" >&6; }
17760 for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h
17762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17763 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17765 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17766 cat >>confdefs.h <<_ACEOF
17767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17774 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify
17776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17777 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17778 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17779 cat >>confdefs.h <<_ACEOF
17780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17787 # these check_funcs need -lssl
17790 for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level SSL_set1_host SSL_get0_peername
17792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17793 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17794 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17795 cat >>confdefs.h <<_ACEOF
17796 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17804 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
17805 $ac_includes_default
17806 #ifdef HAVE_OPENSSL_ERR_H
17807 #include <openssl/err.h>
17810 #ifdef HAVE_OPENSSL_RAND_H
17811 #include <openssl/rand.h>
17814 #ifdef HAVE_OPENSSL_CONF_H
17815 #include <openssl/conf.h>
17818 #ifdef HAVE_OPENSSL_ENGINE_H
17819 #include <openssl/engine.h>
17821 #include <openssl/ssl.h>
17822 #include <openssl/evp.h>
17825 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
17831 cat >>confdefs.h <<_ACEOF
17832 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
17834 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
17835 $ac_includes_default
17836 #ifdef HAVE_OPENSSL_ERR_H
17837 #include <openssl/err.h>
17840 #ifdef HAVE_OPENSSL_RAND_H
17841 #include <openssl/rand.h>
17844 #ifdef HAVE_OPENSSL_CONF_H
17845 #include <openssl/conf.h>
17848 #ifdef HAVE_OPENSSL_ENGINE_H
17849 #include <openssl/engine.h>
17851 #include <openssl/ssl.h>
17852 #include <openssl/evp.h>
17855 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
17861 cat >>confdefs.h <<_ACEOF
17862 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
17864 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
17865 $ac_includes_default
17866 #ifdef HAVE_OPENSSL_ERR_H
17867 #include <openssl/err.h>
17870 #ifdef HAVE_OPENSSL_RAND_H
17871 #include <openssl/rand.h>
17874 #ifdef HAVE_OPENSSL_CONF_H
17875 #include <openssl/conf.h>
17878 #ifdef HAVE_OPENSSL_ENGINE_H
17879 #include <openssl/engine.h>
17881 #include <openssl/ssl.h>
17882 #include <openssl/evp.h>
17885 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
17891 cat >>confdefs.h <<_ACEOF
17892 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
17899 # Check whether --enable-sha1 was given.
17900 if test "${enable_sha1+set}" = set; then :
17901 enableval=$enable_sha1;
17904 case "$enable_sha1" in
17909 $as_echo "#define USE_SHA1 1" >>confdefs.h
17915 # Check whether --enable-sha2 was given.
17916 if test "${enable_sha2+set}" = set; then :
17917 enableval=$enable_sha2;
17920 case "$enable_sha2" in
17925 $as_echo "#define USE_SHA2 1" >>confdefs.h
17930 # Check whether --enable-subnet was given.
17931 if test "${enable_subnet+set}" = set; then :
17932 enableval=$enable_subnet;
17935 case "$enable_subnet" in
17938 $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
17940 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
17942 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
17949 # check wether gost also works
17951 # Check whether --enable-gost was given.
17952 if test "${enable_gost+set}" = set; then :
17953 enableval=$enable_gost;
17957 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17958 case "$enable_gost" in
17962 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
17963 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
17966 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
17969 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
17970 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
17973 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
17978 $as_echo_n "checking if GOST works... " >&6; }
17979 if test c${cross_compiling} = cno; then
17980 BAKCFLAGS="$CFLAGS"
17981 if test -n "$ssldir"; then
17982 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
17984 if test "$cross_compiling" = yes; then :
17985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17987 as_fn_error $? "cannot run test program while cross compiling
17988 See \`config.log' for more details" "$LINENO" 5; }
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17993 #include <string.h>
17994 #include <openssl/ssl.h>
17995 #include <openssl/evp.h>
17996 #include <openssl/engine.h>
17997 #include <openssl/conf.h>
17998 /* routine to load gost (from sldns) */
17999 int load_gost_id(void)
18001 static int gost_id = 0;
18002 const EVP_PKEY_ASN1_METHOD* meth;
18005 if(gost_id) return gost_id;
18007 /* see if configuration loaded gost implementation from other engine*/
18008 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
18010 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18014 /* see if engine can be loaded already */
18015 e = ENGINE_by_id("gost");
18017 /* load it ourself, in case statically linked */
18018 ENGINE_load_builtin_engines();
18019 ENGINE_load_dynamic();
18020 e = ENGINE_by_id("gost");
18023 /* no gost engine in openssl */
18026 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
18032 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
18034 /* algo not found */
18039 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18045 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
18046 const char* str = "Hello world";
18047 const unsigned char check[] = {
18048 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
18049 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
18050 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
18051 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
18053 OPENSSL_config(NULL);
18054 (void)load_gost_id();
18055 md = EVP_get_digestbyname("md_gost94");
18057 memset(digest, 0, sizeof(digest));
18058 ctx = EVP_MD_CTX_create();
18060 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
18061 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
18062 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
18063 /* uncomment to see the hash calculated.
18065 for(i=0; i<32; i++)
18066 printf(" %2.2x", (int)digest[i]);
18069 if(memcmp(digest, check, sizeof(check)) != 0)
18075 if ac_fn_c_try_run "$LINENO"; then :
18076 eval "ac_cv_c_gost_works=yes"
18078 eval "ac_cv_c_gost_works=no"
18080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18081 conftest.$ac_objext conftest.beam conftest.$ac_ext
18084 CFLAGS="$BAKCFLAGS"
18086 eval "ac_cv_c_gost_works=maybe"
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
18089 $as_echo "$ac_cv_c_gost_works" >&6; }
18091 if test "$ac_cv_c_gost_works" != no; then
18094 $as_echo "#define USE_GOST 1" >>confdefs.h
18100 # Check whether --enable-ecdsa was given.
18101 if test "${enable_ecdsa+set}" = set; then :
18102 enableval=$enable_ecdsa;
18106 case "$enable_ecdsa" in
18110 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18111 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
18112 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
18115 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18118 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
18119 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
18122 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18125 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
18126 #include <openssl/evp.h>
18129 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
18135 cat >>confdefs.h <<_ACEOF
18136 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
18138 if test $ac_have_decl = 1; then :
18141 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18143 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
18144 #include <openssl/evp.h>
18147 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
18153 cat >>confdefs.h <<_ACEOF
18154 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
18156 if test $ac_have_decl = 1; then :
18159 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18162 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
18164 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
18165 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
18166 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18168 $as_echo "no" >&6; }
18170 cat >>confdefs.h <<_ACEOF
18171 #define USE_ECDSA_EVP_WORKAROUND 1
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18176 $as_echo "yes" >&6; }
18179 # not OpenSSL, thus likely LibreSSL, which supports it
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18181 $as_echo "yes" >&6; }
18184 # we now know we have ECDSA and the required curves.
18186 cat >>confdefs.h <<_ACEOF
18187 #define USE_ECDSA 1
18194 # Check whether --enable-dsa was given.
18195 if test "${enable_dsa+set}" = set; then :
18196 enableval=$enable_dsa;
18200 case "$enable_dsa" in
18204 # detect if DSA is supported, and turn it off if not.
18205 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18206 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
18207 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
18209 as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
18210 ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
18211 $ac_includes_default
18212 #ifdef HAVE_OPENSSL_ERR_H
18213 #include <openssl/err.h>
18216 #ifdef HAVE_OPENSSL_RAND_H
18217 #include <openssl/rand.h>
18220 #ifdef HAVE_OPENSSL_CONF_H
18221 #include <openssl/conf.h>
18224 #ifdef HAVE_OPENSSL_ENGINE_H
18225 #include <openssl/engine.h>
18229 if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
18232 cat >>confdefs.h <<_ACEOF
18238 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18244 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18250 cat >>confdefs.h <<_ACEOF
18258 # Check whether --enable-ed25519 was given.
18259 if test "${enable_ed25519+set}" = set; then :
18260 enableval=$enable_ed25519;
18264 case "$enable_ed25519" in
18268 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18269 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
18270 #include <openssl/evp.h>
18273 if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
18279 cat >>confdefs.h <<_ACEOF
18280 #define HAVE_DECL_NID_ED25519 $ac_have_decl
18282 if test $ac_have_decl = 1; then :
18287 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
18292 if test $USE_NETTLE = "yes"; then
18293 for ac_header in nettle/eddsa.h
18295 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
18297 if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
18298 cat >>confdefs.h <<_ACEOF
18299 #define HAVE_NETTLE_EDDSA_H 1
18307 if test $use_ed25519 = "yes"; then
18309 cat >>confdefs.h <<_ACEOF
18310 #define USE_ED25519 1
18317 # Check whether --enable-event-api was given.
18318 if test "${enable_event_api+set}" = set; then :
18319 enableval=$enable_event_api;
18322 case "$enable_event_api" in
18324 UNBOUND_EVENT_INSTALL=unbound-event-install
18326 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
18333 # Check whether --enable-tfo-client was given.
18334 if test "${enable_tfo_client+set}" = set; then :
18335 enableval=$enable_tfo_client;
18338 case "$enable_tfo_client" in
18341 Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
18342 #include <netinet/tcp.h>
18345 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
18347 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
18349 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18353 cat >>confdefs.h <<_ACEOF
18354 #define USE_MSG_FASTOPEN 1
18358 Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
18359 #include <sys/socket.h>
18362 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
18364 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
18366 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18370 cat >>confdefs.h <<_ACEOF
18371 #define USE_OSX_MSG_FASTOPEN 1
18381 # Check whether --enable-tfo-server was given.
18382 if test "${enable_tfo_server+set}" = set; then :
18383 enableval=$enable_tfo_server;
18386 case "$enable_tfo_server" in
18388 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
18389 #include <netinet/tcp.h>
18392 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
18394 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
18396 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
18400 cat >>confdefs.h <<_ACEOF
18401 #define USE_TCP_FASTOPEN 1
18409 # check for libevent
18411 # Check whether --with-libevent was given.
18412 if test "${with_libevent+set}" = set; then :
18413 withval=$with_libevent;
18418 if test x_$withval = x_yes -o x_$withval != x_no; then
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
18420 $as_echo_n "checking for libevent... " >&6; }
18421 if test x_$withval = x_ -o x_$withval = x_yes; then
18422 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18424 for dir in $withval; do
18426 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
18427 found_libevent="yes"
18428 if test "$thedir" != "/usr"; then
18429 CPPFLAGS="$CPPFLAGS -I$thedir/include"
18434 if test x_$found_libevent != x_yes; then
18435 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
18436 # libevent source directory
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
18438 $as_echo "found in $thedir" >&6; }
18439 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
18440 BAK_LDFLAGS_SET="1"
18441 BAK_LDFLAGS="$LDFLAGS"
18442 # remove evdns from linking
18443 mkdir build >/dev/null 2>&1
18444 mkdir build/libevent >/dev/null 2>&1
18445 mkdir build/libevent/.libs >/dev/null 2>&1
18446 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
18447 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
18448 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
18449 cp $ev_files_o build/libevent
18450 cp $ev_files_lo build/libevent
18451 cp $ev_files_libso build/libevent/.libs
18452 LATE_LDFLAGS="build/libevent/*.lo -lm"
18453 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
18455 as_fn_error $? "Cannot find the libevent library in $withval
18456 You can restart ./configure --with-libevent=no to use a builtin alternative.
18457 Please note that this alternative is not as capable as libevent when using
18458 large outgoing port ranges. " "$LINENO" 5
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
18462 $as_echo "found in $thedir" >&6; }
18463 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
18464 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
18466 if test "x$enable_rpath" = xyes; then
18467 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
18468 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
18473 if test "$thedir" != "/usr" -a "$thedir" != ""; then
18474 LDFLAGS="$LDFLAGS -L$thedir/lib"
18476 if test "x$enable_rpath" = xyes; then
18477 if echo "$thedir/lib" | grep "^/" >/dev/null; then
18478 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
18485 # check for library used by libevent after 1.3c
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18487 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18488 if ${ac_cv_search_clock_gettime+:} false; then :
18489 $as_echo_n "(cached) " >&6
18491 ac_func_search_save_LIBS=$LIBS
18492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18493 /* end confdefs.h. */
18495 /* Override any GCC internal prototype to avoid an error.
18496 Use char because int might match the return type of a GCC
18497 builtin and then its argument prototype would still apply. */
18501 char clock_gettime ();
18505 return clock_gettime ();
18510 for ac_lib in '' rt; do
18511 if test -z "$ac_lib"; then
18512 ac_res="none required"
18515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18517 if ac_fn_c_try_link "$LINENO"; then :
18518 ac_cv_search_clock_gettime=$ac_res
18520 rm -f core conftest.err conftest.$ac_objext \
18522 if ${ac_cv_search_clock_gettime+:} false; then :
18526 if ${ac_cv_search_clock_gettime+:} false; then :
18529 ac_cv_search_clock_gettime=no
18531 rm conftest.$ac_ext
18532 LIBS=$ac_func_search_save_LIBS
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18535 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18536 ac_res=$ac_cv_search_clock_gettime
18537 if test "$ac_res" != no; then :
18538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18543 # is the event.h header libev or libevent?
18544 for ac_header in event.h
18546 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
18548 if test "x$ac_cv_header_event_h" = xyes; then :
18549 cat >>confdefs.h <<_ACEOF
18550 #define HAVE_EVENT_H 1
18557 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
18561 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18564 $as_echo_n "checking for library containing event_set... " >&6; }
18565 if ${ac_cv_search_event_set+:} false; then :
18566 $as_echo_n "(cached) " >&6
18568 ac_func_search_save_LIBS=$LIBS
18569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18570 /* end confdefs.h. */
18572 /* Override any GCC internal prototype to avoid an error.
18573 Use char because int might match the return type of a GCC
18574 builtin and then its argument prototype would still apply. */
18582 return event_set ();
18587 for ac_lib in '' ev; do
18588 if test -z "$ac_lib"; then
18589 ac_res="none required"
18592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18594 if ac_fn_c_try_link "$LINENO"; then :
18595 ac_cv_search_event_set=$ac_res
18597 rm -f core conftest.err conftest.$ac_objext \
18599 if ${ac_cv_search_event_set+:} false; then :
18603 if ${ac_cv_search_event_set+:} false; then :
18606 ac_cv_search_event_set=no
18608 rm conftest.$ac_ext
18609 LIBS=$ac_func_search_save_LIBS
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18612 $as_echo "$ac_cv_search_event_set" >&6; }
18613 ac_res=$ac_cv_search_event_set
18614 if test "$ac_res" != no; then :
18615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18623 $as_echo_n "checking for library containing event_set... " >&6; }
18624 if ${ac_cv_search_event_set+:} false; then :
18625 $as_echo_n "(cached) " >&6
18627 ac_func_search_save_LIBS=$LIBS
18628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18629 /* end confdefs.h. */
18631 /* Override any GCC internal prototype to avoid an error.
18632 Use char because int might match the return type of a GCC
18633 builtin and then its argument prototype would still apply. */
18641 return event_set ();
18646 for ac_lib in '' event; do
18647 if test -z "$ac_lib"; then
18648 ac_res="none required"
18651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18653 if ac_fn_c_try_link "$LINENO"; then :
18654 ac_cv_search_event_set=$ac_res
18656 rm -f core conftest.err conftest.$ac_objext \
18658 if ${ac_cv_search_event_set+:} false; then :
18662 if ${ac_cv_search_event_set+:} false; then :
18665 ac_cv_search_event_set=no
18667 rm conftest.$ac_ext
18668 LIBS=$ac_func_search_save_LIBS
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18671 $as_echo "$ac_cv_search_event_set" >&6; }
18672 ac_res=$ac_cv_search_event_set
18673 if test "$ac_res" != no; then :
18674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18681 for ac_func in event_base_free
18683 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
18684 if test "x$ac_cv_func_event_base_free" = xyes; then :
18685 cat >>confdefs.h <<_ACEOF
18686 #define HAVE_EVENT_BASE_FREE 1
18691 # only in libevent 1.2 and later
18692 for ac_func in event_base_once
18694 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
18695 if test "x$ac_cv_func_event_base_once" = xyes; then :
18696 cat >>confdefs.h <<_ACEOF
18697 #define HAVE_EVENT_BASE_ONCE 1
18702 # only in libevent 1.4.1 and later
18703 for ac_func in event_base_new
18705 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
18706 if test "x$ac_cv_func_event_base_new" = xyes; then :
18707 cat >>confdefs.h <<_ACEOF
18708 #define HAVE_EVENT_BASE_NEW 1
18713 # only in libevent 1.4.1 and later
18714 for ac_func in event_base_get_method
18716 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
18717 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
18718 cat >>confdefs.h <<_ACEOF
18719 #define HAVE_EVENT_BASE_GET_METHOD 1
18724 # only in libevent 1.4.3 and later
18725 for ac_func in ev_loop
18727 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
18728 if test "x$ac_cv_func_ev_loop" = xyes; then :
18729 cat >>confdefs.h <<_ACEOF
18730 #define HAVE_EV_LOOP 1
18735 # only in libev. (tested on 3.51)
18736 for ac_func in ev_default_loop
18738 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
18739 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
18740 cat >>confdefs.h <<_ACEOF
18741 #define HAVE_EV_DEFAULT_LOOP 1
18746 # only in libev. (tested on 4.00)
18747 PC_LIBEVENT_DEPENDENCY="libevent"
18749 if test -n "$BAK_LDFLAGS_SET"; then
18750 LDFLAGS="$BAK_LDFLAGS"
18754 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
18758 # check for libexpat
18760 # Check whether --with-libexpat was given.
18761 if test "${with_libexpat+set}" = set; then :
18762 withval=$with_libexpat;
18764 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
18768 $as_echo_n "checking for libexpat... " >&6; }
18769 found_libexpat="no"
18770 for dir in $withval ; do
18771 if test -f "$dir/include/expat.h"; then
18772 found_libexpat="yes"
18773 if test "$dir" != "/usr"; then
18774 CPPFLAGS="$CPPFLAGS -I$dir/include"
18775 LDFLAGS="$LDFLAGS -L$dir/lib"
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
18778 $as_echo "found in $dir" >&6; }
18782 if test x_$found_libexpat != x_yes; then
18783 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
18785 for ac_header in expat.h
18787 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
18789 if test "x$ac_cv_header_expat_h" = xyes; then :
18790 cat >>confdefs.h <<_ACEOF
18791 #define HAVE_EXPAT_H 1
18798 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
18802 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
18808 cat >>confdefs.h <<_ACEOF
18809 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
18813 # set static linking if requested
18816 # Check whether --enable-static-exe was given.
18817 if test "${enable_static_exe+set}" = set; then :
18818 enableval=$enable_static_exe;
18821 if test x_$enable_static_exe = x_yes; then
18822 staticexe="-static"
18823 if test "$on_mingw" = yes; then
18824 staticexe="-all-static"
18825 # for static compile, include gdi32 and zlib here.
18826 if echo $LIBS | grep 'lgdi32' >/dev/null; then
18829 LIBS="$LIBS -lgdi32"
18835 # Include systemd.m4 - begin
18836 # macros for configuring systemd
18837 # Copyright 2015, Sami Kerola, CloudFlare.
18839 # Check whether --enable-systemd was given.
18840 if test "${enable_systemd+set}" = set; then :
18841 enableval=$enable_systemd;
18854 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18855 if test -n "$ac_tool_prefix"; then
18856 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18857 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18859 $as_echo_n "checking for $ac_word... " >&6; }
18860 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18861 $as_echo_n "(cached) " >&6
18863 case $PKG_CONFIG in
18865 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18869 for as_dir in $PATH
18872 test -z "$as_dir" && as_dir=.
18873 for ac_exec_ext in '' $ac_executable_extensions; do
18874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18875 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18886 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18887 if test -n "$PKG_CONFIG"; then
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18889 $as_echo "$PKG_CONFIG" >&6; }
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18892 $as_echo "no" >&6; }
18897 if test -z "$ac_cv_path_PKG_CONFIG"; then
18898 ac_pt_PKG_CONFIG=$PKG_CONFIG
18899 # Extract the first word of "pkg-config", so it can be a program name with args.
18900 set dummy pkg-config; ac_word=$2
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18902 $as_echo_n "checking for $ac_word... " >&6; }
18903 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18904 $as_echo_n "(cached) " >&6
18906 case $ac_pt_PKG_CONFIG in
18908 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18912 for as_dir in $PATH
18915 test -z "$as_dir" && as_dir=.
18916 for ac_exec_ext in '' $ac_executable_extensions; do
18917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18918 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18929 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18930 if test -n "$ac_pt_PKG_CONFIG"; then
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18932 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18935 $as_echo "no" >&6; }
18938 if test "x$ac_pt_PKG_CONFIG" = x; then
18941 case $cross_compiling:$ac_tool_warned in
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18945 ac_tool_warned=yes ;;
18947 PKG_CONFIG=$ac_pt_PKG_CONFIG
18950 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18954 if test -n "$PKG_CONFIG"; then
18955 _pkg_min_version=0.9.0
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18957 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18958 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18960 $as_echo "yes" >&6; }
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18963 $as_echo "no" >&6; }
18967 if test "x$enable_systemd" != xno; then :
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
18973 $as_echo_n "checking for SYSTEMD... " >&6; }
18975 if test -n "$SYSTEMD_CFLAGS"; then
18976 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
18977 elif test -n "$PKG_CONFIG"; then
18978 if test -n "$PKG_CONFIG" && \
18979 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
18980 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
18982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18983 test $ac_status = 0; }; then
18984 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
18985 test "x$?" != "x0" && pkg_failed=yes
18992 if test -n "$SYSTEMD_LIBS"; then
18993 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
18994 elif test -n "$PKG_CONFIG"; then
18995 if test -n "$PKG_CONFIG" && \
18996 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
18997 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
18999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19000 test $ac_status = 0; }; then
19001 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
19002 test "x$?" != "x0" && pkg_failed=yes
19012 if test $pkg_failed = yes; then
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19014 $as_echo "no" >&6; }
19016 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19017 _pkg_short_errors_supported=yes
19019 _pkg_short_errors_supported=no
19021 if test $_pkg_short_errors_supported = yes; then
19022 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
19024 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
19026 # Put the nasty error message in config.log where it belongs
19027 echo "$SYSTEMD_PKG_ERRORS" >&5
19030 elif test $pkg_failed = untried; then
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19032 $as_echo "no" >&6; }
19035 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
19036 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19038 $as_echo "yes" >&6; }
19041 if test "x$have_systemd" != "xyes"; then :
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
19046 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
19048 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
19049 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
19050 elif test -n "$PKG_CONFIG"; then
19051 if test -n "$PKG_CONFIG" && \
19052 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
19053 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
19055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19056 test $ac_status = 0; }; then
19057 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
19058 test "x$?" != "x0" && pkg_failed=yes
19065 if test -n "$SYSTEMD_DAEMON_LIBS"; then
19066 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
19067 elif test -n "$PKG_CONFIG"; then
19068 if test -n "$PKG_CONFIG" && \
19069 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
19070 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
19072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19073 test $ac_status = 0; }; then
19074 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
19075 test "x$?" != "x0" && pkg_failed=yes
19085 if test $pkg_failed = yes; then
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19087 $as_echo "no" >&6; }
19089 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19090 _pkg_short_errors_supported=yes
19092 _pkg_short_errors_supported=no
19094 if test $_pkg_short_errors_supported = yes; then
19095 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
19097 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
19099 # Put the nasty error message in config.log where it belongs
19100 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
19102 have_systemd_daemon=no
19103 elif test $pkg_failed = untried; then
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19105 $as_echo "no" >&6; }
19106 have_systemd_daemon=no
19108 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
19109 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19111 $as_echo "yes" >&6; }
19112 have_systemd_daemon=yes
19114 if test "x$have_systemd_daemon" = "xyes"; then :
19119 case $enable_systemd:$have_systemd in #(
19121 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
19124 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
19126 LIBS="$LIBS $SYSTEMD_LIBS"
19135 if test "x$have_systemd" = xyes; then
19137 USE_SYSTEMD_FALSE='#'
19139 USE_SYSTEMD_TRUE='#'
19144 # Include systemd.m4 - end
19146 # set lock checking if requested
19147 # Check whether --enable-lock_checks was given.
19148 if test "${enable_lock_checks+set}" = set; then :
19149 enableval=$enable_lock_checks;
19152 if test x_$enable_lock_checks = x_yes; then
19154 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
19156 CHECKLOCK_OBJ="checklocks.lo"
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
19162 $as_echo_n "checking for getaddrinfo... " >&6; }
19163 ac_cv_func_getaddrinfo=no
19164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h. */
19171 char* getaddrinfo();
19172 char* (*f) () = getaddrinfo;
19182 if ac_fn_c_try_link "$LINENO"; then :
19183 ac_cv_func_getaddrinfo="yes"
19184 if test "$ac_cv_header_windows_h" = "yes"; then
19186 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19189 if echo $LIBS | grep 'lws2_32' >/dev/null; then
19192 LIBS="$LIBS -lws2_32"
19198 LIBS="$LIBS -lws2_32"
19199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h. */
19202 #ifdef HAVE_WS2TCPIP_H
19203 #include <ws2tcpip.h>
19210 (void)getaddrinfo(NULL, NULL, NULL, NULL);
19217 if ac_fn_c_try_link "$LINENO"; then :
19219 ac_cv_func_getaddrinfo="yes"
19221 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19227 ac_cv_func_getaddrinfo="no"
19231 rm -f core conftest.err conftest.$ac_objext \
19232 conftest$ac_exeext conftest.$ac_ext
19235 rm -f core conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
19239 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
19240 if test $ac_cv_func_getaddrinfo = yes; then
19242 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19246 if test "$USE_WINSOCK" = 1; then
19248 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
19250 for ac_header in iphlpapi.h
19252 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
19253 #include <windows.h>
19256 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
19257 cat >>confdefs.h <<_ACEOF
19258 #define HAVE_IPHLPAPI_H 1
19265 if test -n "$ac_tool_prefix"; then
19266 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19267 set dummy ${ac_tool_prefix}windres; ac_word=$2
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19269 $as_echo_n "checking for $ac_word... " >&6; }
19270 if ${ac_cv_prog_WINDRES+:} false; then :
19271 $as_echo_n "(cached) " >&6
19273 if test -n "$WINDRES"; then
19274 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19277 for as_dir in $PATH
19280 test -z "$as_dir" && as_dir=.
19281 for ac_exec_ext in '' $ac_executable_extensions; do
19282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19283 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19293 WINDRES=$ac_cv_prog_WINDRES
19294 if test -n "$WINDRES"; then
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19296 $as_echo "$WINDRES" >&6; }
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19299 $as_echo "no" >&6; }
19304 if test -z "$ac_cv_prog_WINDRES"; then
19305 ac_ct_WINDRES=$WINDRES
19306 # Extract the first word of "windres", so it can be a program name with args.
19307 set dummy windres; ac_word=$2
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19309 $as_echo_n "checking for $ac_word... " >&6; }
19310 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19311 $as_echo_n "(cached) " >&6
19313 if test -n "$ac_ct_WINDRES"; then
19314 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19317 for as_dir in $PATH
19320 test -z "$as_dir" && as_dir=.
19321 for ac_exec_ext in '' $ac_executable_extensions; do
19322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19323 ac_cv_prog_ac_ct_WINDRES="windres"
19324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19333 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19334 if test -n "$ac_ct_WINDRES"; then
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19336 $as_echo "$ac_ct_WINDRES" >&6; }
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19339 $as_echo "no" >&6; }
19342 if test "x$ac_ct_WINDRES" = x; then
19345 case $cross_compiling:$ac_tool_warned in
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19349 ac_tool_warned=yes ;;
19351 WINDRES=$ac_ct_WINDRES
19354 WINDRES="$ac_cv_prog_WINDRES"
19357 LIBS="$LIBS -liphlpapi"
19358 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
19360 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
19362 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
19364 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
19366 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
19368 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
19370 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
19372 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
19375 if test $ac_cv_func_getaddrinfo = no; then
19376 case " $LIBOBJS " in
19377 *" fake-rfc2553.$ac_objext "* ) ;;
19378 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
19383 # check after getaddrinfo for its libraries
19385 # check ioctlsocket
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
19387 $as_echo_n "checking for ioctlsocket... " >&6; }
19388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19389 /* end confdefs.h. */
19391 #ifdef HAVE_WINSOCK2_H
19392 #include <winsock2.h>
19399 (void)ioctlsocket(0, 0, NULL);
19405 if ac_fn_c_try_link "$LINENO"; then :
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19408 $as_echo "yes" >&6; }
19410 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19415 $as_echo "no" >&6; }
19417 rm -f core conftest.err conftest.$ac_objext \
19418 conftest$ac_exeext conftest.$ac_ext
19421 # see if daemon(3) exists, and if it is deprecated.
19422 for ac_func in daemon
19424 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
19425 if test "x$ac_cv_func_daemon" = xyes; then :
19426 cat >>confdefs.h <<_ACEOF
19427 #define HAVE_DAEMON 1
19433 if test $ac_cv_func_daemon = yes; then
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
19437 $as_echo_n "checking if daemon is deprecated... " >&6; }
19438 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
19439 if eval \${cv_cc_deprecated_$cache+:} false; then :
19440 $as_echo_n "(cached) " >&6
19444 #include <stdlib.h>
19446 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
19447 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
19448 eval "cv_cc_deprecated_$cache=no"
19450 eval "cv_cc_deprecated_$cache=yes"
19452 rm -f conftest conftest.o conftest.c
19456 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19458 $as_echo "yes" >&6; }
19460 cat >>confdefs.h <<_ACEOF
19461 #define DEPRECATED_DAEMON 1
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19468 $as_echo "no" >&6; }
19475 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
19476 $ac_includes_default
19477 #ifdef HAVE_SYS_UN_H
19478 #include <sys/un.h>
19482 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
19484 cat >>confdefs.h <<_ACEOF
19485 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19491 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
19492 $ac_includes_default
19493 #if HAVE_SYS_PARAM_H
19494 #include <sys/param.h>
19497 #ifdef HAVE_SYS_SOCKET_H
19498 #include <sys/socket.h>
19501 #ifdef HAVE_SYS_UIO_H
19502 #include <sys/uio.h>
19505 #ifdef HAVE_NETINET_IN_H
19506 #include <netinet/in.h>
19509 #ifdef HAVE_NETINET_TCP_H
19510 #include <netinet/tcp.h>
19513 #ifdef HAVE_ARPA_INET_H
19514 #include <arpa/inet.h>
19517 #ifdef HAVE_WINSOCK2_H
19518 #include <winsock2.h>
19521 #ifdef HAVE_WS2TCPIP_H
19522 #include <ws2tcpip.h>
19526 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
19528 cat >>confdefs.h <<_ACEOF
19529 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
19536 $as_echo_n "checking for library containing setusercontext... " >&6; }
19537 if ${ac_cv_search_setusercontext+:} false; then :
19538 $as_echo_n "(cached) " >&6
19540 ac_func_search_save_LIBS=$LIBS
19541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19542 /* end confdefs.h. */
19544 /* Override any GCC internal prototype to avoid an error.
19545 Use char because int might match the return type of a GCC
19546 builtin and then its argument prototype would still apply. */
19550 char setusercontext ();
19554 return setusercontext ();
19559 for ac_lib in '' util; do
19560 if test -z "$ac_lib"; then
19561 ac_res="none required"
19564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19566 if ac_fn_c_try_link "$LINENO"; then :
19567 ac_cv_search_setusercontext=$ac_res
19569 rm -f core conftest.err conftest.$ac_objext \
19571 if ${ac_cv_search_setusercontext+:} false; then :
19575 if ${ac_cv_search_setusercontext+:} false; then :
19578 ac_cv_search_setusercontext=no
19580 rm conftest.$ac_ext
19581 LIBS=$ac_func_search_save_LIBS
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
19584 $as_echo "$ac_cv_search_setusercontext" >&6; }
19585 ac_res=$ac_cv_search_setusercontext
19586 if test "$ac_res" != no; then :
19587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19591 for ac_func in tzset sigprocmask fcntl getpwnam endpwent getrlimit setrlimit setsid chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent fsync shmget
19593 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19594 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19595 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19596 cat >>confdefs.h <<_ACEOF
19597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19603 for ac_func in setresuid
19605 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
19606 if test "x$ac_cv_func_setresuid" = xyes; then :
19607 cat >>confdefs.h <<_ACEOF
19608 #define HAVE_SETRESUID 1
19612 for ac_func in setreuid
19614 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
19615 if test "x$ac_cv_func_setreuid" = xyes; then :
19616 cat >>confdefs.h <<_ACEOF
19617 #define HAVE_SETREUID 1
19626 for ac_func in setresgid
19628 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
19629 if test "x$ac_cv_func_setresgid" = xyes; then :
19630 cat >>confdefs.h <<_ACEOF
19631 #define HAVE_SETRESGID 1
19635 for ac_func in setregid
19637 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
19638 if test "x$ac_cv_func_setregid" = xyes; then :
19639 cat >>confdefs.h <<_ACEOF
19640 #define HAVE_SETREGID 1
19650 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
19651 if echo $build_os | grep darwin8 > /dev/null; then
19653 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
19656 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
19657 $ac_includes_default
19658 #ifdef HAVE_NETINET_IN_H
19659 #include <netinet/in.h>
19662 #ifdef HAVE_NETINET_TCP_H
19663 #include <netinet/tcp.h>
19666 #ifdef HAVE_ARPA_INET_H
19667 #include <arpa/inet.h>
19670 #ifdef HAVE_WINSOCK2_H
19671 #include <winsock2.h>
19674 #ifdef HAVE_WS2TCPIP_H
19675 #include <ws2tcpip.h>
19679 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
19685 cat >>confdefs.h <<_ACEOF
19686 #define HAVE_DECL_INET_PTON $ac_have_decl
19688 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
19689 $ac_includes_default
19690 #ifdef HAVE_NETINET_IN_H
19691 #include <netinet/in.h>
19694 #ifdef HAVE_NETINET_TCP_H
19695 #include <netinet/tcp.h>
19698 #ifdef HAVE_ARPA_INET_H
19699 #include <arpa/inet.h>
19702 #ifdef HAVE_WINSOCK2_H
19703 #include <winsock2.h>
19706 #ifdef HAVE_WS2TCPIP_H
19707 #include <ws2tcpip.h>
19711 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
19717 cat >>confdefs.h <<_ACEOF
19718 #define HAVE_DECL_INET_NTOP $ac_have_decl
19721 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
19722 if test "x$ac_cv_func_inet_aton" = xyes; then :
19723 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
19726 case " $LIBOBJS " in
19727 *" inet_aton.$ac_objext "* ) ;;
19728 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
19735 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
19736 if test "x$ac_cv_func_inet_pton" = xyes; then :
19737 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
19740 case " $LIBOBJS " in
19741 *" inet_pton.$ac_objext "* ) ;;
19742 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
19749 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19750 if test "x$ac_cv_func_inet_ntop" = xyes; then :
19751 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
19754 case " $LIBOBJS " in
19755 *" inet_ntop.$ac_objext "* ) ;;
19756 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
19763 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
19764 if test "x$ac_cv_func_snprintf" = xyes; then :
19765 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
19768 case " $LIBOBJS " in
19769 *" snprintf.$ac_objext "* ) ;;
19770 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19777 # test if snprintf return the proper length
19778 if test "x$ac_cv_func_snprintf" = xyes; then
19779 if test c${cross_compiling} = cno; then
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
19781 $as_echo_n "checking for correct snprintf return value... " >&6; }
19782 if test "$cross_compiling" = yes; then :
19783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19785 as_fn_error $? "cannot run test program while cross compiling
19786 See \`config.log' for more details" "$LINENO" 5; }
19788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19789 /* end confdefs.h. */
19790 $ac_includes_default
19792 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
19795 if ac_fn_c_try_run "$LINENO"; then :
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19797 $as_echo "yes" >&6; }
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19801 $as_echo "no" >&6; }
19803 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
19805 case " $LIBOBJS " in
19806 *" snprintf.$ac_objext "* ) ;;
19807 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19814 conftest.$ac_objext conftest.beam conftest.$ac_ext
19819 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
19820 if test "x$ac_cv_func_strlcat" = xyes; then :
19821 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
19824 case " $LIBOBJS " in
19825 *" strlcat.$ac_objext "* ) ;;
19826 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
19833 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
19834 if test "x$ac_cv_func_strlcpy" = xyes; then :
19835 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
19838 case " $LIBOBJS " in
19839 *" strlcpy.$ac_objext "* ) ;;
19840 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
19847 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
19848 if test "x$ac_cv_func_memmove" = xyes; then :
19849 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
19852 case " $LIBOBJS " in
19853 *" memmove.$ac_objext "* ) ;;
19854 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
19861 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
19862 if test "x$ac_cv_func_gmtime_r" = xyes; then :
19863 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
19866 case " $LIBOBJS " in
19867 *" gmtime_r.$ac_objext "* ) ;;
19868 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
19875 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
19876 if test "x$ac_cv_func_isblank" = xyes; then :
19877 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
19880 case " $LIBOBJS " in
19881 *" isblank.$ac_objext "* ) ;;
19882 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
19889 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
19891 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
19892 if test "x$ac_cv_func_reallocarray" = xyes; then :
19893 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
19896 case " $LIBOBJS " in
19897 *" reallocarray.$ac_objext "* ) ;;
19898 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
19905 if test "$USE_NSS" = "no"; then
19906 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
19907 if test "x$ac_cv_func_arc4random" = xyes; then :
19908 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
19911 case " $LIBOBJS " in
19912 *" arc4random.$ac_objext "* ) ;;
19913 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
19920 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
19921 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
19922 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
19925 case " $LIBOBJS " in
19926 *" arc4random_uniform.$ac_objext "* ) ;;
19927 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
19934 if test "$ac_cv_func_arc4random" = "no"; then
19935 case " $LIBOBJS " in
19936 *" explicit_bzero.$ac_objext "* ) ;;
19937 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
19941 case " $LIBOBJS " in
19942 *" arc4_lock.$ac_objext "* ) ;;
19943 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
19947 for ac_func in getentropy
19949 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
19950 if test "x$ac_cv_func_getentropy" = xyes; then :
19951 cat >>confdefs.h <<_ACEOF
19952 #define HAVE_GETENTROPY 1
19957 if test "$USE_WINSOCK" = 1; then
19958 case " $LIBOBJS " in
19959 *" getentropy_win.$ac_objext "* ) ;;
19960 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
19967 case " $LIBOBJS " in
19968 *" getentropy_osx.$ac_objext "* ) ;;
19969 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
19974 *solaris*|*sunos*|SunOS)
19975 case " $LIBOBJS " in
19976 *" getentropy_solaris.$ac_objext "* ) ;;
19977 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
19981 for ac_header in sys/sha2.h
19983 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
19985 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
19986 cat >>confdefs.h <<_ACEOF
19987 #define HAVE_SYS_SHA2_H 1
19992 for ac_func in SHA512_Update
19994 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19995 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19996 cat >>confdefs.h <<_ACEOF
19997 #define HAVE_SHA512_UPDATE 1
20002 case " $LIBOBJS " in
20003 *" sha512.$ac_objext "* ) ;;
20004 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20017 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
20018 # this lib needed for sha2 on solaris
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20022 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20023 if ${ac_cv_search_clock_gettime+:} false; then :
20024 $as_echo_n "(cached) " >&6
20026 ac_func_search_save_LIBS=$LIBS
20027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20028 /* end confdefs.h. */
20030 /* Override any GCC internal prototype to avoid an error.
20031 Use char because int might match the return type of a GCC
20032 builtin and then its argument prototype would still apply. */
20036 char clock_gettime ();
20040 return clock_gettime ();
20045 for ac_lib in '' rt; do
20046 if test -z "$ac_lib"; then
20047 ac_res="none required"
20050 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20052 if ac_fn_c_try_link "$LINENO"; then :
20053 ac_cv_search_clock_gettime=$ac_res
20055 rm -f core conftest.err conftest.$ac_objext \
20057 if ${ac_cv_search_clock_gettime+:} false; then :
20061 if ${ac_cv_search_clock_gettime+:} false; then :
20064 ac_cv_search_clock_gettime=no
20066 rm conftest.$ac_ext
20067 LIBS=$ac_func_search_save_LIBS
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20070 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20071 ac_res=$ac_cv_search_clock_gettime
20072 if test "$ac_res" != no; then :
20073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20079 case " $LIBOBJS " in
20080 *" getentropy_linux.$ac_objext "* ) ;;
20081 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
20085 for ac_func in SHA512_Update
20087 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20088 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20089 cat >>confdefs.h <<_ACEOF
20090 #define HAVE_SHA512_UPDATE 1
20096 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
20098 case " $LIBOBJS " in
20099 *" sha512.$ac_objext "* ) ;;
20100 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20108 for ac_header in sys/sysctl.h
20110 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
20112 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
20113 cat >>confdefs.h <<_ACEOF
20114 #define HAVE_SYS_SYSCTL_H 1
20121 for ac_func in getauxval
20123 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
20124 if test "x$ac_cv_func_getauxval" = xyes; then :
20125 cat >>confdefs.h <<_ACEOF
20126 #define HAVE_GETAUXVAL 1
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20133 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20134 if ${ac_cv_search_clock_gettime+:} false; then :
20135 $as_echo_n "(cached) " >&6
20137 ac_func_search_save_LIBS=$LIBS
20138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20139 /* end confdefs.h. */
20141 /* Override any GCC internal prototype to avoid an error.
20142 Use char because int might match the return type of a GCC
20143 builtin and then its argument prototype would still apply. */
20147 char clock_gettime ();
20151 return clock_gettime ();
20156 for ac_lib in '' rt; do
20157 if test -z "$ac_lib"; then
20158 ac_res="none required"
20161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20163 if ac_fn_c_try_link "$LINENO"; then :
20164 ac_cv_search_clock_gettime=$ac_res
20166 rm -f core conftest.err conftest.$ac_objext \
20168 if ${ac_cv_search_clock_gettime+:} false; then :
20172 if ${ac_cv_search_clock_gettime+:} false; then :
20175 ac_cv_search_clock_gettime=no
20177 rm conftest.$ac_ext
20178 LIBS=$ac_func_search_save_LIBS
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20181 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20182 ac_res=$ac_cv_search_clock_gettime
20183 if test "$ac_res" != no; then :
20184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20197 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
20199 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
20200 if test "x$ac_cv_func_ctime_r" = xyes; then :
20201 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
20204 case " $LIBOBJS " in
20205 *" ctime_r.$ac_objext "* ) ;;
20206 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
20213 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
20214 if test "x$ac_cv_func_strsep" = xyes; then :
20215 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
20218 case " $LIBOBJS " in
20219 *" strsep.$ac_objext "* ) ;;
20220 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
20228 # Check whether --enable-allsymbols was given.
20229 if test "${enable_allsymbols+set}" = set; then :
20230 enableval=$enable_allsymbols;
20233 case "$enable_allsymbols" in
20235 COMMON_OBJ_ALL_SYMBOLS=""
20237 EXTRALINK="-L. -L.libs -lunbound"
20239 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
20243 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
20244 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
20251 if test x_$enable_lock_checks = x_yes; then
20252 UBSYMS="-export-symbols clubsyms.def"
20253 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
20254 echo lock_protect >> clubsyms.def
20255 echo lock_unprotect >> clubsyms.def
20256 echo lock_get_mem >> clubsyms.def
20257 echo checklock_start >> clubsyms.def
20258 echo checklock_stop >> clubsyms.def
20259 echo checklock_lock >> clubsyms.def
20260 echo checklock_unlock >> clubsyms.def
20261 echo checklock_init >> clubsyms.def
20262 echo checklock_thrcreate >> clubsyms.def
20263 echo checklock_thrjoin >> clubsyms.def
20266 # check for dnstap if requested
20268 # Check whether --enable-dnstap was given.
20269 if test "${enable_dnstap+set}" = set; then :
20270 enableval=$enable_dnstap; opt_dnstap=$enableval
20277 # Check whether --with-dnstap-socket-path was given.
20278 if test "${with_dnstap_socket_path+set}" = set; then :
20279 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
20281 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
20285 if test "x$opt_dnstap" != "xno"; then
20286 # Extract the first word of "protoc-c", so it can be a program name with args.
20287 set dummy protoc-c; ac_word=$2
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20289 $as_echo_n "checking for $ac_word... " >&6; }
20290 if ${ac_cv_path_PROTOC_C+:} false; then :
20291 $as_echo_n "(cached) " >&6
20295 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
20298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20299 for as_dir in $PATH
20302 test -z "$as_dir" && as_dir=.
20303 for ac_exec_ext in '' $ac_executable_extensions; do
20304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20305 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
20306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20316 PROTOC_C=$ac_cv_path_PROTOC_C
20317 if test -n "$PROTOC_C"; then
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
20319 $as_echo "$PROTOC_C" >&6; }
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20322 $as_echo "no" >&6; }
20326 if test -z "$PROTOC_C"; then
20327 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
20330 # Check whether --with-protobuf-c was given.
20331 if test "${with_protobuf_c+set}" = set; then :
20332 withval=$with_protobuf_c;
20333 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20334 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
20335 CFLAGS="$CFLAGS -I$withval/include/google"
20337 CFLAGS="$CFLAGS -I$withval/include"
20339 LDFLAGS="$LDFLAGS -L$withval/lib"
20343 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20344 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
20345 CFLAGS="$CFLAGS -I/usr/include/google"
20347 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
20348 CFLAGS="$CFLAGS -I/usr/local/include/google"
20349 LDFLAGS="$LDFLAGS -L/usr/local/lib"
20356 # Check whether --with-libfstrm was given.
20357 if test "${with_libfstrm+set}" = set; then :
20358 withval=$with_libfstrm;
20359 CFLAGS="$CFLAGS -I$withval/include"
20360 LDFLAGS="$LDFLAGS -L$withval/lib"
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
20365 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
20366 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20367 $as_echo_n "(cached) " >&6
20369 ac_func_search_save_LIBS=$LIBS
20370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20371 /* end confdefs.h. */
20373 /* Override any GCC internal prototype to avoid an error.
20374 Use char because int might match the return type of a GCC
20375 builtin and then its argument prototype would still apply. */
20379 char fstrm_iothr_init ();
20383 return fstrm_iothr_init ();
20388 for ac_lib in '' fstrm; do
20389 if test -z "$ac_lib"; then
20390 ac_res="none required"
20393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20395 if ac_fn_c_try_link "$LINENO"; then :
20396 ac_cv_search_fstrm_iothr_init=$ac_res
20398 rm -f core conftest.err conftest.$ac_objext \
20400 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20404 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20407 ac_cv_search_fstrm_iothr_init=no
20409 rm conftest.$ac_ext
20410 LIBS=$ac_func_search_save_LIBS
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
20413 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
20414 ac_res=$ac_cv_search_fstrm_iothr_init
20415 if test "$ac_res" != no; then :
20416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20419 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
20423 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
20424 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20425 $as_echo_n "(cached) " >&6
20427 ac_func_search_save_LIBS=$LIBS
20428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20429 /* end confdefs.h. */
20431 /* Override any GCC internal prototype to avoid an error.
20432 Use char because int might match the return type of a GCC
20433 builtin and then its argument prototype would still apply. */
20437 char protobuf_c_message_pack ();
20441 return protobuf_c_message_pack ();
20446 for ac_lib in '' protobuf-c; do
20447 if test -z "$ac_lib"; then
20448 ac_res="none required"
20451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20453 if ac_fn_c_try_link "$LINENO"; then :
20454 ac_cv_search_protobuf_c_message_pack=$ac_res
20456 rm -f core conftest.err conftest.$ac_objext \
20458 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20462 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20465 ac_cv_search_protobuf_c_message_pack=no
20467 rm conftest.$ac_ext
20468 LIBS=$ac_func_search_save_LIBS
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
20471 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
20472 ac_res=$ac_cv_search_protobuf_c_message_pack
20473 if test "$ac_res" != no; then :
20474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20477 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
20482 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
20488 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
20491 cat >>confdefs.h <<_ACEOF
20492 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
20496 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
20498 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
20510 # check for dnscrypt if requested
20512 # Check whether --enable-dnscrypt was given.
20513 if test "${enable_dnscrypt+set}" = set; then :
20514 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
20520 if test "x$opt_dnscrypt" != "xno"; then
20522 # Check whether --with-libsodium was given.
20523 if test "${with_libsodium+set}" = set; then :
20524 withval=$with_libsodium;
20525 CFLAGS="$CFLAGS -I$withval/include"
20526 LDFLAGS="$LDFLAGS -L$withval/lib"
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
20531 $as_echo_n "checking for library containing sodium_init... " >&6; }
20532 if ${ac_cv_search_sodium_init+:} false; then :
20533 $as_echo_n "(cached) " >&6
20535 ac_func_search_save_LIBS=$LIBS
20536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20537 /* end confdefs.h. */
20539 /* Override any GCC internal prototype to avoid an error.
20540 Use char because int might match the return type of a GCC
20541 builtin and then its argument prototype would still apply. */
20545 char sodium_init ();
20549 return sodium_init ();
20554 for ac_lib in '' sodium; do
20555 if test -z "$ac_lib"; then
20556 ac_res="none required"
20559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20561 if ac_fn_c_try_link "$LINENO"; then :
20562 ac_cv_search_sodium_init=$ac_res
20564 rm -f core conftest.err conftest.$ac_objext \
20566 if ${ac_cv_search_sodium_init+:} false; then :
20570 if ${ac_cv_search_sodium_init+:} false; then :
20573 ac_cv_search_sodium_init=no
20575 rm conftest.$ac_ext
20576 LIBS=$ac_func_search_save_LIBS
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
20579 $as_echo "$ac_cv_search_sodium_init" >&6; }
20580 ac_res=$ac_cv_search_sodium_init
20581 if test "$ac_res" != no; then :
20582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20585 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
20589 $as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
20590 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20591 $as_echo_n "(cached) " >&6
20593 ac_func_search_save_LIBS=$LIBS
20594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595 /* end confdefs.h. */
20597 /* Override any GCC internal prototype to avoid an error.
20598 Use char because int might match the return type of a GCC
20599 builtin and then its argument prototype would still apply. */
20603 char crypto_box_curve25519xchacha20poly1305_beforenm ();
20607 return crypto_box_curve25519xchacha20poly1305_beforenm ();
20612 for ac_lib in '' sodium; do
20613 if test -z "$ac_lib"; then
20614 ac_res="none required"
20617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20619 if ac_fn_c_try_link "$LINENO"; then :
20620 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
20622 rm -f core conftest.err conftest.$ac_objext \
20624 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20628 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20631 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
20633 rm conftest.$ac_ext
20634 LIBS=$ac_func_search_save_LIBS
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
20637 $as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
20638 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
20639 if test "$ac_res" != no; then :
20640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20642 ENABLE_DNSCRYPT_XCHACHA20=1
20645 $as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
20650 ENABLE_DNSCRYPT_XCHACHA20=0
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
20656 $as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
20657 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
20658 $as_echo_n "(cached) " >&6
20660 ac_func_search_save_LIBS=$LIBS
20661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20662 /* end confdefs.h. */
20664 /* Override any GCC internal prototype to avoid an error.
20665 Use char because int might match the return type of a GCC
20666 builtin and then its argument prototype would still apply. */
20670 char sodium_set_misuse_handler ();
20674 return sodium_set_misuse_handler ();
20679 for ac_lib in '' sodium; do
20680 if test -z "$ac_lib"; then
20681 ac_res="none required"
20684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20686 if ac_fn_c_try_link "$LINENO"; then :
20687 ac_cv_search_sodium_set_misuse_handler=$ac_res
20689 rm -f core conftest.err conftest.$ac_objext \
20691 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
20695 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
20698 ac_cv_search_sodium_set_misuse_handler=no
20700 rm conftest.$ac_ext
20701 LIBS=$ac_func_search_save_LIBS
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
20704 $as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
20705 ac_res=$ac_cv_search_sodium_set_misuse_handler
20706 if test "$ac_res" != no; then :
20707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20710 $as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
20717 $as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
20722 DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
20724 DNSCRYPT_OBJ="dnscrypt.lo"
20728 ENABLE_DNSCRYPT_XCHACHA20=0
20738 # check for cachedb if requested
20739 # Check whether --enable-cachedb was given.
20740 if test "${enable_cachedb+set}" = set; then :
20741 enableval=$enable_cachedb;
20744 case "$enable_cachedb" in
20747 $as_echo "#define USE_CACHEDB 1" >>confdefs.h
20755 # check for ipsecmod if requested
20756 # Check whether --enable-ipsecmod was given.
20757 if test "${enable_ipsecmod+set}" = set; then :
20758 enableval=$enable_ipsecmod;
20761 case "$enable_ipsecmod" in
20764 $as_echo "#define USE_IPSECMOD 1" >>confdefs.h
20766 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
20768 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
20777 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
20778 # on openBSD, the implicit rule make $< work.
20779 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
20781 cat >conftest.make <<EOF
20784 conftest.lo foo.lo bla.lo:
20785 if test -f "\$<"; then touch \$@; fi
20789 if test -f "\$<"; then touch \$@; fi
20791 conftest.lo: conftest.dir/conftest.c
20794 touch conftest.dir/conftest.c
20795 rm -f conftest.lo conftest.c
20796 ${MAKE:-make} -f conftest.make >/dev/null
20797 rm -f conftest.make conftest.c conftest.dir/conftest.c
20798 rm -rf conftest.dir
20799 if test ! -f conftest.lo; then
20800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20801 $as_echo "no" >&6; }
20802 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
20803 SOURCEFILE='`cat .source`'
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20806 $as_echo "yes" >&6; }
20807 SOURCEDETERMINE=':'
20814 # see if we want to build the library or everything
20815 ALLTARGET="alltargets"
20816 INSTALLTARGET="install-all"
20818 # Check whether --with-libunbound-only was given.
20819 if test "${with_libunbound_only+set}" = set; then :
20820 withval=$with_libunbound_only;
20821 if test "$withval" = "yes"; then
20823 INSTALLTARGET="install-lib"
20828 if test $ALLTARGET = "alltargets"; then
20829 if test $USE_NSS = "yes"; then
20830 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
20832 if test $USE_NETTLE = "yes"; then
20833 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
20842 $as_echo "$as_me: Stripping extension flags..." >&6;}
20844 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
20845 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
20847 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
20852 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
20853 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
20855 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
20860 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
20861 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
20863 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
20868 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
20869 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
20871 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
20876 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
20877 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
20879 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
20884 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
20885 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
20887 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
20892 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
20893 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
20895 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
20900 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
20901 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
20903 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
20908 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
20909 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
20911 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
20916 if test -n "$LATE_LDFLAGS"; then
20917 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
20919 # remove start spaces
20920 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
20921 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
20924 cat >>confdefs.h <<_ACEOF
20925 #define MAXSYSLOGMSGLEN 10240
20933 date=`date +'%b %e, %Y'`
20936 ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service"
20938 ac_config_headers="$ac_config_headers config.h"
20940 cat >confcache <<\_ACEOF
20941 # This file is a shell script that caches the results of configure
20942 # tests run on this system so they can be shared between configure
20943 # scripts and configure runs, see configure's option --config-cache.
20944 # It is not useful on other systems. If it contains results you don't
20945 # want to keep, you may remove or edit it.
20947 # config.status only pays attention to the cache file if you give it
20948 # the --recheck option to rerun configure.
20950 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20951 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20952 # following values.
20956 # The following way of writing the cache mishandles newlines in values,
20957 # but we know of no workaround that is simple, portable, and efficient.
20958 # So, we kill variables containing newlines.
20959 # Ultrix sh set writes to stderr and can't be redirected directly,
20960 # and sets the high bit in the cache file unless we assign to the vars.
20962 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20963 eval ac_val=\$$ac_var
20967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20968 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20971 _ | IFS | as_nl) ;; #(
20972 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20973 *) { eval $ac_var=; unset $ac_var;} ;;
20979 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20980 *${as_nl}ac_space=\ *)
20981 # `set' does not quote correctly, so add quotes: double-quote
20982 # substitution turns \\\\ into \\, and sed turns \\ into \.
20985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20988 # `set' quotes correctly as required by POSIX, so do not add quotes.
20989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20998 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21000 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21002 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21003 if test -w "$cache_file"; then
21004 if test "x$cache_file" != "x/dev/null"; then
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21006 $as_echo "$as_me: updating cache $cache_file" >&6;}
21007 if test ! -f "$cache_file" || test -h "$cache_file"; then
21008 cat confcache >"$cache_file"
21010 case $cache_file in #(
21012 mv -f confcache "$cache_file"$$ &&
21013 mv -f "$cache_file"$$ "$cache_file" ;; #(
21015 mv -f confcache "$cache_file" ;;
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21021 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21026 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21027 # Let make expand exec_prefix.
21028 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21030 DEFS=-DHAVE_CONFIG_H
21035 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21036 # 1. Remove the extension, and $U if already installed.
21037 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21038 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21039 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21040 # will be set to the directory where LIBOBJS objects are built.
21041 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21042 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21044 LIBOBJS=$ac_libobjs
21046 LTLIBOBJS=$ac_ltlibobjs
21049 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
21050 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
21051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21054 : "${CONFIG_STATUS=./config.status}"
21056 ac_clean_files_save=$ac_clean_files
21057 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21059 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21061 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21063 # Generated by $as_me.
21064 # Run this file to recreate the current configuration.
21065 # Compiler output produced by configure, useful for debugging
21066 # configure, is in config.log if it exists.
21069 ac_cs_recheck=false
21072 SHELL=\${CONFIG_SHELL-$SHELL}
21075 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21076 ## -------------------- ##
21077 ## M4sh Initialization. ##
21078 ## -------------------- ##
21080 # Be more Bourne compatible
21081 DUALCASE=1; export DUALCASE # for MKS sh
21082 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21085 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21086 # is contrary to our usage. Disable this feature.
21087 alias -g '${1+"$@"}'='"$@"'
21088 setopt NO_GLOB_SUBST
21090 case `(set -o) 2>/dev/null` in #(
21102 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21103 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21104 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21105 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21106 # Prefer a ksh shell builtin over an external printf program on Solaris,
21107 # but without wasting forks for bash or zsh.
21108 if test -z "$BASH_VERSION$ZSH_VERSION" \
21109 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21110 as_echo='print -r --'
21111 as_echo_n='print -rn --'
21112 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21113 as_echo='printf %s\n'
21114 as_echo_n='printf %s'
21116 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21117 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21118 as_echo_n='/usr/ucb/echo -n'
21120 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21121 as_echo_n_body='eval
21125 expr "X$arg" : "X\\(.*\\)$as_nl";
21126 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21128 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21130 export as_echo_n_body
21131 as_echo_n='sh -c $as_echo_n_body as_echo'
21133 export as_echo_body
21134 as_echo='sh -c $as_echo_body as_echo'
21137 # The user is always right.
21138 if test "${PATH_SEPARATOR+set}" != set; then
21140 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21141 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21148 # We need space, tab and new line, in precisely that order. Quoting is
21149 # there to prevent editors from complaining about space-tab.
21150 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21151 # splitting by setting IFS to empty value.)
21154 # Find who we are. Look in the path if we contain no directory separator.
21157 *[\\/]* ) as_myself=$0 ;;
21158 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21159 for as_dir in $PATH
21162 test -z "$as_dir" && as_dir=.
21163 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21169 # We did not find ourselves, most probably we were run as `sh COMMAND'
21170 # in which case we are not to be found in the path.
21171 if test "x$as_myself" = x; then
21174 if test ! -f "$as_myself"; then
21175 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21179 # Unset variables that we do not need and which cause bugs (e.g. in
21180 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21181 # suppresses any "Segmentation fault" message there. '((' could
21182 # trigger a bug in pdksh 5.2.14.
21183 for as_var in BASH_ENV ENV MAIL MAILPATH
21184 do eval test x\${$as_var+set} = xset \
21185 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21198 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21201 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21202 # ----------------------------------------
21203 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21204 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21205 # script with STATUS, using 1 if that was 0.
21208 as_status=$1; test $as_status -eq 0 && as_status=1
21210 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21211 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21213 $as_echo "$as_me: error: $2" >&2
21214 as_fn_exit $as_status
21218 # as_fn_set_status STATUS
21219 # -----------------------
21220 # Set $? to STATUS, without forking.
21221 as_fn_set_status ()
21224 } # as_fn_set_status
21226 # as_fn_exit STATUS
21227 # -----------------
21228 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21232 as_fn_set_status $1
21238 # Portably unset VAR.
21241 { eval $1=; unset $1;}
21243 as_unset=as_fn_unset
21244 # as_fn_append VAR VALUE
21245 # ----------------------
21246 # Append the text in VALUE to the end of the definition contained in VAR. Take
21247 # advantage of any shell optimizations that allow amortized linear growth over
21248 # repeated appends, instead of the typical quadratic growth present in naive
21250 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21251 eval 'as_fn_append ()
21262 # as_fn_arith ARG...
21263 # ------------------
21264 # Perform arithmetic evaluation on the ARGs, and store the result in the
21265 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21266 # must be portable across $(()) and expr.
21267 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21268 eval 'as_fn_arith ()
21275 as_val=`expr "$@" || test $? -eq 1`
21280 if expr a : '\(a\)' >/dev/null 2>&1 &&
21281 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21287 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21288 as_basename=basename
21293 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21299 as_me=`$as_basename -- "$0" ||
21300 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21301 X"$0" : 'X\(//\)$' \| \
21302 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21304 sed '/^.*\/\([^/][^/]*\)\/*$/{
21318 # Avoid depending upon Character Ranges.
21319 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21320 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21321 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21322 as_cr_digits='0123456789'
21323 as_cr_alnum=$as_cr_Letters$as_cr_digits
21325 ECHO_C= ECHO_N= ECHO_T=
21326 case `echo -n x` in #(((((
21328 case `echo 'xy\c'` in
21329 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21331 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21338 rm -f conf$$ conf$$.exe conf$$.file
21339 if test -d conf$$.dir; then
21340 rm -f conf$$.dir/conf$$.file
21343 mkdir conf$$.dir 2>/dev/null
21345 if (echo >conf$$.file) 2>/dev/null; then
21346 if ln -s conf$$.file conf$$ 2>/dev/null; then
21348 # ... but there are two gotchas:
21349 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21350 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21351 # In both cases, we have to default to `cp -pR'.
21352 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21354 elif ln conf$$.file conf$$ 2>/dev/null; then
21362 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21363 rmdir conf$$.dir 2>/dev/null
21368 # Create "$as_dir" as a directory, including parents if necessary.
21373 -*) as_dir=./$as_dir;;
21375 test -d "$as_dir" || eval $as_mkdir_p || {
21379 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21380 *) as_qdir=$as_dir;;
21382 as_dirs="'$as_qdir' $as_dirs"
21383 as_dir=`$as_dirname -- "$as_dir" ||
21384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21385 X"$as_dir" : 'X\(//\)[^/]' \| \
21386 X"$as_dir" : 'X\(//\)$' \| \
21387 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21388 $as_echo X"$as_dir" |
21389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21393 /^X\(\/\/\)[^/].*/{
21406 test -d "$as_dir" && break
21408 test -z "$as_dirs" || eval "mkdir $as_dirs"
21409 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21413 if mkdir -p . 2>/dev/null; then
21414 as_mkdir_p='mkdir -p "$as_dir"'
21416 test -d ./-p && rmdir ./-p
21421 # as_fn_executable_p FILE
21422 # -----------------------
21423 # Test if FILE is an executable regular file.
21424 as_fn_executable_p ()
21426 test -f "$1" && test -x "$1"
21427 } # as_fn_executable_p
21428 as_test_x='test -x'
21429 as_executable_p=as_fn_executable_p
21431 # Sed expression to map a string onto a valid CPP name.
21432 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21434 # Sed expression to map a string onto a valid variable name.
21435 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21439 ## ----------------------------------- ##
21440 ## Main body of $CONFIG_STATUS script. ##
21441 ## ----------------------------------- ##
21443 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21446 # Save the log message, to keep $0 and so on meaningful, and to
21447 # report actual input values of CONFIG_FILES etc. instead of their
21448 # values after options handling.
21450 This file was extended by unbound $as_me 1.7.0, which was
21451 generated by GNU Autoconf 2.69. Invocation command line was
21453 CONFIG_FILES = $CONFIG_FILES
21454 CONFIG_HEADERS = $CONFIG_HEADERS
21455 CONFIG_LINKS = $CONFIG_LINKS
21456 CONFIG_COMMANDS = $CONFIG_COMMANDS
21459 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21464 case $ac_config_files in *"
21465 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21468 case $ac_config_headers in *"
21469 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21474 # Files that config.status was made for.
21475 config_files="$ac_config_files"
21476 config_headers="$ac_config_headers"
21477 config_commands="$ac_config_commands"
21481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21483 \`$as_me' instantiates files and other configuration actions
21484 from templates according to the current configuration. Unless the files
21485 and actions are specified as TAGs, all are instantiated by default.
21487 Usage: $0 [OPTION]... [TAG]...
21489 -h, --help print this help, then exit
21490 -V, --version print version number and configuration settings, then exit
21491 --config print configuration, then exit
21492 -q, --quiet, --silent
21493 do not print progress messages
21494 -d, --debug don't remove temporary files
21495 --recheck update $as_me by reconfiguring in the same conditions
21496 --file=FILE[:TEMPLATE]
21497 instantiate the configuration file FILE
21498 --header=FILE[:TEMPLATE]
21499 instantiate the configuration header FILE
21501 Configuration files:
21504 Configuration headers:
21507 Configuration commands:
21510 Report bugs to <unbound-bugs@nlnetlabs.nl>."
21513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21514 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21516 unbound config.status 1.7.0
21517 configured by $0, generated by GNU Autoconf 2.69,
21518 with options \\"\$ac_cs_config\\"
21520 Copyright (C) 2012 Free Software Foundation, Inc.
21521 This config.status script is free software; the Free Software Foundation
21522 gives unlimited permission to copy, distribute and modify it."
21527 test -n "\$AWK" || AWK=awk
21530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21531 # The default lists apply if the user does not specify any file.
21537 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21538 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21542 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21554 # Handling of the options.
21555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21557 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21558 $as_echo "$ac_cs_version"; exit ;;
21559 --config | --confi | --conf | --con | --co | --c )
21560 $as_echo "$ac_cs_config"; exit ;;
21561 --debug | --debu | --deb | --de | --d | -d )
21563 --file | --fil | --fi | --f )
21566 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21567 '') as_fn_error $? "missing file argument" ;;
21569 as_fn_append CONFIG_FILES " '$ac_optarg'"
21570 ac_need_defaults=false;;
21571 --header | --heade | --head | --hea )
21574 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21576 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21577 ac_need_defaults=false;;
21579 # Conflict between --help and --header
21580 as_fn_error $? "ambiguous option: \`$1'
21581 Try \`$0 --help' for more information.";;
21582 --help | --hel | -h )
21583 $as_echo "$ac_cs_usage"; exit ;;
21584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21585 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21588 # This is an error.
21589 -*) as_fn_error $? "unrecognized option: \`$1'
21590 Try \`$0 --help' for more information." ;;
21592 *) as_fn_append ac_config_targets " $1"
21593 ac_need_defaults=false ;;
21599 ac_configure_extra_args=
21601 if $ac_cs_silent; then
21603 ac_configure_extra_args="$ac_configure_extra_args --silent"
21607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21608 if \$ac_cs_recheck; then
21609 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21611 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21612 CONFIG_SHELL='$SHELL'
21613 export CONFIG_SHELL
21618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21623 ## Running $as_me. ##
21629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21635 # The HP-UX ksh and POSIX shell print the target directory to stdout
21636 # if CDPATH is set.
21637 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21639 sed_quote_subst='$sed_quote_subst'
21640 double_quote_subst='$double_quote_subst'
21641 delay_variable_subst='$delay_variable_subst'
21642 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21643 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21644 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21645 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21646 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21647 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21648 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21649 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21650 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21651 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21652 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21653 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21654 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21655 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21656 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21657 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21658 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21659 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21660 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21661 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21662 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21663 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21664 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21665 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21666 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21667 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21668 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21669 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21670 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21671 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21672 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21673 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21674 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21675 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21676 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21677 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21678 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21679 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21680 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21681 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21682 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21683 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21684 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21685 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21686 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21687 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21688 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21689 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21690 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21691 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21692 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21693 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21694 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21695 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21696 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21697 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21698 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21699 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21700 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
21701 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21702 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21703 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21704 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21705 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21706 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21707 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21708 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21709 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21710 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21711 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21712 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21713 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21714 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21715 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21716 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21717 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21718 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21719 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21720 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21721 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21722 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21723 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21724 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21725 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21726 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21727 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21728 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21729 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21730 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21731 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21732 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21733 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21734 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21735 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21736 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21737 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21738 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21739 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21740 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21741 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21742 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21743 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21744 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21745 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21746 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21747 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21748 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21749 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21750 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21751 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21752 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21753 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21754 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21755 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21756 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21757 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21758 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21759 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21760 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21761 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21762 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21763 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21764 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21765 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21766 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21767 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21768 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21769 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21770 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21771 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21772 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21773 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21774 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21775 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21776 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21779 LTCFLAGS='$LTCFLAGS'
21780 compiler='$compiler_DEFAULT'
21782 # A function that is used when there is no print builtin or printf.
21783 func_fallback_echo ()
21785 eval 'cat <<_LTECHO_EOF
21790 # Quote evaled strings.
21805 deplibs_check_method \
21810 sharedlib_from_linklib_cmd \
21813 archiver_list_spec \
21819 lt_cv_sys_global_symbol_pipe \
21820 lt_cv_sys_global_symbol_to_cdecl \
21821 lt_cv_sys_global_symbol_to_import \
21822 lt_cv_sys_global_symbol_to_c_name_address \
21823 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21824 lt_cv_nm_interface \
21825 nm_file_list_spec \
21826 lt_cv_truncate_bin \
21827 lt_prog_compiler_no_builtin_flag \
21828 lt_prog_compiler_pic \
21829 lt_prog_compiler_wl \
21830 lt_prog_compiler_static \
21831 lt_cv_prog_compiler_c_o \
21840 export_dynamic_flag_spec \
21841 whole_archive_flag_spec \
21842 compiler_needs_object \
21844 allow_undefined_flag \
21845 no_undefined_flag \
21846 hardcode_libdir_flag_spec \
21847 hardcode_libdir_separator \
21851 variables_saved_for_relink \
21853 library_names_spec \
21855 install_override_mode \
21859 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21860 *[\\\\\\\`\\"\\\$]*)
21861 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21864 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21869 # Double-quote double-evaled strings.
21870 for var in reload_cmds \
21871 old_postinstall_cmds \
21872 old_postuninstall_cmds \
21874 extract_expsyms_cmds \
21875 old_archive_from_new_cmds \
21876 old_archive_from_expsyms_cmds \
21878 archive_expsym_cmds \
21880 module_expsym_cmds \
21881 export_symbols_cmds \
21885 postuninstall_cmds \
21887 sys_lib_search_path_spec \
21888 configure_time_dlsearch_path \
21889 configure_time_lt_sys_library_path; do
21890 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21891 *[\\\\\\\`\\"\\\$]*)
21892 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21895 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21900 ac_aux_dir='$ac_aux_dir'
21902 # See if we are running on zsh, and set the options that allow our
21903 # commands through without removal of \ escapes INIT.
21904 if test -n "\${ZSH_VERSION+set}"; then
21905 setopt NO_GLOB_SUBST
21919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21921 # Handling of arguments.
21922 for ac_config_target in $ac_config_targets
21924 case $ac_config_target in
21925 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21926 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
21927 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21928 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
21929 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
21930 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
21931 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
21932 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
21933 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
21934 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
21935 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
21936 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
21937 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
21938 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
21939 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
21940 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
21941 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
21942 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21944 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21949 # If the user did not use the arguments to specify the items to instantiate,
21950 # then the envvar interface is used. Set only those that are not.
21951 # We use the long form for the default assignment because of an extremely
21952 # bizarre bug on SunOS 4.1.3.
21953 if $ac_need_defaults; then
21954 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21955 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21956 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21959 # Have a temporary directory for convenience. Make it in the build tree
21960 # simply because there is no reason against having it here, and in addition,
21961 # creating and moving files from /tmp can sometimes cause problems.
21962 # Hook for its removal unless debugging.
21963 # Note that there is a small window in which the directory will not be cleaned:
21964 # after its creation but before its name has been assigned to `$tmp'.
21968 trap 'exit_status=$?
21969 : "${ac_tmp:=$tmp}"
21970 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21972 trap 'as_fn_exit 1' 1 2 13 15
21974 # Create a (secure) tmp directory for tmp files.
21977 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21981 tmp=./conf$$-$RANDOM
21982 (umask 077 && mkdir "$tmp")
21983 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21986 # Set up the scripts for CONFIG_FILES section.
21987 # No need to generate them if there are no CONFIG_FILES.
21988 # This happens for instance with `./config.status config.h'.
21989 if test -n "$CONFIG_FILES"; then
21992 ac_cr=`echo X | tr X '\015'`
21993 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21994 # But we know of no other shell where ac_cr would be empty at this
21995 # point, so we can use a bashism as a fallback.
21996 if test "x$ac_cr" = x; then
21997 eval ac_cr=\$\'\\r\'
21999 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22000 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22003 ac_cs_awk_cr=$ac_cr
22006 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22011 echo "cat >conf$$subs.awk <<_ACEOF" &&
22012 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22014 } >conf$$subs.sh ||
22015 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22016 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22018 for ac_last_try in false false false false false :; do
22019 . ./conf$$subs.sh ||
22020 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22022 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22023 if test $ac_delim_n = $ac_delim_num; then
22025 elif $ac_last_try; then
22026 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22028 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22031 rm -f conf$$subs.sh
22033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22034 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22038 s/^/S["/; s/!.*/"]=/
22048 s/\(.\{148\}\)..*/\1/
22050 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22055 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22062 s/\(.\{148\}\)..*/\1/
22064 s/["\\]/\\&/g; s/^/"/; s/$/"/
22068 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22073 ' <conf$$subs.awk | sed '
22078 ' >>$CONFIG_STATUS || ac_write_fail=1
22079 rm -f conf$$subs.awk
22080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22082 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22083 for (key in S) S_is_set[key] = 1
22089 nfields = split(line, field, "@")
22091 len = length(field[1])
22092 for (i = 2; i < nfields; i++) {
22094 keylen = length(key)
22095 if (S_is_set[key]) {
22097 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22098 len += length(value) + length(field[++i])
22109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22110 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22111 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22114 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22115 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22118 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22119 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22120 # trailing colons and then remove the whole line if VPATH becomes empty
22121 # (actually we leave an empty line to preserve line numbers).
22122 if test "x$srcdir" = x.; then
22123 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22142 fi # test -n "$CONFIG_FILES"
22144 # Set up the scripts for CONFIG_HEADERS section.
22145 # No need to generate them if there are no CONFIG_HEADERS.
22146 # This happens for instance with `./config.status Makefile'.
22147 if test -n "$CONFIG_HEADERS"; then
22148 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22152 # Transform confdefs.h into an awk script `defines.awk', embedded as
22153 # here-document in config.status, that substitutes the proper values into
22154 # config.h.in to produce config.h.
22156 # Create a delimiter string that does not exist in confdefs.h, to ease
22157 # handling of long lines.
22159 for ac_last_try in false false :; do
22160 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22161 if test -z "$ac_tt"; then
22163 elif $ac_last_try; then
22164 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22166 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22170 # For the awk script, D is an array of macro values keyed by name,
22171 # likewise P contains macro parameters if any. Preserve backslash
22172 # newline sequences.
22174 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22176 s/.\{148\}/&'"$ac_delim"'/g
22179 s/^[ ]*#[ ]*define[ ][ ]*/ /
22186 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22188 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22192 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22193 D["\1"]=" \3\\\\\\n"\\/p
22195 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22200 s/.\{148\}/&'"$ac_delim"'/g
22205 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22208 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22210 ' <confdefs.h | sed '
22211 s/'"$ac_delim"'/"\\\
22212 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22215 for (key in D) D_is_set[key] = 1
22218 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22220 split(line, arg, " ")
22221 if (arg[1] == "#") {
22225 defundef = substr(arg[1], 2)
22228 split(mac1, mac2, "(") #)
22230 prefix = substr(line, 1, index(line, defundef) - 1)
22231 if (D_is_set[macro]) {
22232 # Preserve the white space surrounding the "#".
22233 print prefix "define", macro P[macro] D[macro]
22236 # Replace #undef with comments. This is necessary, for example,
22237 # in the case of _POSIX_SOURCE, which is predefined and required
22238 # on some systems where configure will not decide to define it.
22239 if (defundef == "undef") {
22240 print "/*", prefix defundef, macro, "*/"
22248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22249 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22250 fi # test -n "$CONFIG_HEADERS"
22253 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22258 :[FHLC]) ac_mode=$ac_tag; continue;;
22260 case $ac_mode$ac_tag in
22262 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22263 :[FH]-) ac_tag=-:-;;
22264 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22281 -) ac_f="$ac_tmp/stdin";;
22282 *) # Look for the file first in the build tree, then in the source tree
22283 # (if the path is not absolute). The absolute path cannot be DOS-style,
22284 # because $ac_f cannot contain `:'.
22288 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22290 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22292 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22293 as_fn_append ac_file_inputs " '$ac_f'"
22296 # Let's still pretend it is `configure' which instantiates (i.e., don't
22297 # use $as_me), people would be surprised to read:
22298 # /* config.h. Generated by config.status. */
22299 configure_input='Generated from '`
22300 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22302 if test x"$ac_file" != x-; then
22303 configure_input="$ac_file. $configure_input"
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22305 $as_echo "$as_me: creating $ac_file" >&6;}
22307 # Neutralize special characters interpreted by sed in replacement strings.
22308 case $configure_input in #(
22309 *\&* | *\|* | *\\* )
22310 ac_sed_conf_input=`$as_echo "$configure_input" |
22311 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22312 *) ac_sed_conf_input=$configure_input;;
22316 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22317 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22322 ac_dir=`$as_dirname -- "$ac_file" ||
22323 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22324 X"$ac_file" : 'X\(//\)[^/]' \| \
22325 X"$ac_file" : 'X\(//\)$' \| \
22326 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22327 $as_echo X"$ac_file" |
22328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22332 /^X\(\/\/\)[^/].*/{
22345 as_dir="$ac_dir"; as_fn_mkdir_p
22349 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22351 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22352 # A ".." for each directory in $ac_dir_suffix.
22353 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22354 case $ac_top_builddir_sub in
22355 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22356 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22359 ac_abs_top_builddir=$ac_pwd
22360 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22361 # for backward compatibility:
22362 ac_top_builddir=$ac_top_build_prefix
22365 .) # We are building in place.
22367 ac_top_srcdir=$ac_top_builddir_sub
22368 ac_abs_top_srcdir=$ac_pwd ;;
22369 [\\/]* | ?:[\\/]* ) # Absolute name.
22370 ac_srcdir=$srcdir$ac_dir_suffix;
22371 ac_top_srcdir=$srcdir
22372 ac_abs_top_srcdir=$srcdir ;;
22373 *) # Relative name.
22374 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22375 ac_top_srcdir=$ac_top_build_prefix$srcdir
22376 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22378 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22390 # If the template does not know about datarootdir, expand it.
22391 # FIXME: This hack should be removed a few years after 2.60.
22392 ac_datarootdir_hack=; ac_datarootdir_seen=
22403 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22404 *datarootdir*) ac_datarootdir_seen=yes;;
22405 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22407 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22410 ac_datarootdir_hack='
22411 s&@datadir@&$datadir&g
22412 s&@docdir@&$docdir&g
22413 s&@infodir@&$infodir&g
22414 s&@localedir@&$localedir&g
22415 s&@mandir@&$mandir&g
22416 s&\\\${datarootdir}&$datarootdir&g' ;;
22420 # Neutralize VPATH when `$srcdir' = `.'.
22421 # Shell code in configure.ac might set extrasub.
22422 # FIXME: do we really want to maintain this feature?
22423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22424 ac_sed_extra="$ac_vpsub
22427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22430 s|@configure_input@|$ac_sed_conf_input|;t t
22431 s&@top_builddir@&$ac_top_builddir_sub&;t t
22432 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22433 s&@srcdir@&$ac_srcdir&;t t
22434 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22435 s&@top_srcdir@&$ac_top_srcdir&;t t
22436 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22437 s&@builddir@&$ac_builddir&;t t
22438 s&@abs_builddir@&$ac_abs_builddir&;t t
22439 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22440 $ac_datarootdir_hack
22442 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22443 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22445 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22446 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22447 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22448 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22450 which seems to be undefined. Please make sure it is defined" >&5
22451 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22452 which seems to be undefined. Please make sure it is defined" >&2;}
22454 rm -f "$ac_tmp/stdin"
22456 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22457 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22465 if test x"$ac_file" != x-; then
22467 $as_echo "/* $configure_input */" \
22468 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22469 } >"$ac_tmp/config.h" \
22470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22471 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22473 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22476 mv "$ac_tmp/config.h" "$ac_file" \
22477 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22480 $as_echo "/* $configure_input */" \
22481 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22482 || as_fn_error $? "could not create -" "$LINENO" 5
22486 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22487 $as_echo "$as_me: executing $ac_file commands" >&6;}
22492 case $ac_file$ac_mode in
22495 # See if we are running on zsh, and set the options that allow our
22496 # commands through without removal of \ escapes.
22497 if test -n "${ZSH_VERSION+set}"; then
22498 setopt NO_GLOB_SUBST
22502 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22505 cat <<_LT_EOF >> "$cfgfile"
22507 # Generated automatically by $as_me ($PACKAGE) $VERSION
22508 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22509 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22511 # Provide generalized library-building support services.
22512 # Written by Gordon Matzigkeit, 1996
22514 # Copyright (C) 2014 Free Software Foundation, Inc.
22515 # This is free software; see the source for copying conditions. There is NO
22516 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22518 # GNU Libtool is free software; you can redistribute it and/or modify
22519 # it under the terms of the GNU General Public License as published by
22520 # the Free Software Foundation; either version 2 of of the License, or
22521 # (at your option) any later version.
22523 # As a special exception to the GNU General Public License, if you
22524 # distribute this file as part of a program or library that is built
22525 # using GNU Libtool, you may include this file under the same
22526 # distribution terms that you use for the rest of that program.
22528 # GNU Libtool is distributed in the hope that it will be useful, but
22529 # WITHOUT ANY WARRANTY; without even the implied warranty of
22530 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22531 # GNU General Public License for more details.
22533 # You should have received a copy of the GNU General Public License
22534 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22537 # The names of the tagged configurations supported by this script.
22540 # Configured defaults for sys_lib_dlsearch_path munging.
22541 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22543 # ### BEGIN LIBTOOL CONFIG
22545 # Which release of libtool.m4 was used?
22546 macro_version=$macro_version
22547 macro_revision=$macro_revision
22549 # Whether or not to build shared libraries.
22550 build_libtool_libs=$enable_shared
22552 # Whether or not to build static libraries.
22553 build_old_libs=$enable_static
22555 # What type of objects to build.
22558 # Whether or not to optimize for fast installation.
22559 fast_install=$enable_fast_install
22561 # Shared archive member basename,for filename based shared library versioning on AIX.
22562 shared_archive_member_spec=$shared_archive_member_spec
22564 # Shell to use when invoking shell scripts.
22567 # An echo program that protects backslashes.
22570 # The PATH separator for the build system.
22571 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22574 host_alias=$host_alias
22578 # The build system.
22579 build_alias=$build_alias
22583 # A sed program that does not truncate output.
22586 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22587 Xsed="\$SED -e 1s/^X//"
22589 # A grep program that handles long lines.
22595 # A literal string matcher.
22598 # A BSD- or MS-compatible name lister.
22601 # Whether we need soft or hard links.
22604 # What is the maximum length of a command?
22605 max_cmd_len=$max_cmd_len
22607 # Object file suffix (normally "o").
22610 # Executable file suffix (normally "").
22613 # whether the shell understands "unset".
22616 # turn spaces into newlines.
22619 # turn newlines into spaces.
22622 # convert \$build file names to \$host format.
22623 to_host_file_cmd=$lt_cv_to_host_file_cmd
22625 # convert \$build files to toolchain format.
22626 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22628 # An object symbol dumper.
22629 OBJDUMP=$lt_OBJDUMP
22631 # Method to check whether dependent libraries are shared objects.
22632 deplibs_check_method=$lt_deplibs_check_method
22634 # Command to use when deplibs_check_method = "file_magic".
22635 file_magic_cmd=$lt_file_magic_cmd
22637 # How to find potential files when deplibs_check_method = "file_magic".
22638 file_magic_glob=$lt_file_magic_glob
22640 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22641 want_nocaseglob=$lt_want_nocaseglob
22643 # DLL creation program.
22644 DLLTOOL=$lt_DLLTOOL
22646 # Command to associate shared and link libraries.
22647 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22652 # Flags to create an archive.
22653 AR_FLAGS=$lt_AR_FLAGS
22655 # How to feed a file listing to the archiver.
22656 archiver_list_spec=$lt_archiver_list_spec
22658 # A symbol stripping program.
22661 # Commands used to install an old-style archive.
22663 old_postinstall_cmds=$lt_old_postinstall_cmds
22664 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22666 # Whether to use a lock for old archive extraction.
22667 lock_old_archive_extraction=$lock_old_archive_extraction
22672 # LTCC compiler flags.
22673 LTCFLAGS=$lt_CFLAGS
22675 # Take the output of nm and produce a listing of raw symbols and C names.
22676 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22678 # Transform the output of nm in a proper C declaration.
22679 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22681 # Transform the output of nm into a list of symbols to manually relocate.
22682 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22684 # Transform the output of nm in a C name address pair.
22685 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22687 # Transform the output of nm in a C name address pair when lib prefix is needed.
22688 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22690 # The name lister interface.
22691 nm_interface=$lt_lt_cv_nm_interface
22693 # Specify filename containing input files for \$NM.
22694 nm_file_list_spec=$lt_nm_file_list_spec
22696 # The root where to search for dependent libraries,and where our libraries should be installed.
22697 lt_sysroot=$lt_sysroot
22699 # Command to truncate a binary pipe.
22700 lt_truncate_bin=$lt_lt_cv_truncate_bin
22702 # The name of the directory that contains temporary libtool files.
22705 # Used to examine libraries when file_magic_cmd begins with "file".
22706 MAGIC_CMD=$MAGIC_CMD
22708 # Must we lock files when doing compilation?
22709 need_locks=$lt_need_locks
22712 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22714 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22715 DSYMUTIL=$lt_DSYMUTIL
22717 # Tool to change global to local symbols on Mac OS X.
22720 # Tool to manipulate fat objects and archives on Mac OS X.
22723 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22726 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22727 OTOOL64=$lt_OTOOL64
22729 # Old archive suffix (normally "a").
22732 # Shared library suffix (normally ".so").
22733 shrext_cmds=$lt_shrext_cmds
22735 # The commands to extract the exported symbol list from a shared archive.
22736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22738 # Variables whose values should be saved in libtool wrapper scripts and
22739 # restored at link time.
22740 variables_saved_for_relink=$lt_variables_saved_for_relink
22742 # Do we need the "lib" prefix for modules?
22743 need_lib_prefix=$need_lib_prefix
22745 # Do we need a version for libraries?
22746 need_version=$need_version
22748 # Library versioning type.
22749 version_type=$version_type
22751 # Shared library runtime path variable.
22752 runpath_var=$runpath_var
22754 # Shared library path variable.
22755 shlibpath_var=$shlibpath_var
22757 # Is shlibpath searched before the hard-coded library search path?
22758 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22760 # Format of library name prefix.
22761 libname_spec=$lt_libname_spec
22763 # List of archive names. First name is the real one, the rest are links.
22764 # The last name is the one that the linker finds with -lNAME
22765 library_names_spec=$lt_library_names_spec
22767 # The coded name of the library, if different from the real name.
22768 soname_spec=$lt_soname_spec
22770 # Permission mode override for installation of shared libraries.
22771 install_override_mode=$lt_install_override_mode
22773 # Command to use after installation of a shared archive.
22774 postinstall_cmds=$lt_postinstall_cmds
22776 # Command to use after uninstallation of a shared archive.
22777 postuninstall_cmds=$lt_postuninstall_cmds
22779 # Commands used to finish a libtool library installation in a directory.
22780 finish_cmds=$lt_finish_cmds
22782 # As "finish_cmds", except a single script fragment to be evaled but
22784 finish_eval=$lt_finish_eval
22786 # Whether we should hardcode library paths into libraries.
22787 hardcode_into_libs=$hardcode_into_libs
22789 # Compile-time system search path for libraries.
22790 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22792 # Detected run-time system search path for libraries.
22793 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22795 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22796 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22798 # Whether dlopen is supported.
22799 dlopen_support=$enable_dlopen
22801 # Whether dlopen of programs is supported.
22802 dlopen_self=$enable_dlopen_self
22804 # Whether dlopen of statically linked programs is supported.
22805 dlopen_self_static=$enable_dlopen_self_static
22807 # Commands to strip libraries.
22808 old_striplib=$lt_old_striplib
22809 striplib=$lt_striplib
22812 # The linker used to build libraries.
22815 # How to create reloadable object files.
22816 reload_flag=$lt_reload_flag
22817 reload_cmds=$lt_reload_cmds
22819 # Commands used to build an old-style archive.
22820 old_archive_cmds=$lt_old_archive_cmds
22822 # A language specific compiler.
22825 # Is the compiler the GNU compiler?
22828 # Compiler flag to turn off builtin functions.
22829 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22831 # Additional compiler flags for building library objects.
22832 pic_flag=$lt_lt_prog_compiler_pic
22834 # How to pass a linker flag through the compiler.
22835 wl=$lt_lt_prog_compiler_wl
22837 # Compiler flag to prevent dynamic linking.
22838 link_static_flag=$lt_lt_prog_compiler_static
22840 # Does compiler simultaneously support -c and -o options?
22841 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22843 # Whether or not to add -lc for building shared libraries.
22844 build_libtool_need_lc=$archive_cmds_need_lc
22846 # Whether or not to disallow shared libs when runtime libs are static.
22847 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22849 # Compiler flag to allow reflexive dlopens.
22850 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22852 # Compiler flag to generate shared objects directly from archives.
22853 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22855 # Whether the compiler copes with passing no objects directly.
22856 compiler_needs_object=$lt_compiler_needs_object
22858 # Create an old-style archive from a shared archive.
22859 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22861 # Create a temporary old-style archive to link instead of a shared archive.
22862 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22864 # Commands used to build a shared archive.
22865 archive_cmds=$lt_archive_cmds
22866 archive_expsym_cmds=$lt_archive_expsym_cmds
22868 # Commands used to build a loadable module if different from building
22869 # a shared archive.
22870 module_cmds=$lt_module_cmds
22871 module_expsym_cmds=$lt_module_expsym_cmds
22873 # Whether we are building with GNU ld or not.
22874 with_gnu_ld=$lt_with_gnu_ld
22876 # Flag that allows shared libraries with undefined symbols to be built.
22877 allow_undefined_flag=$lt_allow_undefined_flag
22879 # Flag that enforces no undefined symbols.
22880 no_undefined_flag=$lt_no_undefined_flag
22882 # Flag to hardcode \$libdir into a binary during linking.
22883 # This must work even if \$libdir does not exist
22884 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22886 # Whether we need a single "-rpath" flag with a separated argument.
22887 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22889 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22890 # DIR into the resulting binary.
22891 hardcode_direct=$hardcode_direct
22893 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22894 # DIR into the resulting binary and the resulting library dependency is
22895 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22896 # library is relocated.
22897 hardcode_direct_absolute=$hardcode_direct_absolute
22899 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22900 # into the resulting binary.
22901 hardcode_minus_L=$hardcode_minus_L
22903 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22904 # into the resulting binary.
22905 hardcode_shlibpath_var=$hardcode_shlibpath_var
22907 # Set to "yes" if building a shared library automatically hardcodes DIR
22908 # into the library and all subsequent libraries and executables linked
22910 hardcode_automatic=$hardcode_automatic
22912 # Set to yes if linker adds runtime paths of dependent libraries
22913 # to runtime path list.
22914 inherit_rpath=$inherit_rpath
22916 # Whether libtool must link a program against all its dependency libraries.
22917 link_all_deplibs=$link_all_deplibs
22919 # Set to "yes" if exported symbols are required.
22920 always_export_symbols=$always_export_symbols
22922 # The commands to list exported symbols.
22923 export_symbols_cmds=$lt_export_symbols_cmds
22925 # Symbols that should not be listed in the preloaded symbols.
22926 exclude_expsyms=$lt_exclude_expsyms
22928 # Symbols that must always be exported.
22929 include_expsyms=$lt_include_expsyms
22931 # Commands necessary for linking programs (against libraries) with templates.
22932 prelink_cmds=$lt_prelink_cmds
22934 # Commands necessary for finishing linking programs.
22935 postlink_cmds=$lt_postlink_cmds
22937 # Specify filename containing input files.
22938 file_list_spec=$lt_file_list_spec
22940 # How to hardcode a shared library path into an executable.
22941 hardcode_action=$hardcode_action
22943 # ### END LIBTOOL CONFIG
22947 cat <<'_LT_EOF' >> "$cfgfile"
22949 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22951 # func_munge_path_list VARIABLE PATH
22952 # -----------------------------------
22953 # VARIABLE is name of variable containing _space_ separated list of
22954 # directories to be munged by the contents of PATH, which is string
22957 # string "DIR[ DIR]" will be prepended to VARIABLE
22959 # string "DIR[ DIR]" will be appended to VARIABLE
22960 # "DIRP[:DIRP]::[DIRA:]DIRA"
22961 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22962 # "DIRA[ DIRA]" will be appended to VARIABLE
22964 # VARIABLE will be replaced by "DIR[ DIR]"
22965 func_munge_path_list ()
22971 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22974 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22977 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22978 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22981 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22987 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22988 func_cc_basename ()
22990 for cc_temp in $*""; do
22992 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22993 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22998 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23002 # ### END FUNCTIONS SHARED WITH CONFIGURE
23008 cat <<\_LT_EOF >> "$cfgfile"
23009 # AIX sometimes has problems with the GCC collect2 program. For some
23010 # reason, if we set the COLLECT_NAMES environment variable, the problems
23011 # vanish in a puff of smoke.
23012 if test set != "${COLLECT_NAMES+set}"; then
23014 export COLLECT_NAMES
23021 ltmain=$ac_aux_dir/ltmain.sh
23024 # We use sed instead of cat because bash on DJGPP gets confused if
23025 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23026 # text mode, it properly converts lines to CR/LF. This bash problem
23027 # is reportedly fixed, but why not run on old versions too?
23028 sed '$q' "$ltmain" >> "$cfgfile" \
23029 || (rm -f "$cfgfile"; exit 1)
23031 mv -f "$cfgfile" "$ofile" ||
23032 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23037 sed < libtool > libtool-2 \
23038 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
23039 mv libtool-2 libtool
23041 libtool="./libtool"
23050 ac_clean_files=$ac_clean_files_save
23052 test $ac_write_fail = 0 ||
23053 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23056 # configure is writing to config.log, and then calls config.status.
23057 # config.status does its own redirection, appending to config.log.
23058 # Unfortunately, on DOS this fails, as config.log is still kept open
23059 # by configure, so config.status won't be able to write to it; its
23060 # output is simply discarded. So we exec the FD to /dev/null,
23061 # effectively closing config.log, so it can be properly (re)opened and
23062 # appended to by config.status. When coming back to configure, we
23063 # need to make the FD available again.
23064 if test "$no_create" != yes; then
23066 ac_config_status_args=
23067 test "$silent" = yes &&
23068 ac_config_status_args="$ac_config_status_args --quiet"
23070 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23072 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23073 # would make configure fail if this is the last instruction.
23074 $ac_cs_success || as_fn_exit 1
23076 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23078 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}