2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.6.5.
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.6.5'
594 PACKAGE_STRING='unbound 1.6.5'
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
871 with_dnstap_socket_path
880 ac_precious_vars='build_alias
898 SYSTEMD_DAEMON_CFLAGS
902 # Initialize some variables set by options.
904 ac_init_version=false
905 ac_unrecognized_opts=
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
916 program_transform_name=s,x,x,
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941 infodir='${datarootdir}/info'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
956 eval $ac_prev=\$ac_option
962 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 # Accept the important Cygnus configure options, so we can diagnose typos.
969 case $ac_dashdash$ac_option in
973 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978 -build | --build | --buil | --bui | --bu)
979 ac_prev=build_alias ;;
980 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981 build_alias=$ac_optarg ;;
983 -cache-file | --cache-file | --cache-fil | --cache-fi \
984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985 ac_prev=cache_file ;;
986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988 cache_file=$ac_optarg ;;
991 cache_file=config.cache ;;
993 -datadir | --datadir | --datadi | --datad)
995 -datadir=* | --datadir=* | --datadi=* | --datad=*)
996 datadir=$ac_optarg ;;
998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999 | --dataroo | --dataro | --datar)
1000 ac_prev=datarootdir ;;
1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003 datarootdir=$ac_optarg ;;
1005 -disable-* | --disable-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid feature name: $ac_useropt"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1014 "enable_$ac_useropt"
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1019 eval enable_$ac_useropt=no ;;
1021 -docdir | --docdir | --docdi | --doc | --do)
1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024 docdir=$ac_optarg ;;
1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029 dvidir=$ac_optarg ;;
1031 -enable-* | --enable-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error $? "invalid feature name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "enable_$ac_useropt"
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1045 eval enable_$ac_useropt=\$ac_optarg ;;
1047 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049 | --exec | --exe | --ex)
1050 ac_prev=exec_prefix ;;
1051 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053 | --exec=* | --exe=* | --ex=*)
1054 exec_prefix=$ac_optarg ;;
1056 -gas | --gas | --ga | --g)
1057 # Obsolete; use --with-gas.
1060 -help | --help | --hel | --he | -h)
1061 ac_init_help=long ;;
1062 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063 ac_init_help=recursive ;;
1064 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065 ac_init_help=short ;;
1067 -host | --host | --hos | --ho)
1068 ac_prev=host_alias ;;
1069 -host=* | --host=* | --hos=* | --ho=*)
1070 host_alias=$ac_optarg ;;
1072 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 htmldir=$ac_optarg ;;
1078 -includedir | --includedir | --includedi | --included | --include \
1079 | --includ | --inclu | --incl | --inc)
1080 ac_prev=includedir ;;
1081 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082 | --includ=* | --inclu=* | --incl=* | --inc=*)
1083 includedir=$ac_optarg ;;
1085 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088 infodir=$ac_optarg ;;
1090 -libdir | --libdir | --libdi | --libd)
1092 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093 libdir=$ac_optarg ;;
1095 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096 | --libexe | --libex | --libe)
1097 ac_prev=libexecdir ;;
1098 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099 | --libexe=* | --libex=* | --libe=*)
1100 libexecdir=$ac_optarg ;;
1102 -localedir | --localedir | --localedi | --localed | --locale)
1103 ac_prev=localedir ;;
1104 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105 localedir=$ac_optarg ;;
1107 -localstatedir | --localstatedir | --localstatedi | --localstated \
1108 | --localstate | --localstat | --localsta | --localst | --locals)
1109 ac_prev=localstatedir ;;
1110 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112 localstatedir=$ac_optarg ;;
1114 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117 mandir=$ac_optarg ;;
1119 -nfp | --nfp | --nf)
1120 # Obsolete; use --without-fp.
1123 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124 | --no-cr | --no-c | -n)
1127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133 | --oldin | --oldi | --old | --ol | --o)
1134 ac_prev=oldincludedir ;;
1135 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138 oldincludedir=$ac_optarg ;;
1140 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143 prefix=$ac_optarg ;;
1145 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146 | --program-pre | --program-pr | --program-p)
1147 ac_prev=program_prefix ;;
1148 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150 program_prefix=$ac_optarg ;;
1152 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153 | --program-suf | --program-su | --program-s)
1154 ac_prev=program_suffix ;;
1155 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157 program_suffix=$ac_optarg ;;
1159 -program-transform-name | --program-transform-name \
1160 | --program-transform-nam | --program-transform-na \
1161 | --program-transform-n | --program-transform- \
1162 | --program-transform | --program-transfor \
1163 | --program-transfo | --program-transf \
1164 | --program-trans | --program-tran \
1165 | --progr-tra | --program-tr | --program-t)
1166 ac_prev=program_transform_name ;;
1167 -program-transform-name=* | --program-transform-name=* \
1168 | --program-transform-nam=* | --program-transform-na=* \
1169 | --program-transform-n=* | --program-transform-=* \
1170 | --program-transform=* | --program-transfor=* \
1171 | --program-transfo=* | --program-transf=* \
1172 | --program-trans=* | --program-tran=* \
1173 | --progr-tra=* | --program-tr=* | --program-t=*)
1174 program_transform_name=$ac_optarg ;;
1176 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179 pdfdir=$ac_optarg ;;
1181 -psdir | --psdir | --psdi | --psd | --ps)
1183 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187 | -silent | --silent | --silen | --sile | --sil)
1190 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 sbindir=$ac_optarg ;;
1196 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198 | --sharedst | --shareds | --shared | --share | --shar \
1200 ac_prev=sharedstatedir ;;
1201 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 sharedstatedir=$ac_optarg ;;
1207 -site | --site | --sit)
1209 -site=* | --site=* | --sit=*)
1212 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215 srcdir=$ac_optarg ;;
1217 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218 | --syscon | --sysco | --sysc | --sys | --sy)
1219 ac_prev=sysconfdir ;;
1220 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222 sysconfdir=$ac_optarg ;;
1224 -target | --target | --targe | --targ | --tar | --ta | --t)
1225 ac_prev=target_alias ;;
1226 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227 target_alias=$ac_optarg ;;
1229 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232 -version | --version | --versio | --versi | --vers | -V)
1233 ac_init_version=: ;;
1236 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1249 eval with_$ac_useropt=\$ac_optarg ;;
1251 -without-* | --without-*)
1252 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error $? "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1265 eval with_$ac_useropt=no ;;
1268 # Obsolete; use --with-x.
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276 x_includes=$ac_optarg ;;
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283 x_libraries=$ac_optarg ;;
1285 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1286 Try \`$0 --help' for more information"
1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
1292 case $ac_envvar in #(
1293 '' | [0-9]* | *[!_$as_cr_alnum]* )
1294 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1296 eval $ac_envvar=\$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1310 if test -n "$ac_prev"; then
1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312 as_fn_error $? "missing argument to $ac_option"
1315 if test -n "$ac_unrecognized_opts"; then
1316 case $enable_option_checking in
1318 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 # Check all directory arguments for consistency.
1324 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325 datadir sysconfdir sharedstatedir localstatedir includedir \
1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327 libdir localedir mandir
1329 eval ac_val=\$$ac_var
1330 # Remove trailing slashes.
1333 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334 eval $ac_var=\$ac_val;;
1336 # Be sure to have absolute directory names.
1338 [\\/$]* | ?:[\\/]* ) continue;;
1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1349 target=$target_alias
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x; then
1353 if test "x$build_alias" = x; then
1354 cross_compiling=maybe
1355 elif test "x$build_alias" != "x$host_alias"; then
1361 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363 test "$silent" = yes && exec 6>/dev/null
1366 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di=`ls -di .` &&
1368 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369 as_fn_error $? "working directory cannot be determined"
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371 as_fn_error $? "pwd does not report name of working directory"
1374 # Find the source files, if location was not specified.
1375 if test -z "$srcdir"; then
1376 ac_srcdir_defaulted=yes
1377 # Try the directory containing this script, then the parent directory.
1378 ac_confdir=`$as_dirname -- "$as_myself" ||
1379 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380 X"$as_myself" : 'X\(//\)[^/]' \| \
1381 X"$as_myself" : 'X\(//\)$' \| \
1382 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383 $as_echo X"$as_myself" |
1384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1406 ac_srcdir_defaulted=no
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1410 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1412 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1416 # When building in place, set srcdir=.
1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 # Remove unnecessary trailing slashes from srcdir.
1421 # Double slashes in file names in object file debugging info
1422 # mess up M-x gdb in Emacs.
1424 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 for ac_var in $ac_precious_vars; do
1427 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_env_${ac_var}_value=\$${ac_var}
1429 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 # Report the --help message.
1436 if test "$ac_init_help" = "long"; then
1437 # Omit some internal or obsolete options to make the list less imposing.
1438 # This message is too long to be a string in the A/UX 3.1 sh.
1440 \`configure' configures unbound 1.6.5 to adapt to many kinds of systems.
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE. See below for descriptions of some of the useful variables.
1447 Defaults for the options are specified in brackets.
1450 -h, --help display this help and exit
1451 --help=short display options specific to this package
1452 --help=recursive display the short help of all the included packages
1453 -V, --version display version information and exit
1454 -q, --quiet, --silent do not print \`checking ...' messages
1455 --cache-file=FILE cache test results in FILE [disabled]
1456 -C, --config-cache alias for \`--cache-file=config.cache'
1457 -n, --no-create do not create output files
1458 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1460 Installation directories:
1461 --prefix=PREFIX install architecture-independent files in PREFIX
1462 [$ac_default_prefix]
1463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1471 For better control, use the options below.
1473 Fine tuning of the installation directories:
1474 --bindir=DIR user executables [EPREFIX/bin]
1475 --sbindir=DIR system admin executables [EPREFIX/sbin]
1476 --libexecdir=DIR program executables [EPREFIX/libexec]
1477 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1478 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1479 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive ) echo "Configuration of unbound 1.6.5:";;
1510 --disable-option-checking ignore unrecognized --enable/--with options
1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1513 --enable-checking Enable warnings, asserts, makefile-dependencies
1514 --enable-debug same as enable-checking
1515 --disable-flto Disable link-time optimization (gcc specific option)
1516 --enable-pie Enable Position-Independent Executable (eg. to fully
1517 benefit from ASLR, small performance penalty)
1518 --enable-relro-now Enable full relocation binding at load-time (RELRO
1519 NOW, to protect GOT and .dtor areas)
1520 --enable-shared[=PKGS] build shared libraries [default=yes]
1521 --enable-static[=PKGS] build static libraries [default=yes]
1522 --enable-fast-install[=PKGS]
1523 optimize for fast installation [default=yes]
1524 --disable-libtool-lock avoid locking (might break parallel builds)
1525 --disable-rpath disable hardcoded rpath (default=enabled)
1526 --disable-largefile omit support for large files
1527 --enable-alloc-checks enable to memory allocation statistics, for debug
1529 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1531 --enable-alloc-nonregional
1532 enable nonregional allocs, slow but exposes regional
1533 allocations to other memory purifiers, for debug
1535 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3
1537 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1538 --enable-subnet Enable client subnet
1539 --disable-gost Disable GOST support
1540 --disable-ecdsa Disable ECDSA support
1541 --disable-dsa Disable DSA support
1542 --disable-ed25519 Disable ED25519 support
1543 --enable-event-api Enable (experimental) pluggable event base
1544 libunbound API installed to unbound-event.h
1545 --enable-tfo-client Enable TCP Fast Open for client mode
1546 --enable-tfo-server Enable TCP Fast Open for server mode
1547 --enable-static-exe enable to compile executables statically against
1548 (event) libs, for debug purposes
1549 --enable-systemd compile with systemd support
1550 --enable-lock-checks enable to check lock and unlock calls, for debug
1552 --enable-allsymbols export all symbols from libunbound and link binaries
1553 to it, smaller install size but libunbound export
1554 table is polluted by internal symbols
1555 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c)
1556 --enable-dnscrypt Enable dnscrypt support (requires libsodium)
1557 --enable-cachedb enable cachedb module that can use external cache
1559 --enable-ipsecmod Enable ipsecmod module that facilitates
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1565 --with-conf-file=path Pathname to the Unbound configuration file
1566 --with-run-dir=path set default directory to chdir to (by default dir
1568 --with-chroot-dir=path set default directory to chroot to (by default same
1570 --with-share-dir=path set default directory with shared data (by default
1571 same as share/unbound)
1572 --with-pidfile=filename set default pathname to unbound pidfile (default
1573 run-dir/unbound.pid)
1574 --with-rootkey-file=filename
1575 set default pathname to root key file (default
1576 run-dir/root.key). This file is read and written.
1577 --with-rootcert-file=filename
1578 set default pathname to root update certificate file
1579 (default run-dir/icannbundle.pem). This file need
1580 not exist if you are content with the builtin.
1581 --with-username=user set default user that unbound changes to (default
1583 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1585 --with-aix-soname=aix|svr4|both
1586 shared library versioning (aka "SONAME") variant to
1587 provide on AIX, [default=aix].
1588 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1589 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1590 compiler's sysroot if not specified).
1591 --with-pthreads use pthreads library, or --without-pthreads to
1592 disable threading support.
1593 --with-solaris-threads use solaris native thread library.
1594 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1596 --with-pythonmodule build Python module, or --without-pythonmodule to
1597 disable script engine. (default=no)
1598 --with-nss=path use libnss instead of openssl, installed at path.
1599 --with-nettle=path use libnettle as crypto library, installed at path.
1600 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1601 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1603 --with-libevent=pathname
1604 use libevent (will check /usr/local /opt/local
1605 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1606 an explicit path). Slower, but allows use of large
1607 outgoing port ranges.
1608 --with-libexpat=path specify explicit path for libexpat.
1609 --with-dnstap-socket-path=pathname
1610 set default dnstap socket path
1611 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1612 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1613 --with-libsodium=path Path where libsodium is installed, for dnscrypt
1614 --with-libunbound-only do not build daemon and tool programs
1616 Some influential environment variables:
1617 CC C compiler command
1618 CFLAGS C compiler flags
1619 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1620 nonstandard directory <lib dir>
1621 LIBS libraries to pass to the linker, e.g. -l<library>
1622 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1623 you have headers in a nonstandard directory <include dir>
1625 YACC The `Yet Another Compiler Compiler' implementation to use.
1626 Defaults to the first program found out of: `bison -y', `byacc',
1628 YFLAGS The list of arguments that will be passed by default to $YACC.
1629 This script will default YFLAGS to the empty string to avoid a
1630 default value of `-d' given by some make applications.
1632 User-defined run-time library search path.
1634 The installed Python version to use, for example '2.3'. This
1635 string will be appended to the Python interpreter canonical
1637 PKG_CONFIG path to pkg-config utility
1639 directories to add to pkg-config's search path
1641 path overriding pkg-config's built-in search path
1643 C compiler flags for SYSTEMD, overriding pkg-config
1645 linker flags for SYSTEMD, overriding pkg-config
1646 SYSTEMD_DAEMON_CFLAGS
1647 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1649 linker flags for SYSTEMD_DAEMON, overriding pkg-config
1651 Use these variables to override the choices made by `configure' or to help
1652 it to find libraries and programs with nonstandard names/locations.
1654 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1659 if test "$ac_init_help" = "recursive"; then
1660 # If there are subdirs, report their specific --help.
1661 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1662 test -d "$ac_dir" ||
1663 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1671 # A ".." for each directory in $ac_dir_suffix.
1672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1673 case $ac_top_builddir_sub in
1674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1678 ac_abs_top_builddir=$ac_pwd
1679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1680 # for backward compatibility:
1681 ac_top_builddir=$ac_top_build_prefix
1684 .) # We are building in place.
1686 ac_top_srcdir=$ac_top_builddir_sub
1687 ac_abs_top_srcdir=$ac_pwd ;;
1688 [\\/]* | ?:[\\/]* ) # Absolute name.
1689 ac_srcdir=$srcdir$ac_dir_suffix;
1690 ac_top_srcdir=$srcdir
1691 ac_abs_top_srcdir=$srcdir ;;
1693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1694 ac_top_srcdir=$ac_top_build_prefix$srcdir
1695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1699 cd "$ac_dir" || { ac_status=$?; continue; }
1700 # Check for guested configure.
1701 if test -f "$ac_srcdir/configure.gnu"; then
1703 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1704 elif test -f "$ac_srcdir/configure"; then
1706 $SHELL "$ac_srcdir/configure" --help=recursive
1708 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1710 cd "$ac_pwd" || { ac_status=$?; break; }
1714 test -n "$ac_init_help" && exit $ac_status
1715 if $ac_init_version; then
1717 unbound configure 1.6.5
1718 generated by GNU Autoconf 2.69
1720 Copyright (C) 2012 Free Software Foundation, Inc.
1721 This configure script is free software; the Free Software Foundation
1722 gives unlimited permission to copy, distribute and modify it.
1727 ## ------------------------ ##
1728 ## Autoconf initialization. ##
1729 ## ------------------------ ##
1731 # ac_fn_c_try_compile LINENO
1732 # --------------------------
1733 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_compile ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext
1738 if { { ac_try="$ac_compile"
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_compile") 2>conftest.err
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest.$ac_objext; then :
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1767 } # ac_fn_c_try_compile
1769 # ac_fn_c_try_cpp LINENO
1770 # ----------------------
1771 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 if { { ac_try="$ac_cpp conftest.$ac_ext"
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } > conftest.i && {
1791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1806 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1807 # -------------------------------------------------------
1808 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1809 # the include files in INCLUDES and setting the cache variable VAR
1811 ac_fn_c_check_header_mongrel ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if eval \${$3+:} false; then :
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1824 # Is the header compilable?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1826 $as_echo_n "checking $2 usability... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1832 if ac_fn_c_try_compile "$LINENO"; then :
1833 ac_header_compiler=yes
1835 ac_header_compiler=no
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1839 $as_echo "$ac_header_compiler" >&6; }
1841 # Is the header present?
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1843 $as_echo_n "checking $2 presence... " >&6; }
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1848 if ac_fn_c_try_cpp "$LINENO"; then :
1849 ac_header_preproc=yes
1851 ac_header_preproc=no
1853 rm -f conftest.err conftest.i conftest.$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1855 $as_echo "$ac_header_preproc" >&6; }
1857 # So? What about this header?
1858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1861 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1867 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1869 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1871 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1873 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1875 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876 ( $as_echo "## ---------------------------------------- ##
1877 ## Report this to unbound-bugs@nlnetlabs.nl ##
1878 ## ---------------------------------------- ##"
1879 ) | sed "s/^/$as_me: WARNING: /" >&2
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1887 eval "$3=\$ac_header_compiler"
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 } # ac_fn_c_check_header_mongrel
1897 # ac_fn_c_try_run LINENO
1898 # ----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1900 # that executables *can* be run.
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if { { ac_try="$ac_link"
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>&5
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1915 { { case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_try") 2>&5
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; }; }; then :
1927 $as_echo "$as_me: program exited with status $ac_status" >&5
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 ac_retval=$ac_status
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1939 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists and can be compiled using the include files in
1942 # INCLUDES, setting the cache variable VAR accordingly.
1943 ac_fn_c_check_header_compile ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1956 if ac_fn_c_try_compile "$LINENO"; then :
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 } # ac_fn_c_check_header_compile
1970 # ac_fn_c_try_link LINENO
1971 # -----------------------
1972 # Try to link conftest.$ac_ext, and return whether this succeeded.
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 rm -f conftest.$ac_objext conftest$ac_exeext
1977 if { { ac_try="$ac_link"
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_link") 2>conftest.err
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_c_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest$ac_exeext && {
1996 test "$cross_compiling" = yes ||
1997 test -x conftest$ac_exeext
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2006 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008 # interfere with the next link command; also delete a directory that is
2009 # left behind by Apple's compiler. We do this before executing the actions.
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2014 } # ac_fn_c_try_link
2016 # ac_fn_c_check_func LINENO FUNC VAR
2017 # ----------------------------------
2018 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2019 ac_fn_c_check_func ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if eval \${$3+:} false; then :
2025 $as_echo_n "(cached) " >&6
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2031 #define $2 innocuous_$2
2033 /* System header to define __stub macros and hopefully few prototypes,
2034 which can conflict with char $2 (); below.
2035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2036 <limits.h> exists even on freestanding compilers. */
2039 # include <limits.h>
2041 # include <assert.h>
2046 /* Override any GCC internal prototype to avoid an error.
2047 Use char because int might match the return type of a GCC
2048 builtin and then its argument prototype would still apply. */
2053 /* The GNU C library defines this for functions which it implements
2054 to always fail with ENOSYS. Some functions are actually named
2055 something starting with __ and the normal name is an alias. */
2056 #if defined __stub_$2 || defined __stub___$2
2068 if ac_fn_c_try_link "$LINENO"; then :
2073 rm -f core conftest.err conftest.$ac_objext \
2074 conftest$ac_exeext conftest.$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 } # ac_fn_c_check_func
2083 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2084 # -------------------------------------------
2085 # Tests whether TYPE exists after having included INCLUDES, setting cache
2086 # variable VAR accordingly.
2087 ac_fn_c_check_type ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 $as_echo_n "checking for $2... " >&6; }
2092 if eval \${$3+:} false; then :
2093 $as_echo_n "(cached) " >&6
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2121 if ac_fn_c_try_compile "$LINENO"; then :
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 } # ac_fn_c_check_type
2137 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2138 # --------------------------------------------
2139 # Tries to find the compile-time value of EXPR in a program that includes
2140 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2142 ac_fn_c_compute_int ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 if test "$cross_compiling" = yes; then
2146 # Depending upon the size, compute the lo and hi bounds.
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 static int test_array [1 - 2 * !(($2) >= 0)];
2155 return test_array [0];
2161 if ac_fn_c_try_compile "$LINENO"; then :
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2170 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172 return test_array [0];
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_hi=$ac_mid; break
2181 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2182 if test $ac_lo -le $ac_mid; then
2186 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2197 static int test_array [1 - 2 * !(($2) < 0)];
2199 return test_array [0];
2205 if ac_fn_c_try_compile "$LINENO"; then :
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2214 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2216 return test_array [0];
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223 ac_lo=$ac_mid; break
2225 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2226 if test $ac_mid -le $ac_hi; then
2230 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 # Binary search between lo and hi bounds.
2241 while test "x$ac_lo" != "x$ac_hi"; do
2242 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2251 return test_array [0];
2257 if ac_fn_c_try_compile "$LINENO"; then :
2260 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2272 static long int longval () { return $2; }
2273 static unsigned long int ulongval () { return $2; }
2280 FILE *f = fopen ("conftest.val", "w");
2285 long int i = longval ();
2288 fprintf (f, "%ld", i);
2292 unsigned long int i = ulongval ();
2295 fprintf (f, "%lu", i);
2297 /* Do not output a trailing newline, as this causes \r\n confusion
2298 on some platforms. */
2299 return ferror (f) || fclose (f) != 0;
2305 if ac_fn_c_try_run "$LINENO"; then :
2306 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2311 conftest.$ac_objext conftest.beam conftest.$ac_ext
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2316 as_fn_set_status $ac_retval
2318 } # ac_fn_c_compute_int
2320 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2321 # ---------------------------------------------
2322 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2324 ac_fn_c_check_decl ()
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 as_decl_name=`echo $2|sed 's/ *(.*//'`
2328 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2330 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2331 if eval \${$3+:} false; then :
2332 $as_echo_n "(cached) " >&6
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h. */
2340 #ifndef $as_decl_name
2342 (void) $as_decl_use;
2344 (void) $as_decl_name;
2352 if ac_fn_c_try_compile "$LINENO"; then :
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 } # ac_fn_c_check_decl
2366 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2367 # ----------------------------------------------------
2368 # Tries to find if the field MEMBER exists in type AGGR, after including
2369 # INCLUDES, setting cache variable VAR accordingly.
2370 ac_fn_c_check_member ()
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2374 $as_echo_n "checking for $2.$3... " >&6; }
2375 if eval \${$4+:} false; then :
2376 $as_echo_n "(cached) " >&6
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2391 if ac_fn_c_try_compile "$LINENO"; then :
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2401 if (sizeof ac_aggr.$3)
2407 if ac_fn_c_try_compile "$LINENO"; then :
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421 } # ac_fn_c_check_member
2422 cat >config.log <<_ACEOF
2423 This file contains any messages produced by compilers while
2424 running configure, to aid debugging if configure makes a mistake.
2426 It was created by unbound $as_me 1.6.5, which was
2427 generated by GNU Autoconf 2.69. Invocation command line was
2439 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2440 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2441 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2442 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2443 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2445 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2446 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2448 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2449 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2450 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2451 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2452 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2453 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2454 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 test -z "$as_dir" && as_dir=.
2463 $as_echo "PATH: $as_dir"
2479 # Keep a trace of the command line.
2480 # Strip out --no-create and --no-recursion so they do not pile up.
2481 # Strip out --silent because we don't want to record it for future runs.
2482 # Also quote any args containing shell meta-characters.
2483 # Make two passes to allow for proper duplicate-argument suppression.
2487 ac_must_keep_next=false
2493 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2495 | -silent | --silent | --silen | --sile | --sil)
2498 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2501 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2503 as_fn_append ac_configure_args1 " '$ac_arg'"
2504 if test $ac_must_keep_next = true; then
2505 ac_must_keep_next=false # Got value, back to normal.
2508 *=* | --config-cache | -C | -disable-* | --disable-* \
2509 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2510 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2511 | -with-* | --with-* | -without-* | --without-* | --x)
2512 case "$ac_configure_args0 " in
2513 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2516 -* ) ac_must_keep_next=true ;;
2519 as_fn_append ac_configure_args " '$ac_arg'"
2524 { ac_configure_args0=; unset ac_configure_args0;}
2525 { ac_configure_args1=; unset ac_configure_args1;}
2527 # When interrupted or exit'd, cleanup temporary files, and complete
2528 # config.log. We remove comments because anyway the quotes in there
2529 # would cause problems or look ugly.
2530 # WARNING: Use '\'' to represent an apostrophe within the trap.
2531 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2532 trap 'exit_status=$?
2533 # Save into config.log some information that might help in debugging.
2537 $as_echo "## ---------------- ##
2538 ## Cache variables. ##
2539 ## ---------------- ##"
2541 # The following way of writing the cache mishandles newlines in values,
2543 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2544 eval ac_val=\$$ac_var
2548 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2552 _ | IFS | as_nl) ;; #(
2553 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2554 *) { eval $ac_var=; unset $ac_var;} ;;
2559 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2560 *${as_nl}ac_space=\ *)
2562 "s/'\''/'\''\\\\'\'''\''/g;
2563 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2573 $as_echo "## ----------------- ##
2574 ## Output variables. ##
2575 ## ----------------- ##"
2577 for ac_var in $ac_subst_vars
2579 eval ac_val=\$$ac_var
2581 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2583 $as_echo "$ac_var='\''$ac_val'\''"
2587 if test -n "$ac_subst_files"; then
2588 $as_echo "## ------------------- ##
2589 ## File substitutions. ##
2590 ## ------------------- ##"
2592 for ac_var in $ac_subst_files
2594 eval ac_val=\$$ac_var
2596 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2598 $as_echo "$ac_var='\''$ac_val'\''"
2603 if test -s confdefs.h; then
2604 $as_echo "## ----------- ##
2611 test "$ac_signal" != 0 &&
2612 $as_echo "$as_me: caught signal $ac_signal"
2613 $as_echo "$as_me: exit $exit_status"
2615 rm -f core *.core core.conftest.* &&
2616 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2619 for ac_signal in 1 2 13 15; do
2620 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2624 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2625 rm -f -r conftest* confdefs.h
2627 $as_echo "/* confdefs.h */" > confdefs.h
2629 # Predefined preprocessor variables.
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_NAME "$PACKAGE_NAME"
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_STRING "$PACKAGE_STRING"
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE_URL "$PACKAGE_URL"
2656 # Let the site file select an alternate cache file if it wants to.
2657 # Prefer an explicitly selected file to automatically selected ones.
2660 if test -n "$CONFIG_SITE"; then
2661 # We do not want a PATH search for config.site.
2662 case $CONFIG_SITE in #((
2663 -*) ac_site_file1=./$CONFIG_SITE;;
2664 */*) ac_site_file1=$CONFIG_SITE;;
2665 *) ac_site_file1=./$CONFIG_SITE;;
2667 elif test "x$prefix" != xNONE; then
2668 ac_site_file1=$prefix/share/config.site
2669 ac_site_file2=$prefix/etc/config.site
2671 ac_site_file1=$ac_default_prefix/share/config.site
2672 ac_site_file2=$ac_default_prefix/etc/config.site
2674 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2676 test "x$ac_site_file" = xNONE && continue
2677 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2679 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2680 sed 's/^/| /' "$ac_site_file" >&5
2682 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684 as_fn_error $? "failed to load site script $ac_site_file
2685 See \`config.log' for more details" "$LINENO" 5; }
2689 if test -r "$cache_file"; then
2690 # Some versions of bash will fail to source /dev/null (special files
2691 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2692 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2694 $as_echo "$as_me: loading cache $cache_file" >&6;}
2696 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2697 *) . "./$cache_file";;
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2702 $as_echo "$as_me: creating cache $cache_file" >&6;}
2706 # Check that the precious variables saved in the cache have kept the same
2708 ac_cache_corrupted=false
2709 for ac_var in $ac_precious_vars; do
2710 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2711 eval ac_new_set=\$ac_env_${ac_var}_set
2712 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2713 eval ac_new_val=\$ac_env_${ac_var}_value
2714 case $ac_old_set,$ac_new_set in
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2717 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2718 ac_cache_corrupted=: ;;
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2721 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2722 ac_cache_corrupted=: ;;
2725 if test "x$ac_old_val" != "x$ac_new_val"; then
2726 # differences in whitespace do not lead to failure.
2727 ac_old_val_w=`echo x $ac_old_val`
2728 ac_new_val_w=`echo x $ac_new_val`
2729 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2731 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2732 ac_cache_corrupted=:
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2735 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2736 eval $ac_var=\$ac_old_val
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2739 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2741 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2744 # Pass precious variables to config.status.
2745 if test "$ac_new_set" = set; then
2747 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2748 *) ac_arg=$ac_var=$ac_new_val ;;
2750 case " $ac_configure_args " in
2751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2752 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2756 if $ac_cache_corrupted; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2760 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2761 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2763 ## -------------------- ##
2764 ## Main body of script. ##
2765 ## -------------------- ##
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774 UNBOUND_VERSION_MAJOR=1
2776 UNBOUND_VERSION_MINOR=6
2778 UNBOUND_VERSION_MICRO=5
2781 LIBUNBOUND_CURRENT=7
2782 LIBUNBOUND_REVISION=4
2791 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2796 # 1.4.0-snapshots had 1:5:0
2797 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2811 # and 1.4.13p1 and 1.4.13.p2
2813 # 1.4.15 had 3:0:1 # adds ub_version()
2818 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2821 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2829 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2833 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2839 # Current -- the number of the binary API that we're implementing
2840 # Revision -- which iteration of the implementation of the binary
2841 # API are we supplying?
2842 # Age -- How many previous binary API versions do we also
2845 # If we release a new version that does not change the binary API,
2846 # increment Revision.
2848 # If we release a new version that changes the binary API, but does
2849 # not break programs compiled against the old binary API, increment
2850 # Current and Age. Set Revision to 0, since this is the first
2851 # implementation of the new API.
2853 # Otherwise, we're changing the binary API and breaking bakward
2854 # compatibility with old binaries. Increment Current. Set Age to 0,
2855 # since we're backward compatible with no previous APIs. Set Revision
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 if test -n "$ac_tool_prefix"; then
2868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2869 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_CC+:} false; then :
2873 $as_echo_n "(cached) " >&6
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 if test -n "$CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2906 if test -z "$ac_cv_prog_CC"; then
2908 # Extract the first word of "gcc", so it can be a program name with args.
2909 set dummy gcc; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2913 $as_echo_n "(cached) " >&6
2915 if test -n "$ac_ct_CC"; then
2916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_ac_ct_CC="gcc"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936 if test -n "$ac_ct_CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2938 $as_echo "$ac_ct_CC" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2944 if test "x$ac_ct_CC" = x; then
2947 case $cross_compiling:$ac_tool_warned in
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2951 ac_tool_warned=yes ;;
2959 if test -z "$CC"; then
2960 if test -n "$ac_tool_prefix"; then
2961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2962 set dummy ${ac_tool_prefix}cc; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_CC+:} false; then :
2966 $as_echo_n "(cached) " >&6
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2978 ac_cv_prog_CC="${ac_tool_prefix}cc"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 if test -n "$CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
3000 if test -z "$CC"; then
3001 # Extract the first word of "cc", so it can be a program name with args.
3002 set dummy cc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_CC+:} false; then :
3006 $as_echo_n "(cached) " >&6
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3020 ac_prog_rejected=yes
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 if test $ac_prog_rejected = yes; then
3032 # We found a bogon in the path, so make sure we never use it.
3033 set dummy $ac_cv_prog_CC
3035 if test $# != 0; then
3036 # We chose a different compiler from the bogus one.
3037 # However, it has the same basename, so the bogon will be chosen
3038 # first if we set CC to just the basename; use the full file name.
3040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3046 if test -n "$CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3056 if test -z "$CC"; then
3057 if test -n "$ac_tool_prefix"; then
3058 for ac_prog in cl.exe
3060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CC+:} false; then :
3065 $as_echo_n "(cached) " >&6
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 if test -n "$CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3097 test -n "$CC" && break
3100 if test -z "$CC"; then
3102 for ac_prog in cl.exe
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3109 $as_echo_n "(cached) " >&6
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_CC="$ac_prog"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132 if test -n "$ac_ct_CC"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3134 $as_echo "$ac_ct_CC" >&6; }
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3141 test -n "$ac_ct_CC" && break
3144 if test "x$ac_ct_CC" = x; then
3147 case $cross_compiling:$ac_tool_warned in
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3151 ac_tool_warned=yes ;;
3160 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 as_fn_error $? "no acceptable C compiler found in \$PATH
3163 See \`config.log' for more details" "$LINENO" 5; }
3165 # Provide some information about the compiler.
3166 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3169 for ac_option in --version -v -V -qversion; do
3170 { { ac_try="$ac_compiler $ac_option >&5"
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 $as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3179 if test -s conftest.err; then
3181 ... rest of stderr output deleted ...
3182 10q' conftest.err >conftest.er1
3183 cat conftest.er1 >&5
3185 rm -f conftest.er1 conftest.err
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3201 ac_clean_files_save=$ac_clean_files
3202 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3203 # Try to create an executable without -o first, disregard a.out.
3204 # It will help us diagnose broken compilers, and finding out an intuition
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3207 $as_echo_n "checking whether the C compiler works... " >&6; }
3208 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210 # The possible output files:
3211 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3214 for ac_file in $ac_files
3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3218 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3223 if { { ac_try="$ac_link_default"
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_link_default") 2>&5
3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233 test $ac_status = 0; }; then :
3234 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3235 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3236 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3237 # so that the user can short-circuit this test for compilers unknown to
3239 for ac_file in $ac_files ''
3241 test -f "$ac_file" || continue
3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3246 # We found the default executable, but exeext='' is most
3250 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3252 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254 # We set ac_cv_exeext here because the later test for it is not
3255 # safe: cross compilers may not add the suffix if given an `-o'
3256 # argument, so we may need to know it at that point already.
3257 # Even if this section looks crufty: it has the advantage of
3264 test "$ac_cv_exeext" = no && ac_cv_exeext=
3269 if test -z "$ac_file"; then :
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error 77 "C compiler cannot create executables
3278 See \`config.log' for more details" "$LINENO" 5; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281 $as_echo "yes" >&6; }
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3284 $as_echo_n "checking for C compiler default output file name... " >&6; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3286 $as_echo "$ac_file" >&6; }
3287 ac_exeext=$ac_cv_exeext
3289 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3290 ac_clean_files=$ac_clean_files_save
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3292 $as_echo_n "checking for suffix of executables... " >&6; }
3293 if { { ac_try="$ac_link"
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299 $as_echo "$ac_try_echo"; } >&5
3300 (eval "$ac_link") 2>&5
3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }; then :
3304 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3305 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3306 # work properly (i.e., refer to `conftest.exe'), while it won't with
3308 for ac_file in conftest.exe conftest conftest.*; do
3309 test -f "$ac_file" || continue
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3321 See \`config.log' for more details" "$LINENO" 5; }
3323 rm -f conftest conftest$ac_cv_exeext
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3325 $as_echo "$ac_cv_exeext" >&6; }
3327 rm -f conftest.$ac_ext
3328 EXEEXT=$ac_cv_exeext
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3336 FILE *f = fopen ("conftest.out", "w");
3337 return ferror (f) || fclose (f) != 0;
3343 ac_clean_files="$ac_clean_files conftest.out"
3344 # Check that the compiler produces executables we can run. If not, either
3345 # the compiler is broken, or we cross compile.
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3347 $as_echo_n "checking whether we are cross compiling... " >&6; }
3348 if test "$cross_compiling" != yes; then
3349 { { ac_try="$ac_link"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355 $as_echo "$ac_try_echo"; } >&5
3356 (eval "$ac_link") 2>&5
3358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359 test $ac_status = 0; }
3360 if { ac_try='./conftest$ac_cv_exeext'
3361 { { case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366 $as_echo "$ac_try_echo"; } >&5
3367 (eval "$ac_try") 2>&5
3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370 test $ac_status = 0; }; }; then
3373 if test "$cross_compiling" = maybe; then
3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error $? "cannot run C compiled programs.
3379 If you meant to cross compile, use \`--host'.
3380 See \`config.log' for more details" "$LINENO" 5; }
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3385 $as_echo "$cross_compiling" >&6; }
3387 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3388 ac_clean_files=$ac_clean_files_save
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3390 $as_echo_n "checking for suffix of object files... " >&6; }
3391 if ${ac_cv_objext+:} false; then :
3392 $as_echo_n "(cached) " >&6
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3405 rm -f conftest.o conftest.obj
3406 if { { ac_try="$ac_compile"
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412 $as_echo "$ac_try_echo"; } >&5
3413 (eval "$ac_compile") 2>&5
3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416 test $ac_status = 0; }; then :
3417 for ac_file in conftest.o conftest.obj conftest.*; do
3418 test -f "$ac_file" || continue;
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3421 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3426 $as_echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "cannot compute suffix of object files: cannot compile
3432 See \`config.log' for more details" "$LINENO" 5; }
3434 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3437 $as_echo "$ac_cv_objext" >&6; }
3438 OBJEXT=$ac_cv_objext
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3441 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3442 if ${ac_cv_c_compiler_gnu+:} false; then :
3443 $as_echo_n "(cached) " >&6
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3459 if ac_fn_c_try_compile "$LINENO"; then :
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3469 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3470 if test $ac_compiler_gnu = yes; then
3475 ac_test_CFLAGS=${CFLAGS+set}
3476 ac_save_CFLAGS=$CFLAGS
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3478 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3479 if ${ac_cv_prog_cc_g+:} false; then :
3480 $as_echo_n "(cached) " >&6
3482 ac_save_c_werror_flag=$ac_c_werror_flag
3483 ac_c_werror_flag=yes
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3497 if ac_fn_c_try_compile "$LINENO"; then :
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3512 if ac_fn_c_try_compile "$LINENO"; then :
3515 ac_c_werror_flag=$ac_save_c_werror_flag
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3528 if ac_fn_c_try_compile "$LINENO"; then :
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 ac_c_werror_flag=$ac_save_c_werror_flag
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3539 $as_echo "$ac_cv_prog_cc_g" >&6; }
3540 if test "$ac_test_CFLAGS" = set; then
3541 CFLAGS=$ac_save_CFLAGS
3542 elif test $ac_cv_prog_cc_g = yes; then
3543 if test "$GCC" = yes; then
3549 if test "$GCC" = yes; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3556 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3557 if ${ac_cv_prog_cc_c89+:} false; then :
3558 $as_echo_n "(cached) " >&6
3560 ac_cv_prog_cc_c89=no
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3567 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3568 struct buf { int x; };
3569 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3570 static char *e (p, i)
3576 static char *f (char * (*g) (char **, int), char **p, ...)
3581 s = g (p, va_arg (v,int));
3586 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3587 function prototypes and stuff, but not '\xHH' hex character constants.
3588 These don't provoke an error unfortunately, instead are silently treated
3589 as 'x'. The following induces an error, until -std is added to get
3590 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3591 array size at least. It's necessary to write '\x00'==0 to get something
3592 that's true only with -std. */
3593 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3595 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3596 inside strings and character constants. */
3598 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3600 int test (int i, double x);
3601 struct s1 {int (*f) (int a);};
3602 struct s2 {int (*f) (double a);};
3603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3609 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3614 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3615 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3617 CC="$ac_save_CC $ac_arg"
3618 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_cv_prog_cc_c89=$ac_arg
3621 rm -f core conftest.err conftest.$ac_objext
3622 test "x$ac_cv_prog_cc_c89" != "xno" && break
3624 rm -f conftest.$ac_ext
3629 case "x$ac_cv_prog_cc_c89" in
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3632 $as_echo "none needed" >&6; } ;;
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3635 $as_echo "unsupported" >&6; } ;;
3637 CC="$CC $ac_cv_prog_cc_c89"
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3639 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3641 if test "x$ac_cv_prog_cc_c89" != xno; then :
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653 ac_cpp='$CPP $CPPFLAGS'
3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3658 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3659 # On Suns, sometimes $CPP names a directory.
3660 if test -n "$CPP" && test -d "$CPP"; then
3663 if test -z "$CPP"; then
3664 if ${ac_cv_prog_CPP+:} false; then :
3665 $as_echo_n "(cached) " >&6
3667 # Double quotes because CPP needs to be expanded
3668 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3671 for ac_c_preproc_warn_flag in '' yes
3673 # Use a header file that comes with gcc, so configuring glibc
3674 # with a fresh cross-compiler works.
3675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676 # <limits.h> exists even on freestanding compilers.
3677 # On the NeXT, cc -E runs the code through the compiler's parser,
3678 # not just through cpp. "Syntax error" is here to catch this case.
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3682 # include <limits.h>
3684 # include <assert.h>
3688 if ac_fn_c_try_cpp "$LINENO"; then :
3691 # Broken: fails on valid input.
3694 rm -f conftest.err conftest.i conftest.$ac_ext
3696 # OK, works on sane cases. Now check whether nonexistent headers
3697 # can be detected and how.
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700 #include <ac_nonexistent.h>
3702 if ac_fn_c_try_cpp "$LINENO"; then :
3703 # Broken: success on invalid input.
3706 # Passes both tests.
3710 rm -f conftest.err conftest.i conftest.$ac_ext
3713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3714 rm -f conftest.i conftest.err conftest.$ac_ext
3715 if $ac_preproc_ok; then :
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3728 $as_echo "$CPP" >&6; }
3730 for ac_c_preproc_warn_flag in '' yes
3732 # Use a header file that comes with gcc, so configuring glibc
3733 # with a fresh cross-compiler works.
3734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3735 # <limits.h> exists even on freestanding compilers.
3736 # On the NeXT, cc -E runs the code through the compiler's parser,
3737 # not just through cpp. "Syntax error" is here to catch this case.
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3741 # include <limits.h>
3743 # include <assert.h>
3747 if ac_fn_c_try_cpp "$LINENO"; then :
3750 # Broken: fails on valid input.
3753 rm -f conftest.err conftest.i conftest.$ac_ext
3755 # OK, works on sane cases. Now check whether nonexistent headers
3756 # can be detected and how.
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759 #include <ac_nonexistent.h>
3761 if ac_fn_c_try_cpp "$LINENO"; then :
3762 # Broken: success on invalid input.
3765 # Passes both tests.
3769 rm -f conftest.err conftest.i conftest.$ac_ext
3772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3773 rm -f conftest.i conftest.err conftest.$ac_ext
3774 if $ac_preproc_ok; then :
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3780 See \`config.log' for more details" "$LINENO" 5; }
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3791 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3792 if ${ac_cv_path_GREP+:} false; then :
3793 $as_echo_n "(cached) " >&6
3795 if test -z "$GREP"; then
3796 ac_path_GREP_found=false
3797 # Loop through the user's path and test for each of PROGNAME-LIST
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3802 test -z "$as_dir" && as_dir=.
3803 for ac_prog in grep ggrep; do
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3806 as_fn_executable_p "$ac_path_GREP" || continue
3807 # Check for GNU ac_path_GREP and select it if it is found.
3808 # Check for GNU $ac_path_GREP
3809 case `"$ac_path_GREP" --version 2>&1` in
3811 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3814 $as_echo_n 0123456789 >"conftest.in"
3817 cat "conftest.in" "conftest.in" >"conftest.tmp"
3818 mv "conftest.tmp" "conftest.in"
3819 cp "conftest.in" "conftest.nl"
3820 $as_echo 'GREP' >> "conftest.nl"
3821 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3822 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3823 as_fn_arith $ac_count + 1 && ac_count=$as_val
3824 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3825 # Best one so far, save it but keep looking for a better one
3826 ac_cv_path_GREP="$ac_path_GREP"
3827 ac_path_GREP_max=$ac_count
3829 # 10*(2^10) chars as input seems more than enough
3830 test $ac_count -gt 10 && break
3832 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3835 $ac_path_GREP_found && break 3
3840 if test -z "$ac_cv_path_GREP"; then
3841 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3844 ac_cv_path_GREP=$GREP
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3849 $as_echo "$ac_cv_path_GREP" >&6; }
3850 GREP="$ac_cv_path_GREP"
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3854 $as_echo_n "checking for egrep... " >&6; }
3855 if ${ac_cv_path_EGREP+:} false; then :
3856 $as_echo_n "(cached) " >&6
3858 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3859 then ac_cv_path_EGREP="$GREP -E"
3861 if test -z "$EGREP"; then
3862 ac_path_EGREP_found=false
3863 # Loop through the user's path and test for each of PROGNAME-LIST
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3868 test -z "$as_dir" && as_dir=.
3869 for ac_prog in egrep; do
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3872 as_fn_executable_p "$ac_path_EGREP" || continue
3873 # Check for GNU ac_path_EGREP and select it if it is found.
3874 # Check for GNU $ac_path_EGREP
3875 case `"$ac_path_EGREP" --version 2>&1` in
3877 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3880 $as_echo_n 0123456789 >"conftest.in"
3883 cat "conftest.in" "conftest.in" >"conftest.tmp"
3884 mv "conftest.tmp" "conftest.in"
3885 cp "conftest.in" "conftest.nl"
3886 $as_echo 'EGREP' >> "conftest.nl"
3887 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3889 as_fn_arith $ac_count + 1 && ac_count=$as_val
3890 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3891 # Best one so far, save it but keep looking for a better one
3892 ac_cv_path_EGREP="$ac_path_EGREP"
3893 ac_path_EGREP_max=$ac_count
3895 # 10*(2^10) chars as input seems more than enough
3896 test $ac_count -gt 10 && break
3898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3901 $ac_path_EGREP_found && break 3
3906 if test -z "$ac_cv_path_EGREP"; then
3907 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3910 ac_cv_path_EGREP=$EGREP
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3916 $as_echo "$ac_cv_path_EGREP" >&6; }
3917 EGREP="$ac_cv_path_EGREP"
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3921 $as_echo_n "checking for ANSI C header files... " >&6; }
3922 if ${ac_cv_header_stdc+:} false; then :
3923 $as_echo_n "(cached) " >&6
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3940 if ac_fn_c_try_compile "$LINENO"; then :
3941 ac_cv_header_stdc=yes
3943 ac_cv_header_stdc=no
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947 if test $ac_cv_header_stdc = yes; then
3948 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3955 $EGREP "memchr" >/dev/null 2>&1; then :
3958 ac_cv_header_stdc=no
3964 if test $ac_cv_header_stdc = yes; then
3965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3972 $EGREP "free" >/dev/null 2>&1; then :
3975 ac_cv_header_stdc=no
3981 if test $ac_cv_header_stdc = yes; then
3982 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3983 if test "$cross_compiling" = yes; then :
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3990 #if ((' ' & 0x0FF) == 0x020)
3991 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3992 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3994 # define ISLOWER(c) \
3995 (('a' <= (c) && (c) <= 'i') \
3996 || ('j' <= (c) && (c) <= 'r') \
3997 || ('s' <= (c) && (c) <= 'z'))
3998 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4001 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4006 for (i = 0; i < 256; i++)
4007 if (XOR (islower (i), ISLOWER (i))
4008 || toupper (i) != TOUPPER (i))
4013 if ac_fn_c_try_run "$LINENO"; then :
4016 ac_cv_header_stdc=no
4018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4019 conftest.$ac_objext conftest.beam conftest.$ac_ext
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4025 $as_echo "$ac_cv_header_stdc" >&6; }
4026 if test $ac_cv_header_stdc = yes; then
4028 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4032 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4033 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4034 inttypes.h stdint.h unistd.h
4036 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4037 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4039 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4040 cat >>confdefs.h <<_ACEOF
4041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4050 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4051 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4058 if test "$MINIX" = yes; then
4060 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4063 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4066 $as_echo "#define _MINIX 1" >>confdefs.h
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4072 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4073 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4074 $as_echo_n "(cached) " >&6
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4079 # define __EXTENSIONS__ 1
4080 $ac_includes_default
4089 if ac_fn_c_try_compile "$LINENO"; then :
4090 ac_cv_safe_to_define___extensions__=yes
4092 ac_cv_safe_to_define___extensions__=no
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4097 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4098 test $ac_cv_safe_to_define___extensions__ = yes &&
4099 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4101 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4103 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4105 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4107 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4111 if test "$ac_cv_header_minix_config_h" = "yes"; then
4113 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4122 case "$exec_prefix" in
4124 exec_prefix="$prefix"
4129 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4131 if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes"
4132 else on_mingw="no"; fi
4136 # Determine configuration file
4137 # the eval is to evaluate shell expansion twice
4138 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4140 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4142 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4144 if test $on_mingw = "no"; then
4145 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4147 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4150 # Check whether --with-conf_file was given.
4151 if test "${with_conf_file+set}" = set; then :
4152 withval=$with_conf_file; ub_conf_file="$withval"
4156 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4159 cat >>confdefs.h <<_ACEOF
4160 #define CONFIGFILE "$hdr_config"
4163 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4164 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4165 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4166 X"$ub_conf_file" : 'X\(//\)$' \| \
4167 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4168 $as_echo X"$ub_conf_file" |
4169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4188 # Determine run, chroot directory and pidfile locations
4190 # Check whether --with-run-dir was given.
4191 if test "${with_run_dir+set}" = set; then :
4192 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4194 if test $on_mingw = no; then
4195 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4203 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4206 cat >>confdefs.h <<_ACEOF
4207 #define RUN_DIR "$hdr_run"
4212 # Check whether --with-chroot-dir was given.
4213 if test "${with_chroot_dir+set}" = set; then :
4214 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4216 if test $on_mingw = no; then
4217 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4219 UNBOUND_CHROOT_DIR=""
4225 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4228 cat >>confdefs.h <<_ACEOF
4229 #define CHROOT_DIR "$hdr_chroot"
4234 # Check whether --with-share-dir was given.
4235 if test "${with_share_dir+set}" = set; then :
4236 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4238 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4243 cat >>confdefs.h <<_ACEOF
4244 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4249 # Check whether --with-pidfile was given.
4250 if test "${with_pidfile+set}" = set; then :
4251 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4253 if test $on_mingw = no; then
4254 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4262 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4265 cat >>confdefs.h <<_ACEOF
4266 #define PIDFILE "$hdr_pid"
4271 # Check whether --with-rootkey-file was given.
4272 if test "${with_rootkey_file+set}" = set; then :
4273 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4275 if test $on_mingw = no; then
4276 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4278 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4284 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4287 cat >>confdefs.h <<_ACEOF
4288 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4293 # Check whether --with-rootcert-file was given.
4294 if test "${with_rootcert_file+set}" = set; then :
4295 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4297 if test $on_mingw = no; then
4298 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4300 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4306 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4309 cat >>confdefs.h <<_ACEOF
4310 #define ROOT_CERT_FILE "$hdr_rpem"
4315 # Check whether --with-username was given.
4316 if test "${with_username+set}" = set; then :
4317 withval=$with_username; UNBOUND_USERNAME="$withval"
4319 UNBOUND_USERNAME="unbound"
4324 cat >>confdefs.h <<_ACEOF
4325 #define UB_USERNAME "$UNBOUND_USERNAME"
4330 $as_echo "#define WINVER 0x0502" >>confdefs.h
4332 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/' `
4335 cat >>confdefs.h <<_ACEOF
4336 #define RSRC_PACKAGE_VERSION $wnvs
4340 # Checks for typedefs, structures, and compiler characteristics.
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4342 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4343 if ${ac_cv_c_const+:} false; then :
4344 $as_echo_n "(cached) " >&6
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4354 /* Ultrix mips cc rejects this sort of thing. */
4355 typedef int charset[2];
4356 const charset cs = { 0, 0 };
4357 /* SunOS 4.1.1 cc rejects this. */
4358 char const *const *pcpcc;
4360 /* NEC SVR4.0.2 mips cc rejects this. */
4361 struct point {int x, y;};
4362 static struct point const zero = {0,0};
4363 /* AIX XL C 1.02.0.0 rejects this.
4364 It does not let you subtract one const X* pointer from another in
4365 an arm of an if-expression whose if-part is not a constant
4367 const char *g = "string";
4368 pcpcc = &g + (g ? g-g : 0);
4369 /* HPUX 7.0 cc rejects these. */
4371 ppc = (char**) pcpcc;
4372 pcpcc = (char const *const *) ppc;
4373 { /* SCO 3.2v4 cc rejects this sort of thing. */
4376 char const *s = 0 ? (char *) 0 : (char const *) 0;
4381 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4383 const int *foo = &x[0];
4386 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4387 typedef const int *iptr;
4391 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4392 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4393 struct s { int j; const int *ap[3]; } bx;
4394 struct s *b = &bx; b->j = 5;
4396 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4400 return !cs[0] && !zero.x;
4407 if ac_fn_c_try_compile "$LINENO"; then :
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4415 $as_echo "$ac_cv_c_const" >&6; }
4416 if test $ac_cv_c_const = no; then
4418 $as_echo "#define const /**/" >>confdefs.h
4423 ac_cpp='$CPP $CPPFLAGS'
4424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428 # allow user to override the -g -O2 flags.
4429 if test "x$CFLAGS" = "x" ; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4433 $as_echo_n "checking whether $CC supports -g... " >&6; }
4434 cache=`echo g | sed 'y%.=/+-%___p_%'`
4435 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4436 $as_echo_n "(cached) " >&6
4439 echo 'void f(void){}' >conftest.c
4440 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4441 eval "cv_prog_cc_flag_$cache=yes"
4443 eval "cv_prog_cc_flag_$cache=no"
4445 rm -f conftest conftest.o conftest.c
4449 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4451 $as_echo "yes" >&6; }
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4464 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4465 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4466 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4467 $as_echo_n "(cached) " >&6
4470 echo 'void f(void){}' >conftest.c
4471 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4472 eval "cv_prog_cc_flag_$cache=yes"
4474 eval "cv_prog_cc_flag_$cache=no"
4476 rm -f conftest conftest.o conftest.c
4480 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4482 $as_echo "yes" >&6; }
4484 CFLAGS="$CFLAGS -O2"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498 if test -n "$ac_tool_prefix"; then
4499 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4500 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502 $as_echo_n "checking for $ac_word... " >&6; }
4503 if ${ac_cv_prog_CC+:} false; then :
4504 $as_echo_n "(cached) " >&6
4506 if test -n "$CC"; then
4507 ac_cv_prog_CC="$CC" # Let the user override the test.
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 if test -n "$CC"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4529 $as_echo "$CC" >&6; }
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4537 if test -z "$ac_cv_prog_CC"; then
4539 # Extract the first word of "gcc", so it can be a program name with args.
4540 set dummy gcc; ac_word=$2
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4544 $as_echo_n "(cached) " >&6
4546 if test -n "$ac_ct_CC"; then
4547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556 ac_cv_prog_ac_ct_CC="gcc"
4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4567 if test -n "$ac_ct_CC"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4569 $as_echo "$ac_ct_CC" >&6; }
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4575 if test "x$ac_ct_CC" = x; then
4578 case $cross_compiling:$ac_tool_warned in
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4582 ac_tool_warned=yes ;;
4590 if test -z "$CC"; then
4591 if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}cc; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if ${ac_cv_prog_CC+:} false; then :
4597 $as_echo_n "(cached) " >&6
4599 if test -n "$CC"; then
4600 ac_cv_prog_CC="$CC" # Let the user override the test.
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_CC="${ac_tool_prefix}cc"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 if test -n "$CC"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4622 $as_echo "$CC" >&6; }
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4631 if test -z "$CC"; then
4632 # Extract the first word of "cc", so it can be a program name with args.
4633 set dummy cc; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_prog_CC+:} false; then :
4637 $as_echo_n "(cached) " >&6
4639 if test -n "$CC"; then
4640 ac_cv_prog_CC="$CC" # Let the user override the test.
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4651 ac_prog_rejected=yes
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 if test $ac_prog_rejected = yes; then
4663 # We found a bogon in the path, so make sure we never use it.
4664 set dummy $ac_cv_prog_CC
4666 if test $# != 0; then
4667 # We chose a different compiler from the bogus one.
4668 # However, it has the same basename, so the bogon will be chosen
4669 # first if we set CC to just the basename; use the full file name.
4671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4677 if test -n "$CC"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4679 $as_echo "$CC" >&6; }
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4687 if test -z "$CC"; then
4688 if test -n "$ac_tool_prefix"; then
4689 for ac_prog in cl.exe
4691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_CC+:} false; then :
4696 $as_echo_n "(cached) " >&6
4698 if test -n "$CC"; then
4699 ac_cv_prog_CC="$CC" # Let the user override the test.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 if test -n "$CC"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4721 $as_echo "$CC" >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4728 test -n "$CC" && break
4731 if test -z "$CC"; then
4733 for ac_prog in cl.exe
4735 # Extract the first word of "$ac_prog", so it can be a program name with args.
4736 set dummy $ac_prog; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4740 $as_echo_n "(cached) " >&6
4742 if test -n "$ac_ct_CC"; then
4743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752 ac_cv_prog_ac_ct_CC="$ac_prog"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4763 if test -n "$ac_ct_CC"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4765 $as_echo "$ac_ct_CC" >&6; }
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4772 test -n "$ac_ct_CC" && break
4775 if test "x$ac_ct_CC" = x; then
4778 case $cross_compiling:$ac_tool_warned in
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782 ac_tool_warned=yes ;;
4791 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4793 as_fn_error $? "no acceptable C compiler found in \$PATH
4794 See \`config.log' for more details" "$LINENO" 5; }
4796 # Provide some information about the compiler.
4797 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4800 for ac_option in --version -v -V -qversion; do
4801 { { ac_try="$ac_compiler $ac_option >&5"
4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4807 $as_echo "$ac_try_echo"; } >&5
4808 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4810 if test -s conftest.err; then
4812 ... rest of stderr output deleted ...
4813 10q' conftest.err >conftest.er1
4814 cat conftest.er1 >&5
4816 rm -f conftest.er1 conftest.err
4817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4818 test $ac_status = 0; }
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4822 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4823 if ${ac_cv_c_compiler_gnu+:} false; then :
4824 $as_echo_n "(cached) " >&6
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4840 if ac_fn_c_try_compile "$LINENO"; then :
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4850 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4851 if test $ac_compiler_gnu = yes; then
4856 ac_test_CFLAGS=${CFLAGS+set}
4857 ac_save_CFLAGS=$CFLAGS
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4859 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4860 if ${ac_cv_prog_cc_g+:} false; then :
4861 $as_echo_n "(cached) " >&6
4863 ac_save_c_werror_flag=$ac_c_werror_flag
4864 ac_c_werror_flag=yes
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4878 if ac_fn_c_try_compile "$LINENO"; then :
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4893 if ac_fn_c_try_compile "$LINENO"; then :
4896 ac_c_werror_flag=$ac_save_c_werror_flag
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4909 if ac_fn_c_try_compile "$LINENO"; then :
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 ac_c_werror_flag=$ac_save_c_werror_flag
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4920 $as_echo "$ac_cv_prog_cc_g" >&6; }
4921 if test "$ac_test_CFLAGS" = set; then
4922 CFLAGS=$ac_save_CFLAGS
4923 elif test $ac_cv_prog_cc_g = yes; then
4924 if test "$GCC" = yes; then
4930 if test "$GCC" = yes; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4937 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4938 if ${ac_cv_prog_cc_c89+:} false; then :
4939 $as_echo_n "(cached) " >&6
4941 ac_cv_prog_cc_c89=no
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4948 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4949 struct buf { int x; };
4950 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4951 static char *e (p, i)
4957 static char *f (char * (*g) (char **, int), char **p, ...)
4962 s = g (p, va_arg (v,int));
4967 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4968 function prototypes and stuff, but not '\xHH' hex character constants.
4969 These don't provoke an error unfortunately, instead are silently treated
4970 as 'x'. The following induces an error, until -std is added to get
4971 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4972 array size at least. It's necessary to write '\x00'==0 to get something
4973 that's true only with -std. */
4974 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4976 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4977 inside strings and character constants. */
4979 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4981 int test (int i, double x);
4982 struct s1 {int (*f) (int a);};
4983 struct s2 {int (*f) (double a);};
4984 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4990 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4995 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4996 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4998 CC="$ac_save_CC $ac_arg"
4999 if ac_fn_c_try_compile "$LINENO"; then :
5000 ac_cv_prog_cc_c89=$ac_arg
5002 rm -f core conftest.err conftest.$ac_objext
5003 test "x$ac_cv_prog_cc_c89" != "xno" && break
5005 rm -f conftest.$ac_ext
5010 case "x$ac_cv_prog_cc_c89" in
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5013 $as_echo "none needed" >&6; } ;;
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5016 $as_echo "unsupported" >&6; } ;;
5018 CC="$CC $ac_cv_prog_cc_c89"
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5020 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5022 if test "x$ac_cv_prog_cc_c89" != xno; then :
5027 ac_cpp='$CPP $CPPFLAGS'
5028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5034 $as_echo_n "checking $CC dependency flag... " >&6; }
5035 echo 'void f(){}' >conftest.c
5036 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5039 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5042 DEPFLAG="-MM" # dunno do something
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5046 $as_echo "$DEPFLAG" >&6; }
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5054 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
5055 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5056 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5057 $as_echo_n "(cached) " >&6
5060 echo 'void f(void){}' >conftest.c
5061 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5062 eval "cv_prog_cc_flag_$cache=yes"
5064 eval "cv_prog_cc_flag_$cache=no"
5066 rm -f conftest conftest.o conftest.c
5070 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5072 $as_echo "yes" >&6; }
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5085 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5086 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5087 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5088 $as_echo_n "(cached) " >&6
5091 echo 'void f(void){}' >conftest.c
5092 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5093 eval "cv_prog_cc_flag_$cache=yes"
5095 eval "cv_prog_cc_flag_$cache=no"
5097 rm -f conftest conftest.o conftest.c
5101 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5103 $as_echo "yes" >&6; }
5105 ERRFLAG="$ERRFLAG -Wall"
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5110 ERRFLAG="$ERRFLAG -errfmt"
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5118 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5119 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5120 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5121 $as_echo_n "(cached) " >&6
5124 echo 'void f(void){}' >conftest.c
5125 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5126 eval "cv_prog_cc_flag_$cache=yes"
5128 eval "cv_prog_cc_flag_$cache=no"
5130 rm -f conftest conftest.o conftest.c
5134 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5136 $as_echo "yes" >&6; }
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5149 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5150 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5151 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5152 $as_echo_n "(cached) " >&6
5155 echo 'void f(void){}' >conftest.c
5156 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5157 eval "cv_prog_cc_flag_$cache=yes"
5159 eval "cv_prog_cc_flag_$cache=no"
5161 rm -f conftest conftest.o conftest.c
5165 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5167 $as_echo "yes" >&6; }
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5178 for ac_header in getopt.h time.h
5180 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5181 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5183 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5184 cat >>confdefs.h <<_ACEOF
5185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5196 { $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
5197 $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; }
5198 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`
5199 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5200 $as_echo_n "(cached) " >&6
5204 #include "confdefs.h"
5207 #include <sys/time.h>
5213 #ifdef HAVE_GETOPT_H
5224 const char* str = NULL;
5226 msg.msg_control = 0;
5227 t = ctime_r(&time, buf);
5230 a = getopt(2, opts, "a");
5232 str = gai_strerror(0);
5233 if(str && t && tv.tv_usec && msg.msg_control)
5238 echo 'void f(){}' >>conftest.c
5239 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5240 eval "cv_prog_cc_flag_needed_$cache=no"
5243 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
5244 eval "cv_prog_cc_flag_needed_$cache=yes"
5246 eval "cv_prog_cc_flag_needed_$cache=fail"
5247 #echo 'Test with flag fails too!'
5249 #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"
5250 #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`
5255 rm -f conftest conftest.c conftest.o
5259 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5261 $as_echo "yes" >&6; }
5263 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"
5265 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 #echo 'Test with flag is no!'
5270 #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"
5271 #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`
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5277 $as_echo "failed" >&6; }
5287 { $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
5288 $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; }
5289 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`
5290 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5291 $as_echo_n "(cached) " >&6
5295 #include "confdefs.h"
5298 #include <sys/time.h>
5304 #ifdef HAVE_GETOPT_H
5315 const char* str = NULL;
5317 msg.msg_control = 0;
5318 t = ctime_r(&time, buf);
5321 a = getopt(2, opts, "a");
5323 str = gai_strerror(0);
5324 if(str && t && tv.tv_usec && msg.msg_control)
5329 echo 'void f(){}' >>conftest.c
5330 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5331 eval "cv_prog_cc_flag_needed_$cache=no"
5334 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
5335 eval "cv_prog_cc_flag_needed_$cache=yes"
5337 eval "cv_prog_cc_flag_needed_$cache=fail"
5338 #echo 'Test with flag fails too!'
5340 #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"
5341 #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`
5346 rm -f conftest conftest.c conftest.o
5350 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5352 $as_echo "yes" >&6; }
5354 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5356 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359 #echo 'Test with flag is no!'
5361 #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"
5362 #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`
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5368 $as_echo "failed" >&6; }
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5379 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5380 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5381 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5382 $as_echo_n "(cached) " >&6
5386 #include <stdbool.h>
5393 echo 'void f(){}' >>conftest.c
5394 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5395 eval "cv_prog_cc_flag_needed_$cache=no"
5398 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5399 eval "cv_prog_cc_flag_needed_$cache=yes"
5401 eval "cv_prog_cc_flag_needed_$cache=fail"
5402 #echo 'Test with flag fails too!'
5404 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5405 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5410 rm -f conftest conftest.c conftest.o
5414 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5416 $as_echo "yes" >&6; }
5418 CFLAGS="$CFLAGS $C99FLAG"
5420 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 #echo 'Test with flag is no!'
5425 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5426 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5432 $as_echo "failed" >&6; }
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5443 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5444 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5445 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5446 $as_echo_n "(cached) " >&6
5458 echo 'void f(){}' >>conftest.c
5459 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5460 eval "cv_prog_cc_flag_needed_$cache=no"
5463 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5464 eval "cv_prog_cc_flag_needed_$cache=yes"
5466 eval "cv_prog_cc_flag_needed_$cache=fail"
5467 #echo 'Test with flag fails too!'
5469 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5470 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5475 rm -f conftest conftest.c conftest.o
5479 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5481 $as_echo "yes" >&6; }
5483 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5485 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 #echo 'Test with flag is no!'
5490 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5491 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5497 $as_echo "failed" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5508 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5510 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5511 $as_echo_n "(cached) " >&6
5515 #include <netinet/in.h>
5518 struct in6_pktinfo inf;
5519 int a = (int)sizeof(inf);
5523 echo 'void f(){}' >>conftest.c
5524 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5525 eval "cv_prog_cc_flag_needed_$cache=no"
5528 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5529 eval "cv_prog_cc_flag_needed_$cache=yes"
5531 eval "cv_prog_cc_flag_needed_$cache=fail"
5532 #echo 'Test with flag fails too!'
5534 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5535 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5540 rm -f conftest conftest.c conftest.o
5544 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5546 $as_echo "yes" >&6; }
5548 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5550 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 #echo 'Test with flag is no!'
5555 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5556 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5562 $as_echo "failed" >&6; }
5569 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5570 # is not available at all. -D_FRSRESGID is to make this check unique.
5571 # otherwise we would get the previous cached result.
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5576 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5577 cache=_D_GNU_SOURCE__D_FRSRESGID
5578 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5579 $as_echo_n "(cached) " >&6
5586 int a = setresgid(0,0,0);
5587 a = setresuid(0,0,0);
5591 echo 'void f(){}' >>conftest.c
5592 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5593 eval "cv_prog_cc_flag_needed_$cache=no"
5596 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5597 eval "cv_prog_cc_flag_needed_$cache=yes"
5599 eval "cv_prog_cc_flag_needed_$cache=fail"
5600 #echo 'Test with flag fails too!'
5602 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5603 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5608 rm -f conftest conftest.c conftest.o
5612 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5614 $as_echo "yes" >&6; }
5616 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5618 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620 $as_echo "no" >&6; }
5621 #echo 'Test with flag is no!'
5623 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5624 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5630 $as_echo "failed" >&6; }
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5641 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5642 cache=_D_POSIX_C_SOURCE_200112
5643 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5644 $as_echo_n "(cached) " >&6
5648 #include "confdefs.h"
5659 const char* str = NULL;
5660 t = ctime_r(&time, buf);
5661 str = gai_strerror(0);
5667 echo 'void f(){}' >>conftest.c
5668 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5669 eval "cv_prog_cc_flag_needed_$cache=no"
5672 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5673 eval "cv_prog_cc_flag_needed_$cache=yes"
5675 eval "cv_prog_cc_flag_needed_$cache=fail"
5676 #echo 'Test with flag fails too!'
5678 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5679 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5684 rm -f conftest conftest.c conftest.o
5688 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5690 $as_echo "yes" >&6; }
5692 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5694 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5697 #echo 'Test with flag is no!'
5699 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5700 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5706 $as_echo "failed" >&6; }
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5717 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5718 cache=_D__EXTENSIONS__
5719 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5720 $as_echo_n "(cached) " >&6
5724 #include "confdefs.h"
5727 #include <sys/time.h>
5732 #ifdef HAVE_GETOPT_H
5742 a = getopt(2, opts, "a");
5749 echo 'void f(){}' >>conftest.c
5750 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5751 eval "cv_prog_cc_flag_needed_$cache=no"
5754 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5755 eval "cv_prog_cc_flag_needed_$cache=yes"
5757 eval "cv_prog_cc_flag_needed_$cache=fail"
5758 #echo 'Test with flag fails too!'
5760 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5761 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5766 rm -f conftest conftest.c conftest.o
5770 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5772 $as_echo "yes" >&6; }
5774 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5776 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5779 #echo 'Test with flag is no!'
5781 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5782 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5788 $as_echo "failed" >&6; }
5797 # debug mode flags warnings
5798 # Check whether --enable-checking was given.
5799 if test "${enable_checking+set}" = set; then :
5800 enableval=$enable_checking;
5803 # Check whether --enable-debug was given.
5804 if test "${enable_debug+set}" = set; then :
5805 enableval=$enable_debug;
5808 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5809 else debug_enabled="$enable_checking"; fi
5811 case "$debug_enabled" in
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5816 $as_echo_n "checking whether $CC supports -W... " >&6; }
5817 cache=`echo W | sed 'y%.=/+-%___p_%'`
5818 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5819 $as_echo_n "(cached) " >&6
5822 echo 'void f(void){}' >conftest.c
5823 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5824 eval "cv_prog_cc_flag_$cache=yes"
5826 eval "cv_prog_cc_flag_$cache=no"
5828 rm -f conftest conftest.o conftest.c
5832 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5834 $as_echo "yes" >&6; }
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5847 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5848 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5849 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5850 $as_echo_n "(cached) " >&6
5853 echo 'void f(void){}' >conftest.c
5854 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5855 eval "cv_prog_cc_flag_$cache=yes"
5857 eval "cv_prog_cc_flag_$cache=no"
5859 rm -f conftest conftest.o conftest.c
5863 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5865 $as_echo "yes" >&6; }
5867 CFLAGS="$CFLAGS -Wall"
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5878 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5879 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5880 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5881 $as_echo_n "(cached) " >&6
5884 echo 'void f(void){}' >conftest.c
5885 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5886 eval "cv_prog_cc_flag_$cache=yes"
5888 eval "cv_prog_cc_flag_$cache=no"
5890 rm -f conftest conftest.o conftest.c
5894 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5896 $as_echo "yes" >&6; }
5898 CFLAGS="$CFLAGS -Wextra"
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5909 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5910 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5911 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5912 $as_echo_n "(cached) " >&6
5915 echo 'void f(void){}' >conftest.c
5916 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5917 eval "cv_prog_cc_flag_$cache=yes"
5919 eval "cv_prog_cc_flag_$cache=no"
5921 rm -f conftest conftest.o conftest.c
5925 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5927 $as_echo "yes" >&6; }
5929 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5938 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5946 # Check whether --enable-flto was given.
5947 if test "${enable_flto+set}" = set; then :
5948 enableval=$enable_flto;
5951 if test "x$enable_flto" != "xno"; then :
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5954 $as_echo_n "checking if $CC supports -flto... " >&6; }
5956 CFLAGS="$CFLAGS -flto"
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5968 if ac_fn_c_try_link "$LINENO"; then :
5970 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5976 $as_echo "yes" >&6; }
5978 rm -f conftest conftest.c conftest.o
5981 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5984 rm -f core conftest.err conftest.$ac_objext \
5985 conftest$ac_exeext conftest.$ac_ext
5990 # Check whether --enable-pie was given.
5991 if test "${enable_pie+set}" = set; then :
5992 enableval=$enable_pie;
5995 if test "x$enable_pie" = "xyes"; then :
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
5998 $as_echo_n "checking if $CC supports PIE... " >&6; }
5999 BAKLDFLAGS="$LDFLAGS"
6001 LDFLAGS="$LDFLAGS -pie"
6002 CFLAGS="$CFLAGS -fPIE"
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6014 if ac_fn_c_try_link "$LINENO"; then :
6016 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6017 LDFLAGS="$BAKLDFLAGS"
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019 $as_echo "no" >&6; }
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6022 $as_echo "yes" >&6; }
6024 rm -f conftest conftest.c conftest.o
6027 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6030 rm -f core conftest.err conftest.$ac_objext \
6031 conftest$ac_exeext conftest.$ac_ext
6036 # Check whether --enable-relro_now was given.
6037 if test "${enable_relro_now+set}" = set; then :
6038 enableval=$enable_relro_now;
6041 if test "x$enable_relro_now" = "xyes"; then :
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6044 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6045 BAKLDFLAGS="$LDFLAGS"
6046 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6058 if ac_fn_c_try_link "$LINENO"; then :
6060 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6061 LDFLAGS="$BAKLDFLAGS"
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6066 $as_echo "yes" >&6; }
6068 rm -f conftest conftest.c conftest.o
6071 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6074 rm -f core conftest.err conftest.$ac_objext \
6075 conftest$ac_exeext conftest.$ac_ext
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6081 $as_echo_n "checking for inline... " >&6; }
6082 if ${ac_cv_c_inline+:} false; then :
6083 $as_echo_n "(cached) " >&6
6086 for ac_kw in inline __inline__ __inline; do
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6091 static $ac_kw foo_t static_foo () {return 0; }
6092 $ac_kw foo_t foo () {return 0; }
6096 if ac_fn_c_try_compile "$LINENO"; then :
6097 ac_cv_c_inline=$ac_kw
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 test "$ac_cv_c_inline" != no && break
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6105 $as_echo "$ac_cv_c_inline" >&6; }
6107 case $ac_cv_c_inline in
6110 case $ac_cv_c_inline in
6112 *) ac_val=$ac_cv_c_inline;;
6114 cat >>confdefs.h <<_ACEOF
6116 #define inline $ac_val
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6124 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6125 if ${ac_cv_c_format_attribute+:} false; then :
6126 $as_echo_n "(cached) " >&6
6128 ac_cv_c_format_attribute=no
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6132 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6133 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6145 if ac_fn_c_try_compile "$LINENO"; then :
6146 ac_cv_c_format_attribute="yes"
6148 ac_cv_c_format_attribute="no"
6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6156 $as_echo "$ac_cv_c_format_attribute" >&6; }
6157 if test $ac_cv_c_format_attribute = yes; then
6159 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6165 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6166 if ${ac_cv_c_unused_attribute+:} false; then :
6167 $as_echo_n "(cached) " >&6
6169 ac_cv_c_unused_attribute=no
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h. */
6173 void f (char *u __attribute__((unused)));
6185 if ac_fn_c_try_compile "$LINENO"; then :
6186 ac_cv_c_unused_attribute="yes"
6188 ac_cv_c_unused_attribute="no"
6190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6198 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6199 if test $ac_cv_c_unused_attribute = yes; then
6201 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6209 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6210 if ${ac_cv_c_weak_attribute+:} false; then :
6211 $as_echo_n "(cached) " >&6
6213 ac_cv_c_weak_attribute=no
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6217 __attribute__((weak)) void f(int x) { printf("%d", x); }
6229 if ac_fn_c_try_compile "$LINENO"; then :
6230 ac_cv_c_weak_attribute="yes"
6232 ac_cv_c_weak_attribute="no"
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6240 $as_echo "$ac_cv_c_weak_attribute" >&6; }
6241 if test $ac_cv_c_weak_attribute = yes; then
6243 $as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6248 if test "$srcdir" != "."; then
6249 CPPFLAGS="$CPPFLAGS -I$srcdir"
6254 for ac_prog in flex lex
6256 # Extract the first word of "$ac_prog", so it can be a program name with args.
6257 set dummy $ac_prog; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if ${ac_cv_prog_LEX+:} false; then :
6261 $as_echo_n "(cached) " >&6
6263 if test -n "$LEX"; then
6264 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_LEX="$ac_prog"
6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 if test -n "$LEX"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6286 $as_echo "$LEX" >&6; }
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6293 test -n "$LEX" && break
6295 test -n "$LEX" || LEX=":"
6297 if test "x$LEX" != "x:"; then
6298 cat >conftest.l <<_ACEOF
6304 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6305 yyless ((input () != 0)); }
6306 f { unput (yytext[0]); }
6307 . { BEGIN INITIAL; }
6309 #ifdef YYTEXT_POINTER
6310 extern char *yytext;
6315 return ! yylex () + ! yywrap ();
6318 { { ac_try="$LEX conftest.l"
6320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6324 $as_echo "$ac_try_echo"; } >&5
6325 (eval "$LEX conftest.l") 2>&5
6327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6328 test $ac_status = 0; }
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6330 $as_echo_n "checking lex output file root... " >&6; }
6331 if ${ac_cv_prog_lex_root+:} false; then :
6332 $as_echo_n "(cached) " >&6
6335 if test -f lex.yy.c; then
6336 ac_cv_prog_lex_root=lex.yy
6337 elif test -f lexyy.c; then
6338 ac_cv_prog_lex_root=lexyy
6340 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6344 $as_echo "$ac_cv_prog_lex_root" >&6; }
6345 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6347 if test -z "${LEXLIB+set}"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6349 $as_echo_n "checking lex library... " >&6; }
6350 if ${ac_cv_lib_lex+:} false; then :
6351 $as_echo_n "(cached) " >&6
6355 ac_cv_lib_lex='none needed'
6356 for ac_lib in '' -lfl -ll; do
6357 LIBS="$ac_lib $ac_save_LIBS"
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6360 `cat $LEX_OUTPUT_ROOT.c`
6362 if ac_fn_c_try_link "$LINENO"; then :
6363 ac_cv_lib_lex=$ac_lib
6365 rm -f core conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
6367 test "$ac_cv_lib_lex" != 'none needed' && break
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6373 $as_echo "$ac_cv_lib_lex" >&6; }
6374 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6379 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6380 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6381 $as_echo_n "(cached) " >&6
6383 # POSIX says lex can declare yytext either as a pointer or an array; the
6384 # default is implementation-dependent. Figure out which it is, since
6385 # not all implementations provide the %pointer and %array declarations.
6386 ac_cv_prog_lex_yytext_pointer=no
6388 LIBS="$LEXLIB $ac_save_LIBS"
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6392 #define YYTEXT_POINTER 1
6393 `cat $LEX_OUTPUT_ROOT.c`
6395 if ac_fn_c_try_link "$LINENO"; then :
6396 ac_cv_prog_lex_yytext_pointer=yes
6398 rm -f core conftest.err conftest.$ac_objext \
6399 conftest$ac_exeext conftest.$ac_ext
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6404 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6405 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6407 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6410 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6415 $as_echo_n "checking for yylex_destroy... " >&6; }
6416 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6418 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6421 $as_echo "yes" >&6; }
6422 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }; fi
6425 for ac_prog in 'bison -y' byacc
6427 # Extract the first word of "$ac_prog", so it can be a program name with args.
6428 set dummy $ac_prog; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if ${ac_cv_prog_YACC+:} false; then :
6432 $as_echo_n "(cached) " >&6
6434 if test -n "$YACC"; then
6435 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444 ac_cv_prog_YACC="$ac_prog"
6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 YACC=$ac_cv_prog_YACC
6455 if test -n "$YACC"; then
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6457 $as_echo "$YACC" >&6; }
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6464 test -n "$YACC" && break
6466 test -n "$YACC" || YACC="yacc"
6468 # Extract the first word of "doxygen", so it can be a program name with args.
6469 set dummy doxygen; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_doxygen+:} false; then :
6473 $as_echo_n "(cached) " >&6
6475 if test -n "$doxygen"; then
6476 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6485 ac_cv_prog_doxygen="doxygen"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 doxygen=$ac_cv_prog_doxygen
6496 if test -n "$doxygen"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6498 $as_echo "$doxygen" >&6; }
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6505 if test -n "$ac_tool_prefix"; then
6506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6507 set dummy ${ac_tool_prefix}strip; ac_word=$2
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509 $as_echo_n "checking for $ac_word... " >&6; }
6510 if ${ac_cv_prog_STRIP+:} false; then :
6511 $as_echo_n "(cached) " >&6
6513 if test -n "$STRIP"; then
6514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6523 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 STRIP=$ac_cv_prog_STRIP
6534 if test -n "$STRIP"; then
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6536 $as_echo "$STRIP" >&6; }
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539 $as_echo "no" >&6; }
6544 if test -z "$ac_cv_prog_STRIP"; then
6546 # Extract the first word of "strip", so it can be a program name with args.
6547 set dummy strip; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6551 $as_echo_n "(cached) " >&6
6553 if test -n "$ac_ct_STRIP"; then
6554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563 ac_cv_prog_ac_ct_STRIP="strip"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6574 if test -n "$ac_ct_STRIP"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6576 $as_echo "$ac_ct_STRIP" >&6; }
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6582 if test "x$ac_ct_STRIP" = x; then
6585 case $cross_compiling:$ac_tool_warned in
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589 ac_tool_warned=yes ;;
6594 STRIP="$ac_cv_prog_STRIP"
6598 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6599 if test -f "$ac_dir/install-sh"; then
6601 ac_install_sh="$ac_aux_dir/install-sh -c"
6603 elif test -f "$ac_dir/install.sh"; then
6605 ac_install_sh="$ac_aux_dir/install.sh -c"
6607 elif test -f "$ac_dir/shtool"; then
6609 ac_install_sh="$ac_aux_dir/shtool install -c"
6613 if test -z "$ac_aux_dir"; then
6614 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6617 # These three variables are undocumented and unsupported,
6618 # and are intended to be withdrawn in a future Autoconf release.
6619 # They can cause serious problems if a builder's source tree is in a directory
6620 # whose full name contains unusual characters.
6621 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6622 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6623 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6626 # Make sure we can run config.sub.
6627 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6628 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6631 $as_echo_n "checking build system type... " >&6; }
6632 if ${ac_cv_build+:} false; then :
6633 $as_echo_n "(cached) " >&6
6635 ac_build_alias=$build_alias
6636 test "x$ac_build_alias" = x &&
6637 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6638 test "x$ac_build_alias" = x &&
6639 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6640 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6645 $as_echo "$ac_cv_build" >&6; }
6646 case $ac_cv_build in
6648 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6651 ac_save_IFS=$IFS; IFS='-'
6657 # Remember, the first character of IFS is used to create $*,
6658 # except with old shells:
6661 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6665 $as_echo_n "checking host system type... " >&6; }
6666 if ${ac_cv_host+:} false; then :
6667 $as_echo_n "(cached) " >&6
6669 if test "x$host_alias" = x; then
6670 ac_cv_host=$ac_cv_build
6672 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6673 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6678 $as_echo "$ac_cv_host" >&6; }
6681 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6684 ac_save_IFS=$IFS; IFS='-'
6690 # Remember, the first character of IFS is used to create $*,
6691 # except with old shells:
6694 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6698 # skip these tests, we do not need them.
6707 # always use ./libtool unless override from commandline (libtool=mylibtool)
6708 if test -z "$libtool"; then
6712 # avoid libtool max commandline length test on systems that fork slowly.
6714 if echo "$host_os" | grep "sunos4" >/dev/null; then
6715 lt_cv_sys_max_cmd_len=32750;
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}ar; ac_word=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if ${ac_cv_path_AR+:} false; then :
6723 $as_echo_n "(cached) " >&6
6727 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 if test -n "$AR"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6751 $as_echo "$AR" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6759 if test -z "$ac_cv_path_AR"; then
6761 # Extract the first word of "ar", so it can be a program name with args.
6762 set dummy ar; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if ${ac_cv_path_ac_pt_AR+:} false; then :
6766 $as_echo_n "(cached) " >&6
6770 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 ac_pt_AR=$ac_cv_path_ac_pt_AR
6792 if test -n "$ac_pt_AR"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6794 $as_echo "$ac_pt_AR" >&6; }
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6800 if test "x$ac_pt_AR" = x; then
6803 case $cross_compiling:$ac_tool_warned in
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned=yes ;;
6815 if test $AR = false; then
6816 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6822 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6827 macro_version='2.4.6'
6828 macro_revision='2.4.6'
6842 ltmain=$ac_aux_dir/ltmain.sh
6844 # Backslashify metacharacters that are still active within
6845 # double-quoted strings.
6846 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6848 # Same as above, but do not quote variable references.
6849 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6851 # Sed substitution to delay expansion of an escaped shell variable in a
6852 # double_quote_subst'ed string.
6853 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6855 # Sed substitution to delay expansion of an escaped single quote.
6856 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6858 # Sed substitution to avoid accidental globbing in evaled expressions
6859 no_glob_subst='s/\*/\\\*/g'
6861 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6862 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6863 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6866 $as_echo_n "checking how to print strings... " >&6; }
6867 # Test print first, because it will be a builtin if present.
6868 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6869 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6871 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6874 # Use this function as a fallback that always works.
6875 func_fallback_echo ()
6877 eval 'cat <<_LTECHO_EOF
6881 ECHO='func_fallback_echo'
6884 # func_echo_all arg...
6885 # Invoke $ECHO with all args, space-separated.
6892 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6893 $as_echo "printf" >&6; } ;;
6894 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6895 $as_echo "print -r" >&6; } ;;
6896 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6897 $as_echo "cat" >&6; } ;;
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6914 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6915 if ${ac_cv_path_SED+:} false; then :
6916 $as_echo_n "(cached) " >&6
6918 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6919 for ac_i in 1 2 3 4 5 6 7; do
6920 ac_script="$ac_script$as_nl$ac_script"
6922 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6923 { ac_script=; unset ac_script;}
6924 if test -z "$SED"; then
6925 ac_path_SED_found=false
6926 # Loop through the user's path and test for each of PROGNAME-LIST
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 test -z "$as_dir" && as_dir=.
6932 for ac_prog in sed gsed; do
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6935 as_fn_executable_p "$ac_path_SED" || continue
6936 # Check for GNU ac_path_SED and select it if it is found.
6937 # Check for GNU $ac_path_SED
6938 case `"$ac_path_SED" --version 2>&1` in
6940 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6943 $as_echo_n 0123456789 >"conftest.in"
6946 cat "conftest.in" "conftest.in" >"conftest.tmp"
6947 mv "conftest.tmp" "conftest.in"
6948 cp "conftest.in" "conftest.nl"
6949 $as_echo '' >> "conftest.nl"
6950 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6952 as_fn_arith $ac_count + 1 && ac_count=$as_val
6953 if test $ac_count -gt ${ac_path_SED_max-0}; then
6954 # Best one so far, save it but keep looking for a better one
6955 ac_cv_path_SED="$ac_path_SED"
6956 ac_path_SED_max=$ac_count
6958 # 10*(2^10) chars as input seems more than enough
6959 test $ac_count -gt 10 && break
6961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6964 $ac_path_SED_found && break 3
6969 if test -z "$ac_cv_path_SED"; then
6970 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6978 $as_echo "$ac_cv_path_SED" >&6; }
6979 SED="$ac_cv_path_SED"
6982 test -z "$SED" && SED=sed
6983 Xsed="$SED -e 1s/^X//"
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6996 $as_echo_n "checking for fgrep... " >&6; }
6997 if ${ac_cv_path_FGREP+:} false; then :
6998 $as_echo_n "(cached) " >&6
7000 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7001 then ac_cv_path_FGREP="$GREP -F"
7003 if test -z "$FGREP"; then
7004 ac_path_FGREP_found=false
7005 # Loop through the user's path and test for each of PROGNAME-LIST
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7010 test -z "$as_dir" && as_dir=.
7011 for ac_prog in fgrep; do
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7014 as_fn_executable_p "$ac_path_FGREP" || continue
7015 # Check for GNU ac_path_FGREP and select it if it is found.
7016 # Check for GNU $ac_path_FGREP
7017 case `"$ac_path_FGREP" --version 2>&1` in
7019 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7022 $as_echo_n 0123456789 >"conftest.in"
7025 cat "conftest.in" "conftest.in" >"conftest.tmp"
7026 mv "conftest.tmp" "conftest.in"
7027 cp "conftest.in" "conftest.nl"
7028 $as_echo 'FGREP' >> "conftest.nl"
7029 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7031 as_fn_arith $ac_count + 1 && ac_count=$as_val
7032 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7033 # Best one so far, save it but keep looking for a better one
7034 ac_cv_path_FGREP="$ac_path_FGREP"
7035 ac_path_FGREP_max=$ac_count
7037 # 10*(2^10) chars as input seems more than enough
7038 test $ac_count -gt 10 && break
7040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7043 $ac_path_FGREP_found && break 3
7048 if test -z "$ac_cv_path_FGREP"; then
7049 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7052 ac_cv_path_FGREP=$FGREP
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7058 $as_echo "$ac_cv_path_FGREP" >&6; }
7059 FGREP="$ac_cv_path_FGREP"
7062 test -z "$GREP" && GREP=grep
7082 # Check whether --with-gnu-ld was given.
7083 if test "${with_gnu_ld+set}" = set; then :
7084 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7090 if test yes = "$GCC"; then
7091 # Check if gcc -print-prog-name=ld gives a path.
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7093 $as_echo_n "checking for ld used by $CC... " >&6; }
7096 # gcc leaves a trailing carriage return, which upsets mingw
7097 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7099 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7102 # Accept absolute paths.
7104 re_direlt='/[^/][^/]*/\.\./'
7105 # Canonicalize the pathname of ld
7106 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7107 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7108 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7110 test -z "$LD" && LD=$ac_prog
7113 # If it fails, then pretend we aren't using GCC.
7117 # If it is relative, then search for the first ld in PATH.
7121 elif test yes = "$with_gnu_ld"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7123 $as_echo_n "checking for GNU ld... " >&6; }
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7126 $as_echo_n "checking for non-GNU ld... " >&6; }
7128 if ${lt_cv_path_LD+:} false; then :
7129 $as_echo_n "(cached) " >&6
7131 if test -z "$LD"; then
7132 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7133 for ac_dir in $PATH; do
7135 test -z "$ac_dir" && ac_dir=.
7136 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7137 lt_cv_path_LD=$ac_dir/$ac_prog
7138 # Check to see if the program is GNU ld. I'd rather use --version,
7139 # but apparently some variants of GNU ld only accept -v.
7140 # Break only if it was the GNU/non-GNU ld that we prefer.
7141 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7142 *GNU* | *'with BFD'*)
7143 test no != "$with_gnu_ld" && break
7146 test yes != "$with_gnu_ld" && break
7153 lt_cv_path_LD=$LD # Let the user override the test with a path.
7158 if test -n "$LD"; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7160 $as_echo "$LD" >&6; }
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7165 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7167 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7168 if ${lt_cv_prog_gnu_ld+:} false; then :
7169 $as_echo_n "(cached) " >&6
7171 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7172 case `$LD -v 2>&1 </dev/null` in
7173 *GNU* | *'with BFD'*)
7174 lt_cv_prog_gnu_ld=yes
7177 lt_cv_prog_gnu_ld=no
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7182 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7183 with_gnu_ld=$lt_cv_prog_gnu_ld
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7194 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7195 if ${lt_cv_path_NM+:} false; then :
7196 $as_echo_n "(cached) " >&6
7198 if test -n "$NM"; then
7199 # Let the user override the test.
7202 lt_nm_to_check=${ac_tool_prefix}nm
7203 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7204 lt_nm_to_check="$lt_nm_to_check nm"
7206 for lt_tmp_nm in $lt_nm_to_check; do
7207 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7208 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7210 test -z "$ac_dir" && ac_dir=.
7211 tmp_nm=$ac_dir/$lt_tmp_nm
7212 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7213 # Check to see if the nm accepts a BSD-compat flag.
7214 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7215 # nm: unknown option "B" ignored
7216 # Tru64's nm complains that /dev/null is an invalid object file
7217 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7219 mingw*) lt_bad_file=conftest.nm/nofile ;;
7220 *) lt_bad_file=/dev/null ;;
7222 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7223 *$lt_bad_file* | *'Invalid file or object type'*)
7224 lt_cv_path_NM="$tmp_nm -B"
7228 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7230 lt_cv_path_NM="$tmp_nm -p"
7234 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7235 continue # so that we can try to find one that supports BSD flags
7244 : ${lt_cv_path_NM=no}
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7248 $as_echo "$lt_cv_path_NM" >&6; }
7249 if test no != "$lt_cv_path_NM"; then
7252 # Didn't find any BSD compatible name lister, look for dumpbin.
7253 if test -n "$DUMPBIN"; then :
7254 # Let the user override the test.
7256 if test -n "$ac_tool_prefix"; then
7257 for ac_prog in dumpbin "link -dump"
7259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if ${ac_cv_prog_DUMPBIN+:} false; then :
7264 $as_echo_n "(cached) " >&6
7266 if test -n "$DUMPBIN"; then
7267 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 DUMPBIN=$ac_cv_prog_DUMPBIN
7287 if test -n "$DUMPBIN"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7289 $as_echo "$DUMPBIN" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7296 test -n "$DUMPBIN" && break
7299 if test -z "$DUMPBIN"; then
7300 ac_ct_DUMPBIN=$DUMPBIN
7301 for ac_prog in dumpbin "link -dump"
7303 # Extract the first word of "$ac_prog", so it can be a program name with args.
7304 set dummy $ac_prog; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7308 $as_echo_n "(cached) " >&6
7310 if test -n "$ac_ct_DUMPBIN"; then
7311 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7331 if test -n "$ac_ct_DUMPBIN"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7333 $as_echo "$ac_ct_DUMPBIN" >&6; }
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7340 test -n "$ac_ct_DUMPBIN" && break
7343 if test "x$ac_ct_DUMPBIN" = x; then
7346 case $cross_compiling:$ac_tool_warned in
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7350 ac_tool_warned=yes ;;
7352 DUMPBIN=$ac_ct_DUMPBIN
7356 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7358 DUMPBIN="$DUMPBIN -symbols -headers"
7366 if test : != "$DUMPBIN"; then
7370 test -z "$NM" && NM=nm
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7378 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7379 if ${lt_cv_nm_interface+:} false; then :
7380 $as_echo_n "(cached) " >&6
7382 lt_cv_nm_interface="BSD nm"
7383 echo "int some_variable = 0;" > conftest.$ac_ext
7384 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7385 (eval "$ac_compile" 2>conftest.err)
7386 cat conftest.err >&5
7387 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7388 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7389 cat conftest.err >&5
7390 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7391 cat conftest.out >&5
7392 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7393 lt_cv_nm_interface="MS dumpbin"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7398 $as_echo "$lt_cv_nm_interface" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7401 $as_echo_n "checking whether ln -s works... " >&6; }
7403 if test "$LN_S" = "ln -s"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7405 $as_echo "yes" >&6; }
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7408 $as_echo "no, using $LN_S" >&6; }
7411 # find the maximum length of command line arguments
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7413 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7414 if ${lt_cv_sys_max_cmd_len+:} false; then :
7415 $as_echo_n "(cached) " >&6
7422 # On DJGPP, this test can blow up pretty badly due to problems in libc
7423 # (any single argument exceeding 2000 bytes causes a buffer overrun
7424 # during glob expansion). Even if it were fixed, the result of this
7425 # check would be larger than it should be.
7426 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7430 # Under GNU Hurd, this test is not required because there is
7431 # no limit to the length of command line arguments.
7432 # Libtool will interpret -1 as no limit whatsoever
7433 lt_cv_sys_max_cmd_len=-1;
7436 cygwin* | mingw* | cegcc*)
7437 # On Win9x/ME, this test blows up -- it succeeds, but takes
7438 # about 5 minutes as the teststring grows exponentially.
7439 # Worse, since 9x/ME are not pre-emptively multitasking,
7440 # you end up with a "frozen" computer, even though with patience
7441 # the test eventually succeeds (with a max line length of 256k).
7442 # Instead, let's just punt: use the minimum linelength reported by
7443 # all of the supported platforms: 8192 (on NT/2K/XP).
7444 lt_cv_sys_max_cmd_len=8192;
7448 # On MiNT this can take a long time and run out of memory.
7449 lt_cv_sys_max_cmd_len=8192;
7453 # On AmigaOS with pdksh, this test takes hours, literally.
7454 # So we just punt and use a minimum line length of 8192.
7455 lt_cv_sys_max_cmd_len=8192;
7458 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7459 # This has been around since 386BSD, at least. Likely further.
7460 if test -x /sbin/sysctl; then
7461 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7462 elif test -x /usr/sbin/sysctl; then
7463 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7465 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7467 # And add a safety zone
7468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7473 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7474 lt_cv_sys_max_cmd_len=196608
7478 # The test takes a long time on OS/2.
7479 lt_cv_sys_max_cmd_len=8192
7483 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7484 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7485 # nice to cause kernel panics so lets avoid the loop below.
7486 # First set a reasonable default.
7487 lt_cv_sys_max_cmd_len=16384
7489 if test -x /sbin/sysconfig; then
7490 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7491 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7496 lt_cv_sys_max_cmd_len=102400
7498 sysv5* | sco5v6* | sysv4.2uw2*)
7499 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7500 if test -n "$kargmax"; then
7501 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7503 lt_cv_sys_max_cmd_len=32768
7507 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7508 if test -n "$lt_cv_sys_max_cmd_len" && \
7509 test undefined != "$lt_cv_sys_max_cmd_len"; then
7510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7513 # Make teststring a little bigger before we do anything with it.
7514 # a 1K string should be a reasonable start.
7515 for i in 1 2 3 4 5 6 7 8; do
7516 teststring=$teststring$teststring
7518 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7519 # If test is not a shell built-in, we'll probably end up computing a
7520 # maximum length that is only half of the actual maximum length, but
7522 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7523 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7524 test 17 != "$i" # 1/2 MB should be enough
7527 teststring=$teststring$teststring
7529 # Only check the string length outside the loop.
7530 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7532 # Add a significant safety factor because C++ compilers can tack on
7533 # massive amounts of additional arguments before passing them to the
7534 # linker. It appears as though 1/2 is a usable value.
7535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7542 if test -n "$lt_cv_sys_max_cmd_len"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7544 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7547 $as_echo "none" >&6; }
7549 max_cmd_len=$lt_cv_sys_max_cmd_len
7560 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7570 # test EBCDIC or ASCII
7571 case `echo X|tr X '\101'` in
7572 A) # ASCII based system
7573 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7574 lt_SP2NL='tr \040 \012'
7575 lt_NL2SP='tr \015\012 \040\040'
7577 *) # EBCDIC based system
7578 lt_SP2NL='tr \100 \n'
7579 lt_NL2SP='tr \r\n \100\100'
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7592 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7593 if ${lt_cv_to_host_file_cmd+:} false; then :
7594 $as_echo_n "(cached) " >&6
7599 *-*-mingw* ) # actually msys
7600 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7603 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7605 * ) # otherwise, assume *nix
7606 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7612 *-*-mingw* ) # actually msys
7613 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7616 lt_cv_to_host_file_cmd=func_convert_file_noop
7618 * ) # otherwise, assume *nix
7619 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7623 * ) # unhandled hosts (and "normal" native builds)
7624 lt_cv_to_host_file_cmd=func_convert_file_noop
7630 to_host_file_cmd=$lt_cv_to_host_file_cmd
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7632 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7639 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7640 if ${lt_cv_to_tool_file_cmd+:} false; then :
7641 $as_echo_n "(cached) " >&6
7643 #assume ordinary cross tools, or native build.
7644 lt_cv_to_tool_file_cmd=func_convert_file_noop
7648 *-*-mingw* ) # actually msys
7649 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7657 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7659 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7666 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7667 if ${lt_cv_ld_reload_flag+:} false; then :
7668 $as_echo_n "(cached) " >&6
7670 lt_cv_ld_reload_flag='-r'
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7673 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7674 reload_flag=$lt_cv_ld_reload_flag
7675 case $reload_flag in
7677 *) reload_flag=" $reload_flag" ;;
7679 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7681 cygwin* | mingw* | pw32* | cegcc*)
7682 if test yes != "$GCC"; then
7687 if test yes = "$GCC"; then
7688 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7690 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_prog_OBJDUMP+:} false; then :
7709 $as_echo_n "(cached) " >&6
7711 if test -n "$OBJDUMP"; then
7712 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 OBJDUMP=$ac_cv_prog_OBJDUMP
7732 if test -n "$OBJDUMP"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7734 $as_echo "$OBJDUMP" >&6; }
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7742 if test -z "$ac_cv_prog_OBJDUMP"; then
7743 ac_ct_OBJDUMP=$OBJDUMP
7744 # Extract the first word of "objdump", so it can be a program name with args.
7745 set dummy objdump; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7749 $as_echo_n "(cached) " >&6
7751 if test -n "$ac_ct_OBJDUMP"; then
7752 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7761 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7772 if test -n "$ac_ct_OBJDUMP"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7774 $as_echo "$ac_ct_OBJDUMP" >&6; }
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7780 if test "x$ac_ct_OBJDUMP" = x; then
7783 case $cross_compiling:$ac_tool_warned in
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned=yes ;;
7789 OBJDUMP=$ac_ct_OBJDUMP
7792 OBJDUMP="$ac_cv_prog_OBJDUMP"
7795 test -z "$OBJDUMP" && OBJDUMP=objdump
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7806 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7807 if ${lt_cv_deplibs_check_method+:} false; then :
7808 $as_echo_n "(cached) " >&6
7810 lt_cv_file_magic_cmd='$MAGIC_CMD'
7811 lt_cv_file_magic_test_file=
7812 lt_cv_deplibs_check_method='unknown'
7813 # Need to set the preceding variable on all platforms that support
7814 # interlibrary dependencies.
7815 # 'none' -- dependencies not supported.
7816 # 'unknown' -- same as none, but documents that we really don't know.
7817 # 'pass_all' -- all dependencies passed with no checks.
7818 # 'test_compile' -- check by making test program.
7819 # 'file_magic [[regex]]' -- check by looking for files in library path
7820 # that responds to the $file_magic_cmd with a given extended regex.
7821 # If you have 'file' or equivalent on your system and you're not sure
7822 # whether 'pass_all' will *always* work, you probably want this one.
7826 lt_cv_deplibs_check_method=pass_all
7830 lt_cv_deplibs_check_method=pass_all
7834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7835 lt_cv_file_magic_cmd='/usr/bin/file -L'
7836 lt_cv_file_magic_test_file=/shlib/libc.so
7840 # func_win32_libid is a shell function defined in ltmain.sh
7841 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7842 lt_cv_file_magic_cmd='func_win32_libid'
7846 # Base MSYS/MinGW do not provide the 'file' command needed by
7847 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7848 # unless we find 'file', for example because we are cross-compiling.
7849 if ( file / ) >/dev/null 2>&1; then
7850 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7851 lt_cv_file_magic_cmd='func_win32_libid'
7853 # Keep this pattern in sync with the one in func_win32_libid.
7854 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7855 lt_cv_file_magic_cmd='$OBJDUMP -f'
7860 # use the weaker test based on 'objdump'. See mingw*.
7861 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7862 lt_cv_file_magic_cmd='$OBJDUMP -f'
7865 darwin* | rhapsody*)
7866 lt_cv_deplibs_check_method=pass_all
7869 freebsd* | dragonfly*)
7870 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7873 # Not sure whether the presence of OpenBSD here was a mistake.
7874 # Let's accept both of them until this is cleared up.
7875 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7876 lt_cv_file_magic_cmd=/usr/bin/file
7877 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7881 lt_cv_deplibs_check_method=pass_all
7886 lt_cv_deplibs_check_method=pass_all
7889 hpux10.20* | hpux11*)
7890 lt_cv_file_magic_cmd=/usr/bin/file
7893 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7894 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7897 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]'
7898 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7901 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7902 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7908 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7909 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7912 irix5* | irix6* | nonstopux*)
7914 *-32|*"-32 ") libmagic=32-bit;;
7915 *-n32|*"-n32 ") libmagic=N32;;
7916 *-64|*"-64 ") libmagic=64-bit;;
7917 *) libmagic=never-match;;
7919 lt_cv_deplibs_check_method=pass_all
7922 # This must be glibc/ELF.
7923 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7924 lt_cv_deplibs_check_method=pass_all
7928 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7937 lt_cv_file_magic_cmd=/usr/bin/file
7938 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7942 lt_cv_deplibs_check_method=pass_all
7946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7953 osf3* | osf4* | osf5*)
7954 lt_cv_deplibs_check_method=pass_all
7958 lt_cv_deplibs_check_method=pass_all
7962 lt_cv_deplibs_check_method=pass_all
7965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7966 lt_cv_deplibs_check_method=pass_all
7970 case $host_vendor in
7972 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]'
7973 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7976 lt_cv_deplibs_check_method=pass_all
7979 lt_cv_file_magic_cmd='/bin/file'
7980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7983 lt_cv_file_magic_cmd='/bin/file'
7984 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7985 lt_cv_file_magic_test_file=/lib/libc.so
7988 lt_cv_deplibs_check_method=pass_all
7991 lt_cv_deplibs_check_method=pass_all
7997 lt_cv_deplibs_check_method=pass_all
8000 lt_cv_deplibs_check_method=pass_all
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8006 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8010 if test "$build" = "$host"; then
8013 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8016 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8022 file_magic_cmd=$lt_cv_file_magic_cmd
8023 deplibs_check_method=$lt_cv_deplibs_check_method
8024 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8047 if test -n "$ac_tool_prefix"; then
8048 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8049 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if ${ac_cv_prog_DLLTOOL+:} false; then :
8053 $as_echo_n "(cached) " >&6
8055 if test -n "$DLLTOOL"; then
8056 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8065 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 DLLTOOL=$ac_cv_prog_DLLTOOL
8076 if test -n "$DLLTOOL"; then
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8078 $as_echo "$DLLTOOL" >&6; }
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8086 if test -z "$ac_cv_prog_DLLTOOL"; then
8087 ac_ct_DLLTOOL=$DLLTOOL
8088 # Extract the first word of "dlltool", so it can be a program name with args.
8089 set dummy dlltool; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8093 $as_echo_n "(cached) " >&6
8095 if test -n "$ac_ct_DLLTOOL"; then
8096 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8105 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8116 if test -n "$ac_ct_DLLTOOL"; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8118 $as_echo "$ac_ct_DLLTOOL" >&6; }
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }
8124 if test "x$ac_ct_DLLTOOL" = x; then
8127 case $cross_compiling:$ac_tool_warned in
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8131 ac_tool_warned=yes ;;
8133 DLLTOOL=$ac_ct_DLLTOOL
8136 DLLTOOL="$ac_cv_prog_DLLTOOL"
8139 test -z "$DLLTOOL" && DLLTOOL=dlltool
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8151 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8152 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8153 $as_echo_n "(cached) " >&6
8155 lt_cv_sharedlib_from_linklib_cmd='unknown'
8158 cygwin* | mingw* | pw32* | cegcc*)
8159 # two different shell functions defined in ltmain.sh;
8160 # decide which one to use based on capabilities of $DLLTOOL
8161 case `$DLLTOOL --help 2>&1` in
8162 *--identify-strict*)
8163 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8166 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8171 # fallback: assume linklib IS sharedlib
8172 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8178 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8179 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8180 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8188 if test -n "$ac_tool_prefix"; then
8191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if ${ac_cv_prog_AR+:} false; then :
8196 $as_echo_n "(cached) " >&6
8198 if test -n "$AR"; then
8199 ac_cv_prog_AR="$AR" # Let the user override the test.
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 if test -n "$AR"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8221 $as_echo "$AR" >&6; }
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8228 test -n "$AR" && break
8231 if test -z "$AR"; then
8235 # Extract the first word of "$ac_prog", so it can be a program name with args.
8236 set dummy $ac_prog; ac_word=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8240 $as_echo_n "(cached) " >&6
8242 if test -n "$ac_ct_AR"; then
8243 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 test -z "$as_dir" && as_dir=.
8250 for ac_exec_ext in '' $ac_executable_extensions; do
8251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8252 ac_cv_prog_ac_ct_AR="$ac_prog"
8253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8263 if test -n "$ac_ct_AR"; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8265 $as_echo "$ac_ct_AR" >&6; }
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8272 test -n "$ac_ct_AR" && break
8275 if test "x$ac_ct_AR" = x; then
8278 case $cross_compiling:$ac_tool_warned in
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8282 ac_tool_warned=yes ;;
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8302 $as_echo_n "checking for archiver @FILE support... " >&6; }
8303 if ${lt_cv_ar_at_file+:} false; then :
8304 $as_echo_n "(cached) " >&6
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8318 if ac_fn_c_try_compile "$LINENO"; then :
8319 echo conftest.$ac_objext > conftest.lst
8320 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8322 (eval $lt_ar_try) 2>&5
8324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8325 test $ac_status = 0; }
8326 if test 0 -eq "$ac_status"; then
8327 # Ensure the archiver fails upon bogus file names.
8328 rm -f conftest.$ac_objext libconftest.a
8329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8330 (eval $lt_ar_try) 2>&5
8332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8333 test $ac_status = 0; }
8334 if test 0 -ne "$ac_status"; then
8338 rm -f conftest.* libconftest.a
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8345 $as_echo "$lt_cv_ar_at_file" >&6; }
8347 if test no = "$lt_cv_ar_at_file"; then
8350 archiver_list_spec=$lt_cv_ar_at_file
8359 if test -n "$ac_tool_prefix"; then
8360 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8361 set dummy ${ac_tool_prefix}strip; ac_word=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if ${ac_cv_prog_STRIP+:} false; then :
8365 $as_echo_n "(cached) " >&6
8367 if test -n "$STRIP"; then
8368 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8377 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 STRIP=$ac_cv_prog_STRIP
8388 if test -n "$STRIP"; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8390 $as_echo "$STRIP" >&6; }
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8398 if test -z "$ac_cv_prog_STRIP"; then
8400 # Extract the first word of "strip", so it can be a program name with args.
8401 set dummy strip; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8405 $as_echo_n "(cached) " >&6
8407 if test -n "$ac_ct_STRIP"; then
8408 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417 ac_cv_prog_ac_ct_STRIP="strip"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8428 if test -n "$ac_ct_STRIP"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8430 $as_echo "$ac_ct_STRIP" >&6; }
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8436 if test "x$ac_ct_STRIP" = x; then
8439 case $cross_compiling:$ac_tool_warned in
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8443 ac_tool_warned=yes ;;
8448 STRIP="$ac_cv_prog_STRIP"
8451 test -z "$STRIP" && STRIP=:
8458 if test -n "$ac_tool_prefix"; then
8459 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_prog_RANLIB+:} false; then :
8464 $as_echo_n "(cached) " >&6
8466 if test -n "$RANLIB"; then
8467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473 test -z "$as_dir" && as_dir=.
8474 for ac_exec_ext in '' $ac_executable_extensions; do
8475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8476 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 RANLIB=$ac_cv_prog_RANLIB
8487 if test -n "$RANLIB"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8489 $as_echo "$RANLIB" >&6; }
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8497 if test -z "$ac_cv_prog_RANLIB"; then
8498 ac_ct_RANLIB=$RANLIB
8499 # Extract the first word of "ranlib", so it can be a program name with args.
8500 set dummy ranlib; ac_word=$2
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502 $as_echo_n "checking for $ac_word... " >&6; }
8503 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8504 $as_echo_n "(cached) " >&6
8506 if test -n "$ac_ct_RANLIB"; then
8507 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516 ac_cv_prog_ac_ct_RANLIB="ranlib"
8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8527 if test -n "$ac_ct_RANLIB"; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8529 $as_echo "$ac_ct_RANLIB" >&6; }
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8535 if test "x$ac_ct_RANLIB" = x; then
8538 case $cross_compiling:$ac_tool_warned in
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8542 ac_tool_warned=yes ;;
8544 RANLIB=$ac_ct_RANLIB
8547 RANLIB="$ac_cv_prog_RANLIB"
8550 test -z "$RANLIB" && RANLIB=:
8557 # Determine commands to create old-style static archives.
8558 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8559 old_postinstall_cmds='chmod 644 $oldlib'
8560 old_postuninstall_cmds=
8562 if test -n "$RANLIB"; then
8565 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8568 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8571 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8576 lock_old_archive_extraction=yes ;;
8578 lock_old_archive_extraction=no ;;
8601 for ac_prog in gawk mawk nawk awk
8603 # Extract the first word of "$ac_prog", so it can be a program name with args.
8604 set dummy $ac_prog; ac_word=$2
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606 $as_echo_n "checking for $ac_word... " >&6; }
8607 if ${ac_cv_prog_AWK+:} false; then :
8608 $as_echo_n "(cached) " >&6
8610 if test -n "$AWK"; then
8611 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617 test -z "$as_dir" && as_dir=.
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8620 ac_cv_prog_AWK="$ac_prog"
8621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 if test -n "$AWK"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8633 $as_echo "$AWK" >&6; }
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8640 test -n "$AWK" && break
8661 # If no C compiler was specified, use CC.
8664 # If no C compiler flags were specified, use CFLAGS.
8665 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8667 # Allow CC to be a program name with arguments.
8671 # Check for command to grab the raw symbol name followed by C symbol from nm.
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8673 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8674 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8675 $as_echo_n "(cached) " >&6
8678 # These are sane defaults that work on at least a few old systems.
8679 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8681 # Character class describing NM global symbol codes.
8682 symcode='[BCDEGRST]'
8684 # Regexp to match symbols that can be accessed directly from C.
8685 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8687 # Define system-specific variables.
8692 cygwin* | mingw* | pw32* | cegcc*)
8693 symcode='[ABCDGISTW]'
8696 if test ia64 = "$host_cpu"; then
8697 symcode='[ABCDEGRST]'
8701 symcode='[BCDEGRST]'
8704 symcode='[BCDEGQRST]'
8715 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8723 # If we're using GNU nm, then use its standard symbol codes.
8724 case `$NM -V 2>&1` in
8725 *GNU* | *'with BFD'*)
8726 symcode='[ABCDGIRSTW]' ;;
8729 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8730 # Gets list of data symbols to import.
8731 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8732 # Adjust the below global symbol transforms to fixup imported variables.
8733 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8734 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8735 lt_c_name_lib_hook="\
8736 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8737 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8739 # Disable hooks by default.
8740 lt_cv_sys_global_symbol_to_import=
8746 # Transform an extracted symbol line into a proper C declaration.
8747 # Some systems (esp. on ia64) link data and code symbols differently,
8748 # so use this general approach.
8749 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8751 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8752 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8754 # Transform an extracted symbol line into symbol name and symbol address
8755 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8757 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8758 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8760 # Transform an extracted symbol line into symbol name with lib prefix and
8762 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8763 $lt_c_name_lib_hook\
8764 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8765 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8766 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8768 # Handle CRLF in mingw tool chain
8772 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8776 # Try without a prefix underscore, then with it.
8777 for ac_symprfx in "" "_"; do
8779 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8780 symxfrm="\\1 $ac_symprfx\\2 \\2"
8782 # Write the raw and C identifiers.
8783 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8784 # Fake it for dumpbin and say T for any non-static function,
8785 # D for any global variable and I for any imported variable.
8786 # Also find C++ and __fastcall symbols from MSVC++,
8787 # which start with @ or ?.
8788 lt_cv_sys_global_symbol_pipe="$AWK '"\
8789 " {last_section=section; section=\$ 3};"\
8790 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8791 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8792 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8793 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8794 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8795 " \$ 0!~/External *\|/{next};"\
8796 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8797 " {if(hide[section]) next};"\
8798 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8799 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8800 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8801 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8802 " ' prfx=^$ac_symprfx"
8804 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8806 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8808 # Check to see that the pipe works correctly.
8812 cat > conftest.$ac_ext <<_LT_EOF
8817 void nm_test_func(void);
8818 void nm_test_func(void){}
8822 int main(){nm_test_var='a';nm_test_func();return(0);}
8825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8826 (eval $ac_compile) 2>&5
8828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8829 test $ac_status = 0; }; then
8830 # Now try to grab the symbols.
8832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8833 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8836 test $ac_status = 0; } && test -s "$nlist"; then
8837 # Try sorting and uniquifying the output.
8838 if sort "$nlist" | uniq > "$nlist"T; then
8839 mv -f "$nlist"T "$nlist"
8844 # Make sure that we snagged all the symbols we need.
8845 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8846 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8847 cat <<_LT_EOF > conftest.$ac_ext
8848 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8849 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8850 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8851 relocations are performed -- see ld's documentation on pseudo-relocs. */
8852 # define LT_DLSYM_CONST
8853 #elif defined __osf__
8854 /* This system does not cope well with relocations in const data. */
8855 # define LT_DLSYM_CONST
8857 # define LT_DLSYM_CONST const
8865 # Now generate the symbol file.
8866 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8868 cat <<_LT_EOF >> conftest.$ac_ext
8870 /* The mapping between symbol names and symbols. */
8871 LT_DLSYM_CONST struct {
8875 lt__PROGRAM__LTX_preloaded_symbols[] =
8877 { "@PROGRAM@", (void *) 0 },
8879 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8880 cat <<\_LT_EOF >> conftest.$ac_ext
8884 /* This works around a problem in FreeBSD linker */
8885 #ifdef FREEBSD_WORKAROUND
8886 static const void *lt_preloaded_setup() {
8887 return lt__PROGRAM__LTX_preloaded_symbols;
8895 # Now try linking the two files.
8896 mv conftest.$ac_objext conftstm.$ac_objext
8897 lt_globsym_save_LIBS=$LIBS
8898 lt_globsym_save_CFLAGS=$CFLAGS
8899 LIBS=conftstm.$ac_objext
8900 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8902 (eval $ac_link) 2>&5
8904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8905 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8908 LIBS=$lt_globsym_save_LIBS
8909 CFLAGS=$lt_globsym_save_CFLAGS
8911 echo "cannot find nm_test_func in $nlist" >&5
8914 echo "cannot find nm_test_var in $nlist" >&5
8917 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8920 echo "$progname: failed program was:" >&5
8921 cat conftest.$ac_ext >&5
8923 rm -rf conftest* conftst*
8925 # Do not use the global_symbol_pipe unless it works.
8926 if test yes = "$pipe_works"; then
8929 lt_cv_sys_global_symbol_pipe=
8935 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8936 lt_cv_sys_global_symbol_to_cdecl=
8938 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8940 $as_echo "failed" >&6; }
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8943 $as_echo "ok" >&6; }
8946 # Response file support.
8947 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8948 nm_file_list_spec='@'
8949 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8950 nm_file_list_spec='@'
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8990 $as_echo_n "checking for sysroot... " >&6; }
8992 # Check whether --with-sysroot was given.
8993 if test "${with_sysroot+set}" = set; then :
8994 withval=$with_sysroot;
9001 case $with_sysroot in #(
9003 if test yes = "$GCC"; then
9004 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9008 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9014 $as_echo "$with_sysroot" >&6; }
9015 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9020 $as_echo "${lt_sysroot:-no}" >&6; }
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9027 $as_echo_n "checking for a working dd... " >&6; }
9028 if ${ac_cv_path_lt_DD+:} false; then :
9029 $as_echo_n "(cached) " >&6
9031 printf 0123456789abcdef0123456789abcdef >conftest.i
9032 cat conftest.i conftest.i >conftest2.i
9034 if test -z "$lt_DD"; then
9035 ac_path_lt_DD_found=false
9036 # Loop through the user's path and test for each of PROGNAME-LIST
9037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041 test -z "$as_dir" && as_dir=.
9042 for ac_prog in dd; do
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9045 as_fn_executable_p "$ac_path_lt_DD" || continue
9046 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9047 cmp -s conftest.i conftest.out \
9048 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9050 $ac_path_lt_DD_found && break 3
9055 if test -z "$ac_cv_path_lt_DD"; then
9059 ac_cv_path_lt_DD=$lt_DD
9062 rm -f conftest.i conftest2.i conftest.out
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9065 $as_echo "$ac_cv_path_lt_DD" >&6; }
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9069 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9070 if ${lt_cv_truncate_bin+:} false; then :
9071 $as_echo_n "(cached) " >&6
9073 printf 0123456789abcdef0123456789abcdef >conftest.i
9074 cat conftest.i conftest.i >conftest2.i
9076 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9077 cmp -s conftest.i conftest.out \
9078 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9080 rm -f conftest.i conftest2.i conftest.out
9081 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9084 $as_echo "$lt_cv_truncate_bin" >&6; }
9092 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9095 for cc_temp in $*""; do
9097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9103 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9106 # Check whether --enable-libtool-lock was given.
9107 if test "${enable_libtool_lock+set}" = set; then :
9108 enableval=$enable_libtool_lock;
9111 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9113 # Some flags need to be propagated to the compiler or linker for good
9117 # Find out what ABI is being produced by ac_compile, and set mode
9118 # options accordingly.
9119 echo 'int i;' > conftest.$ac_ext
9120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9121 (eval $ac_compile) 2>&5
9123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9124 test $ac_status = 0; }; then
9125 case `/usr/bin/file conftest.$ac_objext` in
9137 # Find out what ABI is being produced by ac_compile, and set linker
9138 # options accordingly.
9139 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9141 (eval $ac_compile) 2>&5
9143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9144 test $ac_status = 0; }; then
9145 if test yes = "$lt_cv_prog_gnu_ld"; then
9146 case `/usr/bin/file conftest.$ac_objext` in
9148 LD="${LD-ld} -melf32bsmip"
9151 LD="${LD-ld} -melf32bmipn32"
9154 LD="${LD-ld} -melf64bmip"
9158 case `/usr/bin/file conftest.$ac_objext` in
9175 # Find out what ABI is being produced by ac_compile, and set linker
9176 # options accordingly.
9177 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9179 (eval $ac_compile) 2>&5
9181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9182 test $ac_status = 0; }; then
9184 case `/usr/bin/file conftest.$ac_objext` in
9192 case `/usr/bin/file conftest.$ac_objext` in
9194 emul="${emul}btsmip"
9197 emul="${emul}ltsmip"
9200 case `/usr/bin/file conftest.$ac_objext` in
9205 LD="${LD-ld} -m $emul"
9210 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9211 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9212 # Find out what ABI is being produced by ac_compile, and set linker
9213 # options accordingly. Note that the listed cases only cover the
9214 # situations where additional linker options are needed (such as when
9215 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9216 # vice versa); the common cases where no linker options are needed do
9217 # not appear in the list.
9218 echo 'int i;' > conftest.$ac_ext
9219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9220 (eval $ac_compile) 2>&5
9222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9223 test $ac_status = 0; }; then
9224 case `/usr/bin/file conftest.o` in
9227 x86_64-*kfreebsd*-gnu)
9228 LD="${LD-ld} -m elf_i386_fbsd"
9231 case `/usr/bin/file conftest.o` in
9233 LD="${LD-ld} -m elf32_x86_64"
9236 LD="${LD-ld} -m elf_i386"
9240 powerpc64le-*linux*)
9241 LD="${LD-ld} -m elf32lppclinux"
9244 LD="${LD-ld} -m elf32ppclinux"
9247 LD="${LD-ld} -m elf_s390"
9250 LD="${LD-ld} -m elf32_sparc"
9256 x86_64-*kfreebsd*-gnu)
9257 LD="${LD-ld} -m elf_x86_64_fbsd"
9260 LD="${LD-ld} -m elf_x86_64"
9263 LD="${LD-ld} -m elf64lppc"
9266 LD="${LD-ld} -m elf64ppc"
9268 s390*-*linux*|s390*-*tpf*)
9269 LD="${LD-ld} -m elf64_s390"
9272 LD="${LD-ld} -m elf64_sparc"
9282 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9284 CFLAGS="$CFLAGS -belf"
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9286 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9287 if ${lt_cv_cc_needs_belf+:} false; then :
9288 $as_echo_n "(cached) " >&6
9291 ac_cpp='$CPP $CPPFLAGS'
9292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9307 if ac_fn_c_try_link "$LINENO"; then :
9308 lt_cv_cc_needs_belf=yes
9310 lt_cv_cc_needs_belf=no
9312 rm -f core conftest.err conftest.$ac_objext \
9313 conftest$ac_exeext conftest.$ac_ext
9315 ac_cpp='$CPP $CPPFLAGS'
9316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9322 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9323 if test yes != "$lt_cv_cc_needs_belf"; then
9324 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9329 # Find out what ABI is being produced by ac_compile, and set linker
9330 # options accordingly.
9331 echo 'int i;' > conftest.$ac_ext
9332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9333 (eval $ac_compile) 2>&5
9335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9336 test $ac_status = 0; }; then
9337 case `/usr/bin/file conftest.o` in
9339 case $lt_cv_prog_gnu_ld in
9342 i?86-*-solaris*|x86_64-*-solaris*)
9343 LD="${LD-ld} -m elf_x86_64"
9346 LD="${LD-ld} -m elf64_sparc"
9349 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9350 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9355 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9367 need_locks=$enable_libtool_lock
9369 if test -n "$ac_tool_prefix"; then
9370 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9371 set dummy ${ac_tool_prefix}mt; ac_word=$2
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373 $as_echo_n "checking for $ac_word... " >&6; }
9374 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9375 $as_echo_n "(cached) " >&6
9377 if test -n "$MANIFEST_TOOL"; then
9378 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 test -z "$as_dir" && as_dir=.
9385 for ac_exec_ext in '' $ac_executable_extensions; do
9386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9387 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9398 if test -n "$MANIFEST_TOOL"; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9400 $as_echo "$MANIFEST_TOOL" >&6; }
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403 $as_echo "no" >&6; }
9408 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9409 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9410 # Extract the first word of "mt", so it can be a program name with args.
9411 set dummy mt; ac_word=$2
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413 $as_echo_n "checking for $ac_word... " >&6; }
9414 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9415 $as_echo_n "(cached) " >&6
9417 if test -n "$ac_ct_MANIFEST_TOOL"; then
9418 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
9426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9427 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9438 if test -n "$ac_ct_MANIFEST_TOOL"; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9440 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9446 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9449 case $cross_compiling:$ac_tool_warned in
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9453 ac_tool_warned=yes ;;
9455 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9458 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9461 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9463 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9464 if ${lt_cv_path_mainfest_tool+:} false; then :
9465 $as_echo_n "(cached) " >&6
9467 lt_cv_path_mainfest_tool=no
9468 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9469 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9470 cat conftest.err >&5
9471 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9472 lt_cv_path_mainfest_tool=yes
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9477 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9478 if test yes != "$lt_cv_path_mainfest_tool"; then
9488 rhapsody* | darwin*)
9489 if test -n "$ac_tool_prefix"; then
9490 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9491 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493 $as_echo_n "checking for $ac_word... " >&6; }
9494 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9495 $as_echo_n "(cached) " >&6
9497 if test -n "$DSYMUTIL"; then
9498 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504 test -z "$as_dir" && as_dir=.
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9507 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9517 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9518 if test -n "$DSYMUTIL"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9520 $as_echo "$DSYMUTIL" >&6; }
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9528 if test -z "$ac_cv_prog_DSYMUTIL"; then
9529 ac_ct_DSYMUTIL=$DSYMUTIL
9530 # Extract the first word of "dsymutil", so it can be a program name with args.
9531 set dummy dsymutil; ac_word=$2
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533 $as_echo_n "checking for $ac_word... " >&6; }
9534 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9535 $as_echo_n "(cached) " >&6
9537 if test -n "$ac_ct_DSYMUTIL"; then
9538 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9547 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9557 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9558 if test -n "$ac_ct_DSYMUTIL"; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9560 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9566 if test "x$ac_ct_DSYMUTIL" = x; then
9569 case $cross_compiling:$ac_tool_warned in
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9573 ac_tool_warned=yes ;;
9575 DSYMUTIL=$ac_ct_DSYMUTIL
9578 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9581 if test -n "$ac_tool_prefix"; then
9582 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9583 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 $as_echo_n "checking for $ac_word... " >&6; }
9586 if ${ac_cv_prog_NMEDIT+:} false; then :
9587 $as_echo_n "(cached) " >&6
9589 if test -n "$NMEDIT"; then
9590 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 test -z "$as_dir" && as_dir=.
9597 for ac_exec_ext in '' $ac_executable_extensions; do
9598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9599 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9609 NMEDIT=$ac_cv_prog_NMEDIT
9610 if test -n "$NMEDIT"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9612 $as_echo "$NMEDIT" >&6; }
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9620 if test -z "$ac_cv_prog_NMEDIT"; then
9621 ac_ct_NMEDIT=$NMEDIT
9622 # Extract the first word of "nmedit", so it can be a program name with args.
9623 set dummy nmedit; ac_word=$2
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625 $as_echo_n "checking for $ac_word... " >&6; }
9626 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9627 $as_echo_n "(cached) " >&6
9629 if test -n "$ac_ct_NMEDIT"; then
9630 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636 test -z "$as_dir" && as_dir=.
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9639 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9650 if test -n "$ac_ct_NMEDIT"; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9652 $as_echo "$ac_ct_NMEDIT" >&6; }
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9658 if test "x$ac_ct_NMEDIT" = x; then
9661 case $cross_compiling:$ac_tool_warned in
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9665 ac_tool_warned=yes ;;
9667 NMEDIT=$ac_ct_NMEDIT
9670 NMEDIT="$ac_cv_prog_NMEDIT"
9673 if test -n "$ac_tool_prefix"; then
9674 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9675 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if ${ac_cv_prog_LIPO+:} false; then :
9679 $as_echo_n "(cached) " >&6
9681 if test -n "$LIPO"; then
9682 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688 test -z "$as_dir" && as_dir=.
9689 for ac_exec_ext in '' $ac_executable_extensions; do
9690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9691 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9701 LIPO=$ac_cv_prog_LIPO
9702 if test -n "$LIPO"; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9704 $as_echo "$LIPO" >&6; }
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707 $as_echo "no" >&6; }
9712 if test -z "$ac_cv_prog_LIPO"; then
9714 # Extract the first word of "lipo", so it can be a program name with args.
9715 set dummy lipo; ac_word=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9719 $as_echo_n "(cached) " >&6
9721 if test -n "$ac_ct_LIPO"; then
9722 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728 test -z "$as_dir" && as_dir=.
9729 for ac_exec_ext in '' $ac_executable_extensions; do
9730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9731 ac_cv_prog_ac_ct_LIPO="lipo"
9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9741 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9742 if test -n "$ac_ct_LIPO"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9744 $as_echo "$ac_ct_LIPO" >&6; }
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9750 if test "x$ac_ct_LIPO" = x; then
9753 case $cross_compiling:$ac_tool_warned in
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9757 ac_tool_warned=yes ;;
9762 LIPO="$ac_cv_prog_LIPO"
9765 if test -n "$ac_tool_prefix"; then
9766 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9767 set dummy ${ac_tool_prefix}otool; ac_word=$2
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769 $as_echo_n "checking for $ac_word... " >&6; }
9770 if ${ac_cv_prog_OTOOL+:} false; then :
9771 $as_echo_n "(cached) " >&6
9773 if test -n "$OTOOL"; then
9774 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780 test -z "$as_dir" && as_dir=.
9781 for ac_exec_ext in '' $ac_executable_extensions; do
9782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9783 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9793 OTOOL=$ac_cv_prog_OTOOL
9794 if test -n "$OTOOL"; then
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9796 $as_echo "$OTOOL" >&6; }
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799 $as_echo "no" >&6; }
9804 if test -z "$ac_cv_prog_OTOOL"; then
9806 # Extract the first word of "otool", so it can be a program name with args.
9807 set dummy otool; ac_word=$2
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9809 $as_echo_n "checking for $ac_word... " >&6; }
9810 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9811 $as_echo_n "(cached) " >&6
9813 if test -n "$ac_ct_OTOOL"; then
9814 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820 test -z "$as_dir" && as_dir=.
9821 for ac_exec_ext in '' $ac_executable_extensions; do
9822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9823 ac_cv_prog_ac_ct_OTOOL="otool"
9824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9834 if test -n "$ac_ct_OTOOL"; then
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9836 $as_echo "$ac_ct_OTOOL" >&6; }
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839 $as_echo "no" >&6; }
9842 if test "x$ac_ct_OTOOL" = x; then
9845 case $cross_compiling:$ac_tool_warned in
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9849 ac_tool_warned=yes ;;
9854 OTOOL="$ac_cv_prog_OTOOL"
9857 if test -n "$ac_tool_prefix"; then
9858 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9859 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if ${ac_cv_prog_OTOOL64+:} false; then :
9863 $as_echo_n "(cached) " >&6
9865 if test -n "$OTOOL64"; then
9866 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 test -z "$as_dir" && as_dir=.
9873 for ac_exec_ext in '' $ac_executable_extensions; do
9874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9875 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 OTOOL64=$ac_cv_prog_OTOOL64
9886 if test -n "$OTOOL64"; then
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9888 $as_echo "$OTOOL64" >&6; }
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 $as_echo "no" >&6; }
9896 if test -z "$ac_cv_prog_OTOOL64"; then
9897 ac_ct_OTOOL64=$OTOOL64
9898 # Extract the first word of "otool64", so it can be a program name with args.
9899 set dummy otool64; ac_word=$2
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9901 $as_echo_n "checking for $ac_word... " >&6; }
9902 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9903 $as_echo_n "(cached) " >&6
9905 if test -n "$ac_ct_OTOOL64"; then
9906 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912 test -z "$as_dir" && as_dir=.
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9915 ac_cv_prog_ac_ct_OTOOL64="otool64"
9916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9926 if test -n "$ac_ct_OTOOL64"; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9928 $as_echo "$ac_ct_OTOOL64" >&6; }
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931 $as_echo "no" >&6; }
9934 if test "x$ac_ct_OTOOL64" = x; then
9937 case $cross_compiling:$ac_tool_warned in
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9941 ac_tool_warned=yes ;;
9943 OTOOL64=$ac_ct_OTOOL64
9946 OTOOL64="$ac_cv_prog_OTOOL64"
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9976 $as_echo_n "checking for -single_module linker flag... " >&6; }
9977 if ${lt_cv_apple_cc_single_mod+:} false; then :
9978 $as_echo_n "(cached) " >&6
9980 lt_cv_apple_cc_single_mod=no
9981 if test -z "$LT_MULTI_MODULE"; then
9982 # By default we will add the -single_module flag. You can override
9983 # by either setting the environment variable LT_MULTI_MODULE
9984 # non-empty at configure time, or by adding -multi_module to the
9986 rm -rf libconftest.dylib*
9987 echo "int foo(void){return 1;}" > conftest.c
9988 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9989 -dynamiclib -Wl,-single_module conftest.c" >&5
9990 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9991 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9993 # If there is a non-empty error log, and "single_module"
9994 # appears in it, assume the flag caused a linker warning
9995 if test -s conftest.err && $GREP single_module conftest.err; then
9996 cat conftest.err >&5
9997 # Otherwise, if the output was created with a 0 exit code from
9998 # the compiler, it worked.
9999 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10000 lt_cv_apple_cc_single_mod=yes
10002 cat conftest.err >&5
10004 rm -rf libconftest.dylib*
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10009 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10012 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10013 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10014 $as_echo_n "(cached) " >&6
10016 lt_cv_ld_exported_symbols_list=no
10017 save_LDFLAGS=$LDFLAGS
10018 echo "_main" > conftest.sym
10019 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10031 if ac_fn_c_try_link "$LINENO"; then :
10032 lt_cv_ld_exported_symbols_list=yes
10034 lt_cv_ld_exported_symbols_list=no
10036 rm -f core conftest.err conftest.$ac_objext \
10037 conftest$ac_exeext conftest.$ac_ext
10038 LDFLAGS=$save_LDFLAGS
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10042 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10045 $as_echo_n "checking for -force_load linker flag... " >&6; }
10046 if ${lt_cv_ld_force_load+:} false; then :
10047 $as_echo_n "(cached) " >&6
10049 lt_cv_ld_force_load=no
10050 cat > conftest.c << _LT_EOF
10051 int forced_loaded() { return 2;}
10053 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10054 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10055 echo "$AR cru libconftest.a conftest.o" >&5
10056 $AR cru libconftest.a conftest.o 2>&5
10057 echo "$RANLIB libconftest.a" >&5
10058 $RANLIB libconftest.a 2>&5
10059 cat > conftest.c << _LT_EOF
10060 int main() { return 0;}
10062 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10063 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10065 if test -s conftest.err && $GREP force_load conftest.err; then
10066 cat conftest.err >&5
10067 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10068 lt_cv_ld_force_load=yes
10070 cat conftest.err >&5
10072 rm -f conftest.err libconftest.a conftest conftest.c
10073 rm -rf conftest.dSYM
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10077 $as_echo "$lt_cv_ld_force_load" >&6; }
10079 rhapsody* | darwin1.[012])
10080 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10082 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10083 darwin*) # darwin 5.x on
10084 # if running on 10.5 or later, the deployment target defaults
10085 # to the OS version, if on x86, and 10.4, the deployment
10086 # target defaults to 10.4. Don't you love it?
10087 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10088 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10089 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10091 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10093 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10097 if test yes = "$lt_cv_apple_cc_single_mod"; then
10098 _lt_dar_single_mod='$single_module'
10100 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10101 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10103 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10105 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10106 _lt_dsymutil='~$DSYMUTIL $lib || :'
10113 # func_munge_path_list VARIABLE PATH
10114 # -----------------------------------
10115 # VARIABLE is name of variable containing _space_ separated list of
10116 # directories to be munged by the contents of PATH, which is string
10119 # string "DIR[ DIR]" will be prepended to VARIABLE
10121 # string "DIR[ DIR]" will be appended to VARIABLE
10122 # "DIRP[:DIRP]::[DIRA:]DIRA"
10123 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10124 # "DIRA[ DIRA]" will be appended to VARIABLE
10126 # VARIABLE will be replaced by "DIR[ DIR]"
10127 func_munge_path_list ()
10133 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10136 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10139 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10140 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10143 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10148 for ac_header in dlfcn.h
10150 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10152 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10153 cat >>confdefs.h <<_ACEOF
10154 #define HAVE_DLFCN_H 1
10174 enable_win32_dll=no
10177 # Check whether --enable-shared was given.
10178 if test "${enable_shared+set}" = set; then :
10179 enableval=$enable_shared; p=${PACKAGE-default}
10181 yes) enable_shared=yes ;;
10182 no) enable_shared=no ;;
10185 # Look at the argument we got. We use all the common list separators.
10186 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10187 for pkg in $enableval; do
10189 if test "X$pkg" = "X$p"; then
10208 # Check whether --enable-static was given.
10209 if test "${enable_static+set}" = set; then :
10210 enableval=$enable_static; p=${PACKAGE-default}
10212 yes) enable_static=yes ;;
10213 no) enable_static=no ;;
10216 # Look at the argument we got. We use all the common list separators.
10217 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10218 for pkg in $enableval; do
10220 if test "X$pkg" = "X$p"; then
10240 # Check whether --with-pic was given.
10241 if test "${with_pic+set}" = set; then :
10242 withval=$with_pic; lt_p=${PACKAGE-default}
10244 yes|no) pic_mode=$withval ;;
10247 # Look at the argument we got. We use all the common list separators.
10248 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10249 for lt_pkg in $withval; do
10251 if test "X$lt_pkg" = "X$lt_p"; then
10269 # Check whether --enable-fast-install was given.
10270 if test "${enable_fast_install+set}" = set; then :
10271 enableval=$enable_fast_install; p=${PACKAGE-default}
10273 yes) enable_fast_install=yes ;;
10274 no) enable_fast_install=no ;;
10276 enable_fast_install=no
10277 # Look at the argument we got. We use all the common list separators.
10278 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10279 for pkg in $enableval; do
10281 if test "X$pkg" = "X$p"; then
10282 enable_fast_install=yes
10289 enable_fast_install=yes
10299 shared_archive_member_spec=
10300 case $host,$enable_shared in
10301 power*-*-aix[5-9]*,yes)
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10303 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10305 # Check whether --with-aix-soname was given.
10306 if test "${with_aix_soname+set}" = set; then :
10307 withval=$with_aix_soname; case $withval in
10311 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10314 lt_cv_with_aix_soname=$with_aix_soname
10316 if ${lt_cv_with_aix_soname+:} false; then :
10317 $as_echo_n "(cached) " >&6
10319 lt_cv_with_aix_soname=aix
10322 with_aix_soname=$lt_cv_with_aix_soname
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10326 $as_echo "$with_aix_soname" >&6; }
10327 if test aix != "$with_aix_soname"; then
10328 # For the AIX way of multilib, we name the shared archive member
10329 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10330 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10331 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10332 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10333 if test 64 = "${OBJECT_MODE-32}"; then
10334 shared_archive_member_spec=shr_64
10336 shared_archive_member_spec=shr
10341 with_aix_soname=aix
10354 # This can be used to rebuild libtool when needed
10355 LIBTOOL_DEPS=$ltmain
10357 # Always use our own libtool.
10358 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10389 test -z "$LN_S" && LN_S="ln -s"
10404 if test -n "${ZSH_VERSION+set}"; then
10405 setopt NO_GLOB_SUBST
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10409 $as_echo_n "checking for objdir... " >&6; }
10410 if ${lt_cv_objdir+:} false; then :
10411 $as_echo_n "(cached) " >&6
10413 rm -f .libs 2>/dev/null
10414 mkdir .libs 2>/dev/null
10415 if test -d .libs; then
10418 # MS-DOS does not allow filenames that begin with a dot.
10421 rmdir .libs 2>/dev/null
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10424 $as_echo "$lt_cv_objdir" >&6; }
10425 objdir=$lt_cv_objdir
10431 cat >>confdefs.h <<_ACEOF
10432 #define LT_OBJDIR "$lt_cv_objdir/"
10440 # AIX sometimes has problems with the GCC collect2 program. For some
10441 # reason, if we set the COLLECT_NAMES environment variable, the problems
10442 # vanish in a puff of smoke.
10443 if test set != "${COLLECT_NAMES+set}"; then
10445 export COLLECT_NAMES
10450 # Global variables:
10452 can_build_shared=yes
10454 # All known linkers require a '.a' archive for static linking (except MSVC,
10455 # which needs '.lib').
10458 with_gnu_ld=$lt_cv_prog_gnu_ld
10463 # Set sane defaults for various variables
10464 test -z "$CC" && CC=cc
10465 test -z "$LTCC" && LTCC=$CC
10466 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10467 test -z "$LD" && LD=ld
10468 test -z "$ac_objext" && ac_objext=o
10470 func_cc_basename $compiler
10471 cc_basename=$func_cc_basename_result
10474 # Only perform the check for file, if the check method requires it
10475 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10476 case $deplibs_check_method in
10478 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10480 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10481 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10482 $as_echo_n "(cached) " >&6
10486 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10489 lt_save_MAGIC_CMD=$MAGIC_CMD
10490 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10491 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10492 for ac_dir in $ac_dummy; do
10494 test -z "$ac_dir" && ac_dir=.
10495 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10496 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10497 if test -n "$file_magic_test_file"; then
10498 case $deplibs_check_method in
10500 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10501 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10503 $EGREP "$file_magic_regex" > /dev/null; then
10508 *** Warning: the command libtool uses to detect shared libraries,
10509 *** $file_magic_cmd, produces output that libtool cannot recognize.
10510 *** The result is that libtool may fail to recognize shared libraries
10511 *** as such. This will affect the creation of libtool libraries that
10512 *** depend on shared libraries, but programs linked with such libtool
10513 *** libraries will work regardless of this problem. Nevertheless, you
10514 *** may want to report the problem to your system manager and/or to
10515 *** bug-libtool@gnu.org
10525 MAGIC_CMD=$lt_save_MAGIC_CMD
10530 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10531 if test -n "$MAGIC_CMD"; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10533 $as_echo "$MAGIC_CMD" >&6; }
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10543 if test -z "$lt_cv_path_MAGIC_CMD"; then
10544 if test -n "$ac_tool_prefix"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10546 $as_echo_n "checking for file... " >&6; }
10547 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10548 $as_echo_n "(cached) " >&6
10552 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10555 lt_save_MAGIC_CMD=$MAGIC_CMD
10556 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10557 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10558 for ac_dir in $ac_dummy; do
10560 test -z "$ac_dir" && ac_dir=.
10561 if test -f "$ac_dir/file"; then
10562 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10563 if test -n "$file_magic_test_file"; then
10564 case $deplibs_check_method in
10566 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10567 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10569 $EGREP "$file_magic_regex" > /dev/null; then
10574 *** Warning: the command libtool uses to detect shared libraries,
10575 *** $file_magic_cmd, produces output that libtool cannot recognize.
10576 *** The result is that libtool may fail to recognize shared libraries
10577 *** as such. This will affect the creation of libtool libraries that
10578 *** depend on shared libraries, but programs linked with such libtool
10579 *** libraries will work regardless of this problem. Nevertheless, you
10580 *** may want to report the problem to your system manager and/or to
10581 *** bug-libtool@gnu.org
10591 MAGIC_CMD=$lt_save_MAGIC_CMD
10596 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10597 if test -n "$MAGIC_CMD"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10599 $as_echo "$MAGIC_CMD" >&6; }
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10615 # Use C for the default configuration in the libtool script
10619 ac_cpp='$CPP $CPPFLAGS'
10620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10625 # Source file extension for C test sources.
10628 # Object file extension for compiled C test sources.
10632 # Code to be used in simple compile tests
10633 lt_simple_compile_test_code="int some_variable = 0;"
10635 # Code to be used in simple link tests
10636 lt_simple_link_test_code='int main(){return(0);}'
10644 # If no C compiler was specified, use CC.
10647 # If no C compiler flags were specified, use CFLAGS.
10648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10650 # Allow CC to be a program name with arguments.
10653 # Save the default compiler, since it gets overwritten when the other
10654 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10655 compiler_DEFAULT=$CC
10657 # save warnings/boilerplate of simple test code
10658 ac_outfile=conftest.$ac_objext
10659 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10661 _lt_compiler_boilerplate=`cat conftest.err`
10664 ac_outfile=conftest.$ac_objext
10665 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10667 _lt_linker_boilerplate=`cat conftest.err`
10671 if test -n "$compiler"; then
10673 lt_prog_compiler_no_builtin_flag=
10675 if test yes = "$GCC"; then
10676 case $cc_basename in
10678 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10680 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10684 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10685 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10686 $as_echo_n "(cached) " >&6
10688 lt_cv_prog_compiler_rtti_exceptions=no
10689 ac_outfile=conftest.$ac_objext
10690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10691 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10692 # Insert the option either (1) after the last *FLAGS variable, or
10693 # (2) before a word containing "conftest.", or (3) at the end.
10694 # Note that $ac_compile itself does not contain backslashes and begins
10695 # with a dollar sign (not a hyphen), so the echo should work correctly.
10696 # The option is referenced via a variable to avoid confusing sed.
10697 lt_compile=`echo "$ac_compile" | $SED \
10698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10700 -e 's:$: $lt_compiler_flag:'`
10701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10702 (eval "$lt_compile" 2>conftest.err)
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 if (exit $ac_status) && test -s "$ac_outfile"; then
10707 # The compiler can only warn and ignore the option if not recognized
10708 # So say no if there are warnings other than the usual output.
10709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10712 lt_cv_prog_compiler_rtti_exceptions=yes
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10719 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10721 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10722 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10734 lt_prog_compiler_wl=
10735 lt_prog_compiler_pic=
10736 lt_prog_compiler_static=
10739 if test yes = "$GCC"; then
10740 lt_prog_compiler_wl='-Wl,'
10741 lt_prog_compiler_static='-static'
10745 # All AIX code is PIC.
10746 if test ia64 = "$host_cpu"; then
10747 # AIX 5 now supports IA64 processor
10748 lt_prog_compiler_static='-Bstatic'
10750 lt_prog_compiler_pic='-fPIC'
10756 # see comment about AmigaOS4 .so support
10757 lt_prog_compiler_pic='-fPIC'
10760 # FIXME: we need at least 68020 code to build shared libraries, but
10761 # adding the '-m68020' flag to GCC prevents building anything better,
10763 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10768 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10769 # PIC is the default for these OSes.
10772 mingw* | cygwin* | pw32* | os2* | cegcc*)
10773 # This hack is so that the source file can tell whether it is being
10774 # built for inclusion in a dll (and should export symbols for example).
10775 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10776 # (--disable-auto-import) libraries
10777 lt_prog_compiler_pic='-DDLL_EXPORT'
10780 lt_prog_compiler_static='$wl-static'
10785 darwin* | rhapsody*)
10786 # PIC is the default on this platform
10787 # Common symbols not allowed in MH_DYLIB files
10788 lt_prog_compiler_pic='-fno-common'
10792 # PIC is the default for Haiku.
10793 # The "-static" flag exists, but is broken.
10794 lt_prog_compiler_static=
10798 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10799 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10800 # sets the default TLS model and affects inlining.
10806 lt_prog_compiler_pic='-fPIC'
10812 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10813 # Instead, we relocate shared libraries at runtime.
10817 # Just because we use GCC doesn't mean we suddenly get shared libraries
10818 # on systems that don't support them.
10819 lt_prog_compiler_can_build_shared=no
10824 # QNX uses GNU C++, but need to define -shared option too, otherwise
10825 # it will coredump.
10826 lt_prog_compiler_pic='-fPIC -shared'
10830 if test -d /usr/nec; then
10831 lt_prog_compiler_pic=-Kconform_pic
10836 lt_prog_compiler_pic='-fPIC'
10840 case $cc_basename in
10841 nvcc*) # Cuda Compiler Driver 2.2
10842 lt_prog_compiler_wl='-Xlinker '
10843 if test -n "$lt_prog_compiler_pic"; then
10844 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10849 # PORTME Check for flag to pass linker flags through the system compiler.
10852 lt_prog_compiler_wl='-Wl,'
10853 if test ia64 = "$host_cpu"; then
10854 # AIX 5 now supports IA64 processor
10855 lt_prog_compiler_static='-Bstatic'
10857 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10861 darwin* | rhapsody*)
10862 # PIC is the default on this platform
10863 # Common symbols not allowed in MH_DYLIB files
10864 lt_prog_compiler_pic='-fno-common'
10865 case $cc_basename in
10867 # NAG Fortran compiler
10868 lt_prog_compiler_wl='-Wl,-Wl,,'
10869 lt_prog_compiler_pic='-PIC'
10870 lt_prog_compiler_static='-Bstatic'
10875 mingw* | cygwin* | pw32* | os2* | cegcc*)
10876 # This hack is so that the source file can tell whether it is being
10877 # built for inclusion in a dll (and should export symbols for example).
10878 lt_prog_compiler_pic='-DDLL_EXPORT'
10881 lt_prog_compiler_static='$wl-static'
10886 hpux9* | hpux10* | hpux11*)
10887 lt_prog_compiler_wl='-Wl,'
10888 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10889 # not for PA HP-UX.
10895 lt_prog_compiler_pic='+Z'
10898 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10899 lt_prog_compiler_static='$wl-a ${wl}archive'
10902 irix5* | irix6* | nonstopux*)
10903 lt_prog_compiler_wl='-Wl,'
10904 # PIC (with -KPIC) is the default.
10905 lt_prog_compiler_static='-non_shared'
10908 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10909 case $cc_basename in
10910 # old Intel for x86_64, which still supported -KPIC.
10912 lt_prog_compiler_wl='-Wl,'
10913 lt_prog_compiler_pic='-KPIC'
10914 lt_prog_compiler_static='-static'
10916 # icc used to be incompatible with GCC.
10917 # ICC 10 doesn't accept -KPIC any more.
10919 lt_prog_compiler_wl='-Wl,'
10920 lt_prog_compiler_pic='-fPIC'
10921 lt_prog_compiler_static='-static'
10923 # Lahey Fortran 8.1.
10925 lt_prog_compiler_wl='-Wl,'
10926 lt_prog_compiler_pic='--shared'
10927 lt_prog_compiler_static='--static'
10930 # NAG Fortran compiler
10931 lt_prog_compiler_wl='-Wl,-Wl,,'
10932 lt_prog_compiler_pic='-PIC'
10933 lt_prog_compiler_static='-Bstatic'
10936 # Fabrice Bellard et al's Tiny C Compiler
10937 lt_prog_compiler_wl='-Wl,'
10938 lt_prog_compiler_pic='-fPIC'
10939 lt_prog_compiler_static='-static'
10941 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10942 # Portland Group compilers (*not* the Pentium gcc compiler,
10943 # which looks to be a dead project)
10944 lt_prog_compiler_wl='-Wl,'
10945 lt_prog_compiler_pic='-fpic'
10946 lt_prog_compiler_static='-Bstatic'
10949 lt_prog_compiler_wl='-Wl,'
10950 # All Alpha code is PIC.
10951 lt_prog_compiler_static='-non_shared'
10953 xl* | bgxl* | bgf* | mpixl*)
10954 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10955 lt_prog_compiler_wl='-Wl,'
10956 lt_prog_compiler_pic='-qpic'
10957 lt_prog_compiler_static='-qstaticlink'
10960 case `$CC -V 2>&1 | sed 5q` in
10961 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10962 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10963 lt_prog_compiler_pic='-KPIC'
10964 lt_prog_compiler_static='-Bstatic'
10965 lt_prog_compiler_wl=''
10967 *Sun\ F* | *Sun*Fortran*)
10968 lt_prog_compiler_pic='-KPIC'
10969 lt_prog_compiler_static='-Bstatic'
10970 lt_prog_compiler_wl='-Qoption ld '
10974 lt_prog_compiler_pic='-KPIC'
10975 lt_prog_compiler_static='-Bstatic'
10976 lt_prog_compiler_wl='-Wl,'
10978 *Intel*\ [CF]*Compiler*)
10979 lt_prog_compiler_wl='-Wl,'
10980 lt_prog_compiler_pic='-fPIC'
10981 lt_prog_compiler_static='-static'
10984 lt_prog_compiler_wl='-Wl,'
10985 lt_prog_compiler_pic='-fpic'
10986 lt_prog_compiler_static='-Bstatic'
10994 lt_prog_compiler_pic='-KPIC'
10995 lt_prog_compiler_static='-Bstatic'
10999 # QNX uses GNU C++, but need to define -shared option too, otherwise
11000 # it will coredump.
11001 lt_prog_compiler_pic='-fPIC -shared'
11004 osf3* | osf4* | osf5*)
11005 lt_prog_compiler_wl='-Wl,'
11006 # All OSF/1 code is PIC.
11007 lt_prog_compiler_static='-non_shared'
11011 lt_prog_compiler_static='-non_shared'
11015 lt_prog_compiler_pic='-KPIC'
11016 lt_prog_compiler_static='-Bstatic'
11017 case $cc_basename in
11018 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11019 lt_prog_compiler_wl='-Qoption ld ';;
11021 lt_prog_compiler_wl='-Wl,';;
11026 lt_prog_compiler_wl='-Qoption ld '
11027 lt_prog_compiler_pic='-PIC'
11028 lt_prog_compiler_static='-Bstatic'
11031 sysv4 | sysv4.2uw2* | sysv4.3*)
11032 lt_prog_compiler_wl='-Wl,'
11033 lt_prog_compiler_pic='-KPIC'
11034 lt_prog_compiler_static='-Bstatic'
11038 if test -d /usr/nec; then
11039 lt_prog_compiler_pic='-Kconform_pic'
11040 lt_prog_compiler_static='-Bstatic'
11044 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11045 lt_prog_compiler_wl='-Wl,'
11046 lt_prog_compiler_pic='-KPIC'
11047 lt_prog_compiler_static='-Bstatic'
11051 lt_prog_compiler_wl='-Wl,'
11052 lt_prog_compiler_can_build_shared=no
11056 lt_prog_compiler_pic='-pic'
11057 lt_prog_compiler_static='-Bstatic'
11061 lt_prog_compiler_can_build_shared=no
11067 # For platforms that do not support PIC, -DPIC is meaningless:
11069 lt_prog_compiler_pic=
11072 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11077 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11078 if ${lt_cv_prog_compiler_pic+:} false; then :
11079 $as_echo_n "(cached) " >&6
11081 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11084 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11085 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11088 # Check to make sure the PIC flag actually works.
11090 if test -n "$lt_prog_compiler_pic"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11092 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11093 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11094 $as_echo_n "(cached) " >&6
11096 lt_cv_prog_compiler_pic_works=no
11097 ac_outfile=conftest.$ac_objext
11098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11099 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11100 # Insert the option either (1) after the last *FLAGS variable, or
11101 # (2) before a word containing "conftest.", or (3) at the end.
11102 # Note that $ac_compile itself does not contain backslashes and begins
11103 # with a dollar sign (not a hyphen), so the echo should work correctly.
11104 # The option is referenced via a variable to avoid confusing sed.
11105 lt_compile=`echo "$ac_compile" | $SED \
11106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11108 -e 's:$: $lt_compiler_flag:'`
11109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11110 (eval "$lt_compile" 2>conftest.err)
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 if (exit $ac_status) && test -s "$ac_outfile"; then
11115 # The compiler can only warn and ignore the option if not recognized
11116 # So say no if there are warnings other than the usual output.
11117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11120 lt_cv_prog_compiler_pic_works=yes
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11127 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11129 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11130 case $lt_prog_compiler_pic in
11132 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11135 lt_prog_compiler_pic=
11136 lt_prog_compiler_can_build_shared=no
11152 # Check to make sure the static flag actually works.
11154 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11156 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11157 if ${lt_cv_prog_compiler_static_works+:} false; then :
11158 $as_echo_n "(cached) " >&6
11160 lt_cv_prog_compiler_static_works=no
11161 save_LDFLAGS=$LDFLAGS
11162 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11163 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11164 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11165 # The linker can only warn and ignore the option if not recognized
11166 # So say no if there are warnings
11167 if test -s conftest.err; then
11168 # Append any errors to the config.log.
11169 cat conftest.err 1>&5
11170 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11172 if diff conftest.exp conftest.er2 >/dev/null; then
11173 lt_cv_prog_compiler_static_works=yes
11176 lt_cv_prog_compiler_static_works=yes
11180 LDFLAGS=$save_LDFLAGS
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11184 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11186 if test yes = "$lt_cv_prog_compiler_static_works"; then
11189 lt_prog_compiler_static=
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11199 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11200 if ${lt_cv_prog_compiler_c_o+:} false; then :
11201 $as_echo_n "(cached) " >&6
11203 lt_cv_prog_compiler_c_o=no
11204 $RM -r conftest 2>/dev/null
11208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11210 lt_compiler_flag="-o out/conftest2.$ac_objext"
11211 # Insert the option either (1) after the last *FLAGS variable, or
11212 # (2) before a word containing "conftest.", or (3) at the end.
11213 # Note that $ac_compile itself does not contain backslashes and begins
11214 # with a dollar sign (not a hyphen), so the echo should work correctly.
11215 lt_compile=`echo "$ac_compile" | $SED \
11216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11218 -e 's:$: $lt_compiler_flag:'`
11219 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11220 (eval "$lt_compile" 2>out/conftest.err)
11222 cat out/conftest.err >&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11226 # The compiler can only warn and ignore the option if not recognized
11227 # So say no if there are warnings
11228 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11229 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11230 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11231 lt_cv_prog_compiler_c_o=yes
11236 # SGI C++ compiler will create directory out/ii_files/ for
11237 # template instantiation
11238 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11239 $RM out/* && rmdir out
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11246 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11254 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11255 if ${lt_cv_prog_compiler_c_o+:} false; then :
11256 $as_echo_n "(cached) " >&6
11258 lt_cv_prog_compiler_c_o=no
11259 $RM -r conftest 2>/dev/null
11263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11265 lt_compiler_flag="-o out/conftest2.$ac_objext"
11266 # Insert the option either (1) after the last *FLAGS variable, or
11267 # (2) before a word containing "conftest.", or (3) at the end.
11268 # Note that $ac_compile itself does not contain backslashes and begins
11269 # with a dollar sign (not a hyphen), so the echo should work correctly.
11270 lt_compile=`echo "$ac_compile" | $SED \
11271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11273 -e 's:$: $lt_compiler_flag:'`
11274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11275 (eval "$lt_compile" 2>out/conftest.err)
11277 cat out/conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11281 # The compiler can only warn and ignore the option if not recognized
11282 # So say no if there are warnings
11283 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11286 lt_cv_prog_compiler_c_o=yes
11291 # SGI C++ compiler will create directory out/ii_files/ for
11292 # template instantiation
11293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11294 $RM out/* && rmdir out
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11301 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11306 hard_links=nottested
11307 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11308 # do not overwrite the value of need_locks provided by the user
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11310 $as_echo_n "checking if we can lock with hard links... " >&6; }
11313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11315 ln conftest.a conftest.b 2>&5 || hard_links=no
11316 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11318 $as_echo "$hard_links" >&6; }
11319 if test no = "$hard_links"; then
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11321 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11334 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11337 allow_undefined_flag=
11338 always_export_symbols=no
11340 archive_expsym_cmds=
11341 compiler_needs_object=no
11342 enable_shared_with_static_runtimes=no
11343 export_dynamic_flag_spec=
11344 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11345 hardcode_automatic=no
11347 hardcode_direct_absolute=no
11348 hardcode_libdir_flag_spec=
11349 hardcode_libdir_separator=
11350 hardcode_minus_L=no
11351 hardcode_shlibpath_var=unsupported
11353 link_all_deplibs=unknown
11355 module_expsym_cmds=
11356 old_archive_from_new_cmds=
11357 old_archive_from_expsyms_cmds=
11358 thread_safe_flag_spec=
11359 whole_archive_flag_spec=
11360 # include_expsyms should be a list of space-separated symbols to be *always*
11361 # included in the symbol list
11363 # exclude_expsyms can be an extended regexp of symbols to exclude
11364 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11365 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11366 # as well as any symbol that contains 'd'.
11367 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11368 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11369 # platforms (ab)use it in PIC code, but their linkers get confused if
11370 # the symbol is explicitly referenced. Since portable code cannot
11371 # rely on this symbol name, it's probably fine to never include it in
11372 # preloaded symbol tables.
11373 # Exclude shared library initialization/finalization symbols.
11374 extract_expsyms_cmds=
11377 cygwin* | mingw* | pw32* | cegcc*)
11378 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11379 # When not using gcc, we currently assume that we are using
11380 # Microsoft Visual C++.
11381 if test yes != "$GCC"; then
11386 # we just hope/assume this is gcc and not c89 (= MSVC++)
11389 openbsd* | bitrig*)
11396 # On some targets, GNU ld is compatible enough with the native linker
11397 # that we're better off using the native interface for both.
11398 lt_use_gnu_ld_interface=no
11399 if test yes = "$with_gnu_ld"; then
11402 # The AIX port of GNU ld has always aspired to compatibility
11403 # with the native linker. However, as the warning in the GNU ld
11404 # block says, versions before 2.19.5* couldn't really create working
11405 # shared libraries, regardless of the interface used.
11406 case `$LD -v 2>&1` in
11407 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11408 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11409 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11411 lt_use_gnu_ld_interface=yes
11416 lt_use_gnu_ld_interface=yes
11421 if test yes = "$lt_use_gnu_ld_interface"; then
11422 # If archive_cmds runs LD, not CC, wlarc should be empty
11425 # Set some defaults for GNU ld with shared library support. These
11426 # are reset later if shared libraries are not supported. Putting them
11427 # here allows them to be overridden if necessary.
11428 runpath_var=LD_RUN_PATH
11429 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11430 export_dynamic_flag_spec='$wl--export-dynamic'
11431 # ancient GNU ld didn't support --whole-archive et. al.
11432 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11433 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11435 whole_archive_flag_spec=
11437 supports_anon_versioning=no
11438 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11439 *GNU\ gold*) supports_anon_versioning=yes ;;
11440 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11441 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11442 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11443 *\ 2.11.*) ;; # other 2.11 versions
11444 *) supports_anon_versioning=yes ;;
11447 # See if GNU ld supports shared libraries.
11450 # On AIX/PPC, the GNU linker is very broken
11451 if test ia64 != "$host_cpu"; then
11455 *** Warning: the GNU linker, at least up to release 2.19, is reported
11456 *** to be unable to reliably create shared libraries on AIX.
11457 *** Therefore, libtool is disabling shared libraries support. If you
11458 *** really care for shared libraries, you may want to install binutils
11459 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11460 *** You will then need to restart the configuration process.
11469 # see comment about AmigaOS4 .so support
11470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11471 archive_expsym_cmds=''
11474 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)'
11475 hardcode_libdir_flag_spec='-L$libdir'
11476 hardcode_minus_L=yes
11482 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11483 allow_undefined_flag=unsupported
11484 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11485 # support --undefined. This deserves some investigation. FIXME
11486 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11492 cygwin* | mingw* | pw32* | cegcc*)
11493 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11494 # as there is no search path for DLLs.
11495 hardcode_libdir_flag_spec='-L$libdir'
11496 export_dynamic_flag_spec='$wl--export-all-symbols'
11497 allow_undefined_flag=unsupported
11498 always_export_symbols=no
11499 enable_shared_with_static_runtimes=yes
11500 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'
11501 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11503 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11505 # If the export-symbols file already is a .def file, use it as
11506 # is; otherwise, prepend EXPORTS...
11507 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11508 cp $export_symbols $output_objdir/$soname.def;
11510 echo EXPORTS > $output_objdir/$soname.def;
11511 cat $export_symbols >> $output_objdir/$soname.def;
11513 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11521 link_all_deplibs=yes
11525 hardcode_libdir_flag_spec='-L$libdir'
11526 hardcode_minus_L=yes
11527 allow_undefined_flag=unsupported
11529 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11530 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11531 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11532 $ECHO EXPORTS >> $output_objdir/$libname.def~
11533 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11534 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11535 emximp -o $lib $output_objdir/$libname.def'
11536 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11537 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11538 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11539 $ECHO EXPORTS >> $output_objdir/$libname.def~
11540 prefix_cmds="$SED"~
11541 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11542 prefix_cmds="$prefix_cmds -e 1d";
11544 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11545 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11546 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11547 emximp -o $lib $output_objdir/$libname.def'
11548 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11549 enable_shared_with_static_runtimes=yes
11554 hardcode_shlibpath_var=no
11555 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11556 export_dynamic_flag_spec='$wl-E'
11557 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11558 # Instead, shared libraries are loaded at an image base (0x10000000 by
11559 # default) and relocated if they conflict, which is a slow very memory
11560 # consuming and fragmenting process. To avoid this, we pick a random,
11561 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11562 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11563 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11564 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'
11567 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11569 if test linux-dietlibc = "$host_os"; then
11570 case $cc_basename in
11571 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11574 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11575 && test no = "$tmp_diet"
11577 tmp_addflag=' $pic_flag'
11578 tmp_sharedflag='-shared'
11579 case $cc_basename,$host_cpu in
11580 pgcc*) # Portland Group C compiler
11581 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'
11582 tmp_addflag=' $pic_flag'
11584 pgf77* | pgf90* | pgf95* | pgfortran*)
11585 # Portland Group f77 and f90 compilers
11586 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'
11587 tmp_addflag=' $pic_flag -Mnomain' ;;
11588 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11589 tmp_addflag=' -i_dynamic' ;;
11590 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11591 tmp_addflag=' -i_dynamic -nofor_main' ;;
11592 ifc* | ifort*) # Intel Fortran compiler
11593 tmp_addflag=' -nofor_main' ;;
11594 lf95*) # Lahey Fortran 8.1
11595 whole_archive_flag_spec=
11596 tmp_sharedflag='--shared' ;;
11597 nagfor*) # NAGFOR 5.3
11598 tmp_sharedflag='-Wl,-shared' ;;
11599 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11600 tmp_sharedflag='-qmkshrobj'
11602 nvcc*) # Cuda Compiler Driver 2.2
11603 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'
11604 compiler_needs_object=yes
11607 case `$CC -V 2>&1 | sed 5q` in
11608 *Sun\ C*) # Sun C 5.9
11609 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'
11610 compiler_needs_object=yes
11611 tmp_sharedflag='-G' ;;
11612 *Sun\ F*) # Sun Fortran 8.3
11613 tmp_sharedflag='-G' ;;
11615 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11617 if test yes = "$supports_anon_versioning"; then
11618 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11619 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11620 echo "local: *; };" >> $output_objdir/$libname.ver~
11621 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11624 case $cc_basename in
11626 export_dynamic_flag_spec='-rdynamic'
11628 xlf* | bgf* | bgxlf* | mpixlf*)
11629 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11630 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11631 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11632 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11633 if test yes = "$supports_anon_versioning"; then
11634 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11635 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11636 echo "local: *; };" >> $output_objdir/$libname.ver~
11637 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11647 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11648 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11651 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11652 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11657 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11661 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11662 *** create shared libraries on Solaris systems. Therefore, libtool
11663 *** is disabling shared libraries support. We urge you to upgrade GNU
11664 *** binutils to release 2.9.1 or newer. Another option is to modify
11665 *** your PATH or compiler configuration so that the native linker is
11666 *** used, and then restart.
11669 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11670 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11671 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11678 case `$LD -v 2>&1` in
11679 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11683 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11684 *** reliably create shared libraries on SCO systems. Therefore, libtool
11685 *** is disabling shared libraries support. We urge you to upgrade GNU
11686 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11687 *** your PATH or compiler configuration so that the native linker is
11688 *** used, and then restart.
11693 # For security reasons, it is highly recommended that you always
11694 # use absolute paths for naming shared libraries, and exclude the
11695 # DT_RUNPATH tag from executables and libraries. But doing so
11696 # requires that you compile everything twice, which is a pain.
11697 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11698 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11700 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11709 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11711 hardcode_direct=yes
11712 hardcode_shlibpath_var=no
11716 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11717 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11718 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11725 if test no = "$ld_shlibs"; then
11727 hardcode_libdir_flag_spec=
11728 export_dynamic_flag_spec=
11729 whole_archive_flag_spec=
11732 # PORTME fill in a description of your system's linker (not GNU ld)
11735 allow_undefined_flag=unsupported
11736 always_export_symbols=yes
11737 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'
11738 # Note: this linker hardcodes the directories in LIBPATH if there
11739 # are no directories specified by -L.
11740 hardcode_minus_L=yes
11741 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11742 # Neither direct hardcoding nor static linking is supported with a
11744 hardcode_direct=unsupported
11749 if test ia64 = "$host_cpu"; then
11750 # On IA64, the linker does run time linking by default, so we don't
11751 # have to do anything special.
11752 aix_use_runtimelinking=no
11753 exp_sym_flag='-Bexport'
11756 # If we're using GNU nm, then we don't want the "-C" option.
11757 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11758 # Without the "-l" option, or with the "-B" option, AIX nm treats
11759 # weak defined symbols like other global defined symbols, whereas
11760 # GNU nm marks them as "W".
11761 # While the 'weak' keyword is ignored in the Export File, we need
11762 # it in the Import File for the 'aix-soname' feature, so we have
11763 # to replace the "-B" option with "-P" for AIX nm.
11764 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11765 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'
11767 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'
11769 aix_use_runtimelinking=no
11771 # Test if we are trying to use run time linking or normal
11772 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11773 # have runtime linking enabled, and use it for executables.
11774 # For shared libraries, we enable/disable runtime linking
11775 # depending on the kind of the shared library created -
11776 # when "with_aix_soname,aix_use_runtimelinking" is:
11777 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11778 # "aix,yes" lib.so shared, rtl:yes, for executables
11779 # lib.a static archive
11780 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11781 # lib.a(lib.so.V) shared, rtl:no, for executables
11782 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11783 # lib.a(lib.so.V) shared, rtl:no
11784 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11785 # lib.a static archive
11786 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11787 for ld_flag in $LDFLAGS; do
11788 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11789 aix_use_runtimelinking=yes
11793 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11794 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11795 # so we don't have lib.a shared libs to link our executables.
11796 # We have to force runtime linking in this case.
11797 aix_use_runtimelinking=yes
11798 LDFLAGS="$LDFLAGS -Wl,-brtl"
11803 exp_sym_flag='-bexport'
11804 no_entry_flag='-bnoentry'
11807 # When large executables or shared objects are built, AIX ld can
11808 # have problems creating the table of contents. If linking a library
11809 # or program results in "error TOC overflow" add -mminimal-toc to
11810 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11811 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11814 hardcode_direct=yes
11815 hardcode_direct_absolute=yes
11816 hardcode_libdir_separator=':'
11817 link_all_deplibs=yes
11818 file_list_spec='$wl-f,'
11819 case $with_aix_soname,$aix_use_runtimelinking in
11820 aix,*) ;; # traditional, no import file
11821 svr4,* | *,yes) # use import file
11822 # The Import File defines what to hardcode.
11824 hardcode_direct_absolute=no
11828 if test yes = "$GCC"; then
11829 case $host_os in aix4.[012]|aix4.[012].*)
11830 # We only want to do this on AIX 4.2 and lower, the check
11831 # below for broken collect2 doesn't work under 4.3+
11832 collect2name=`$CC -print-prog-name=collect2`
11833 if test -f "$collect2name" &&
11834 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11836 # We have reworked collect2
11839 # We have old collect2
11840 hardcode_direct=unsupported
11841 # It fails to find uninstalled libraries when the uninstalled
11842 # path is not listed in the libpath. Setting hardcode_minus_L
11843 # to unsupported forces relinking
11844 hardcode_minus_L=yes
11845 hardcode_libdir_flag_spec='-L$libdir'
11846 hardcode_libdir_separator=
11850 shared_flag='-shared'
11851 if test yes = "$aix_use_runtimelinking"; then
11852 shared_flag="$shared_flag "'$wl-G'
11854 # Need to ensure runtime linking is disabled for the traditional
11855 # shared library, or the linker may eventually find shared libraries
11856 # /with/ Import File - we do not want to mix them.
11857 shared_flag_aix='-shared'
11858 shared_flag_svr4='-shared $wl-G'
11861 if test ia64 = "$host_cpu"; then
11862 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11863 # chokes on -Wl,-G. The following line is correct:
11866 if test yes = "$aix_use_runtimelinking"; then
11867 shared_flag='$wl-G'
11869 shared_flag='$wl-bM:SRE'
11871 shared_flag_aix='$wl-bM:SRE'
11872 shared_flag_svr4='$wl-G'
11876 export_dynamic_flag_spec='$wl-bexpall'
11877 # It seems that -bexpall does not export symbols beginning with
11878 # underscore (_), so it is better to generate a list of symbols to export.
11879 always_export_symbols=yes
11880 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11881 # Warning - without using the other runtime loading flags (-brtl),
11882 # -berok will link without error, but may produce a broken library.
11883 allow_undefined_flag='-berok'
11884 # Determine the default libpath from the value encoded in an
11885 # empty executable.
11886 if test set = "${lt_cv_aix_libpath+set}"; then
11887 aix_libpath=$lt_cv_aix_libpath
11889 if ${lt_cv_aix_libpath_+:} false; then :
11890 $as_echo_n "(cached) " >&6
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11903 if ac_fn_c_try_link "$LINENO"; then :
11905 lt_aix_libpath_sed='
11906 /Import File Strings/,/^$/ {
11908 s/^0 *\([^ ]*\) *$/\1/
11912 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11913 # Check for a 64-bit object if we didn't find anything.
11914 if test -z "$lt_cv_aix_libpath_"; then
11915 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11918 rm -f core conftest.err conftest.$ac_objext \
11919 conftest$ac_exeext conftest.$ac_ext
11920 if test -z "$lt_cv_aix_libpath_"; then
11921 lt_cv_aix_libpath_=/usr/lib:/lib
11926 aix_libpath=$lt_cv_aix_libpath_
11929 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11930 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
11932 if test ia64 = "$host_cpu"; then
11933 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11934 allow_undefined_flag="-z nodefs"
11935 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"
11937 # Determine the default libpath from the value encoded in an
11938 # empty executable.
11939 if test set = "${lt_cv_aix_libpath+set}"; then
11940 aix_libpath=$lt_cv_aix_libpath
11942 if ${lt_cv_aix_libpath_+:} false; then :
11943 $as_echo_n "(cached) " >&6
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11956 if ac_fn_c_try_link "$LINENO"; then :
11958 lt_aix_libpath_sed='
11959 /Import File Strings/,/^$/ {
11961 s/^0 *\([^ ]*\) *$/\1/
11965 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11966 # Check for a 64-bit object if we didn't find anything.
11967 if test -z "$lt_cv_aix_libpath_"; then
11968 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11971 rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11973 if test -z "$lt_cv_aix_libpath_"; then
11974 lt_cv_aix_libpath_=/usr/lib:/lib
11979 aix_libpath=$lt_cv_aix_libpath_
11982 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11983 # Warning - without using the other run time loading flags,
11984 # -berok will link without error, but may produce a broken library.
11985 no_undefined_flag=' $wl-bernotok'
11986 allow_undefined_flag=' $wl-berok'
11987 if test yes = "$with_gnu_ld"; then
11988 # We only use this code for GNU lds that support --whole-archive.
11989 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11991 # Exported symbols can be pulled into shared objects from archives
11992 whole_archive_flag_spec='$convenience'
11994 archive_cmds_need_lc=yes
11995 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11996 # -brtl affects multiple linker settings, -berok does not and is overridden later
11997 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11998 if test svr4 != "$with_aix_soname"; then
11999 # This is similar to how AIX traditionally builds its shared libraries.
12000 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'
12002 if test aix != "$with_aix_soname"; then
12003 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'
12005 # used by -dlpreopen to get the symbols
12006 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12008 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12016 # see comment about AmigaOS4 .so support
12017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12018 archive_expsym_cmds=''
12021 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)'
12022 hardcode_libdir_flag_spec='-L$libdir'
12023 hardcode_minus_L=yes
12029 export_dynamic_flag_spec=-rdynamic
12032 cygwin* | mingw* | pw32* | cegcc*)
12033 # When not using gcc, we currently assume that we are using
12034 # Microsoft Visual C++.
12035 # hardcode_libdir_flag_spec is actually meaningless, as there is
12036 # no search path for DLLs.
12037 case $cc_basename in
12040 hardcode_libdir_flag_spec=' '
12041 allow_undefined_flag=unsupported
12042 always_export_symbols=yes
12044 # Tell ltmain to make .lib files, not .a files.
12046 # Tell ltmain to make .dll files, not .so files.
12048 # FIXME: Setting linknames here is a bad hack.
12049 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12050 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12051 cp "$export_symbols" "$output_objdir/$soname.def";
12052 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12054 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12056 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12058 # The linker will not automatically build a static lib if we build a DLL.
12059 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12060 enable_shared_with_static_runtimes=yes
12061 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12062 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12064 old_postinstall_cmds='chmod 644 $oldlib'
12065 postlink_cmds='lt_outputfile="@OUTPUT@"~
12066 lt_tool_outputfile="@TOOL_OUTPUT@"~
12067 case $lt_outputfile in
12070 lt_outputfile=$lt_outputfile.exe
12071 lt_tool_outputfile=$lt_tool_outputfile.exe
12074 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12075 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12076 $RM "$lt_outputfile.manifest";
12080 # Assume MSVC wrapper
12081 hardcode_libdir_flag_spec=' '
12082 allow_undefined_flag=unsupported
12083 # Tell ltmain to make .lib files, not .a files.
12085 # Tell ltmain to make .dll files, not .so files.
12087 # FIXME: Setting linknames here is a bad hack.
12088 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12089 # The linker will automatically build a .lib file if we build a DLL.
12090 old_archive_from_new_cmds='true'
12091 # FIXME: Should let the user specify the lib program.
12092 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12093 enable_shared_with_static_runtimes=yes
12098 darwin* | rhapsody*)
12101 archive_cmds_need_lc=no
12103 hardcode_automatic=yes
12104 hardcode_shlibpath_var=unsupported
12105 if test yes = "$lt_cv_ld_force_load"; then
12106 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\"`'
12109 whole_archive_flag_spec=''
12111 link_all_deplibs=yes
12112 allow_undefined_flag=$_lt_dar_allow_undefined
12113 case $cc_basename in
12114 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12115 *) _lt_dar_can_shared=$GCC ;;
12117 if test yes = "$_lt_dar_can_shared"; then
12118 output_verbose_link_cmd=func_echo_all
12119 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12120 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12121 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"
12122 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"
12131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12132 hardcode_libdir_flag_spec='-L$libdir'
12133 hardcode_shlibpath_var=no
12136 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12137 # support. Future versions do this automatically, but an explicit c++rt0.o
12138 # does not break anything, and helps significantly (at the cost of a little
12141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12142 hardcode_libdir_flag_spec='-R$libdir'
12143 hardcode_direct=yes
12144 hardcode_shlibpath_var=no
12147 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12150 hardcode_direct=yes
12151 hardcode_minus_L=yes
12152 hardcode_shlibpath_var=no
12155 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12156 freebsd* | dragonfly*)
12157 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12158 hardcode_libdir_flag_spec='-R$libdir'
12159 hardcode_direct=yes
12160 hardcode_shlibpath_var=no
12164 if test yes = "$GCC"; then
12165 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'
12167 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'
12169 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12170 hardcode_libdir_separator=:
12171 hardcode_direct=yes
12173 # hardcode_minus_L: Not really in the search PATH,
12174 # but as the default location of the library.
12175 hardcode_minus_L=yes
12176 export_dynamic_flag_spec='$wl-E'
12180 if test yes,no = "$GCC,$with_gnu_ld"; then
12181 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12183 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12185 if test no = "$with_gnu_ld"; then
12186 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12187 hardcode_libdir_separator=:
12188 hardcode_direct=yes
12189 hardcode_direct_absolute=yes
12190 export_dynamic_flag_spec='$wl-E'
12191 # hardcode_minus_L: Not really in the search PATH,
12192 # but as the default location of the library.
12193 hardcode_minus_L=yes
12198 if test yes,no = "$GCC,$with_gnu_ld"; then
12201 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12204 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12207 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12213 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12216 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12220 # Older versions of the 11.00 compiler do not understand -b yet
12221 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12223 $as_echo_n "checking if $CC understands -b... " >&6; }
12224 if ${lt_cv_prog_compiler__b+:} false; then :
12225 $as_echo_n "(cached) " >&6
12227 lt_cv_prog_compiler__b=no
12228 save_LDFLAGS=$LDFLAGS
12229 LDFLAGS="$LDFLAGS -b"
12230 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12231 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12232 # The linker can only warn and ignore the option if not recognized
12233 # So say no if there are warnings
12234 if test -s conftest.err; then
12235 # Append any errors to the config.log.
12236 cat conftest.err 1>&5
12237 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12239 if diff conftest.exp conftest.er2 >/dev/null; then
12240 lt_cv_prog_compiler__b=yes
12243 lt_cv_prog_compiler__b=yes
12247 LDFLAGS=$save_LDFLAGS
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12251 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12253 if test yes = "$lt_cv_prog_compiler__b"; then
12254 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12256 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12262 if test no = "$with_gnu_ld"; then
12263 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12264 hardcode_libdir_separator=:
12269 hardcode_shlibpath_var=no
12272 hardcode_direct=yes
12273 hardcode_direct_absolute=yes
12274 export_dynamic_flag_spec='$wl-E'
12276 # hardcode_minus_L: Not really in the search PATH,
12277 # but as the default location of the library.
12278 hardcode_minus_L=yes
12284 irix5* | irix6* | nonstopux*)
12285 if test yes = "$GCC"; then
12286 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'
12287 # Try to use the -exported_symbol ld option, if it does not
12288 # work, assume that -exports_file does not work either and
12289 # implicitly export all symbols.
12290 # This should be the same for all languages, so no per-tag cache variable.
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12292 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12293 if ${lt_cv_irix_exported_symbol+:} false; then :
12294 $as_echo_n "(cached) " >&6
12296 save_LDFLAGS=$LDFLAGS
12297 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300 int foo (void) { return 0; }
12302 if ac_fn_c_try_link "$LINENO"; then :
12303 lt_cv_irix_exported_symbol=yes
12305 lt_cv_irix_exported_symbol=no
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12309 LDFLAGS=$save_LDFLAGS
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12312 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12313 if test yes = "$lt_cv_irix_exported_symbol"; then
12314 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'
12317 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'
12318 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'
12320 archive_cmds_need_lc='no'
12321 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12322 hardcode_libdir_separator=:
12324 link_all_deplibs=yes
12328 case $cc_basename in
12330 # Fabrice Bellard et al's Tiny C Compiler
12332 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12338 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12341 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12343 hardcode_libdir_flag_spec='-R$libdir'
12344 hardcode_direct=yes
12345 hardcode_shlibpath_var=no
12349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12350 hardcode_direct=yes
12351 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12352 hardcode_libdir_separator=:
12353 hardcode_shlibpath_var=no
12359 openbsd* | bitrig*)
12360 if test -f /usr/libexec/ld.so; then
12361 hardcode_direct=yes
12362 hardcode_shlibpath_var=no
12363 hardcode_direct_absolute=yes
12364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12365 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12366 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12367 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12368 export_dynamic_flag_spec='$wl-E'
12370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12371 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12379 hardcode_libdir_flag_spec='-L$libdir'
12380 hardcode_minus_L=yes
12381 allow_undefined_flag=unsupported
12383 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12384 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12385 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12386 $ECHO EXPORTS >> $output_objdir/$libname.def~
12387 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12388 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12389 emximp -o $lib $output_objdir/$libname.def'
12390 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12391 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12392 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12393 $ECHO EXPORTS >> $output_objdir/$libname.def~
12394 prefix_cmds="$SED"~
12395 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12396 prefix_cmds="$prefix_cmds -e 1d";
12398 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12399 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12400 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12401 emximp -o $lib $output_objdir/$libname.def'
12402 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12403 enable_shared_with_static_runtimes=yes
12407 if test yes = "$GCC"; then
12408 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12409 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'
12411 allow_undefined_flag=' -expect_unresolved \*'
12412 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'
12414 archive_cmds_need_lc='no'
12415 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12416 hardcode_libdir_separator=:
12419 osf4* | osf5*) # as osf3* with the addition of -msym flag
12420 if test yes = "$GCC"; then
12421 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12422 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'
12423 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12425 allow_undefined_flag=' -expect_unresolved \*'
12426 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'
12427 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~
12428 $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'
12430 # Both c and cxx compiler support -rpath directly
12431 hardcode_libdir_flag_spec='-rpath $libdir'
12433 archive_cmds_need_lc='no'
12434 hardcode_libdir_separator=:
12438 no_undefined_flag=' -z defs'
12439 if test yes = "$GCC"; then
12441 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12443 $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'
12445 case `$CC -V 2>&1` in
12448 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12449 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12450 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12454 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12456 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12460 hardcode_libdir_flag_spec='-R$libdir'
12461 hardcode_shlibpath_var=no
12463 solaris2.[0-5] | solaris2.[0-5].*) ;;
12465 # The compiler driver will combine and reorder linker options,
12466 # but understands '-z linker_flag'. GCC discards it without '$wl',
12467 # but is careful enough not to reorder.
12468 # Supported since Solaris 2.6 (maybe 2.5.1?)
12469 if test yes = "$GCC"; then
12470 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12472 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12476 link_all_deplibs=yes
12480 if test sequent = "$host_vendor"; then
12481 # Use $CC to link under sequent, because it throws in some extra .o
12482 # files that make .init and .fini sections work.
12483 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12485 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12487 hardcode_libdir_flag_spec='-L$libdir'
12488 hardcode_direct=yes
12489 hardcode_minus_L=yes
12490 hardcode_shlibpath_var=no
12494 case $host_vendor in
12496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12497 hardcode_direct=yes # is this really true???
12500 ## LD is ld it makes a PLAMLIB
12501 ## CC just makes a GrossModule.
12502 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12503 reload_cmds='$CC -r -o $output$reload_objs'
12507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12508 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12511 runpath_var='LD_RUN_PATH'
12512 hardcode_shlibpath_var=no
12516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12517 hardcode_shlibpath_var=no
12518 export_dynamic_flag_spec='-Bexport'
12522 if test -d /usr/nec; then
12523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12524 hardcode_shlibpath_var=no
12525 runpath_var=LD_RUN_PATH
12526 hardcode_runpath_var=yes
12531 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12532 no_undefined_flag='$wl-z,text'
12533 archive_cmds_need_lc=no
12534 hardcode_shlibpath_var=no
12535 runpath_var='LD_RUN_PATH'
12537 if test yes = "$GCC"; then
12538 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12539 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12541 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12542 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12546 sysv5* | sco3.2v5* | sco5v6*)
12547 # Note: We CANNOT use -z defs as we might desire, because we do not
12548 # link with -lc, and that would cause any symbols used from libc to
12549 # always be unresolved, which means just about no library would
12550 # ever link correctly. If we're not using GNU ld we use -z text
12551 # though, which does catch some bad symbols but isn't as heavy-handed
12553 no_undefined_flag='$wl-z,text'
12554 allow_undefined_flag='$wl-z,nodefs'
12555 archive_cmds_need_lc=no
12556 hardcode_shlibpath_var=no
12557 hardcode_libdir_flag_spec='$wl-R,$libdir'
12558 hardcode_libdir_separator=':'
12559 link_all_deplibs=yes
12560 export_dynamic_flag_spec='$wl-Bexport'
12561 runpath_var='LD_RUN_PATH'
12563 if test yes = "$GCC"; then
12564 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12565 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12567 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12568 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12574 hardcode_libdir_flag_spec='-L$libdir'
12575 hardcode_shlibpath_var=no
12583 if test sni = "$host_vendor"; then
12585 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12586 export_dynamic_flag_spec='$wl-Blargedynsym'
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12593 $as_echo "$ld_shlibs" >&6; }
12594 test no = "$ld_shlibs" && can_build_shared=no
12596 with_gnu_ld=$with_gnu_ld
12613 # Do we need to explicitly link libc?
12615 case "x$archive_cmds_need_lc" in
12617 # Assume -lc should be added
12618 archive_cmds_need_lc=yes
12620 if test yes,yes = "$GCC,$enable_shared"; then
12621 case $archive_cmds in
12623 # FIXME: we may have to deal with multi-command sequences.
12626 # Test whether the compiler implicitly links with -lc since on some
12627 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12628 # to ld, don't add -lc before -lgcc.
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12630 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12631 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12632 $as_echo_n "(cached) " >&6
12635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12638 (eval $ac_compile) 2>&5
12640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12641 test $ac_status = 0; } 2>conftest.err; then
12644 libobjs=conftest.$ac_objext
12646 wl=$lt_prog_compiler_wl
12647 pic_flag=$lt_prog_compiler_pic
12653 lt_save_allow_undefined_flag=$allow_undefined_flag
12654 allow_undefined_flag=
12655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12656 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659 test $ac_status = 0; }
12661 lt_cv_archive_cmds_need_lc=no
12663 lt_cv_archive_cmds_need_lc=yes
12665 allow_undefined_flag=$lt_save_allow_undefined_flag
12667 cat conftest.err 1>&5
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12673 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12674 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12833 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12835 if test yes = "$GCC"; then
12837 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12838 *) lt_awk_arg='/^libraries:/' ;;
12841 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12842 *) lt_sed_strip_eq='s|=/|/|g' ;;
12844 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12845 case $lt_search_path_spec in
12847 # if the path contains ";" then we assume it to be the separator
12848 # otherwise default to the standard path separator (i.e. ":") - it is
12849 # assumed that no part of a normal pathname contains ";" but that should
12850 # okay in the real world where ";" in dirpaths is itself problematic.
12851 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12854 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12857 # Ok, now we have the path, separated by spaces, we can step through it
12858 # and add multilib dir if necessary...
12859 lt_tmp_lt_search_path_spec=
12860 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12861 # ...but if some path component already ends with the multilib dir we assume
12862 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12863 case "$lt_multi_os_dir; $lt_search_path_spec " in
12864 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12868 for lt_sys_path in $lt_search_path_spec; do
12869 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12870 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12871 elif test -n "$lt_multi_os_dir"; then
12872 test -d "$lt_sys_path" && \
12873 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12876 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12877 BEGIN {RS = " "; FS = "/|\n";} {
12880 for (lt_i = NF; lt_i > 0; lt_i--) {
12881 if ($lt_i != "" && $lt_i != ".") {
12882 if ($lt_i == "..") {
12885 if (lt_count == 0) {
12886 lt_foo = "/" $lt_i lt_foo;
12893 if (lt_foo != "") { lt_freq[lt_foo]++; }
12894 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12896 # AWK program above erroneously prepends '/' to C:/dos/paths
12899 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12900 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12902 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12904 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12906 library_names_spec=
12907 libname_spec='lib$name'
12911 postuninstall_cmds=
12915 shlibpath_overrides_runpath=unknown
12917 dynamic_linker="$host_os ld.so"
12918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12919 need_lib_prefix=unknown
12920 hardcode_into_libs=no
12922 # when you set need_version to no, make sure it does not cause -set_version
12923 # flags to be left without arguments
12924 need_version=unknown
12930 version_type=linux # correct to gnu/linux during the next big refactor
12931 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12932 shlibpath_var=LIBPATH
12934 # AIX 3 has no versioning support, so we append a major version to the name.
12935 soname_spec='$libname$release$shared_ext$major'
12939 version_type=linux # correct to gnu/linux during the next big refactor
12942 hardcode_into_libs=yes
12943 if test ia64 = "$host_cpu"; then
12944 # AIX 5 supports IA64
12945 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12946 shlibpath_var=LD_LIBRARY_PATH
12948 # With GCC up to 2.95.x, collect2 would create an import file
12949 # for dependence libraries. The import file would start with
12950 # the line '#! .'. This would cause the generated library to
12951 # depend on '.', always an invalid library. This was fixed in
12952 # development snapshots of GCC prior to 3.0.
12954 aix4 | aix4.[01] | aix4.[01].*)
12955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12957 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12960 can_build_shared=no
12964 # Using Import Files as archive members, it is possible to support
12965 # filename-based versioning of shared library archives on AIX. While
12966 # this would work for both with and without runtime linking, it will
12967 # prevent static linking of such archives. So we do filename-based
12968 # shared library versioning with .so extension only, which is used
12969 # when both runtime linking and shared linking is enabled.
12970 # Unfortunately, runtime linking may impact performance, so we do
12971 # not want this to be the default eventually. Also, we use the
12972 # versioned .so libs for executables only if there is the -brtl
12973 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12974 # To allow for filename-based versioning support, we need to create
12975 # libNAME.so.V as an archive file, containing:
12976 # *) an Import File, referring to the versioned filename of the
12977 # archive as well as the shared archive member, telling the
12978 # bitwidth (32 or 64) of that shared object, and providing the
12979 # list of exported symbols of that shared object, eventually
12980 # decorated with the 'weak' keyword
12981 # *) the shared object with the F_LOADONLY flag set, to really avoid
12982 # it being seen by the linker.
12983 # At run time we better use the real file rather than another symlink,
12984 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12986 case $with_aix_soname,$aix_use_runtimelinking in
12987 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12988 # soname into executable. Probably we can add versioning support to
12989 # collect2, so additional links can be useful in future.
12990 aix,yes) # traditional libtool
12991 dynamic_linker='AIX unversionable lib.so'
12992 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12993 # instead of lib<name>.a to let people know that these are not
12994 # typical AIX shared libraries.
12995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12997 aix,no) # traditional AIX only
12998 dynamic_linker='AIX lib.a(lib.so.V)'
12999 # We preserve .a as extension for shared libraries through AIX4.2
13000 # and later when we are not doing run time linking.
13001 library_names_spec='$libname$release.a $libname.a'
13002 soname_spec='$libname$release$shared_ext$major'
13004 svr4,*) # full svr4 only
13005 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13006 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13007 # We do not specify a path in Import Files, so LIBPATH fires.
13008 shlibpath_overrides_runpath=yes
13010 *,yes) # both, prefer svr4
13011 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13012 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13013 # unpreferred sharedlib libNAME.a needs extra handling
13014 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"'
13015 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"'
13016 # We do not specify a path in Import Files, so LIBPATH fires.
13017 shlibpath_overrides_runpath=yes
13019 *,no) # both, prefer aix
13020 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13021 library_names_spec='$libname$release.a $libname.a'
13022 soname_spec='$libname$release$shared_ext$major'
13023 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13024 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)'
13025 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"'
13028 shlibpath_var=LIBPATH
13035 # Since July 2007 AmigaOS4 officially supports .so libraries.
13036 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13040 library_names_spec='$libname.ixlibrary $libname.a'
13041 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13042 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'
13048 library_names_spec='$libname$shared_ext'
13049 dynamic_linker="$host_os ld.so"
13050 shlibpath_var=LIBRARY_PATH
13054 version_type=linux # correct to gnu/linux during the next big refactor
13056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13057 soname_spec='$libname$release$shared_ext$major'
13058 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13059 shlibpath_var=LD_LIBRARY_PATH
13060 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13061 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13062 # the default ld.so.conf also contains /usr/contrib/lib and
13063 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13064 # libtool to hard-code these into programs
13067 cygwin* | mingw* | pw32* | cegcc*)
13068 version_type=windows
13073 case $GCC,$cc_basename in
13076 library_names_spec='$libname.dll.a'
13077 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13078 postinstall_cmds='base_file=`basename \$file`~
13079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13080 dldir=$destdir/`dirname \$dlpath`~
13081 test -d \$dldir || mkdir -p \$dldir~
13082 $install_prog $dir/$dlname \$dldir/$dlname~
13083 chmod a+x \$dldir/$dlname~
13084 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13085 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13087 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13088 dlpath=$dir/\$dldll~
13090 shlibpath_overrides_runpath=yes
13094 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13095 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13097 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13100 # MinGW DLLs use traditional 'lib' prefix
13101 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13104 # pw32 DLLs use 'pw' prefix rather than 'lib'
13105 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13108 dynamic_linker='Win32 ld.exe'
13113 libname_spec='$name'
13114 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13115 library_names_spec='$libname.dll.lib'
13119 sys_lib_search_path_spec=
13122 for lt_path in $LIB
13125 # Let DOS variable expansion print the short 8.3 style file name.
13126 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13127 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13130 # Convert to MSYS style.
13131 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13134 # Convert to unix form, then to dos form, then back to unix form
13135 # but this time dos style (no spaces!) so that the unix form looks
13136 # like /cygdrive/c/PROGRA~1:/cygdr...
13137 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13138 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13139 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13142 sys_lib_search_path_spec=$LIB
13143 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13144 # It is most probably a Windows format PATH.
13145 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13147 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13149 # FIXME: find the short name or the path components, as spaces are
13150 # common. (e.g. "Program Files" -> "PROGRA~1")
13154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13155 postinstall_cmds='base_file=`basename \$file`~
13156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13157 dldir=$destdir/`dirname \$dlpath`~
13158 test -d \$dldir || mkdir -p \$dldir~
13159 $install_prog $dir/$dlname \$dldir/$dlname'
13160 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13161 dlpath=$dir/\$dldll~
13163 shlibpath_overrides_runpath=yes
13164 dynamic_linker='Win32 link.exe'
13168 # Assume MSVC wrapper
13169 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13170 dynamic_linker='Win32 ld.exe'
13173 # FIXME: first we should search . and the directory the executable is in
13177 darwin* | rhapsody*)
13178 dynamic_linker="$host_os dyld"
13179 version_type=darwin
13182 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13183 soname_spec='$libname$release$major$shared_ext'
13184 shlibpath_overrides_runpath=yes
13185 shlibpath_var=DYLD_LIBRARY_PATH
13186 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13188 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13189 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13193 version_type=linux # correct to gnu/linux during the next big refactor
13196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13197 soname_spec='$libname$release$shared_ext$major'
13198 shlibpath_var=LD_LIBRARY_PATH
13201 freebsd* | dragonfly*)
13202 # DragonFly does not have aout. When/if they implement a new
13203 # versioning mechanism, adjust this.
13204 if test -x /usr/bin/objformat; then
13205 objformat=`/usr/bin/objformat`
13208 freebsd[23].*) objformat=aout ;;
13209 *) objformat=elf ;;
13212 version_type=freebsd-$objformat
13213 case $version_type in
13215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13216 soname_spec='$libname$release$shared_ext$major'
13221 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13225 shlibpath_var=LD_LIBRARY_PATH
13228 shlibpath_overrides_runpath=yes
13230 freebsd3.[01]* | freebsdelf3.[01]*)
13231 shlibpath_overrides_runpath=yes
13232 hardcode_into_libs=yes
13234 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13235 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13236 shlibpath_overrides_runpath=no
13237 hardcode_into_libs=yes
13239 *) # from 4.6 on, and DragonFly
13240 shlibpath_overrides_runpath=yes
13241 hardcode_into_libs=yes
13247 version_type=linux # correct to gnu/linux during the next big refactor
13250 dynamic_linker="$host_os runtime_loader"
13251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13252 soname_spec='$libname$release$shared_ext$major'
13253 shlibpath_var=LIBRARY_PATH
13254 shlibpath_overrides_runpath=no
13255 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13256 hardcode_into_libs=yes
13259 hpux9* | hpux10* | hpux11*)
13260 # Give a soname corresponding to the major version so that dld.sl refuses to
13261 # link against other versions.
13268 hardcode_into_libs=yes
13269 dynamic_linker="$host_os dld.so"
13270 shlibpath_var=LD_LIBRARY_PATH
13271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13273 soname_spec='$libname$release$shared_ext$major'
13274 if test 32 = "$HPUX_IA64_MODE"; then
13275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13276 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13279 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13284 hardcode_into_libs=yes
13285 dynamic_linker="$host_os dld.sl"
13286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13289 soname_spec='$libname$release$shared_ext$major'
13290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13295 dynamic_linker="$host_os dld.sl"
13296 shlibpath_var=SHLIB_PATH
13297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13299 soname_spec='$libname$release$shared_ext$major'
13302 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13303 postinstall_cmds='chmod 555 $lib'
13304 # or fails outright, so override atomically:
13305 install_override_mode=555
13309 version_type=linux # correct to gnu/linux during the next big refactor
13312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13313 soname_spec='$libname$release$shared_ext$major'
13314 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13315 shlibpath_var=LD_LIBRARY_PATH
13316 shlibpath_overrides_runpath=no
13317 hardcode_into_libs=yes
13320 irix5* | irix6* | nonstopux*)
13322 nonstopux*) version_type=nonstopux ;;
13324 if test yes = "$lt_cv_prog_gnu_ld"; then
13325 version_type=linux # correct to gnu/linux during the next big refactor
13332 soname_spec='$libname$release$shared_ext$major'
13333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13335 irix5* | nonstopux*)
13336 libsuff= shlibsuff=
13339 case $LD in # libtool.m4 will add one of these switches to LD
13340 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13341 libsuff= shlibsuff= libmagic=32-bit;;
13342 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13343 libsuff=32 shlibsuff=N32 libmagic=N32;;
13344 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13345 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13346 *) libsuff= shlibsuff= libmagic=never-match;;
13350 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13351 shlibpath_overrides_runpath=no
13352 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13353 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13354 hardcode_into_libs=yes
13357 # No shared lib support for Linux oldld, aout, or coff.
13358 linux*oldld* | linux*aout* | linux*coff*)
13363 version_type=none # Android doesn't support versioned libraries.
13366 library_names_spec='$libname$release$shared_ext'
13367 soname_spec='$libname$release$shared_ext'
13369 shlibpath_var=LD_LIBRARY_PATH
13370 shlibpath_overrides_runpath=yes
13372 # This implies no fast_install, which is unacceptable.
13373 # Some rework will be needed to allow for fast_install
13374 # before this can be enabled.
13375 hardcode_into_libs=yes
13377 dynamic_linker='Android linker'
13378 # Don't embed -rpath directories since the linker doesn't support them.
13379 hardcode_libdir_flag_spec='-L$libdir'
13382 # This must be glibc/ELF.
13383 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13384 version_type=linux # correct to gnu/linux during the next big refactor
13387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13388 soname_spec='$libname$release$shared_ext$major'
13389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13390 shlibpath_var=LD_LIBRARY_PATH
13391 shlibpath_overrides_runpath=no
13393 # Some binutils ld are patched to set DT_RUNPATH
13394 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13395 $as_echo_n "(cached) " >&6
13397 lt_cv_shlibpath_overrides_runpath=no
13398 save_LDFLAGS=$LDFLAGS
13399 save_libdir=$libdir
13400 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13401 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13413 if ac_fn_c_try_link "$LINENO"; then :
13414 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13415 lt_cv_shlibpath_overrides_runpath=yes
13418 rm -f core conftest.err conftest.$ac_objext \
13419 conftest$ac_exeext conftest.$ac_ext
13420 LDFLAGS=$save_LDFLAGS
13421 libdir=$save_libdir
13425 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13427 # This implies no fast_install, which is unacceptable.
13428 # Some rework will be needed to allow for fast_install
13429 # before this can be enabled.
13430 hardcode_into_libs=yes
13432 # Add ABI-specific directories to the system library path.
13433 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13435 # Ideally, we could use ldconfig to report *all* directores which are
13436 # searched for libraries, however this is still not possible. Aside from not
13437 # being certain /sbin/ldconfig is available, command
13438 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13439 # even though it is searched at run-time. Try to do the best guess by
13440 # appending ld.so.conf contents (and includes) to the search path.
13441 if test -f /etc/ld.so.conf; then
13442 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' ' '`
13443 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13446 # We used to test for /lib/ld.so.1 and disable shared libraries on
13447 # powerpc, because MkLinux only supported shared libraries with the
13448 # GNU dynamic linker. Since this was broken with cross compilers,
13449 # most powerpc-linux boxes support dynamic linking these days and
13450 # people can always --disable-shared, the test was removed, and we
13451 # assume the GNU/Linux dynamic linker is in use.
13452 dynamic_linker='GNU/Linux ld.so'
13459 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13460 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13462 dynamic_linker='NetBSD (a.out) ld.so'
13464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13465 soname_spec='$libname$release$shared_ext$major'
13466 dynamic_linker='NetBSD ld.elf_so'
13468 shlibpath_var=LD_LIBRARY_PATH
13469 shlibpath_overrides_runpath=yes
13470 hardcode_into_libs=yes
13474 version_type=linux # correct to gnu/linux during the next big refactor
13475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13476 shlibpath_var=LD_LIBRARY_PATH
13477 shlibpath_overrides_runpath=yes
13484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13485 soname_spec='$libname$release$shared_ext$major'
13486 shlibpath_var=LD_LIBRARY_PATH
13487 shlibpath_overrides_runpath=no
13488 hardcode_into_libs=yes
13489 dynamic_linker='ldqnx.so'
13492 openbsd* | bitrig*)
13494 sys_lib_dlsearch_path_spec=/usr/lib
13496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13501 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13503 shlibpath_var=LD_LIBRARY_PATH
13504 shlibpath_overrides_runpath=yes
13508 libname_spec='$name'
13509 version_type=windows
13513 # OS/2 can only load a DLL with a base name of 8 characters or less.
13514 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13515 v=$($ECHO $release$versuffix | tr -d .-);
13516 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13517 $ECHO $n$v`$shared_ext'
13518 library_names_spec='${libname}_dll.$libext'
13519 dynamic_linker='OS/2 ld.exe'
13520 shlibpath_var=BEGINLIBPATH
13521 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13523 postinstall_cmds='base_file=`basename \$file`~
13524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13525 dldir=$destdir/`dirname \$dlpath`~
13526 test -d \$dldir || mkdir -p \$dldir~
13527 $install_prog $dir/$dlname \$dldir/$dlname~
13528 chmod a+x \$dldir/$dlname~
13529 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13530 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13532 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13533 dlpath=$dir/\$dldll~
13537 osf3* | osf4* | osf5*)
13541 soname_spec='$libname$release$shared_ext$major'
13542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13543 shlibpath_var=LD_LIBRARY_PATH
13544 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13553 version_type=linux # correct to gnu/linux during the next big refactor
13556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13557 soname_spec='$libname$release$shared_ext$major'
13558 shlibpath_var=LD_LIBRARY_PATH
13559 shlibpath_overrides_runpath=yes
13560 hardcode_into_libs=yes
13561 # ldd complains unless libraries are executable
13562 postinstall_cmds='chmod +x $lib'
13567 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13568 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13569 shlibpath_var=LD_LIBRARY_PATH
13570 shlibpath_overrides_runpath=yes
13571 if test yes = "$with_gnu_ld"; then
13578 version_type=linux # correct to gnu/linux during the next big refactor
13579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13580 soname_spec='$libname$release$shared_ext$major'
13581 shlibpath_var=LD_LIBRARY_PATH
13582 case $host_vendor in
13584 shlibpath_overrides_runpath=no
13586 runpath_var=LD_RUN_PATH
13594 shlibpath_overrides_runpath=no
13595 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13601 if test -d /usr/nec; then
13602 version_type=linux # correct to gnu/linux during the next big refactor
13603 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13604 soname_spec='$libname$shared_ext.$major'
13605 shlibpath_var=LD_LIBRARY_PATH
13609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13614 soname_spec='$libname$release$shared_ext$major'
13615 shlibpath_var=LD_LIBRARY_PATH
13616 shlibpath_overrides_runpath=yes
13617 hardcode_into_libs=yes
13618 if test yes = "$with_gnu_ld"; then
13619 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13621 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13624 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13628 sys_lib_dlsearch_path_spec='/usr/lib'
13632 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13633 version_type=linux # correct to gnu/linux during the next big refactor
13636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13637 shlibpath_var=LD_LIBRARY_PATH
13638 shlibpath_overrides_runpath=no
13639 hardcode_into_libs=yes
13643 version_type=linux # correct to gnu/linux during the next big refactor
13644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13645 soname_spec='$libname$release$shared_ext$major'
13646 shlibpath_var=LD_LIBRARY_PATH
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13654 $as_echo "$dynamic_linker" >&6; }
13655 test no = "$dynamic_linker" && can_build_shared=no
13657 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13658 if test yes = "$GCC"; then
13659 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13662 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13663 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13666 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13667 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13670 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13671 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13673 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13674 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13676 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13677 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13776 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13778 if test -n "$hardcode_libdir_flag_spec" ||
13779 test -n "$runpath_var" ||
13780 test yes = "$hardcode_automatic"; then
13782 # We can hardcode non-existent directories.
13783 if test no != "$hardcode_direct" &&
13784 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13785 # have to relink, otherwise we might link with an installed library
13786 # when we should be linking with a yet-to-be-installed one
13787 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13788 test no != "$hardcode_minus_L"; then
13789 # Linking always hardcodes the temporary library directory.
13790 hardcode_action=relink
13792 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13793 hardcode_action=immediate
13796 # We cannot hardcode anything, or else we can only hardcode existing
13798 hardcode_action=unsupported
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13801 $as_echo "$hardcode_action" >&6; }
13803 if test relink = "$hardcode_action" ||
13804 test yes = "$inherit_rpath"; then
13805 # Fast installation is not supported
13806 enable_fast_install=no
13807 elif test yes = "$shlibpath_overrides_runpath" ||
13808 test no = "$enable_shared"; then
13809 # Fast installation is not necessary
13810 enable_fast_install=needless
13818 if test yes != "$enable_dlopen"; then
13819 enable_dlopen=unknown
13820 enable_dlopen_self=unknown
13821 enable_dlopen_self_static=unknown
13828 lt_cv_dlopen=load_add_on
13830 lt_cv_dlopen_self=yes
13833 mingw* | pw32* | cegcc*)
13834 lt_cv_dlopen=LoadLibrary
13839 lt_cv_dlopen=dlopen
13844 # if libdl is installed we need to link against it
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13846 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13847 if ${ac_cv_lib_dl_dlopen+:} false; then :
13848 $as_echo_n "(cached) " >&6
13850 ac_check_lib_save_LIBS=$LIBS
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13855 /* Override any GCC internal prototype to avoid an error.
13856 Use char because int might match the return type of a GCC
13857 builtin and then its argument prototype would still apply. */
13870 if ac_fn_c_try_link "$LINENO"; then :
13871 ac_cv_lib_dl_dlopen=yes
13873 ac_cv_lib_dl_dlopen=no
13875 rm -f core conftest.err conftest.$ac_objext \
13876 conftest$ac_exeext conftest.$ac_ext
13877 LIBS=$ac_check_lib_save_LIBS
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13880 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13881 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13882 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13887 lt_cv_dlopen_self=yes
13894 # Don't try to run any link tests for TPF. We know it's impossible
13895 # because TPF is a cross-compiler, and we know how we open DSOs.
13896 lt_cv_dlopen=dlopen
13898 lt_cv_dlopen_self=no
13902 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13903 if test "x$ac_cv_func_shl_load" = xyes; then :
13904 lt_cv_dlopen=shl_load
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13907 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13908 if ${ac_cv_lib_dld_shl_load+:} false; then :
13909 $as_echo_n "(cached) " >&6
13911 ac_check_lib_save_LIBS=$LIBS
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13916 /* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
13926 return shl_load ();
13931 if ac_fn_c_try_link "$LINENO"; then :
13932 ac_cv_lib_dld_shl_load=yes
13934 ac_cv_lib_dld_shl_load=no
13936 rm -f core conftest.err conftest.$ac_objext \
13937 conftest$ac_exeext conftest.$ac_ext
13938 LIBS=$ac_check_lib_save_LIBS
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13941 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13942 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13943 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13945 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13946 if test "x$ac_cv_func_dlopen" = xyes; then :
13947 lt_cv_dlopen=dlopen
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13950 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13951 if ${ac_cv_lib_dl_dlopen+:} false; then :
13952 $as_echo_n "(cached) " >&6
13954 ac_check_lib_save_LIBS=$LIBS
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13959 /* Override any GCC internal prototype to avoid an error.
13960 Use char because int might match the return type of a GCC
13961 builtin and then its argument prototype would still apply. */
13974 if ac_fn_c_try_link "$LINENO"; then :
13975 ac_cv_lib_dl_dlopen=yes
13977 ac_cv_lib_dl_dlopen=no
13979 rm -f core conftest.err conftest.$ac_objext \
13980 conftest$ac_exeext conftest.$ac_ext
13981 LIBS=$ac_check_lib_save_LIBS
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13984 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13985 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13986 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13989 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13990 if ${ac_cv_lib_svld_dlopen+:} false; then :
13991 $as_echo_n "(cached) " >&6
13993 ac_check_lib_save_LIBS=$LIBS
13994 LIBS="-lsvld $LIBS"
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13998 /* Override any GCC internal prototype to avoid an error.
13999 Use char because int might match the return type of a GCC
14000 builtin and then its argument prototype would still apply. */
14013 if ac_fn_c_try_link "$LINENO"; then :
14014 ac_cv_lib_svld_dlopen=yes
14016 ac_cv_lib_svld_dlopen=no
14018 rm -f core conftest.err conftest.$ac_objext \
14019 conftest$ac_exeext conftest.$ac_ext
14020 LIBS=$ac_check_lib_save_LIBS
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14023 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14024 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14025 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14028 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14029 if ${ac_cv_lib_dld_dld_link+:} false; then :
14030 $as_echo_n "(cached) " >&6
14032 ac_check_lib_save_LIBS=$LIBS
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14037 /* Override any GCC internal prototype to avoid an error.
14038 Use char because int might match the return type of a GCC
14039 builtin and then its argument prototype would still apply. */
14047 return dld_link ();
14052 if ac_fn_c_try_link "$LINENO"; then :
14053 ac_cv_lib_dld_dld_link=yes
14055 ac_cv_lib_dld_dld_link=no
14057 rm -f core conftest.err conftest.$ac_objext \
14058 conftest$ac_exeext conftest.$ac_ext
14059 LIBS=$ac_check_lib_save_LIBS
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14062 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14063 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14064 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14085 if test no = "$lt_cv_dlopen"; then
14091 case $lt_cv_dlopen in
14093 save_CPPFLAGS=$CPPFLAGS
14094 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14096 save_LDFLAGS=$LDFLAGS
14097 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14100 LIBS="$lt_cv_dlopen_libs $LIBS"
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14103 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14104 if ${lt_cv_dlopen_self+:} false; then :
14105 $as_echo_n "(cached) " >&6
14107 if test yes = "$cross_compiling"; then :
14108 lt_cv_dlopen_self=cross
14110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14111 lt_status=$lt_dlunknown
14112 cat > conftest.$ac_ext <<_LT_EOF
14113 #line $LINENO "configure"
14114 #include "confdefs.h"
14123 # define LT_DLGLOBAL RTLD_GLOBAL
14126 # define LT_DLGLOBAL DL_GLOBAL
14128 # define LT_DLGLOBAL 0
14132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14133 find out it does not work in some platform. */
14134 #ifndef LT_DLLAZY_OR_NOW
14136 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14139 # define LT_DLLAZY_OR_NOW DL_LAZY
14142 # define LT_DLLAZY_OR_NOW RTLD_NOW
14145 # define LT_DLLAZY_OR_NOW DL_NOW
14147 # define LT_DLLAZY_OR_NOW 0
14154 /* When -fvisibility=hidden is used, assume the code has been annotated
14155 correspondingly for the symbols needed. */
14156 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14157 int fnord () __attribute__((visibility("default")));
14160 int fnord () { return 42; }
14163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14164 int status = $lt_dlunknown;
14168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14171 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14172 else puts (dlerror ());
14174 /* dlclose (self); */
14182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14183 (eval $ac_link) 2>&5
14185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14186 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14187 (./conftest; exit; ) >&5 2>/dev/null
14189 case x$lt_status in
14190 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14191 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14192 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14195 # compilation failed
14196 lt_cv_dlopen_self=no
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14204 $as_echo "$lt_cv_dlopen_self" >&6; }
14206 if test yes = "$lt_cv_dlopen_self"; then
14207 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14209 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14210 if ${lt_cv_dlopen_self_static+:} false; then :
14211 $as_echo_n "(cached) " >&6
14213 if test yes = "$cross_compiling"; then :
14214 lt_cv_dlopen_self_static=cross
14216 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14217 lt_status=$lt_dlunknown
14218 cat > conftest.$ac_ext <<_LT_EOF
14219 #line $LINENO "configure"
14220 #include "confdefs.h"
14229 # define LT_DLGLOBAL RTLD_GLOBAL
14232 # define LT_DLGLOBAL DL_GLOBAL
14234 # define LT_DLGLOBAL 0
14238 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14239 find out it does not work in some platform. */
14240 #ifndef LT_DLLAZY_OR_NOW
14242 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14245 # define LT_DLLAZY_OR_NOW DL_LAZY
14248 # define LT_DLLAZY_OR_NOW RTLD_NOW
14251 # define LT_DLLAZY_OR_NOW DL_NOW
14253 # define LT_DLLAZY_OR_NOW 0
14260 /* When -fvisibility=hidden is used, assume the code has been annotated
14261 correspondingly for the symbols needed. */
14262 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14263 int fnord () __attribute__((visibility("default")));
14266 int fnord () { return 42; }
14269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14270 int status = $lt_dlunknown;
14274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14277 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14278 else puts (dlerror ());
14280 /* dlclose (self); */
14288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14289 (eval $ac_link) 2>&5
14291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14292 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14293 (./conftest; exit; ) >&5 2>/dev/null
14295 case x$lt_status in
14296 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14297 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14298 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14301 # compilation failed
14302 lt_cv_dlopen_self_static=no
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14310 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14313 CPPFLAGS=$save_CPPFLAGS
14314 LDFLAGS=$save_LDFLAGS
14319 case $lt_cv_dlopen_self in
14320 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14321 *) enable_dlopen_self=unknown ;;
14324 case $lt_cv_dlopen_self_static in
14325 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14326 *) enable_dlopen_self_static=unknown ;;
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14349 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14350 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14351 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14352 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14354 $as_echo "yes" >&6; }
14356 # FIXME - insert some real tests, host_os isn't really good enough
14359 if test -n "$STRIP"; then
14360 striplib="$STRIP -x"
14361 old_striplib="$STRIP -S"
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14363 $as_echo "yes" >&6; }
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366 $as_echo "no" >&6; }
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 $as_echo "no" >&6; }
14387 # Report what library types will actually be built
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14389 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14391 $as_echo "$can_build_shared" >&6; }
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14394 $as_echo_n "checking whether to build shared libraries... " >&6; }
14395 test no = "$can_build_shared" && enable_shared=no
14397 # On AIX, shared libraries and static libraries use the same namespace, and
14398 # are all built from PIC.
14401 test yes = "$enable_shared" && enable_static=no
14402 if test -n "$RANLIB"; then
14403 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14404 postinstall_cmds='$RANLIB $lib'
14409 if test ia64 != "$host_cpu"; then
14410 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14411 yes,aix,yes) ;; # shared object as lib.so file only
14412 yes,svr4,*) ;; # shared object as lib.so archive member only
14413 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14419 $as_echo "$enable_shared" >&6; }
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14422 $as_echo_n "checking whether to build static libraries... " >&6; }
14423 # Make sure either enable_shared or enable_static is yes.
14424 test yes = "$enable_shared" || enable_static=yes
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14426 $as_echo "$enable_static" >&6; }
14433 ac_cpp='$CPP $CPPFLAGS'
14434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14454 ac_config_commands="$ac_config_commands libtool"
14459 # Only expand once:
14464 # Checks for header files.
14465 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
14467 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14468 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14470 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14471 cat >>confdefs.h <<_ACEOF
14472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14481 # Using own tests for int64* because autoconf builtin only give 32bit.
14482 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14483 if test "x$ac_cv_type_int8_t" = xyes; then :
14487 cat >>confdefs.h <<_ACEOF
14488 #define int8_t signed char
14493 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14494 if test "x$ac_cv_type_int16_t" = xyes; then :
14498 cat >>confdefs.h <<_ACEOF
14499 #define int16_t short
14504 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14505 if test "x$ac_cv_type_int32_t" = xyes; then :
14509 cat >>confdefs.h <<_ACEOF
14510 #define int32_t int
14515 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14516 if test "x$ac_cv_type_int64_t" = xyes; then :
14520 cat >>confdefs.h <<_ACEOF
14521 #define int64_t long long
14526 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14527 if test "x$ac_cv_type_uint8_t" = xyes; then :
14531 cat >>confdefs.h <<_ACEOF
14532 #define uint8_t unsigned char
14537 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14538 if test "x$ac_cv_type_uint16_t" = xyes; then :
14542 cat >>confdefs.h <<_ACEOF
14543 #define uint16_t unsigned short
14548 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14549 if test "x$ac_cv_type_uint32_t" = xyes; then :
14553 cat >>confdefs.h <<_ACEOF
14554 #define uint32_t unsigned int
14559 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14560 if test "x$ac_cv_type_uint64_t" = xyes; then :
14564 cat >>confdefs.h <<_ACEOF
14565 #define uint64_t unsigned long long
14570 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14571 if test "x$ac_cv_type_size_t" = xyes; then :
14575 cat >>confdefs.h <<_ACEOF
14576 #define size_t unsigned int
14581 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14582 if test "x$ac_cv_type_ssize_t" = xyes; then :
14586 cat >>confdefs.h <<_ACEOF
14587 #define ssize_t int
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14593 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14594 if ${ac_cv_type_uid_t+:} false; then :
14595 $as_echo_n "(cached) " >&6
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14599 #include <sys/types.h>
14602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14603 $EGREP "uid_t" >/dev/null 2>&1; then :
14604 ac_cv_type_uid_t=yes
14606 ac_cv_type_uid_t=no
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14612 $as_echo "$ac_cv_type_uid_t" >&6; }
14613 if test $ac_cv_type_uid_t = no; then
14615 $as_echo "#define uid_t int" >>confdefs.h
14618 $as_echo "#define gid_t int" >>confdefs.h
14622 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14623 if test "x$ac_cv_type_pid_t" = xyes; then :
14627 cat >>confdefs.h <<_ACEOF
14633 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14634 if test "x$ac_cv_type_off_t" = xyes; then :
14638 cat >>confdefs.h <<_ACEOF
14639 #define off_t long int
14644 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14645 $ac_includes_default
14646 #ifdef HAVE_WINSOCK2_H
14647 # include <winsock2.h>
14651 if test "x$ac_cv_type_u_char" = xyes; then :
14655 $as_echo "#define u_char unsigned char" >>confdefs.h
14659 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14660 $ac_includes_default
14661 #ifdef HAVE_SYS_RESOURCE_H
14662 # include <sys/resource.h>
14666 if test "x$ac_cv_type_rlim_t" = xyes; then :
14670 $as_echo "#define rlim_t unsigned long" >>confdefs.h
14675 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14676 $ac_includes_default
14677 #ifdef HAVE_SYS_SOCKET_H
14678 # include <sys/socket.h>
14680 #ifdef HAVE_WS2TCPIP_H
14681 # include <ws2tcpip.h>
14685 if test "x$ac_cv_type_socklen_t" = xyes; then :
14689 $as_echo "#define socklen_t int" >>confdefs.h
14693 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14694 $ac_includes_default
14695 #ifdef HAVE_SYS_TYPES_H
14696 # include <sys/types.h>
14698 #ifdef HAVE_NETINET_IN_H
14699 # include <netinet/in.h>
14703 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14707 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14711 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14712 $ac_includes_default
14713 #ifdef HAVE_SYS_TYPES_H
14714 # include <sys/types.h>
14716 #ifdef HAVE_NETINET_IN_H
14717 # include <netinet/in.h>
14721 if test "x$ac_cv_type_in_port_t" = xyes; then :
14725 $as_echo "#define in_port_t uint16_t" >>confdefs.h
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14730 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
14731 if test "$cross_compiling" = yes; then :
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14733 $as_echo "cross-compile no" >&6; }
14735 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14737 case " $LIBOBJS " in
14738 *" memcmp.$ac_objext "* ) ;;
14739 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14746 /* end confdefs.h. */
14749 #include <stdlib.h>
14750 #include <string.h>
14753 char a = 255, b = 0;
14754 if(memcmp(&a, &b, 1) < 0)
14760 if ac_fn_c_try_run "$LINENO"; then :
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14762 $as_echo "yes" >&6; }
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14765 $as_echo "no" >&6; }
14767 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14769 case " $LIBOBJS " in
14770 *" memcmp.$ac_objext "* ) ;;
14771 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14778 conftest.$ac_objext conftest.beam conftest.$ac_ext
14782 # The cast to long int works around a bug in the HP C Compiler
14783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14785 # This bug is HP SR number 8606223364.
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14787 $as_echo_n "checking size of time_t... " >&6; }
14788 if ${ac_cv_sizeof_time_t+:} false; then :
14789 $as_echo_n "(cached) " >&6
14791 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14792 $ac_includes_default
14793 #ifdef TIME_WITH_SYS_TIME
14794 # include <sys/time.h>
14797 # ifdef HAVE_SYS_TIME_H
14798 # include <sys/time.h>
14807 if test "$ac_cv_type_time_t" = yes; then
14808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14810 as_fn_error 77 "cannot compute sizeof (time_t)
14811 See \`config.log' for more details" "$LINENO" 5; }
14813 ac_cv_sizeof_time_t=0
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14819 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14823 cat >>confdefs.h <<_ACEOF
14824 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14829 # add option to disable the evil rpath
14831 # Check whether --enable-rpath was given.
14832 if test "${enable_rpath+set}" = set; then :
14833 enableval=$enable_rpath; enable_rpath=$enableval
14838 if test "x$enable_rpath" = xno; then
14839 ac_config_commands="$ac_config_commands disable-rpath"
14845 # check to see if libraries are needed for these functions.
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14847 $as_echo_n "checking for library containing inet_pton... " >&6; }
14848 if ${ac_cv_search_inet_pton+:} false; then :
14849 $as_echo_n "(cached) " >&6
14851 ac_func_search_save_LIBS=$LIBS
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14855 /* Override any GCC internal prototype to avoid an error.
14856 Use char because int might match the return type of a GCC
14857 builtin and then its argument prototype would still apply. */
14865 return inet_pton ();
14870 for ac_lib in '' nsl; do
14871 if test -z "$ac_lib"; then
14872 ac_res="none required"
14875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14877 if ac_fn_c_try_link "$LINENO"; then :
14878 ac_cv_search_inet_pton=$ac_res
14880 rm -f core conftest.err conftest.$ac_objext \
14882 if ${ac_cv_search_inet_pton+:} false; then :
14886 if ${ac_cv_search_inet_pton+:} false; then :
14889 ac_cv_search_inet_pton=no
14891 rm conftest.$ac_ext
14892 LIBS=$ac_func_search_save_LIBS
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14895 $as_echo "$ac_cv_search_inet_pton" >&6; }
14896 ac_res=$ac_cv_search_inet_pton
14897 if test "$ac_res" != no; then :
14898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14903 $as_echo_n "checking for library containing socket... " >&6; }
14904 if ${ac_cv_search_socket+:} false; then :
14905 $as_echo_n "(cached) " >&6
14907 ac_func_search_save_LIBS=$LIBS
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14911 /* Override any GCC internal prototype to avoid an error.
14912 Use char because int might match the return type of a GCC
14913 builtin and then its argument prototype would still apply. */
14926 for ac_lib in '' socket; do
14927 if test -z "$ac_lib"; then
14928 ac_res="none required"
14931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14933 if ac_fn_c_try_link "$LINENO"; then :
14934 ac_cv_search_socket=$ac_res
14936 rm -f core conftest.err conftest.$ac_objext \
14938 if ${ac_cv_search_socket+:} false; then :
14942 if ${ac_cv_search_socket+:} false; then :
14945 ac_cv_search_socket=no
14947 rm conftest.$ac_ext
14948 LIBS=$ac_func_search_save_LIBS
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14951 $as_echo "$ac_cv_search_socket" >&6; }
14952 ac_res=$ac_cv_search_socket
14953 if test "$ac_res" != no; then :
14954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14959 # check wether strptime also works
14961 # check some functions of the OS before linking libs (while still runnable).
14962 for ac_header in unistd.h
14964 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14965 if test "x$ac_cv_header_unistd_h" = xyes; then :
14966 cat >>confdefs.h <<_ACEOF
14967 #define HAVE_UNISTD_H 1
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14975 $as_echo_n "checking for working chown... " >&6; }
14976 if ${ac_cv_func_chown_works+:} false; then :
14977 $as_echo_n "(cached) " >&6
14979 if test "$cross_compiling" = yes; then :
14980 ac_cv_func_chown_works=no
14982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14983 /* end confdefs.h. */
14984 $ac_includes_default
14990 char *f = "conftest.chown";
14991 struct stat before, after;
14993 if (creat (f, 0600) < 0)
14995 if (stat (f, &before) < 0)
14997 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14999 if (stat (f, &after) < 0)
15001 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15007 if ac_fn_c_try_run "$LINENO"; then :
15008 ac_cv_func_chown_works=yes
15010 ac_cv_func_chown_works=no
15012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15013 conftest.$ac_objext conftest.beam conftest.$ac_ext
15016 rm -f conftest.chown
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15020 $as_echo "$ac_cv_func_chown_works" >&6; }
15021 if test $ac_cv_func_chown_works = yes; then
15023 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15027 for ac_header in vfork.h
15029 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15030 if test "x$ac_cv_header_vfork_h" = xyes; then :
15031 cat >>confdefs.h <<_ACEOF
15032 #define HAVE_VFORK_H 1
15039 for ac_func in fork vfork
15041 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15042 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15043 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15044 cat >>confdefs.h <<_ACEOF
15045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15051 if test "x$ac_cv_func_fork" = xyes; then
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15053 $as_echo_n "checking for working fork... " >&6; }
15054 if ${ac_cv_func_fork_works+:} false; then :
15055 $as_echo_n "(cached) " >&6
15057 if test "$cross_compiling" = yes; then :
15058 ac_cv_func_fork_works=cross
15060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15061 /* end confdefs.h. */
15062 $ac_includes_default
15067 /* By Ruediger Kuhlmann. */
15068 return fork () < 0;
15074 if ac_fn_c_try_run "$LINENO"; then :
15075 ac_cv_func_fork_works=yes
15077 ac_cv_func_fork_works=no
15079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15080 conftest.$ac_objext conftest.beam conftest.$ac_ext
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15085 $as_echo "$ac_cv_func_fork_works" >&6; }
15088 ac_cv_func_fork_works=$ac_cv_func_fork
15090 if test "x$ac_cv_func_fork_works" = xcross; then
15092 *-*-amigaos* | *-*-msdosdjgpp*)
15093 # Override, as these systems have only a dummy fork() stub
15094 ac_cv_func_fork_works=no
15097 ac_cv_func_fork_works=yes
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15101 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15103 ac_cv_func_vfork_works=$ac_cv_func_vfork
15104 if test "x$ac_cv_func_vfork" = xyes; then
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15106 $as_echo_n "checking for working vfork... " >&6; }
15107 if ${ac_cv_func_vfork_works+:} false; then :
15108 $as_echo_n "(cached) " >&6
15110 if test "$cross_compiling" = yes; then :
15111 ac_cv_func_vfork_works=cross
15113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114 /* end confdefs.h. */
15115 /* Thanks to Paul Eggert for this test. */
15116 $ac_includes_default
15117 #include <sys/wait.h>
15118 #ifdef HAVE_VFORK_H
15119 # include <vfork.h>
15121 /* On some sparc systems, changes by the child to local and incoming
15122 argument registers are propagated back to the parent. The compiler
15123 is told about this with #include <vfork.h>, but some compilers
15124 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15125 static variable whose address is put into a register that is
15126 clobbered by the vfork. */
15129 sparc_address_test (int arg)
15131 sparc_address_test (arg) int arg;
15134 static pid_t child;
15152 pid_t parent = getpid ();
15155 sparc_address_test (0);
15160 /* Here is another test for sparc vfork register problems. This
15161 test uses lots of local variables, at least as many local
15162 variables as main has allocated so far including compiler
15163 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15164 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15165 reuse the register of parent for one of the local variables,
15166 since it will think that parent can't possibly be used any more
15167 in this routine. Assigning to the local variable will thus
15168 munge parent in the parent process. */
15170 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15171 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15172 /* Convince the compiler that p..p7 are live; otherwise, it might
15173 use the same hardware register for all 8 local variables. */
15174 if (p != p1 || p != p2 || p != p3 || p != p4
15175 || p != p5 || p != p6 || p != p7)
15178 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15179 from child file descriptors. If the child closes a descriptor
15180 before it execs or exits, this munges the parent's descriptor
15181 as well. Test for this by closing stdout in the child. */
15182 _exit(close(fileno(stdout)) != 0);
15187 while (wait(&status) != child)
15190 /* Was there some problem with vforking? */
15193 /* Did the child fail? (This shouldn't happen.) */
15196 /* Did the vfork/compiler bug occur? */
15197 || parent != getpid()
15199 /* Did the file descriptor bug occur? */
15200 || fstat(fileno(stdout), &st) != 0
15205 if ac_fn_c_try_run "$LINENO"; then :
15206 ac_cv_func_vfork_works=yes
15208 ac_cv_func_vfork_works=no
15210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15211 conftest.$ac_objext conftest.beam conftest.$ac_ext
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15216 $as_echo "$ac_cv_func_vfork_works" >&6; }
15219 if test "x$ac_cv_func_fork_works" = xcross; then
15220 ac_cv_func_vfork_works=$ac_cv_func_vfork
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15222 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15225 if test "x$ac_cv_func_vfork_works" = xyes; then
15227 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15231 $as_echo "#define vfork fork" >>confdefs.h
15234 if test "x$ac_cv_func_fork_works" = xyes; then
15236 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15241 $as_echo_n "checking return type of signal handlers... " >&6; }
15242 if ${ac_cv_type_signal+:} false; then :
15243 $as_echo_n "(cached) " >&6
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15247 #include <sys/types.h>
15248 #include <signal.h>
15253 return *(signal (0, 0)) (0) == 1;
15258 if ac_fn_c_try_compile "$LINENO"; then :
15259 ac_cv_type_signal=int
15261 ac_cv_type_signal=void
15263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15266 $as_echo "$ac_cv_type_signal" >&6; }
15268 cat >>confdefs.h <<_ACEOF
15269 #define RETSIGTYPE $ac_cv_type_signal
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15274 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15275 if ${ac_cv_sys_largefile_source+:} false; then :
15276 $as_echo_n "(cached) " >&6
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15281 #include <sys/types.h> /* for off_t */
15286 int (*fp) (FILE *, off_t, int) = fseeko;
15287 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15292 if ac_fn_c_try_link "$LINENO"; then :
15293 ac_cv_sys_largefile_source=no; break
15295 rm -f core conftest.err conftest.$ac_objext \
15296 conftest$ac_exeext conftest.$ac_ext
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15299 #define _LARGEFILE_SOURCE 1
15300 #include <sys/types.h> /* for off_t */
15305 int (*fp) (FILE *, off_t, int) = fseeko;
15306 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15311 if ac_fn_c_try_link "$LINENO"; then :
15312 ac_cv_sys_largefile_source=1; break
15314 rm -f core conftest.err conftest.$ac_objext \
15315 conftest$ac_exeext conftest.$ac_ext
15316 ac_cv_sys_largefile_source=unknown
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15321 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15322 case $ac_cv_sys_largefile_source in #(
15325 cat >>confdefs.h <<_ACEOF
15326 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15332 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15333 # in glibc 2.1.3, but that breaks too many other things.
15334 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15335 if test $ac_cv_sys_largefile_source != unknown; then
15337 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15342 # Check whether --enable-largefile was given.
15343 if test "${enable_largefile+set}" = set; then :
15344 enableval=$enable_largefile;
15347 if test "$enable_largefile" != no; then
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15350 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15351 if ${ac_cv_sys_largefile_CC+:} false; then :
15352 $as_echo_n "(cached) " >&6
15354 ac_cv_sys_largefile_CC=no
15355 if test "$GCC" != yes; then
15358 # IRIX 6.2 and later do not support large files by default,
15359 # so use the C compiler's -n32 option if that helps.
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362 #include <sys/types.h>
15363 /* Check that off_t can represent 2**63 - 1 correctly.
15364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15365 since some C++ compilers masquerading as C compilers
15366 incorrectly reject 9223372036854775807. */
15367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15369 && LARGE_OFF_T % 2147483647 == 1)
15379 if ac_fn_c_try_compile "$LINENO"; then :
15382 rm -f core conftest.err conftest.$ac_objext
15384 if ac_fn_c_try_compile "$LINENO"; then :
15385 ac_cv_sys_largefile_CC=' -n32'; break
15387 rm -f core conftest.err conftest.$ac_objext
15391 rm -f conftest.$ac_ext
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15395 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15396 if test "$ac_cv_sys_largefile_CC" != no; then
15397 CC=$CC$ac_cv_sys_largefile_CC
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15401 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15402 if ${ac_cv_sys_file_offset_bits+:} false; then :
15403 $as_echo_n "(cached) " >&6
15406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h. */
15408 #include <sys/types.h>
15409 /* Check that off_t can represent 2**63 - 1 correctly.
15410 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15411 since some C++ compilers masquerading as C compilers
15412 incorrectly reject 9223372036854775807. */
15413 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15414 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15415 && LARGE_OFF_T % 2147483647 == 1)
15425 if ac_fn_c_try_compile "$LINENO"; then :
15426 ac_cv_sys_file_offset_bits=no; break
15428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h. */
15431 #define _FILE_OFFSET_BITS 64
15432 #include <sys/types.h>
15433 /* Check that off_t can represent 2**63 - 1 correctly.
15434 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15435 since some C++ compilers masquerading as C compilers
15436 incorrectly reject 9223372036854775807. */
15437 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15438 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15439 && LARGE_OFF_T % 2147483647 == 1)
15449 if ac_fn_c_try_compile "$LINENO"; then :
15450 ac_cv_sys_file_offset_bits=64; break
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453 ac_cv_sys_file_offset_bits=unknown
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15458 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15459 case $ac_cv_sys_file_offset_bits in #(
15462 cat >>confdefs.h <<_ACEOF
15463 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15468 if test $ac_cv_sys_file_offset_bits = unknown; then
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15470 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15471 if ${ac_cv_sys_large_files+:} false; then :
15472 $as_echo_n "(cached) " >&6
15475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h. */
15477 #include <sys/types.h>
15478 /* Check that off_t can represent 2**63 - 1 correctly.
15479 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15480 since some C++ compilers masquerading as C compilers
15481 incorrectly reject 9223372036854775807. */
15482 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15483 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15484 && LARGE_OFF_T % 2147483647 == 1)
15494 if ac_fn_c_try_compile "$LINENO"; then :
15495 ac_cv_sys_large_files=no; break
15497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h. */
15500 #define _LARGE_FILES 1
15501 #include <sys/types.h>
15502 /* Check that off_t can represent 2**63 - 1 correctly.
15503 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15504 since some C++ compilers masquerading as C compilers
15505 incorrectly reject 9223372036854775807. */
15506 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15507 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15508 && LARGE_OFF_T % 2147483647 == 1)
15518 if ac_fn_c_try_compile "$LINENO"; then :
15519 ac_cv_sys_large_files=1; break
15521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15522 ac_cv_sys_large_files=unknown
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15527 $as_echo "$ac_cv_sys_large_files" >&6; }
15528 case $ac_cv_sys_large_files in #(
15531 cat >>confdefs.h <<_ACEOF
15532 #define _LARGE_FILES $ac_cv_sys_large_files
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15546 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15547 cache=_D_LARGEFILE_SOURCE_1
15548 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15549 $as_echo_n "(cached) " >&6
15555 int a = fseeko(stdin, 0, 0);
15559 echo 'void f(){}' >>conftest.c
15560 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15561 eval "cv_prog_cc_flag_needed_$cache=no"
15564 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15565 eval "cv_prog_cc_flag_needed_$cache=yes"
15567 eval "cv_prog_cc_flag_needed_$cache=fail"
15568 #echo 'Test with flag fails too!'
15570 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15571 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15576 rm -f conftest conftest.c conftest.o
15580 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15582 $as_echo "yes" >&6; }
15584 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15586 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15588 $as_echo "no" >&6; }
15589 #echo 'Test with flag is no!'
15591 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15592 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15598 $as_echo "failed" >&6; }
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15607 $as_echo_n "checking if nonblocking sockets work... " >&6; }
15608 if echo $target | grep mingw32 >/dev/null; then
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15610 $as_echo "no (windows)" >&6; }
15612 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15615 if test "$cross_compiling" = yes; then :
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15618 $as_echo "crosscompile(yes)" >&6; }
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15626 #include <string.h>
15627 #include <stdlib.h>
15630 #ifdef HAVE_SYS_TYPES_H
15631 #include <sys/types.h>
15633 #ifdef HAVE_SYS_SOCKET_H
15634 #include <sys/socket.h>
15636 #ifdef HAVE_NETINET_IN_H
15637 #include <netinet/in.h>
15639 #ifdef HAVE_ARPA_INET_H
15640 #include <arpa/inet.h>
15642 #ifdef HAVE_UNISTD_H
15643 #include <unistd.h>
15655 struct sockaddr_in a;
15656 /* test if select and nonblocking reads work well together */
15658 fork child to send 10 messages.
15660 then try to nonblocking read the 10 messages
15661 then, nonblocking read must give EAGAIN
15664 port = 12345 + (time(0)%32);
15665 sfd = socket(PF_INET, SOCK_DGRAM, 0);
15670 memset(&a, 0, sizeof(a));
15671 a.sin_family = AF_INET;
15672 a.sin_port = htons(port);
15673 a.sin_addr.s_addr = inet_addr("127.0.0.1");
15674 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15678 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15683 cfd = socket(PF_INET, SOCK_DGRAM, 0);
15685 perror("client socket");
15689 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15690 perror("client bind");
15693 a.sin_port = htons(port);
15695 /* no handler, causes exit in 10 seconds */
15698 /* send and receive on the socket */
15699 if((p=fork()) == 0) {
15700 for(i=0; i<num; i++) {
15701 if(sendto(cfd, &i, sizeof(i), 0,
15702 (struct sockaddr*)&a, sizeof(a)) < 0) {
15716 FD_SET(sfd, &rset);
15717 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15723 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15724 if(errno == EAGAIN)
15731 /* now we want to get EAGAIN: nonblocking goodness */
15733 recv(sfd, &x, sizeof(x), 0);
15734 if(errno != EAGAIN) {
15735 perror("trying to recv again");
15738 /* EAGAIN encountered */
15747 if ac_fn_c_try_run "$LINENO"; then :
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15750 $as_echo "yes" >&6; }
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15755 $as_echo "no" >&6; }
15757 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15762 conftest.$ac_objext conftest.beam conftest.$ac_ext
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15769 $as_echo_n "checking whether mkdir has one arg... " >&6; }
15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15774 #include <unistd.h>
15775 #ifdef HAVE_WINSOCK2_H
15776 #include <winsock2.h>
15778 #ifdef HAVE_SYS_STAT_H
15779 #include <sys/stat.h>
15786 (void)mkdir("directory");
15792 if ac_fn_c_try_compile "$LINENO"; then :
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15794 $as_echo "yes" >&6; }
15796 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15801 $as_echo "no" >&6; }
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806 for ac_func in strptime
15808 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15809 if test "x$ac_cv_func_strptime" = xyes; then :
15810 cat >>confdefs.h <<_ACEOF
15811 #define HAVE_STRPTIME 1
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15815 $as_echo_n "checking whether strptime works... " >&6; }
15816 if test c${cross_compiling} = cno; then
15817 if test "$cross_compiling" = yes; then :
15818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15820 as_fn_error $? "cannot run test program while cross compiling
15821 See \`config.log' for more details" "$LINENO" 5; }
15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15826 #define _XOPEN_SOURCE 600
15828 int main(void) { struct tm tm; char *res;
15829 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);
15830 if (!res) return 2;
15831 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15832 if (!res) return 1; return 0; }
15835 if ac_fn_c_try_run "$LINENO"; then :
15836 eval "ac_cv_c_strptime_works=yes"
15838 eval "ac_cv_c_strptime_works=no"
15840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15841 conftest.$ac_objext conftest.beam conftest.$ac_ext
15845 eval "ac_cv_c_strptime_works=maybe"
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15848 $as_echo "$ac_cv_c_strptime_works" >&6; }
15849 if test $ac_cv_c_strptime_works = no; then
15850 case " $LIBOBJS " in
15851 *" strptime.$ac_objext "* ) ;;
15852 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15858 cat >>confdefs.h <<_ACEOF
15859 #define STRPTIME_WORKS 1
15865 case " $LIBOBJS " in
15866 *" strptime.$ac_objext "* ) ;;
15867 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15875 # set memory allocation checking if requested
15876 # Check whether --enable-alloc-checks was given.
15877 if test "${enable_alloc_checks+set}" = set; then :
15878 enableval=$enable_alloc_checks;
15881 # Check whether --enable-alloc-lite was given.
15882 if test "${enable_alloc_lite+set}" = set; then :
15883 enableval=$enable_alloc_lite;
15886 # Check whether --enable-alloc-nonregional was given.
15887 if test "${enable_alloc_nonregional+set}" = set; then :
15888 enableval=$enable_alloc_nonregional;
15891 if test x_$enable_alloc_nonregional = x_yes; then
15893 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15896 if test x_$enable_alloc_checks = x_yes; then
15898 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15901 if test x_$enable_alloc_lite = x_yes; then
15903 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15908 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15909 if test "$cross_compiling" = yes; then :
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15911 $as_echo "no (crosscompile)" >&6; }
15912 case " $LIBOBJS " in
15913 *" malloc.$ac_objext "* ) ;;
15914 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15919 cat >>confdefs.h <<_ACEOF
15920 #define malloc rpl_malloc_unbound
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15926 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15927 #include <stdlib.h>
15935 if(malloc(0) != 0) return 1;
15941 if ac_fn_c_try_run "$LINENO"; then :
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15943 $as_echo "no" >&6; }
15944 case " $LIBOBJS " in
15945 *" malloc.$ac_objext "* ) ;;
15946 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15951 cat >>confdefs.h <<_ACEOF
15952 #define malloc rpl_malloc_unbound
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15957 $as_echo "yes" >&6; }
15959 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15963 conftest.$ac_objext conftest.beam conftest.$ac_ext
15970 # check windows threads (we use them, not pthreads, on windows).
15971 if test "$on_mingw" = "yes"; then
15972 # check windows threads
15973 for ac_header in windows.h
15975 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15977 if test "x$ac_cv_header_windows_h" = xyes; then :
15978 cat >>confdefs.h <<_ACEOF
15979 #define HAVE_WINDOWS_H 1
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15987 $as_echo_n "checking for CreateThread... " >&6; }
15988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15989 /* end confdefs.h. */
15991 #ifdef HAVE_WINDOWS_H
15992 #include <windows.h>
15999 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16005 if ac_fn_c_try_compile "$LINENO"; then :
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16007 $as_echo "yes" >&6; }
16009 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16014 $as_echo "no" >&6; }
16017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16020 # not on mingw, check thread libraries.
16022 # check for thread library.
16023 # check this first, so that the pthread lib does not get linked in via
16024 # libssl or libpython, and thus distorts the tests, and we end up using
16025 # the non-threadsafe C libraries.
16027 # Check whether --with-pthreads was given.
16028 if test "${with_pthreads+set}" = set; then :
16029 withval=$with_pthreads;
16034 ub_have_pthreads=no
16035 if test x_$withval != x_no; then
16039 ac_cpp='$CPP $CPPFLAGS'
16040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16046 # We used to check for pthread.h first, but this fails if pthread.h
16047 # requires special compiler flags (e.g. on True64 or Sequent).
16048 # It gets checked for in the link test anyway.
16050 # First of all, check if the user has set any of the PTHREAD_LIBS,
16051 # etcetera environment variables, and if threads linking works using
16053 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16054 save_CFLAGS="$CFLAGS"
16055 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16057 LIBS="$PTHREAD_LIBS $LIBS"
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16059 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16063 /* Override any GCC internal prototype to avoid an error.
16064 Use char because int might match the return type of a GCC
16065 builtin and then its argument prototype would still apply. */
16069 char pthread_join ();
16073 return pthread_join ();
16078 if ac_fn_c_try_link "$LINENO"; then :
16081 rm -f core conftest.err conftest.$ac_objext \
16082 conftest$ac_exeext conftest.$ac_ext
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16084 $as_echo "$ax_pthread_ok" >&6; }
16085 if test x"$ax_pthread_ok" = xno; then
16090 CFLAGS="$save_CFLAGS"
16093 # We must check for the threads library under a number of different
16094 # names; the ordering is very important because some systems
16095 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16096 # libraries is broken (non-POSIX).
16098 # Create a list of thread flags to try. Items starting with a "-" are
16099 # C compiler flags, and other items are library names, except for "none"
16100 # which indicates that we try without any flags at all, and "pthread-config"
16101 # which is a program returning the flags for the Pth emulation library.
16103 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16105 # The ordering *is* (sometimes) important. Some notes on the
16106 # individual items follow:
16108 # pthreads: AIX (must check this before -lpthread)
16109 # none: in case threads are in libc; should be tried before -Kthread and
16110 # other compiler flags to prevent continual compiler warnings
16111 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16112 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16113 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16114 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16115 # -pthreads: Solaris/gcc
16116 # -mthreads: Mingw32/gcc, Lynx/gcc
16117 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16118 # doesn't hurt to check since this sometimes defines pthreads too;
16119 # also defines -D_REENTRANT)
16120 # ... -mt is also the pthreads flag for HP/aCC
16121 # pthread: Linux, etcetera
16122 # --thread-safe: KAI C++
16123 # pthread-config: use pthread-config program (for GNU Pth library)
16128 # On Solaris (at least, for some versions), libc contains stubbed
16129 # (non-functional) versions of the pthreads routines, so link-based
16130 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16131 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16132 # a function called by this macro, so we could check for that, but
16133 # who knows whether they'll stub that too in a future libc.) So,
16134 # we'll just look for -pthreads and -lpthread first:
16136 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16140 ax_pthread_flags="-pthread $ax_pthread_flags"
16144 # Clang doesn't consider unrecognized options an error unless we specify
16145 # -Werror. We throw in some extra Clang-specific options to ensure that
16146 # this doesn't happen for GCC, which also accepts -Werror.
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16149 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16150 save_CFLAGS="$CFLAGS"
16151 ax_pthread_extra_flags="-Werror"
16152 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16164 if ac_fn_c_try_compile "$LINENO"; then :
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16166 $as_echo "yes" >&6; }
16168 ax_pthread_extra_flags=
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16170 $as_echo "no" >&6; }
16172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16173 CFLAGS="$save_CFLAGS"
16175 if test x"$ax_pthread_ok" = xno; then
16176 for flag in $ax_pthread_flags; do
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16181 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16186 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16187 PTHREAD_CFLAGS="$flag"
16191 # Extract the first word of "pthread-config", so it can be a program name with args.
16192 set dummy pthread-config; ac_word=$2
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16194 $as_echo_n "checking for $ac_word... " >&6; }
16195 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16196 $as_echo_n "(cached) " >&6
16198 if test -n "$ax_pthread_config"; then
16199 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16202 for as_dir in $PATH
16205 test -z "$as_dir" && as_dir=.
16206 for ac_exec_ext in '' $ac_executable_extensions; do
16207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16208 ac_cv_prog_ax_pthread_config="yes"
16209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16216 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16219 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16220 if test -n "$ax_pthread_config"; then
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16222 $as_echo "$ax_pthread_config" >&6; }
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16225 $as_echo "no" >&6; }
16229 if test x"$ax_pthread_config" = xno; then continue; fi
16230 PTHREAD_CFLAGS="`pthread-config --cflags`"
16231 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16236 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16237 PTHREAD_LIBS="-l$flag"
16242 save_CFLAGS="$CFLAGS"
16243 LIBS="$PTHREAD_LIBS $LIBS"
16244 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16246 # Check for various functions. We must include pthread.h,
16247 # since some functions may be macros. (On the Sequent, we
16248 # need a special flag -Kthread to make this header compile.)
16249 # We check for pthread_join because it is in -lpthread on IRIX
16250 # while pthread_create is in libc. We check for pthread_attr_init
16251 # due to DEC craziness with -lpthreads. We check for
16252 # pthread_cleanup_push because it is one of the few pthread
16253 # functions on Solaris that doesn't have a non-functional libc stub.
16254 # We try pthread_create on general principles.
16255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16256 /* end confdefs.h. */
16257 #include <pthread.h>
16258 static void routine(void *a) { *((int*)a) = 0; }
16259 static void *start_routine(void *a) { return a; }
16263 pthread_t th; pthread_attr_t attr;
16264 pthread_create(&th, 0, start_routine, 0);
16265 pthread_join(th, 0);
16266 pthread_attr_init(&attr);
16267 pthread_cleanup_push(routine, 0);
16268 pthread_cleanup_pop(0) /* ; */
16273 if ac_fn_c_try_link "$LINENO"; then :
16276 rm -f core conftest.err conftest.$ac_objext \
16277 conftest$ac_exeext conftest.$ac_ext
16280 CFLAGS="$save_CFLAGS"
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16283 $as_echo "$ax_pthread_ok" >&6; }
16284 if test "x$ax_pthread_ok" = xyes; then
16293 # Various other checks:
16294 if test "x$ax_pthread_ok" = xyes; then
16296 LIBS="$PTHREAD_LIBS $LIBS"
16297 save_CFLAGS="$CFLAGS"
16298 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16300 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16302 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16304 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h. */
16307 #include <pthread.h>
16311 int attr = $attr; return attr /* ; */
16316 if ac_fn_c_try_link "$LINENO"; then :
16317 attr_name=$attr; break
16319 rm -f core conftest.err conftest.$ac_objext \
16320 conftest$ac_exeext conftest.$ac_ext
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16323 $as_echo "$attr_name" >&6; }
16324 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16326 cat >>confdefs.h <<_ACEOF
16327 #define PTHREAD_CREATE_JOINABLE $attr_name
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16333 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16336 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16337 osf* | hpux*) flag="-D_REENTRANT";;
16339 if test "$GCC" = "yes"; then
16340 flag="-D_REENTRANT"
16342 # TODO: What about Clang on Solaris?
16343 flag="-mt -D_REENTRANT"
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16348 $as_echo "$flag" >&6; }
16349 if test "x$flag" != xno; then
16350 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16354 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16355 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16356 $as_echo_n "(cached) " >&6
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16361 #include <pthread.h>
16365 int i = PTHREAD_PRIO_INHERIT;
16370 if ac_fn_c_try_link "$LINENO"; then :
16371 ax_cv_PTHREAD_PRIO_INHERIT=yes
16373 ax_cv_PTHREAD_PRIO_INHERIT=no
16375 rm -f core conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16380 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16381 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16383 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16388 CFLAGS="$save_CFLAGS"
16390 # More AIX lossage: compile with *_r variant
16391 if test "x$GCC" != xyes; then
16395 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16396 #handle absolute path differently from PATH based program lookup
16399 if as_fn_executable_p ${CC}_r; then :
16400 PTHREAD_CC="${CC}_r"
16403 for ac_prog in ${CC}_r
16405 # Extract the first word of "$ac_prog", so it can be a program name with args.
16406 set dummy $ac_prog; ac_word=$2
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16408 $as_echo_n "checking for $ac_word... " >&6; }
16409 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16410 $as_echo_n "(cached) " >&6
16412 if test -n "$PTHREAD_CC"; then
16413 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16416 for as_dir in $PATH
16419 test -z "$as_dir" && as_dir=.
16420 for ac_exec_ext in '' $ac_executable_extensions; do
16421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16422 ac_cv_prog_PTHREAD_CC="$ac_prog"
16423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16432 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16433 if test -n "$PTHREAD_CC"; then
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16435 $as_echo "$PTHREAD_CC" >&6; }
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16438 $as_echo "no" >&6; }
16442 test -n "$PTHREAD_CC" && break
16444 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16455 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16461 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16462 if test x"$ax_pthread_ok" = xyes; then
16465 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16467 LIBS="$PTHREAD_LIBS $LIBS"
16468 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16470 ub_have_pthreads=yes
16471 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16473 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16475 cat >>confdefs.h <<_ACEOF
16476 #define HAVE_PTHREAD_SPINLOCK_T 1
16481 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16483 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16485 cat >>confdefs.h <<_ACEOF
16486 #define HAVE_PTHREAD_RWLOCK_T 1
16493 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
16495 $as_echo_n "checking if -pthread unused during linking... " >&6; }
16496 # catch clang warning 'argument unused during compilation'
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h. */
16499 $ac_includes_default
16501 int main(void) {return 0;}
16504 pthread_unused="yes"
16506 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
16507 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
16508 if test $? = 0; then
16510 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
16511 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
16512 if test $? -ne 0; then
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16514 $as_echo "yes" >&6; }
16515 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
16516 PTHREAD_CFLAGS_ONLY="-pthread"
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16520 $as_echo "no" >&6; }
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16524 $as_echo "no" >&6; }
16525 fi # endif cc successful
16526 rm -f conftest conftest.c conftest.o
16527 fi # endif -pthread in CFLAGS
16536 ac_cpp='$CPP $CPPFLAGS'
16537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16544 # check solaris thread library
16546 # Check whether --with-solaris-threads was given.
16547 if test "${with_solaris_threads+set}" = set; then :
16548 withval=$with_solaris_threads;
16553 ub_have_sol_threads=no
16554 if test x_$withval != x_no; then
16555 if test x_$ub_have_pthreads != x_no; then
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
16557 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
16560 $as_echo_n "checking for library containing thr_create... " >&6; }
16561 if ${ac_cv_search_thr_create+:} false; then :
16562 $as_echo_n "(cached) " >&6
16564 ac_func_search_save_LIBS=$LIBS
16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566 /* end confdefs.h. */
16568 /* Override any GCC internal prototype to avoid an error.
16569 Use char because int might match the return type of a GCC
16570 builtin and then its argument prototype would still apply. */
16574 char thr_create ();
16578 return thr_create ();
16583 for ac_lib in '' thread; do
16584 if test -z "$ac_lib"; then
16585 ac_res="none required"
16588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16590 if ac_fn_c_try_link "$LINENO"; then :
16591 ac_cv_search_thr_create=$ac_res
16593 rm -f core conftest.err conftest.$ac_objext \
16595 if ${ac_cv_search_thr_create+:} false; then :
16599 if ${ac_cv_search_thr_create+:} false; then :
16602 ac_cv_search_thr_create=no
16604 rm conftest.$ac_ext
16605 LIBS=$ac_func_search_save_LIBS
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
16608 $as_echo "$ac_cv_search_thr_create" >&6; }
16609 ac_res=$ac_cv_search_thr_create
16610 if test "$ac_res" != no; then :
16611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16614 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
16620 $as_echo_n "checking whether $CC supports -mt... " >&6; }
16621 cache=`echo mt | sed 'y%.=/+-%___p_%'`
16622 if eval \${cv_prog_cc_flag_$cache+:} false; then :
16623 $as_echo_n "(cached) " >&6
16626 echo 'void f(void){}' >conftest.c
16627 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
16628 eval "cv_prog_cc_flag_$cache=yes"
16630 eval "cv_prog_cc_flag_$cache=no"
16632 rm -f conftest conftest.o conftest.c
16636 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16638 $as_echo "yes" >&6; }
16640 CFLAGS="$CFLAGS -mt"
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16643 $as_echo "no" >&6; }
16645 CFLAGS="$CFLAGS -D_REENTRANT"
16648 ub_have_sol_threads=yes
16652 as_fn_error $? "no solaris threads found." "$LINENO" 5
16659 fi # end of non-mingw check of thread libraries
16661 # Check for PyUnbound
16663 # Check whether --with-pyunbound was given.
16664 if test "${with_pyunbound+set}" = set; then :
16665 withval=$with_pyunbound;
16672 ub_with_pyunbound=no
16673 if test x_$withval != x_no; then
16674 ub_with_pyunbound=yes
16678 # Check for Python module
16680 # Check whether --with-pythonmodule was given.
16681 if test "${with_pythonmodule+set}" = set; then :
16682 withval=$with_pythonmodule;
16688 ub_with_pythonmod=no
16689 if test x_$withval != x_no; then
16690 ub_with_pythonmod=yes
16694 # Check for Python & SWIG only on PyUnbound or PyModule
16695 if test x_$ub_test_python != x_no; then
16699 ac_save_LIBS="$LIBS"
16701 # Allow the use of a (user set) custom python version
16705 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16706 set dummy python$PYTHON_VERSION; ac_word=$2
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16708 $as_echo_n "checking for $ac_word... " >&6; }
16709 if ${ac_cv_path_PYTHON+:} false; then :
16710 $as_echo_n "(cached) " >&6
16714 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16718 for as_dir in $PATH
16721 test -z "$as_dir" && as_dir=.
16722 for ac_exec_ext in '' $ac_executable_extensions; do
16723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16724 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16735 PYTHON=$ac_cv_path_PYTHON
16736 if test -n "$PYTHON"; then
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16738 $as_echo "$PYTHON" >&6; }
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16741 $as_echo "no" >&6; }
16745 if test -z "$PYTHON"; then
16746 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16750 if test -z "$PYTHON_VERSION"; then
16751 PYTHON_VERSION=`$PYTHON -c "import sys; \
16752 print(sys.version.split()[0])"`
16756 # Check if you have distutils, else fail
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16759 $as_echo_n "checking for the distutils Python package... " >&6; }
16760 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16762 $as_echo "yes" >&6; }
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16765 $as_echo "no" >&6; }
16766 as_fn_error $? "cannot import Python module \"distutils\".
16767 Please check your Python installation. The error was:
16768 $ac_distutils_result" "$LINENO" 5
16773 # Check for Python include path
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16776 $as_echo_n "checking for Python include path... " >&6; }
16777 if test -z "$PYTHON_CPPFLAGS"; then
16778 python_path=`$PYTHON -c "import distutils.sysconfig; \
16779 print(distutils.sysconfig.get_python_inc());"`
16780 if test -n "${python_path}"; then
16781 python_path="-I$python_path"
16783 PYTHON_CPPFLAGS=$python_path
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16786 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16790 # Check for Python library path
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16793 $as_echo_n "checking for Python library path... " >&6; }
16794 if test -z "$PYTHON_LDFLAGS"; then
16795 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16796 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16799 $as_echo "$PYTHON_LDFLAGS" >&6; }
16803 # Check for site packages
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16806 $as_echo_n "checking for Python site-packages path... " >&6; }
16807 if test -z "$PYTHON_SITE_PKG"; then
16808 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16809 print(distutils.sysconfig.get_python_lib(1,0));"`
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16812 $as_echo "$PYTHON_SITE_PKG" >&6; }
16816 # final check to see if everything compiles alright
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16819 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16821 ac_cpp='$CPP $CPPFLAGS'
16822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16826 # save current global flags
16827 ac_save_LIBS="$LIBS"
16828 ac_save_CPPFLAGS="$CPPFLAGS"
16830 LIBS="$LIBS $PYTHON_LDFLAGS"
16831 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16835 #include <Python.h>
16847 if ac_fn_c_try_link "$LINENO"; then :
16852 rm -f core conftest.err conftest.$ac_objext \
16853 conftest$ac_exeext conftest.$ac_ext
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16856 $as_echo "$pythonexists" >&6; }
16858 if test ! "$pythonexists" = "yes"; then
16860 Could not link test program to Python. Maybe the main Python library has been
16861 installed in some non-standard library path. If so, pass it to configure,
16862 via the LDFLAGS environment variable.
16863 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16864 ============================================================================
16866 You probably have to install the development version of the Python package
16867 for your distribution. The exact name of this package varies among them.
16868 ============================================================================
16873 ac_cpp='$CPP $CPPFLAGS'
16874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16878 # turn back to default flags
16879 CPPFLAGS="$ac_save_CPPFLAGS"
16880 LIBS="$ac_save_LIBS"
16886 if test ! -z "$PYTHON_VERSION"; then
16887 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16888 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16891 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
16895 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16897 LIBS="$PYTHON_LDFLAGS $LIBS"
16898 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16900 PC_PY_DEPENDENCY="python"
16906 # Extract the first word of "swig", so it can be a program name with args.
16907 set dummy swig; ac_word=$2
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16909 $as_echo_n "checking for $ac_word... " >&6; }
16910 if ${ac_cv_path_SWIG+:} false; then :
16911 $as_echo_n "(cached) " >&6
16915 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16919 for as_dir in $PATH
16922 test -z "$as_dir" && as_dir=.
16923 for ac_exec_ext in '' $ac_executable_extensions; do
16924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16925 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16936 SWIG=$ac_cv_path_SWIG
16937 if test -n "$SWIG"; then
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16939 $as_echo "$SWIG" >&6; }
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16942 $as_echo "no" >&6; }
16946 if test -z "$SWIG" ; then
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16948 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16949 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16950 elif test -n "2.0.1" ; then
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16952 $as_echo_n "checking for SWIG version... " >&6; }
16953 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'`
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16955 $as_echo "$swig_version" >&6; }
16956 if test -n "$swig_version" ; then
16957 # Calculate the required version number components
16959 required_major=`echo $required | sed 's/[^0-9].*//'`
16960 if test -z "$required_major" ; then
16963 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16964 required_minor=`echo $required | sed 's/[^0-9].*//'`
16965 if test -z "$required_minor" ; then
16968 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16969 required_patch=`echo $required | sed 's/[^0-9].*//'`
16970 if test -z "$required_patch" ; then
16973 # Calculate the available version number components
16974 available=$swig_version
16975 available_major=`echo $available | sed 's/[^0-9].*//'`
16976 if test -z "$available_major" ; then
16979 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16980 available_minor=`echo $available | sed 's/[^0-9].*//'`
16981 if test -z "$available_minor" ; then
16984 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16985 available_patch=`echo $available | sed 's/[^0-9].*//'`
16986 if test -z "$available_patch" ; then
16990 if test $available_major -lt $required_major ; then
16993 if test $available_major -eq $required_major \
16994 -a $available_minor -lt $required_minor ; then
16997 if test $available_major -eq $required_major \
16998 -a $available_minor -eq $required_minor \
16999 -a $available_patch -lt $required_patch ; then
17002 if test $badversion -eq 1 ; then
17003 { $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
17004 $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;}
17005 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17008 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17009 SWIG_LIB=`$SWIG -swiglib`
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17011 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17015 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17016 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17022 $as_echo_n "checking SWIG... " >&6; }
17023 if test ! -x "$SWIG"; then
17024 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17027 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
17032 $as_echo "present" >&6; }
17034 # If have Python & SWIG
17035 # Declare PythonMod
17036 if test x_$ub_with_pythonmod != x_no; then
17038 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
17040 WITH_PYTHONMODULE=yes
17042 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
17044 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
17046 PYTHONMOD_INSTALL=pythonmod-install
17048 PYTHONMOD_UNINSTALL=pythonmod-uninstall
17052 # Declare PyUnbound
17053 if test x_$ub_with_pyunbound != x_no; then
17055 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
17059 PYUNBOUND_OBJ="libunbound_wrap.lo"
17061 PYUNBOUND_TARGET="_unbound.la"
17063 PYUNBOUND_INSTALL=pyunbound-install
17065 PYUNBOUND_UNINSTALL=pyunbound-uninstall
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
17071 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
17072 ub_with_pyunbound=no
17073 ub_with_pythonmod=no
17077 if test "`uname`" = "NetBSD"; then
17078 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
17081 CONFIG_DATE=`date +%Y%m%d`
17084 # Checks for libraries.
17089 # Check whether --with-nss was given.
17090 if test "${with_nss+set}" = set; then :
17094 $as_echo "#define HAVE_NSS 1" >>confdefs.h
17096 if test "$withval" != "" -a "$withval" != "yes"; then
17097 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17098 LDFLAGS="$LDFLAGS -L$withval/lib"
17100 if test "x$enable_rpath" = xyes; then
17101 if echo "$withval/lib" | grep "^/" >/dev/null; then
17102 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17106 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17108 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17109 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17111 LIBS="$LIBS -lnss3 -lnspr4"
17121 # Check whether --with-nettle was given.
17122 if test "${with_nettle+set}" = set; then :
17123 withval=$with_nettle;
17126 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17128 for ac_header in nettle/dsa-compat.h
17130 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17132 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17133 cat >>confdefs.h <<_ACEOF
17134 #define HAVE_NETTLE_DSA_COMPAT_H 1
17141 if test "$withval" != "" -a "$withval" != "yes"; then
17142 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17143 LDFLAGS="$LDFLAGS -L$withval/lib"
17145 if test "x$enable_rpath" = xyes; then
17146 if echo "$withval/lib" | grep "^/" >/dev/null; then
17147 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17152 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17154 LIBS="$LIBS -lhogweed -lnettle -lgmp"
17162 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17165 # Check whether --with-ssl was given.
17166 if test "${with_ssl+set}" = set; then :
17175 if test x_$withval = x_no; then
17176 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17180 if test x_$withval != x_no; then
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17182 $as_echo_n "checking for SSL... " >&6; }
17183 if test x_$withval = x_ -o x_$withval = x_yes; then
17184 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
17186 for dir in $withval; do
17188 if test -f "$dir/include/openssl/ssl.h"; then
17191 cat >>confdefs.h <<_ACEOF
17192 #define HAVE_SSL /**/
17195 if test "$ssldir" != "/usr"; then
17196 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
17197 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
17202 if test x_$found_ssl != x_yes; then
17203 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
17206 $as_echo "found in $ssldir" >&6; }
17208 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
17209 LDFLAGS="$LDFLAGS -L$ssldir/lib"
17210 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
17212 if test "x$enable_rpath" = xyes; then
17213 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
17214 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
17221 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
17222 LIBS="$LIBS -lcrypto"
17223 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
17224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225 /* end confdefs.h. */
17231 int HMAC_Update(void);
17232 (void)HMAC_Update();
17238 if ac_fn_c_try_link "$LINENO"; then :
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17241 $as_echo "yes" >&6; }
17243 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17249 $as_echo "no" >&6; }
17250 # check if -lwsock32 or -lgdi32 are needed.
17252 BAKSSLLIBS="$LIBSSL_LIBS"
17253 LIBS="$LIBS -lgdi32"
17254 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
17256 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258 /* end confdefs.h. */
17264 int HMAC_Update(void);
17265 (void)HMAC_Update();
17271 if ac_fn_c_try_link "$LINENO"; then :
17274 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17277 $as_echo "yes" >&6; }
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17282 $as_echo "no" >&6; }
17284 LIBSSL_LIBS="$BAKSSLLIBS"
17286 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
17288 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
17289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17290 /* end confdefs.h. */
17296 int HMAC_Update(void);
17297 (void)HMAC_Update();
17303 if ac_fn_c_try_link "$LINENO"; then :
17306 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17309 $as_echo "yes" >&6; }
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17314 $as_echo "no" >&6; }
17316 LIBSSL_LIBS="$BAKSSLLIBS"
17317 LIBS="$LIBS -ldl -pthread"
17318 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
17320 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
17321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322 /* end confdefs.h. */
17328 int HMAC_Update(void);
17329 (void)HMAC_Update();
17335 if ac_fn_c_try_link "$LINENO"; then :
17338 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17341 $as_echo "yes" >&6; }
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17346 $as_echo "no" >&6; }
17347 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
17350 rm -f core conftest.err conftest.$ac_objext \
17351 conftest$ac_exeext conftest.$ac_ext
17354 rm -f core conftest.err conftest.$ac_objext \
17355 conftest$ac_exeext conftest.$ac_ext
17358 rm -f core conftest.err conftest.$ac_objext \
17359 conftest$ac_exeext conftest.$ac_ext
17362 rm -f core conftest.err conftest.$ac_objext \
17363 conftest$ac_exeext conftest.$ac_ext
17368 for ac_header in openssl/ssl.h
17370 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
17372 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
17373 cat >>confdefs.h <<_ACEOF
17374 #define HAVE_OPENSSL_SSL_H 1
17381 for ac_header in openssl/err.h
17383 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
17385 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
17386 cat >>confdefs.h <<_ACEOF
17387 #define HAVE_OPENSSL_ERR_H 1
17394 for ac_header in openssl/rand.h
17396 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
17398 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
17399 cat >>confdefs.h <<_ACEOF
17400 #define HAVE_OPENSSL_RAND_H 1
17410 # check if libssl needs libdl
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
17414 $as_echo_n "checking if libssl needs libdl... " >&6; }
17415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17416 /* end confdefs.h. */
17418 /* Override any GCC internal prototype to avoid an error.
17419 Use char because int might match the return type of a GCC
17420 builtin and then its argument prototype would still apply. */
17424 char SSL_CTX_new ();
17428 return SSL_CTX_new ();
17433 if ac_fn_c_try_link "$LINENO"; then :
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17436 $as_echo "no" >&6; }
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17442 $as_echo "yes" >&6; }
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17445 $as_echo_n "checking for library containing dlopen... " >&6; }
17446 if ${ac_cv_search_dlopen+:} false; then :
17447 $as_echo_n "(cached) " >&6
17449 ac_func_search_save_LIBS=$LIBS
17450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h. */
17453 /* Override any GCC internal prototype to avoid an error.
17454 Use char because int might match the return type of a GCC
17455 builtin and then its argument prototype would still apply. */
17468 for ac_lib in '' dl; do
17469 if test -z "$ac_lib"; then
17470 ac_res="none required"
17473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17475 if ac_fn_c_try_link "$LINENO"; then :
17476 ac_cv_search_dlopen=$ac_res
17478 rm -f core conftest.err conftest.$ac_objext \
17480 if ${ac_cv_search_dlopen+:} false; then :
17484 if ${ac_cv_search_dlopen+:} false; then :
17487 ac_cv_search_dlopen=no
17489 rm conftest.$ac_ext
17490 LIBS=$ac_func_search_save_LIBS
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17493 $as_echo "$ac_cv_search_dlopen" >&6; }
17494 ac_res=$ac_cv_search_dlopen
17495 if test "$ac_res" != no; then :
17496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17502 rm -f core conftest.err conftest.$ac_objext \
17503 conftest$ac_exeext conftest.$ac_ext
17506 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
17510 $as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
17511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17512 /* end confdefs.h. */
17514 /* Override any GCC internal prototype to avoid an error.
17515 Use char because int might match the return type of a GCC
17516 builtin and then its argument prototype would still apply. */
17520 char HMAC_Update ();
17524 return HMAC_Update ();
17529 if ac_fn_c_try_link "$LINENO"; then :
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17532 $as_echo "no" >&6; }
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17538 $as_echo "yes" >&6; }
17540 LIBS="$LIBS -lcrypt32"
17543 rm -f core conftest.err conftest.$ac_objext \
17544 conftest$ac_exeext conftest.$ac_ext
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
17547 $as_echo_n "checking for LibreSSL... " >&6; }
17548 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17550 $as_echo "yes" >&6; }
17552 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
17554 # libressl provides these compat functions, but they may also be
17555 # declared by the OS in libc. See if they have been declared.
17556 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
17557 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
17563 cat >>confdefs.h <<_ACEOF
17564 #define HAVE_DECL_STRLCPY $ac_have_decl
17566 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
17567 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
17573 cat >>confdefs.h <<_ACEOF
17574 #define HAVE_DECL_STRLCAT $ac_have_decl
17576 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
17577 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
17583 cat >>confdefs.h <<_ACEOF
17584 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
17586 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
17587 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
17593 cat >>confdefs.h <<_ACEOF
17594 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
17596 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
17597 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
17603 cat >>confdefs.h <<_ACEOF
17604 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17609 $as_echo "no" >&6; }
17611 for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h
17613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17614 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17616 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17617 cat >>confdefs.h <<_ACEOF
17618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17625 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
17627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17628 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17629 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17630 cat >>confdefs.h <<_ACEOF
17631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17638 # these check_funcs need -lssl
17641 for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level
17643 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17644 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17645 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17646 cat >>confdefs.h <<_ACEOF
17647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17655 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
17656 $ac_includes_default
17657 #ifdef HAVE_OPENSSL_ERR_H
17658 #include <openssl/err.h>
17661 #ifdef HAVE_OPENSSL_RAND_H
17662 #include <openssl/rand.h>
17665 #ifdef HAVE_OPENSSL_CONF_H
17666 #include <openssl/conf.h>
17669 #ifdef HAVE_OPENSSL_ENGINE_H
17670 #include <openssl/engine.h>
17672 #include <openssl/ssl.h>
17673 #include <openssl/evp.h>
17676 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
17682 cat >>confdefs.h <<_ACEOF
17683 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
17685 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
17686 $ac_includes_default
17687 #ifdef HAVE_OPENSSL_ERR_H
17688 #include <openssl/err.h>
17691 #ifdef HAVE_OPENSSL_RAND_H
17692 #include <openssl/rand.h>
17695 #ifdef HAVE_OPENSSL_CONF_H
17696 #include <openssl/conf.h>
17699 #ifdef HAVE_OPENSSL_ENGINE_H
17700 #include <openssl/engine.h>
17702 #include <openssl/ssl.h>
17703 #include <openssl/evp.h>
17706 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
17712 cat >>confdefs.h <<_ACEOF
17713 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
17715 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
17716 $ac_includes_default
17717 #ifdef HAVE_OPENSSL_ERR_H
17718 #include <openssl/err.h>
17721 #ifdef HAVE_OPENSSL_RAND_H
17722 #include <openssl/rand.h>
17725 #ifdef HAVE_OPENSSL_CONF_H
17726 #include <openssl/conf.h>
17729 #ifdef HAVE_OPENSSL_ENGINE_H
17730 #include <openssl/engine.h>
17732 #include <openssl/ssl.h>
17733 #include <openssl/evp.h>
17736 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
17742 cat >>confdefs.h <<_ACEOF
17743 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
17750 # Check whether --enable-sha1 was given.
17751 if test "${enable_sha1+set}" = set; then :
17752 enableval=$enable_sha1;
17755 case "$enable_sha1" in
17760 $as_echo "#define USE_SHA1 1" >>confdefs.h
17766 # Check whether --enable-sha2 was given.
17767 if test "${enable_sha2+set}" = set; then :
17768 enableval=$enable_sha2;
17771 case "$enable_sha2" in
17776 $as_echo "#define USE_SHA2 1" >>confdefs.h
17781 # Check whether --enable-subnet was given.
17782 if test "${enable_subnet+set}" = set; then :
17783 enableval=$enable_subnet;
17786 case "$enable_subnet" in
17789 $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
17791 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
17793 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
17800 # check wether gost also works
17802 # Check whether --enable-gost was given.
17803 if test "${enable_gost+set}" = set; then :
17804 enableval=$enable_gost;
17808 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17809 case "$enable_gost" in
17813 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
17814 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
17817 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
17820 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
17821 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
17824 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
17829 $as_echo_n "checking if GOST works... " >&6; }
17830 if test c${cross_compiling} = cno; then
17831 BAKCFLAGS="$CFLAGS"
17832 if test -n "$ssldir"; then
17833 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
17835 if test "$cross_compiling" = yes; then :
17836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17838 as_fn_error $? "cannot run test program while cross compiling
17839 See \`config.log' for more details" "$LINENO" 5; }
17841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17842 /* end confdefs.h. */
17844 #include <string.h>
17845 #include <openssl/ssl.h>
17846 #include <openssl/evp.h>
17847 #include <openssl/engine.h>
17848 #include <openssl/conf.h>
17849 /* routine to load gost (from sldns) */
17850 int load_gost_id(void)
17852 static int gost_id = 0;
17853 const EVP_PKEY_ASN1_METHOD* meth;
17856 if(gost_id) return gost_id;
17858 /* see if configuration loaded gost implementation from other engine*/
17859 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
17861 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17865 /* see if engine can be loaded already */
17866 e = ENGINE_by_id("gost");
17868 /* load it ourself, in case statically linked */
17869 ENGINE_load_builtin_engines();
17870 ENGINE_load_dynamic();
17871 e = ENGINE_by_id("gost");
17874 /* no gost engine in openssl */
17877 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
17883 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
17885 /* algo not found */
17890 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17896 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
17897 const char* str = "Hello world";
17898 const unsigned char check[] = {
17899 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
17900 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
17901 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
17902 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
17904 OPENSSL_config(NULL);
17905 (void)load_gost_id();
17906 md = EVP_get_digestbyname("md_gost94");
17908 memset(digest, 0, sizeof(digest));
17909 ctx = EVP_MD_CTX_create();
17911 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
17912 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
17913 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
17914 /* uncomment to see the hash calculated.
17916 for(i=0; i<32; i++)
17917 printf(" %2.2x", (int)digest[i]);
17920 if(memcmp(digest, check, sizeof(check)) != 0)
17926 if ac_fn_c_try_run "$LINENO"; then :
17927 eval "ac_cv_c_gost_works=yes"
17929 eval "ac_cv_c_gost_works=no"
17931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17932 conftest.$ac_objext conftest.beam conftest.$ac_ext
17935 CFLAGS="$BAKCFLAGS"
17937 eval "ac_cv_c_gost_works=maybe"
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
17940 $as_echo "$ac_cv_c_gost_works" >&6; }
17942 if test "$ac_cv_c_gost_works" != no; then
17945 $as_echo "#define USE_GOST 1" >>confdefs.h
17951 # Check whether --enable-ecdsa was given.
17952 if test "${enable_ecdsa+set}" = set; then :
17953 enableval=$enable_ecdsa;
17957 case "$enable_ecdsa" in
17961 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17962 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
17963 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
17966 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17969 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
17970 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
17973 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17976 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17977 #include <openssl/evp.h>
17980 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
17986 cat >>confdefs.h <<_ACEOF
17987 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
17989 if test $ac_have_decl = 1; then :
17992 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17994 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
17995 #include <openssl/evp.h>
17998 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
18004 cat >>confdefs.h <<_ACEOF
18005 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
18007 if test $ac_have_decl = 1; then :
18010 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18013 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
18015 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
18016 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
18017 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18019 $as_echo "no" >&6; }
18021 cat >>confdefs.h <<_ACEOF
18022 #define USE_ECDSA_EVP_WORKAROUND 1
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18027 $as_echo "yes" >&6; }
18030 # not OpenSSL, thus likely LibreSSL, which supports it
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18032 $as_echo "yes" >&6; }
18035 # we now know we have ECDSA and the required curves.
18037 cat >>confdefs.h <<_ACEOF
18038 #define USE_ECDSA 1
18045 # Check whether --enable-dsa was given.
18046 if test "${enable_dsa+set}" = set; then :
18047 enableval=$enable_dsa;
18051 case "$enable_dsa" in
18055 # detect if DSA is supported, and turn it off if not.
18056 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
18057 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
18060 cat >>confdefs.h <<_ACEOF
18066 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18073 # Check whether --enable-ed25519 was given.
18074 if test "${enable_ed25519+set}" = set; then :
18075 enableval=$enable_ed25519;
18079 case "$enable_ed25519" in
18083 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18084 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
18085 #include <openssl/evp.h>
18088 if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
18094 cat >>confdefs.h <<_ACEOF
18095 #define HAVE_DECL_NID_ED25519 $ac_have_decl
18097 if test $ac_have_decl = 1; then :
18100 cat >>confdefs.h <<_ACEOF
18101 #define USE_ED25519 1
18107 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
18115 # Check whether --enable-event-api was given.
18116 if test "${enable_event_api+set}" = set; then :
18117 enableval=$enable_event_api;
18120 case "$enable_event_api" in
18122 UNBOUND_EVENT_INSTALL=unbound-event-install
18124 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
18131 # Check whether --enable-tfo-client was given.
18132 if test "${enable_tfo_client+set}" = set; then :
18133 enableval=$enable_tfo_client;
18136 case "$enable_tfo_client" in
18139 Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
18140 #include <netinet/tcp.h>
18143 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
18145 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
18147 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18151 cat >>confdefs.h <<_ACEOF
18152 #define USE_MSG_FASTOPEN 1
18156 Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
18157 #include <sys/socket.h>
18160 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
18162 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
18164 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18168 cat >>confdefs.h <<_ACEOF
18169 #define USE_OSX_MSG_FASTOPEN 1
18179 # Check whether --enable-tfo-server was given.
18180 if test "${enable_tfo_server+set}" = set; then :
18181 enableval=$enable_tfo_server;
18184 case "$enable_tfo_server" in
18186 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
18187 #include <netinet/tcp.h>
18190 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
18192 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
18194 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
18198 cat >>confdefs.h <<_ACEOF
18199 #define USE_TCP_FASTOPEN 1
18207 # check for libevent
18209 # Check whether --with-libevent was given.
18210 if test "${with_libevent+set}" = set; then :
18211 withval=$with_libevent;
18216 if test x_$withval = x_yes -o x_$withval != x_no; then
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
18218 $as_echo_n "checking for libevent... " >&6; }
18219 if test x_$withval = x_ -o x_$withval = x_yes; then
18220 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18222 for dir in $withval; do
18224 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
18225 found_libevent="yes"
18226 if test "$thedir" != "/usr"; then
18227 CPPFLAGS="$CPPFLAGS -I$thedir/include"
18232 if test x_$found_libevent != x_yes; then
18233 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
18234 # libevent source directory
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
18236 $as_echo "found in $thedir" >&6; }
18237 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
18238 BAK_LDFLAGS_SET="1"
18239 BAK_LDFLAGS="$LDFLAGS"
18240 # remove evdns from linking
18241 mkdir build >/dev/null 2>&1
18242 mkdir build/libevent >/dev/null 2>&1
18243 mkdir build/libevent/.libs >/dev/null 2>&1
18244 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
18245 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
18246 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
18247 cp $ev_files_o build/libevent
18248 cp $ev_files_lo build/libevent
18249 cp $ev_files_libso build/libevent/.libs
18250 LATE_LDFLAGS="build/libevent/*.lo -lm"
18251 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
18253 as_fn_error $? "Cannot find the libevent library in $withval
18254 You can restart ./configure --with-libevent=no to use a builtin alternative.
18255 Please note that this alternative is not as capable as libevent when using
18256 large outgoing port ranges. " "$LINENO" 5
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
18260 $as_echo "found in $thedir" >&6; }
18261 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
18262 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
18264 if test "x$enable_rpath" = xyes; then
18265 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
18266 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
18271 if test "$thedir" != "/usr" -a "$thedir" != ""; then
18272 LDFLAGS="$LDFLAGS -L$thedir/lib"
18274 if test "x$enable_rpath" = xyes; then
18275 if echo "$thedir/lib" | grep "^/" >/dev/null; then
18276 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
18283 # check for library used by libevent after 1.3c
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18285 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18286 if ${ac_cv_search_clock_gettime+:} false; then :
18287 $as_echo_n "(cached) " >&6
18289 ac_func_search_save_LIBS=$LIBS
18290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18291 /* end confdefs.h. */
18293 /* Override any GCC internal prototype to avoid an error.
18294 Use char because int might match the return type of a GCC
18295 builtin and then its argument prototype would still apply. */
18299 char clock_gettime ();
18303 return clock_gettime ();
18308 for ac_lib in '' rt; do
18309 if test -z "$ac_lib"; then
18310 ac_res="none required"
18313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18315 if ac_fn_c_try_link "$LINENO"; then :
18316 ac_cv_search_clock_gettime=$ac_res
18318 rm -f core conftest.err conftest.$ac_objext \
18320 if ${ac_cv_search_clock_gettime+:} false; then :
18324 if ${ac_cv_search_clock_gettime+:} false; then :
18327 ac_cv_search_clock_gettime=no
18329 rm conftest.$ac_ext
18330 LIBS=$ac_func_search_save_LIBS
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18333 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18334 ac_res=$ac_cv_search_clock_gettime
18335 if test "$ac_res" != no; then :
18336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18341 # is the event.h header libev or libevent?
18342 for ac_header in event.h
18344 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
18346 if test "x$ac_cv_header_event_h" = xyes; then :
18347 cat >>confdefs.h <<_ACEOF
18348 #define HAVE_EVENT_H 1
18355 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
18359 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18362 $as_echo_n "checking for library containing event_set... " >&6; }
18363 if ${ac_cv_search_event_set+:} false; then :
18364 $as_echo_n "(cached) " >&6
18366 ac_func_search_save_LIBS=$LIBS
18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18370 /* Override any GCC internal prototype to avoid an error.
18371 Use char because int might match the return type of a GCC
18372 builtin and then its argument prototype would still apply. */
18380 return event_set ();
18385 for ac_lib in '' ev; do
18386 if test -z "$ac_lib"; then
18387 ac_res="none required"
18390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18392 if ac_fn_c_try_link "$LINENO"; then :
18393 ac_cv_search_event_set=$ac_res
18395 rm -f core conftest.err conftest.$ac_objext \
18397 if ${ac_cv_search_event_set+:} false; then :
18401 if ${ac_cv_search_event_set+:} false; then :
18404 ac_cv_search_event_set=no
18406 rm conftest.$ac_ext
18407 LIBS=$ac_func_search_save_LIBS
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18410 $as_echo "$ac_cv_search_event_set" >&6; }
18411 ac_res=$ac_cv_search_event_set
18412 if test "$ac_res" != no; then :
18413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18421 $as_echo_n "checking for library containing event_set... " >&6; }
18422 if ${ac_cv_search_event_set+:} false; then :
18423 $as_echo_n "(cached) " >&6
18425 ac_func_search_save_LIBS=$LIBS
18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18429 /* Override any GCC internal prototype to avoid an error.
18430 Use char because int might match the return type of a GCC
18431 builtin and then its argument prototype would still apply. */
18439 return event_set ();
18444 for ac_lib in '' event; do
18445 if test -z "$ac_lib"; then
18446 ac_res="none required"
18449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18451 if ac_fn_c_try_link "$LINENO"; then :
18452 ac_cv_search_event_set=$ac_res
18454 rm -f core conftest.err conftest.$ac_objext \
18456 if ${ac_cv_search_event_set+:} false; then :
18460 if ${ac_cv_search_event_set+:} false; then :
18463 ac_cv_search_event_set=no
18465 rm conftest.$ac_ext
18466 LIBS=$ac_func_search_save_LIBS
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18469 $as_echo "$ac_cv_search_event_set" >&6; }
18470 ac_res=$ac_cv_search_event_set
18471 if test "$ac_res" != no; then :
18472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18479 for ac_func in event_base_free
18481 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
18482 if test "x$ac_cv_func_event_base_free" = xyes; then :
18483 cat >>confdefs.h <<_ACEOF
18484 #define HAVE_EVENT_BASE_FREE 1
18489 # only in libevent 1.2 and later
18490 for ac_func in event_base_once
18492 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
18493 if test "x$ac_cv_func_event_base_once" = xyes; then :
18494 cat >>confdefs.h <<_ACEOF
18495 #define HAVE_EVENT_BASE_ONCE 1
18500 # only in libevent 1.4.1 and later
18501 for ac_func in event_base_new
18503 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
18504 if test "x$ac_cv_func_event_base_new" = xyes; then :
18505 cat >>confdefs.h <<_ACEOF
18506 #define HAVE_EVENT_BASE_NEW 1
18511 # only in libevent 1.4.1 and later
18512 for ac_func in event_base_get_method
18514 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
18515 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
18516 cat >>confdefs.h <<_ACEOF
18517 #define HAVE_EVENT_BASE_GET_METHOD 1
18522 # only in libevent 1.4.3 and later
18523 for ac_func in ev_loop
18525 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
18526 if test "x$ac_cv_func_ev_loop" = xyes; then :
18527 cat >>confdefs.h <<_ACEOF
18528 #define HAVE_EV_LOOP 1
18533 # only in libev. (tested on 3.51)
18534 for ac_func in ev_default_loop
18536 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
18537 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
18538 cat >>confdefs.h <<_ACEOF
18539 #define HAVE_EV_DEFAULT_LOOP 1
18544 # only in libev. (tested on 4.00)
18545 PC_LIBEVENT_DEPENDENCY="libevent"
18547 if test -n "$BAK_LDFLAGS_SET"; then
18548 LDFLAGS="$BAK_LDFLAGS"
18552 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
18556 # check for libexpat
18558 # Check whether --with-libexpat was given.
18559 if test "${with_libexpat+set}" = set; then :
18560 withval=$with_libexpat;
18562 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
18566 $as_echo_n "checking for libexpat... " >&6; }
18567 found_libexpat="no"
18568 for dir in $withval ; do
18569 if test -f "$dir/include/expat.h"; then
18570 found_libexpat="yes"
18571 if test "$dir" != "/usr"; then
18572 CPPFLAGS="$CPPFLAGS -I$dir/include"
18573 LDFLAGS="$LDFLAGS -L$dir/lib"
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
18576 $as_echo "found in $dir" >&6; }
18580 if test x_$found_libexpat != x_yes; then
18581 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
18583 for ac_header in expat.h
18585 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
18587 if test "x$ac_cv_header_expat_h" = xyes; then :
18588 cat >>confdefs.h <<_ACEOF
18589 #define HAVE_EXPAT_H 1
18596 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
18600 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
18606 cat >>confdefs.h <<_ACEOF
18607 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
18611 # set static linking if requested
18614 # Check whether --enable-static-exe was given.
18615 if test "${enable_static_exe+set}" = set; then :
18616 enableval=$enable_static_exe;
18619 if test x_$enable_static_exe = x_yes; then
18620 staticexe="-static"
18621 if test "$on_mingw" = yes; then
18622 staticexe="-all-static"
18623 # for static compile, include gdi32 and zlib here.
18624 LIBS="$LIBS -lgdi32 -lz"
18628 # Include systemd.m4 - begin
18629 # macros for configuring systemd
18630 # Copyright 2015, Sami Kerola, CloudFlare.
18632 # Check whether --enable-systemd was given.
18633 if test "${enable_systemd+set}" = set; then :
18634 enableval=$enable_systemd;
18647 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18648 if test -n "$ac_tool_prefix"; then
18649 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18650 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18652 $as_echo_n "checking for $ac_word... " >&6; }
18653 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18654 $as_echo_n "(cached) " >&6
18656 case $PKG_CONFIG in
18658 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18662 for as_dir in $PATH
18665 test -z "$as_dir" && as_dir=.
18666 for ac_exec_ext in '' $ac_executable_extensions; do
18667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18668 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18679 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18680 if test -n "$PKG_CONFIG"; then
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18682 $as_echo "$PKG_CONFIG" >&6; }
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18685 $as_echo "no" >&6; }
18690 if test -z "$ac_cv_path_PKG_CONFIG"; then
18691 ac_pt_PKG_CONFIG=$PKG_CONFIG
18692 # Extract the first word of "pkg-config", so it can be a program name with args.
18693 set dummy pkg-config; ac_word=$2
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18695 $as_echo_n "checking for $ac_word... " >&6; }
18696 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18697 $as_echo_n "(cached) " >&6
18699 case $ac_pt_PKG_CONFIG in
18701 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18705 for as_dir in $PATH
18708 test -z "$as_dir" && as_dir=.
18709 for ac_exec_ext in '' $ac_executable_extensions; do
18710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18711 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18722 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18723 if test -n "$ac_pt_PKG_CONFIG"; then
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18725 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18728 $as_echo "no" >&6; }
18731 if test "x$ac_pt_PKG_CONFIG" = x; then
18734 case $cross_compiling:$ac_tool_warned in
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18738 ac_tool_warned=yes ;;
18740 PKG_CONFIG=$ac_pt_PKG_CONFIG
18743 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18747 if test -n "$PKG_CONFIG"; then
18748 _pkg_min_version=0.9.0
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18750 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18751 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18753 $as_echo "yes" >&6; }
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18756 $as_echo "no" >&6; }
18760 if test "x$enable_systemd" != xno; then :
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
18766 $as_echo_n "checking for SYSTEMD... " >&6; }
18768 if test -n "$SYSTEMD_CFLAGS"; then
18769 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
18770 elif test -n "$PKG_CONFIG"; then
18771 if test -n "$PKG_CONFIG" && \
18772 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
18773 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
18775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18776 test $ac_status = 0; }; then
18777 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
18778 test "x$?" != "x0" && pkg_failed=yes
18785 if test -n "$SYSTEMD_LIBS"; then
18786 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
18787 elif test -n "$PKG_CONFIG"; then
18788 if test -n "$PKG_CONFIG" && \
18789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
18790 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
18792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18793 test $ac_status = 0; }; then
18794 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
18795 test "x$?" != "x0" && pkg_failed=yes
18805 if test $pkg_failed = yes; then
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18807 $as_echo "no" >&6; }
18809 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18810 _pkg_short_errors_supported=yes
18812 _pkg_short_errors_supported=no
18814 if test $_pkg_short_errors_supported = yes; then
18815 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
18817 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
18819 # Put the nasty error message in config.log where it belongs
18820 echo "$SYSTEMD_PKG_ERRORS" >&5
18823 elif test $pkg_failed = untried; then
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18825 $as_echo "no" >&6; }
18828 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
18829 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18831 $as_echo "yes" >&6; }
18834 if test "x$have_systemd" != "xyes"; then :
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
18839 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
18841 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
18842 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
18843 elif test -n "$PKG_CONFIG"; then
18844 if test -n "$PKG_CONFIG" && \
18845 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
18846 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
18848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18849 test $ac_status = 0; }; then
18850 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
18851 test "x$?" != "x0" && pkg_failed=yes
18858 if test -n "$SYSTEMD_DAEMON_LIBS"; then
18859 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
18860 elif test -n "$PKG_CONFIG"; then
18861 if test -n "$PKG_CONFIG" && \
18862 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
18863 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
18865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18866 test $ac_status = 0; }; then
18867 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
18868 test "x$?" != "x0" && pkg_failed=yes
18878 if test $pkg_failed = yes; then
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18880 $as_echo "no" >&6; }
18882 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18883 _pkg_short_errors_supported=yes
18885 _pkg_short_errors_supported=no
18887 if test $_pkg_short_errors_supported = yes; then
18888 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
18890 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
18892 # Put the nasty error message in config.log where it belongs
18893 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
18895 have_systemd_daemon=no
18896 elif test $pkg_failed = untried; then
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18898 $as_echo "no" >&6; }
18899 have_systemd_daemon=no
18901 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
18902 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18904 $as_echo "yes" >&6; }
18905 have_systemd_daemon=yes
18907 if test "x$have_systemd_daemon" = "xyes"; then :
18912 case $enable_systemd:$have_systemd in #(
18914 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
18917 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
18919 LIBS="$LIBS $SYSTEMD_LIBS"
18928 if test "x$have_systemd" = xyes; then
18930 USE_SYSTEMD_FALSE='#'
18932 USE_SYSTEMD_TRUE='#'
18937 # Include systemd.m4 - end
18939 # set lock checking if requested
18940 # Check whether --enable-lock_checks was given.
18941 if test "${enable_lock_checks+set}" = set; then :
18942 enableval=$enable_lock_checks;
18945 if test x_$enable_lock_checks = x_yes; then
18947 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
18949 CHECKLOCK_OBJ="checklocks.lo"
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
18955 $as_echo_n "checking for getaddrinfo... " >&6; }
18956 ac_cv_func_getaddrinfo=no
18957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h. */
18964 char* getaddrinfo();
18965 char* (*f) () = getaddrinfo;
18975 if ac_fn_c_try_link "$LINENO"; then :
18976 ac_cv_func_getaddrinfo="yes"
18977 if test "$ac_cv_header_windows_h" = "yes"; then
18979 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
18982 LIBS="$LIBS -lws2_32"
18987 LIBS="$LIBS -lws2_32"
18988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18989 /* end confdefs.h. */
18991 #ifdef HAVE_WS2TCPIP_H
18992 #include <ws2tcpip.h>
18999 (void)getaddrinfo(NULL, NULL, NULL, NULL);
19006 if ac_fn_c_try_link "$LINENO"; then :
19008 ac_cv_func_getaddrinfo="yes"
19010 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19016 ac_cv_func_getaddrinfo="no"
19020 rm -f core conftest.err conftest.$ac_objext \
19021 conftest$ac_exeext conftest.$ac_ext
19024 rm -f core conftest.err conftest.$ac_objext \
19025 conftest$ac_exeext conftest.$ac_ext
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
19028 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
19029 if test $ac_cv_func_getaddrinfo = yes; then
19031 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19035 if test "$USE_WINSOCK" = 1; then
19037 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
19039 for ac_header in iphlpapi.h
19041 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
19042 #include <windows.h>
19045 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
19046 cat >>confdefs.h <<_ACEOF
19047 #define HAVE_IPHLPAPI_H 1
19054 if test -n "$ac_tool_prefix"; then
19055 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19056 set dummy ${ac_tool_prefix}windres; ac_word=$2
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19058 $as_echo_n "checking for $ac_word... " >&6; }
19059 if ${ac_cv_prog_WINDRES+:} false; then :
19060 $as_echo_n "(cached) " >&6
19062 if test -n "$WINDRES"; then
19063 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19066 for as_dir in $PATH
19069 test -z "$as_dir" && as_dir=.
19070 for ac_exec_ext in '' $ac_executable_extensions; do
19071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19072 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19082 WINDRES=$ac_cv_prog_WINDRES
19083 if test -n "$WINDRES"; then
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19085 $as_echo "$WINDRES" >&6; }
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19088 $as_echo "no" >&6; }
19093 if test -z "$ac_cv_prog_WINDRES"; then
19094 ac_ct_WINDRES=$WINDRES
19095 # Extract the first word of "windres", so it can be a program name with args.
19096 set dummy windres; ac_word=$2
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19098 $as_echo_n "checking for $ac_word... " >&6; }
19099 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19100 $as_echo_n "(cached) " >&6
19102 if test -n "$ac_ct_WINDRES"; then
19103 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19106 for as_dir in $PATH
19109 test -z "$as_dir" && as_dir=.
19110 for ac_exec_ext in '' $ac_executable_extensions; do
19111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19112 ac_cv_prog_ac_ct_WINDRES="windres"
19113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19122 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19123 if test -n "$ac_ct_WINDRES"; then
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19125 $as_echo "$ac_ct_WINDRES" >&6; }
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19128 $as_echo "no" >&6; }
19131 if test "x$ac_ct_WINDRES" = x; then
19134 case $cross_compiling:$ac_tool_warned in
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19138 ac_tool_warned=yes ;;
19140 WINDRES=$ac_ct_WINDRES
19143 WINDRES="$ac_cv_prog_WINDRES"
19146 LIBS="$LIBS -liphlpapi"
19147 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
19149 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
19151 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
19153 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
19155 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
19157 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
19159 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
19161 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
19164 if test $ac_cv_func_getaddrinfo = no; then
19165 case " $LIBOBJS " in
19166 *" fake-rfc2553.$ac_objext "* ) ;;
19167 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
19172 # check after getaddrinfo for its libraries
19174 # check ioctlsocket
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
19176 $as_echo_n "checking for ioctlsocket... " >&6; }
19177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h. */
19180 #ifdef HAVE_WINSOCK2_H
19181 #include <winsock2.h>
19188 (void)ioctlsocket(0, 0, NULL);
19194 if ac_fn_c_try_link "$LINENO"; then :
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19197 $as_echo "yes" >&6; }
19199 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19204 $as_echo "no" >&6; }
19206 rm -f core conftest.err conftest.$ac_objext \
19207 conftest$ac_exeext conftest.$ac_ext
19210 # see if daemon(3) exists, and if it is deprecated.
19211 for ac_func in daemon
19213 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
19214 if test "x$ac_cv_func_daemon" = xyes; then :
19215 cat >>confdefs.h <<_ACEOF
19216 #define HAVE_DAEMON 1
19222 if test $ac_cv_func_daemon = yes; then
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
19226 $as_echo_n "checking if daemon is deprecated... " >&6; }
19227 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
19228 if eval \${cv_cc_deprecated_$cache+:} false; then :
19229 $as_echo_n "(cached) " >&6
19233 #include <stdlib.h>
19235 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
19236 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
19237 eval "cv_cc_deprecated_$cache=no"
19239 eval "cv_cc_deprecated_$cache=yes"
19241 rm -f conftest conftest.o conftest.c
19245 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19247 $as_echo "yes" >&6; }
19249 cat >>confdefs.h <<_ACEOF
19250 #define DEPRECATED_DAEMON 1
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19257 $as_echo "no" >&6; }
19264 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
19265 $ac_includes_default
19266 #ifdef HAVE_SYS_UN_H
19267 #include <sys/un.h>
19271 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
19273 cat >>confdefs.h <<_ACEOF
19274 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19280 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
19281 $ac_includes_default
19282 #if HAVE_SYS_PARAM_H
19283 #include <sys/param.h>
19286 #ifdef HAVE_SYS_SOCKET_H
19287 #include <sys/socket.h>
19290 #ifdef HAVE_SYS_UIO_H
19291 #include <sys/uio.h>
19294 #ifdef HAVE_NETINET_IN_H
19295 #include <netinet/in.h>
19298 #ifdef HAVE_NETINET_TCP_H
19299 #include <netinet/tcp.h>
19302 #ifdef HAVE_ARPA_INET_H
19303 #include <arpa/inet.h>
19306 #ifdef HAVE_WINSOCK2_H
19307 #include <winsock2.h>
19310 #ifdef HAVE_WS2TCPIP_H
19311 #include <ws2tcpip.h>
19315 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
19317 cat >>confdefs.h <<_ACEOF
19318 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
19325 $as_echo_n "checking for library containing setusercontext... " >&6; }
19326 if ${ac_cv_search_setusercontext+:} false; then :
19327 $as_echo_n "(cached) " >&6
19329 ac_func_search_save_LIBS=$LIBS
19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h. */
19333 /* Override any GCC internal prototype to avoid an error.
19334 Use char because int might match the return type of a GCC
19335 builtin and then its argument prototype would still apply. */
19339 char setusercontext ();
19343 return setusercontext ();
19348 for ac_lib in '' util; do
19349 if test -z "$ac_lib"; then
19350 ac_res="none required"
19353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19355 if ac_fn_c_try_link "$LINENO"; then :
19356 ac_cv_search_setusercontext=$ac_res
19358 rm -f core conftest.err conftest.$ac_objext \
19360 if ${ac_cv_search_setusercontext+:} false; then :
19364 if ${ac_cv_search_setusercontext+:} false; then :
19367 ac_cv_search_setusercontext=no
19369 rm conftest.$ac_ext
19370 LIBS=$ac_func_search_save_LIBS
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
19373 $as_echo "$ac_cv_search_setusercontext" >&6; }
19374 ac_res=$ac_cv_search_setusercontext
19375 if test "$ac_res" != no; then :
19376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19380 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
19382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19383 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19384 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19385 cat >>confdefs.h <<_ACEOF
19386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19392 for ac_func in setresuid
19394 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
19395 if test "x$ac_cv_func_setresuid" = xyes; then :
19396 cat >>confdefs.h <<_ACEOF
19397 #define HAVE_SETRESUID 1
19401 for ac_func in setreuid
19403 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
19404 if test "x$ac_cv_func_setreuid" = xyes; then :
19405 cat >>confdefs.h <<_ACEOF
19406 #define HAVE_SETREUID 1
19415 for ac_func in setresgid
19417 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
19418 if test "x$ac_cv_func_setresgid" = xyes; then :
19419 cat >>confdefs.h <<_ACEOF
19420 #define HAVE_SETRESGID 1
19424 for ac_func in setregid
19426 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
19427 if test "x$ac_cv_func_setregid" = xyes; then :
19428 cat >>confdefs.h <<_ACEOF
19429 #define HAVE_SETREGID 1
19439 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
19440 if echo $build_os | grep darwin8 > /dev/null; then
19442 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
19445 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
19446 $ac_includes_default
19447 #ifdef HAVE_NETINET_IN_H
19448 #include <netinet/in.h>
19451 #ifdef HAVE_NETINET_TCP_H
19452 #include <netinet/tcp.h>
19455 #ifdef HAVE_ARPA_INET_H
19456 #include <arpa/inet.h>
19459 #ifdef HAVE_WINSOCK2_H
19460 #include <winsock2.h>
19463 #ifdef HAVE_WS2TCPIP_H
19464 #include <ws2tcpip.h>
19468 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
19474 cat >>confdefs.h <<_ACEOF
19475 #define HAVE_DECL_INET_PTON $ac_have_decl
19477 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
19478 $ac_includes_default
19479 #ifdef HAVE_NETINET_IN_H
19480 #include <netinet/in.h>
19483 #ifdef HAVE_NETINET_TCP_H
19484 #include <netinet/tcp.h>
19487 #ifdef HAVE_ARPA_INET_H
19488 #include <arpa/inet.h>
19491 #ifdef HAVE_WINSOCK2_H
19492 #include <winsock2.h>
19495 #ifdef HAVE_WS2TCPIP_H
19496 #include <ws2tcpip.h>
19500 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
19506 cat >>confdefs.h <<_ACEOF
19507 #define HAVE_DECL_INET_NTOP $ac_have_decl
19510 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
19511 if test "x$ac_cv_func_inet_aton" = xyes; then :
19512 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
19515 case " $LIBOBJS " in
19516 *" inet_aton.$ac_objext "* ) ;;
19517 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
19524 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
19525 if test "x$ac_cv_func_inet_pton" = xyes; then :
19526 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
19529 case " $LIBOBJS " in
19530 *" inet_pton.$ac_objext "* ) ;;
19531 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
19538 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19539 if test "x$ac_cv_func_inet_ntop" = xyes; then :
19540 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
19543 case " $LIBOBJS " in
19544 *" inet_ntop.$ac_objext "* ) ;;
19545 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
19552 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
19553 if test "x$ac_cv_func_snprintf" = xyes; then :
19554 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
19557 case " $LIBOBJS " in
19558 *" snprintf.$ac_objext "* ) ;;
19559 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19566 # test if snprintf return the proper length
19567 if test "x$ac_cv_func_snprintf" = xyes; then
19568 if test c${cross_compiling} = cno; then
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
19570 $as_echo_n "checking for correct snprintf return value... " >&6; }
19571 if test "$cross_compiling" = yes; then :
19572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19574 as_fn_error $? "cannot run test program while cross compiling
19575 See \`config.log' for more details" "$LINENO" 5; }
19577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19578 /* end confdefs.h. */
19579 $ac_includes_default
19581 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
19584 if ac_fn_c_try_run "$LINENO"; then :
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19586 $as_echo "yes" >&6; }
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19590 $as_echo "no" >&6; }
19592 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
19594 case " $LIBOBJS " in
19595 *" snprintf.$ac_objext "* ) ;;
19596 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19603 conftest.$ac_objext conftest.beam conftest.$ac_ext
19608 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
19609 if test "x$ac_cv_func_strlcat" = xyes; then :
19610 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
19613 case " $LIBOBJS " in
19614 *" strlcat.$ac_objext "* ) ;;
19615 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
19622 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
19623 if test "x$ac_cv_func_strlcpy" = xyes; then :
19624 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
19627 case " $LIBOBJS " in
19628 *" strlcpy.$ac_objext "* ) ;;
19629 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
19636 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
19637 if test "x$ac_cv_func_memmove" = xyes; then :
19638 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
19641 case " $LIBOBJS " in
19642 *" memmove.$ac_objext "* ) ;;
19643 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
19650 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
19651 if test "x$ac_cv_func_gmtime_r" = xyes; then :
19652 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
19655 case " $LIBOBJS " in
19656 *" gmtime_r.$ac_objext "* ) ;;
19657 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
19664 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
19665 if test "x$ac_cv_func_isblank" = xyes; then :
19666 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
19669 case " $LIBOBJS " in
19670 *" isblank.$ac_objext "* ) ;;
19671 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
19678 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
19680 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
19681 if test "x$ac_cv_func_reallocarray" = xyes; then :
19682 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
19685 case " $LIBOBJS " in
19686 *" reallocarray.$ac_objext "* ) ;;
19687 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
19694 if test "$USE_NSS" = "no"; then
19695 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
19696 if test "x$ac_cv_func_arc4random" = xyes; then :
19697 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
19700 case " $LIBOBJS " in
19701 *" arc4random.$ac_objext "* ) ;;
19702 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
19709 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
19710 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
19711 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
19714 case " $LIBOBJS " in
19715 *" arc4random_uniform.$ac_objext "* ) ;;
19716 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
19723 if test "$ac_cv_func_arc4random" = "no"; then
19724 case " $LIBOBJS " in
19725 *" explicit_bzero.$ac_objext "* ) ;;
19726 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
19730 case " $LIBOBJS " in
19731 *" arc4_lock.$ac_objext "* ) ;;
19732 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
19736 for ac_func in getentropy
19738 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
19739 if test "x$ac_cv_func_getentropy" = xyes; then :
19740 cat >>confdefs.h <<_ACEOF
19741 #define HAVE_GETENTROPY 1
19746 if test "$USE_WINSOCK" = 1; then
19747 case " $LIBOBJS " in
19748 *" getentropy_win.$ac_objext "* ) ;;
19749 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
19756 case " $LIBOBJS " in
19757 *" getentropy_osx.$ac_objext "* ) ;;
19758 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
19763 *solaris*|*sunos*|SunOS)
19764 case " $LIBOBJS " in
19765 *" getentropy_solaris.$ac_objext "* ) ;;
19766 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
19770 for ac_header in sys/sha2.h
19772 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
19774 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
19775 cat >>confdefs.h <<_ACEOF
19776 #define HAVE_SYS_SHA2_H 1
19781 for ac_func in SHA512_Update
19783 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19784 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19785 cat >>confdefs.h <<_ACEOF
19786 #define HAVE_SHA512_UPDATE 1
19791 case " $LIBOBJS " in
19792 *" sha512.$ac_objext "* ) ;;
19793 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
19806 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
19807 # this lib needed for sha2 on solaris
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19811 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19812 if ${ac_cv_search_clock_gettime+:} false; then :
19813 $as_echo_n "(cached) " >&6
19815 ac_func_search_save_LIBS=$LIBS
19816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19817 /* end confdefs.h. */
19819 /* Override any GCC internal prototype to avoid an error.
19820 Use char because int might match the return type of a GCC
19821 builtin and then its argument prototype would still apply. */
19825 char clock_gettime ();
19829 return clock_gettime ();
19834 for ac_lib in '' rt; do
19835 if test -z "$ac_lib"; then
19836 ac_res="none required"
19839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19841 if ac_fn_c_try_link "$LINENO"; then :
19842 ac_cv_search_clock_gettime=$ac_res
19844 rm -f core conftest.err conftest.$ac_objext \
19846 if ${ac_cv_search_clock_gettime+:} false; then :
19850 if ${ac_cv_search_clock_gettime+:} false; then :
19853 ac_cv_search_clock_gettime=no
19855 rm conftest.$ac_ext
19856 LIBS=$ac_func_search_save_LIBS
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19859 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19860 ac_res=$ac_cv_search_clock_gettime
19861 if test "$ac_res" != no; then :
19862 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19868 case " $LIBOBJS " in
19869 *" getentropy_linux.$ac_objext "* ) ;;
19870 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
19874 for ac_func in SHA512_Update
19876 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19877 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19878 cat >>confdefs.h <<_ACEOF
19879 #define HAVE_SHA512_UPDATE 1
19885 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
19887 case " $LIBOBJS " in
19888 *" sha512.$ac_objext "* ) ;;
19889 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
19897 for ac_header in sys/sysctl.h
19899 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
19901 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
19902 cat >>confdefs.h <<_ACEOF
19903 #define HAVE_SYS_SYSCTL_H 1
19910 for ac_func in getauxval
19912 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
19913 if test "x$ac_cv_func_getauxval" = xyes; then :
19914 cat >>confdefs.h <<_ACEOF
19915 #define HAVE_GETAUXVAL 1
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19922 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19923 if ${ac_cv_search_clock_gettime+:} false; then :
19924 $as_echo_n "(cached) " >&6
19926 ac_func_search_save_LIBS=$LIBS
19927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h. */
19930 /* Override any GCC internal prototype to avoid an error.
19931 Use char because int might match the return type of a GCC
19932 builtin and then its argument prototype would still apply. */
19936 char clock_gettime ();
19940 return clock_gettime ();
19945 for ac_lib in '' rt; do
19946 if test -z "$ac_lib"; then
19947 ac_res="none required"
19950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19952 if ac_fn_c_try_link "$LINENO"; then :
19953 ac_cv_search_clock_gettime=$ac_res
19955 rm -f core conftest.err conftest.$ac_objext \
19957 if ${ac_cv_search_clock_gettime+:} false; then :
19961 if ${ac_cv_search_clock_gettime+:} false; then :
19964 ac_cv_search_clock_gettime=no
19966 rm conftest.$ac_ext
19967 LIBS=$ac_func_search_save_LIBS
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19970 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19971 ac_res=$ac_cv_search_clock_gettime
19972 if test "$ac_res" != no; then :
19973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19986 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
19988 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
19989 if test "x$ac_cv_func_ctime_r" = xyes; then :
19990 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
19993 case " $LIBOBJS " in
19994 *" ctime_r.$ac_objext "* ) ;;
19995 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
20002 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
20003 if test "x$ac_cv_func_strsep" = xyes; then :
20004 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
20007 case " $LIBOBJS " in
20008 *" strsep.$ac_objext "* ) ;;
20009 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
20017 # Check whether --enable-allsymbols was given.
20018 if test "${enable_allsymbols+set}" = set; then :
20019 enableval=$enable_allsymbols;
20022 case "$enable_allsymbols" in
20024 COMMON_OBJ_ALL_SYMBOLS=""
20026 EXTRALINK="-L. -L.libs -lunbound"
20028 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
20032 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
20033 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
20040 if test x_$enable_lock_checks = x_yes; then
20041 UBSYMS="-export-symbols clubsyms.def"
20042 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
20043 echo lock_protect >> clubsyms.def
20044 echo lock_unprotect >> clubsyms.def
20045 echo lock_get_mem >> clubsyms.def
20046 echo checklock_start >> clubsyms.def
20047 echo checklock_stop >> clubsyms.def
20048 echo checklock_lock >> clubsyms.def
20049 echo checklock_unlock >> clubsyms.def
20050 echo checklock_init >> clubsyms.def
20051 echo checklock_thrcreate >> clubsyms.def
20052 echo checklock_thrjoin >> clubsyms.def
20055 # check for dnstap if requested
20057 # Check whether --enable-dnstap was given.
20058 if test "${enable_dnstap+set}" = set; then :
20059 enableval=$enable_dnstap; opt_dnstap=$enableval
20066 # Check whether --with-dnstap-socket-path was given.
20067 if test "${with_dnstap_socket_path+set}" = set; then :
20068 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
20070 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
20074 if test "x$opt_dnstap" != "xno"; then
20075 # Extract the first word of "protoc-c", so it can be a program name with args.
20076 set dummy protoc-c; ac_word=$2
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20078 $as_echo_n "checking for $ac_word... " >&6; }
20079 if ${ac_cv_path_PROTOC_C+:} false; then :
20080 $as_echo_n "(cached) " >&6
20084 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
20087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20088 for as_dir in $PATH
20091 test -z "$as_dir" && as_dir=.
20092 for ac_exec_ext in '' $ac_executable_extensions; do
20093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20094 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
20095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20105 PROTOC_C=$ac_cv_path_PROTOC_C
20106 if test -n "$PROTOC_C"; then
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
20108 $as_echo "$PROTOC_C" >&6; }
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20111 $as_echo "no" >&6; }
20115 if test -z "$PROTOC_C"; then
20116 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
20119 # Check whether --with-protobuf-c was given.
20120 if test "${with_protobuf_c+set}" = set; then :
20121 withval=$with_protobuf_c;
20122 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20123 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
20124 CFLAGS="$CFLAGS -I$withval/include/google"
20126 CFLAGS="$CFLAGS -I$withval/include"
20128 LDFLAGS="$LDFLAGS -L$withval/lib"
20132 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20133 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
20134 CFLAGS="$CFLAGS -I/usr/include/google"
20136 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
20137 CFLAGS="$CFLAGS -I/usr/local/include/google"
20138 LDFLAGS="$LDFLAGS -L/usr/local/lib"
20145 # Check whether --with-libfstrm was given.
20146 if test "${with_libfstrm+set}" = set; then :
20147 withval=$with_libfstrm;
20148 CFLAGS="$CFLAGS -I$withval/include"
20149 LDFLAGS="$LDFLAGS -L$withval/lib"
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
20154 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
20155 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20156 $as_echo_n "(cached) " >&6
20158 ac_func_search_save_LIBS=$LIBS
20159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20160 /* end confdefs.h. */
20162 /* Override any GCC internal prototype to avoid an error.
20163 Use char because int might match the return type of a GCC
20164 builtin and then its argument prototype would still apply. */
20168 char fstrm_iothr_init ();
20172 return fstrm_iothr_init ();
20177 for ac_lib in '' fstrm; do
20178 if test -z "$ac_lib"; then
20179 ac_res="none required"
20182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20184 if ac_fn_c_try_link "$LINENO"; then :
20185 ac_cv_search_fstrm_iothr_init=$ac_res
20187 rm -f core conftest.err conftest.$ac_objext \
20189 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20193 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20196 ac_cv_search_fstrm_iothr_init=no
20198 rm conftest.$ac_ext
20199 LIBS=$ac_func_search_save_LIBS
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
20202 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
20203 ac_res=$ac_cv_search_fstrm_iothr_init
20204 if test "$ac_res" != no; then :
20205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20208 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
20212 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
20213 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20214 $as_echo_n "(cached) " >&6
20216 ac_func_search_save_LIBS=$LIBS
20217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20218 /* end confdefs.h. */
20220 /* Override any GCC internal prototype to avoid an error.
20221 Use char because int might match the return type of a GCC
20222 builtin and then its argument prototype would still apply. */
20226 char protobuf_c_message_pack ();
20230 return protobuf_c_message_pack ();
20235 for ac_lib in '' protobuf-c; do
20236 if test -z "$ac_lib"; then
20237 ac_res="none required"
20240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20242 if ac_fn_c_try_link "$LINENO"; then :
20243 ac_cv_search_protobuf_c_message_pack=$ac_res
20245 rm -f core conftest.err conftest.$ac_objext \
20247 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20251 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20254 ac_cv_search_protobuf_c_message_pack=no
20256 rm conftest.$ac_ext
20257 LIBS=$ac_func_search_save_LIBS
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
20260 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
20261 ac_res=$ac_cv_search_protobuf_c_message_pack
20262 if test "$ac_res" != no; then :
20263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20266 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
20271 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
20277 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
20280 cat >>confdefs.h <<_ACEOF
20281 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
20285 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
20287 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
20299 # check for dnscrypt if requested
20301 # Check whether --enable-dnscrypt was given.
20302 if test "${enable_dnscrypt+set}" = set; then :
20303 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
20309 if test "x$opt_dnscrypt" != "xno"; then
20311 # Check whether --with-libsodium was given.
20312 if test "${with_libsodium+set}" = set; then :
20313 withval=$with_libsodium;
20314 CFLAGS="$CFLAGS -I$withval/include"
20315 LDFLAGS="$LDFLAGS -L$withval/lib"
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
20320 $as_echo_n "checking for library containing sodium_init... " >&6; }
20321 if ${ac_cv_search_sodium_init+:} false; then :
20322 $as_echo_n "(cached) " >&6
20324 ac_func_search_save_LIBS=$LIBS
20325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20326 /* end confdefs.h. */
20328 /* Override any GCC internal prototype to avoid an error.
20329 Use char because int might match the return type of a GCC
20330 builtin and then its argument prototype would still apply. */
20334 char sodium_init ();
20338 return sodium_init ();
20343 for ac_lib in '' sodium; do
20344 if test -z "$ac_lib"; then
20345 ac_res="none required"
20348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20350 if ac_fn_c_try_link "$LINENO"; then :
20351 ac_cv_search_sodium_init=$ac_res
20353 rm -f core conftest.err conftest.$ac_objext \
20355 if ${ac_cv_search_sodium_init+:} false; then :
20359 if ${ac_cv_search_sodium_init+:} false; then :
20362 ac_cv_search_sodium_init=no
20364 rm conftest.$ac_ext
20365 LIBS=$ac_func_search_save_LIBS
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
20368 $as_echo "$ac_cv_search_sodium_init" >&6; }
20369 ac_res=$ac_cv_search_sodium_init
20370 if test "$ac_res" != no; then :
20371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20374 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
20378 $as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
20379 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20380 $as_echo_n "(cached) " >&6
20382 ac_func_search_save_LIBS=$LIBS
20383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20384 /* end confdefs.h. */
20386 /* Override any GCC internal prototype to avoid an error.
20387 Use char because int might match the return type of a GCC
20388 builtin and then its argument prototype would still apply. */
20392 char crypto_box_curve25519xchacha20poly1305_beforenm ();
20396 return crypto_box_curve25519xchacha20poly1305_beforenm ();
20401 for ac_lib in '' sodium; do
20402 if test -z "$ac_lib"; then
20403 ac_res="none required"
20406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20408 if ac_fn_c_try_link "$LINENO"; then :
20409 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
20411 rm -f core conftest.err conftest.$ac_objext \
20413 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20417 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20420 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
20422 rm conftest.$ac_ext
20423 LIBS=$ac_func_search_save_LIBS
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
20426 $as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
20427 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
20428 if test "$ac_res" != no; then :
20429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20431 ENABLE_DNSCRYPT_XCHACHA20=1
20434 $as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
20439 ENABLE_DNSCRYPT_XCHACHA20=0
20446 $as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
20451 DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
20453 DNSCRYPT_OBJ="dnscrypt.lo"
20457 ENABLE_DNSCRYPT_XCHACHA20=0
20467 # check for cachedb if requested
20468 # Check whether --enable-cachedb was given.
20469 if test "${enable_cachedb+set}" = set; then :
20470 enableval=$enable_cachedb;
20473 case "$enable_cachedb" in
20476 $as_echo "#define USE_CACHEDB 1" >>confdefs.h
20484 # check for ipsecmod if requested
20485 # Check whether --enable-ipsecmod was given.
20486 if test "${enable_ipsecmod+set}" = set; then :
20487 enableval=$enable_ipsecmod;
20490 case "$enable_ipsecmod" in
20493 $as_echo "#define USE_IPSECMOD 1" >>confdefs.h
20495 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
20497 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
20506 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
20507 # on openBSD, the implicit rule make $< work.
20508 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
20510 cat >conftest.make <<EOF
20513 conftest.lo foo.lo bla.lo:
20514 if test -f "\$<"; then touch \$@; fi
20518 if test -f "\$<"; then touch \$@; fi
20520 conftest.lo: conftest.dir/conftest.c
20523 touch conftest.dir/conftest.c
20524 rm -f conftest.lo conftest.c
20525 ${MAKE:-make} -f conftest.make >/dev/null
20526 rm -f conftest.make conftest.c conftest.dir/conftest.c
20527 rm -rf conftest.dir
20528 if test ! -f conftest.lo; then
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20530 $as_echo "no" >&6; }
20531 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
20532 SOURCEFILE='`cat .source`'
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20535 $as_echo "yes" >&6; }
20536 SOURCEDETERMINE=':'
20543 # see if we want to build the library or everything
20544 ALLTARGET="alltargets"
20545 INSTALLTARGET="install-all"
20547 # Check whether --with-libunbound-only was given.
20548 if test "${with_libunbound_only+set}" = set; then :
20549 withval=$with_libunbound_only;
20550 if test "$withval" = "yes"; then
20552 INSTALLTARGET="install-lib"
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
20562 $as_echo "$as_me: Stripping extension flags..." >&6;}
20564 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
20565 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
20567 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
20572 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
20573 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
20575 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
20580 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
20581 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
20583 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
20588 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
20589 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
20591 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
20596 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
20597 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
20599 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
20604 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
20605 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
20607 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
20612 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
20613 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
20615 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
20620 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
20621 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
20623 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
20628 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
20629 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
20631 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
20636 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
20639 cat >>confdefs.h <<_ACEOF
20640 #define MAXSYSLOGMSGLEN 10240
20648 date=`date +'%b %e, %Y'`
20651 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"
20653 ac_config_headers="$ac_config_headers config.h"
20655 cat >confcache <<\_ACEOF
20656 # This file is a shell script that caches the results of configure
20657 # tests run on this system so they can be shared between configure
20658 # scripts and configure runs, see configure's option --config-cache.
20659 # It is not useful on other systems. If it contains results you don't
20660 # want to keep, you may remove or edit it.
20662 # config.status only pays attention to the cache file if you give it
20663 # the --recheck option to rerun configure.
20665 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20666 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20667 # following values.
20671 # The following way of writing the cache mishandles newlines in values,
20672 # but we know of no workaround that is simple, portable, and efficient.
20673 # So, we kill variables containing newlines.
20674 # Ultrix sh set writes to stderr and can't be redirected directly,
20675 # and sets the high bit in the cache file unless we assign to the vars.
20677 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20678 eval ac_val=\$$ac_var
20682 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20683 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20686 _ | IFS | as_nl) ;; #(
20687 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20688 *) { eval $ac_var=; unset $ac_var;} ;;
20694 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20695 *${as_nl}ac_space=\ *)
20696 # `set' does not quote correctly, so add quotes: double-quote
20697 # substitution turns \\\\ into \\, and sed turns \\ into \.
20700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20703 # `set' quotes correctly as required by POSIX, so do not add quotes.
20704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20713 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20715 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20717 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20718 if test -w "$cache_file"; then
20719 if test "x$cache_file" != "x/dev/null"; then
20720 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20721 $as_echo "$as_me: updating cache $cache_file" >&6;}
20722 if test ! -f "$cache_file" || test -h "$cache_file"; then
20723 cat confcache >"$cache_file"
20725 case $cache_file in #(
20727 mv -f confcache "$cache_file"$$ &&
20728 mv -f "$cache_file"$$ "$cache_file" ;; #(
20730 mv -f confcache "$cache_file" ;;
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20736 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20741 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20742 # Let make expand exec_prefix.
20743 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20745 DEFS=-DHAVE_CONFIG_H
20750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20751 # 1. Remove the extension, and $U if already installed.
20752 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20753 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20755 # will be set to the directory where LIBOBJS objects are built.
20756 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20757 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20759 LIBOBJS=$ac_libobjs
20761 LTLIBOBJS=$ac_ltlibobjs
20764 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
20765 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
20766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20769 : "${CONFIG_STATUS=./config.status}"
20771 ac_clean_files_save=$ac_clean_files
20772 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20773 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20774 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20776 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20778 # Generated by $as_me.
20779 # Run this file to recreate the current configuration.
20780 # Compiler output produced by configure, useful for debugging
20781 # configure, is in config.log if it exists.
20784 ac_cs_recheck=false
20787 SHELL=\${CONFIG_SHELL-$SHELL}
20790 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20791 ## -------------------- ##
20792 ## M4sh Initialization. ##
20793 ## -------------------- ##
20795 # Be more Bourne compatible
20796 DUALCASE=1; export DUALCASE # for MKS sh
20797 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20800 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20801 # is contrary to our usage. Disable this feature.
20802 alias -g '${1+"$@"}'='"$@"'
20803 setopt NO_GLOB_SUBST
20805 case `(set -o) 2>/dev/null` in #(
20817 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20818 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20819 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20820 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20821 # Prefer a ksh shell builtin over an external printf program on Solaris,
20822 # but without wasting forks for bash or zsh.
20823 if test -z "$BASH_VERSION$ZSH_VERSION" \
20824 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20825 as_echo='print -r --'
20826 as_echo_n='print -rn --'
20827 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20828 as_echo='printf %s\n'
20829 as_echo_n='printf %s'
20831 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20832 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20833 as_echo_n='/usr/ucb/echo -n'
20835 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20836 as_echo_n_body='eval
20840 expr "X$arg" : "X\\(.*\\)$as_nl";
20841 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20843 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20845 export as_echo_n_body
20846 as_echo_n='sh -c $as_echo_n_body as_echo'
20848 export as_echo_body
20849 as_echo='sh -c $as_echo_body as_echo'
20852 # The user is always right.
20853 if test "${PATH_SEPARATOR+set}" != set; then
20855 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20856 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20863 # We need space, tab and new line, in precisely that order. Quoting is
20864 # there to prevent editors from complaining about space-tab.
20865 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20866 # splitting by setting IFS to empty value.)
20869 # Find who we are. Look in the path if we contain no directory separator.
20872 *[\\/]* ) as_myself=$0 ;;
20873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20874 for as_dir in $PATH
20877 test -z "$as_dir" && as_dir=.
20878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20884 # We did not find ourselves, most probably we were run as `sh COMMAND'
20885 # in which case we are not to be found in the path.
20886 if test "x$as_myself" = x; then
20889 if test ! -f "$as_myself"; then
20890 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20894 # Unset variables that we do not need and which cause bugs (e.g. in
20895 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20896 # suppresses any "Segmentation fault" message there. '((' could
20897 # trigger a bug in pdksh 5.2.14.
20898 for as_var in BASH_ENV ENV MAIL MAILPATH
20899 do eval test x\${$as_var+set} = xset \
20900 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20913 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20916 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20917 # ----------------------------------------
20918 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20919 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20920 # script with STATUS, using 1 if that was 0.
20923 as_status=$1; test $as_status -eq 0 && as_status=1
20925 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20926 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20928 $as_echo "$as_me: error: $2" >&2
20929 as_fn_exit $as_status
20933 # as_fn_set_status STATUS
20934 # -----------------------
20935 # Set $? to STATUS, without forking.
20936 as_fn_set_status ()
20939 } # as_fn_set_status
20941 # as_fn_exit STATUS
20942 # -----------------
20943 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20947 as_fn_set_status $1
20953 # Portably unset VAR.
20956 { eval $1=; unset $1;}
20958 as_unset=as_fn_unset
20959 # as_fn_append VAR VALUE
20960 # ----------------------
20961 # Append the text in VALUE to the end of the definition contained in VAR. Take
20962 # advantage of any shell optimizations that allow amortized linear growth over
20963 # repeated appends, instead of the typical quadratic growth present in naive
20965 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20966 eval 'as_fn_append ()
20977 # as_fn_arith ARG...
20978 # ------------------
20979 # Perform arithmetic evaluation on the ARGs, and store the result in the
20980 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20981 # must be portable across $(()) and expr.
20982 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20983 eval 'as_fn_arith ()
20990 as_val=`expr "$@" || test $? -eq 1`
20995 if expr a : '\(a\)' >/dev/null 2>&1 &&
20996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21002 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21003 as_basename=basename
21008 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21014 as_me=`$as_basename -- "$0" ||
21015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21016 X"$0" : 'X\(//\)$' \| \
21017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21019 sed '/^.*\/\([^/][^/]*\)\/*$/{
21033 # Avoid depending upon Character Ranges.
21034 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21035 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21036 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21037 as_cr_digits='0123456789'
21038 as_cr_alnum=$as_cr_Letters$as_cr_digits
21040 ECHO_C= ECHO_N= ECHO_T=
21041 case `echo -n x` in #(((((
21043 case `echo 'xy\c'` in
21044 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21046 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21053 rm -f conf$$ conf$$.exe conf$$.file
21054 if test -d conf$$.dir; then
21055 rm -f conf$$.dir/conf$$.file
21058 mkdir conf$$.dir 2>/dev/null
21060 if (echo >conf$$.file) 2>/dev/null; then
21061 if ln -s conf$$.file conf$$ 2>/dev/null; then
21063 # ... but there are two gotchas:
21064 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21065 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21066 # In both cases, we have to default to `cp -pR'.
21067 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21069 elif ln conf$$.file conf$$ 2>/dev/null; then
21077 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21078 rmdir conf$$.dir 2>/dev/null
21083 # Create "$as_dir" as a directory, including parents if necessary.
21088 -*) as_dir=./$as_dir;;
21090 test -d "$as_dir" || eval $as_mkdir_p || {
21094 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21095 *) as_qdir=$as_dir;;
21097 as_dirs="'$as_qdir' $as_dirs"
21098 as_dir=`$as_dirname -- "$as_dir" ||
21099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21100 X"$as_dir" : 'X\(//\)[^/]' \| \
21101 X"$as_dir" : 'X\(//\)$' \| \
21102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21103 $as_echo X"$as_dir" |
21104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21108 /^X\(\/\/\)[^/].*/{
21121 test -d "$as_dir" && break
21123 test -z "$as_dirs" || eval "mkdir $as_dirs"
21124 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21128 if mkdir -p . 2>/dev/null; then
21129 as_mkdir_p='mkdir -p "$as_dir"'
21131 test -d ./-p && rmdir ./-p
21136 # as_fn_executable_p FILE
21137 # -----------------------
21138 # Test if FILE is an executable regular file.
21139 as_fn_executable_p ()
21141 test -f "$1" && test -x "$1"
21142 } # as_fn_executable_p
21143 as_test_x='test -x'
21144 as_executable_p=as_fn_executable_p
21146 # Sed expression to map a string onto a valid CPP name.
21147 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21149 # Sed expression to map a string onto a valid variable name.
21150 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21154 ## ----------------------------------- ##
21155 ## Main body of $CONFIG_STATUS script. ##
21156 ## ----------------------------------- ##
21158 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21161 # Save the log message, to keep $0 and so on meaningful, and to
21162 # report actual input values of CONFIG_FILES etc. instead of their
21163 # values after options handling.
21165 This file was extended by unbound $as_me 1.6.5, which was
21166 generated by GNU Autoconf 2.69. Invocation command line was
21168 CONFIG_FILES = $CONFIG_FILES
21169 CONFIG_HEADERS = $CONFIG_HEADERS
21170 CONFIG_LINKS = $CONFIG_LINKS
21171 CONFIG_COMMANDS = $CONFIG_COMMANDS
21174 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21179 case $ac_config_files in *"
21180 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21183 case $ac_config_headers in *"
21184 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21189 # Files that config.status was made for.
21190 config_files="$ac_config_files"
21191 config_headers="$ac_config_headers"
21192 config_commands="$ac_config_commands"
21196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21198 \`$as_me' instantiates files and other configuration actions
21199 from templates according to the current configuration. Unless the files
21200 and actions are specified as TAGs, all are instantiated by default.
21202 Usage: $0 [OPTION]... [TAG]...
21204 -h, --help print this help, then exit
21205 -V, --version print version number and configuration settings, then exit
21206 --config print configuration, then exit
21207 -q, --quiet, --silent
21208 do not print progress messages
21209 -d, --debug don't remove temporary files
21210 --recheck update $as_me by reconfiguring in the same conditions
21211 --file=FILE[:TEMPLATE]
21212 instantiate the configuration file FILE
21213 --header=FILE[:TEMPLATE]
21214 instantiate the configuration header FILE
21216 Configuration files:
21219 Configuration headers:
21222 Configuration commands:
21225 Report bugs to <unbound-bugs@nlnetlabs.nl>."
21228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21229 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21231 unbound config.status 1.6.5
21232 configured by $0, generated by GNU Autoconf 2.69,
21233 with options \\"\$ac_cs_config\\"
21235 Copyright (C) 2012 Free Software Foundation, Inc.
21236 This config.status script is free software; the Free Software Foundation
21237 gives unlimited permission to copy, distribute and modify it."
21242 test -n "\$AWK" || AWK=awk
21245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21246 # The default lists apply if the user does not specify any file.
21252 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21253 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21257 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21269 # Handling of the options.
21270 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21272 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21273 $as_echo "$ac_cs_version"; exit ;;
21274 --config | --confi | --conf | --con | --co | --c )
21275 $as_echo "$ac_cs_config"; exit ;;
21276 --debug | --debu | --deb | --de | --d | -d )
21278 --file | --fil | --fi | --f )
21281 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21282 '') as_fn_error $? "missing file argument" ;;
21284 as_fn_append CONFIG_FILES " '$ac_optarg'"
21285 ac_need_defaults=false;;
21286 --header | --heade | --head | --hea )
21289 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21291 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21292 ac_need_defaults=false;;
21294 # Conflict between --help and --header
21295 as_fn_error $? "ambiguous option: \`$1'
21296 Try \`$0 --help' for more information.";;
21297 --help | --hel | -h )
21298 $as_echo "$ac_cs_usage"; exit ;;
21299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21300 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21303 # This is an error.
21304 -*) as_fn_error $? "unrecognized option: \`$1'
21305 Try \`$0 --help' for more information." ;;
21307 *) as_fn_append ac_config_targets " $1"
21308 ac_need_defaults=false ;;
21314 ac_configure_extra_args=
21316 if $ac_cs_silent; then
21318 ac_configure_extra_args="$ac_configure_extra_args --silent"
21322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21323 if \$ac_cs_recheck; then
21324 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21326 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21327 CONFIG_SHELL='$SHELL'
21328 export CONFIG_SHELL
21333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21338 ## Running $as_me. ##
21344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21350 # The HP-UX ksh and POSIX shell print the target directory to stdout
21351 # if CDPATH is set.
21352 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21354 sed_quote_subst='$sed_quote_subst'
21355 double_quote_subst='$double_quote_subst'
21356 delay_variable_subst='$delay_variable_subst'
21357 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21358 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21359 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21360 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21361 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21362 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21363 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21364 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21365 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21366 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21367 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21368 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21369 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21370 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21371 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21372 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21373 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21374 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21375 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21376 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21377 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21378 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21379 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21380 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21381 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21382 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21383 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21384 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21385 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21386 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21387 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21388 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21389 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21390 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21391 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21392 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21393 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21394 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21395 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21396 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21397 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21398 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21399 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21400 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21401 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21402 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21403 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21404 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21405 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21406 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21407 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21408 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21409 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21410 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21411 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21412 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21413 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21414 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21415 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"`'
21416 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21417 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21418 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21419 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21420 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21421 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21422 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21423 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21424 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21425 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21426 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21427 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21428 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21429 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21430 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21431 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21432 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21433 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21434 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21435 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21436 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21437 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21438 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21439 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21440 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21441 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21442 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21443 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21444 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21445 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21446 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21447 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21448 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21449 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21450 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21451 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21452 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21453 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21454 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21455 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21456 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21457 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21458 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21459 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21460 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21461 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21462 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21463 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21464 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21465 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21466 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21467 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21468 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21469 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21470 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21471 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21472 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21473 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21474 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21475 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21476 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21477 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21478 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21479 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21480 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21481 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21482 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21483 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21484 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21485 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21486 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21487 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21488 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21489 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21490 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21491 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21494 LTCFLAGS='$LTCFLAGS'
21495 compiler='$compiler_DEFAULT'
21497 # A function that is used when there is no print builtin or printf.
21498 func_fallback_echo ()
21500 eval 'cat <<_LTECHO_EOF
21505 # Quote evaled strings.
21520 deplibs_check_method \
21525 sharedlib_from_linklib_cmd \
21528 archiver_list_spec \
21534 lt_cv_sys_global_symbol_pipe \
21535 lt_cv_sys_global_symbol_to_cdecl \
21536 lt_cv_sys_global_symbol_to_import \
21537 lt_cv_sys_global_symbol_to_c_name_address \
21538 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21539 lt_cv_nm_interface \
21540 nm_file_list_spec \
21541 lt_cv_truncate_bin \
21542 lt_prog_compiler_no_builtin_flag \
21543 lt_prog_compiler_pic \
21544 lt_prog_compiler_wl \
21545 lt_prog_compiler_static \
21546 lt_cv_prog_compiler_c_o \
21555 export_dynamic_flag_spec \
21556 whole_archive_flag_spec \
21557 compiler_needs_object \
21559 allow_undefined_flag \
21560 no_undefined_flag \
21561 hardcode_libdir_flag_spec \
21562 hardcode_libdir_separator \
21566 variables_saved_for_relink \
21568 library_names_spec \
21570 install_override_mode \
21574 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21575 *[\\\\\\\`\\"\\\$]*)
21576 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21579 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21584 # Double-quote double-evaled strings.
21585 for var in reload_cmds \
21586 old_postinstall_cmds \
21587 old_postuninstall_cmds \
21589 extract_expsyms_cmds \
21590 old_archive_from_new_cmds \
21591 old_archive_from_expsyms_cmds \
21593 archive_expsym_cmds \
21595 module_expsym_cmds \
21596 export_symbols_cmds \
21600 postuninstall_cmds \
21602 sys_lib_search_path_spec \
21603 configure_time_dlsearch_path \
21604 configure_time_lt_sys_library_path; do
21605 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21606 *[\\\\\\\`\\"\\\$]*)
21607 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21610 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21615 ac_aux_dir='$ac_aux_dir'
21617 # See if we are running on zsh, and set the options that allow our
21618 # commands through without removal of \ escapes INIT.
21619 if test -n "\${ZSH_VERSION+set}"; then
21620 setopt NO_GLOB_SUBST
21634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21636 # Handling of arguments.
21637 for ac_config_target in $ac_config_targets
21639 case $ac_config_target in
21640 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21641 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
21642 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21643 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
21644 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
21645 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
21646 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
21647 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
21648 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
21649 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
21650 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
21651 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
21652 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
21653 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
21654 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
21655 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
21656 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
21657 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21659 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21664 # If the user did not use the arguments to specify the items to instantiate,
21665 # then the envvar interface is used. Set only those that are not.
21666 # We use the long form for the default assignment because of an extremely
21667 # bizarre bug on SunOS 4.1.3.
21668 if $ac_need_defaults; then
21669 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21670 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21671 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21674 # Have a temporary directory for convenience. Make it in the build tree
21675 # simply because there is no reason against having it here, and in addition,
21676 # creating and moving files from /tmp can sometimes cause problems.
21677 # Hook for its removal unless debugging.
21678 # Note that there is a small window in which the directory will not be cleaned:
21679 # after its creation but before its name has been assigned to `$tmp'.
21683 trap 'exit_status=$?
21684 : "${ac_tmp:=$tmp}"
21685 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21687 trap 'as_fn_exit 1' 1 2 13 15
21689 # Create a (secure) tmp directory for tmp files.
21692 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21696 tmp=./conf$$-$RANDOM
21697 (umask 077 && mkdir "$tmp")
21698 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21701 # Set up the scripts for CONFIG_FILES section.
21702 # No need to generate them if there are no CONFIG_FILES.
21703 # This happens for instance with `./config.status config.h'.
21704 if test -n "$CONFIG_FILES"; then
21707 ac_cr=`echo X | tr X '\015'`
21708 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21709 # But we know of no other shell where ac_cr would be empty at this
21710 # point, so we can use a bashism as a fallback.
21711 if test "x$ac_cr" = x; then
21712 eval ac_cr=\$\'\\r\'
21714 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21715 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21718 ac_cs_awk_cr=$ac_cr
21721 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21726 echo "cat >conf$$subs.awk <<_ACEOF" &&
21727 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21729 } >conf$$subs.sh ||
21730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21731 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21733 for ac_last_try in false false false false false :; do
21734 . ./conf$$subs.sh ||
21735 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21737 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21738 if test $ac_delim_n = $ac_delim_num; then
21740 elif $ac_last_try; then
21741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21746 rm -f conf$$subs.sh
21748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21749 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21753 s/^/S["/; s/!.*/"]=/
21763 s/\(.\{148\}\)..*/\1/
21765 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21770 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21777 s/\(.\{148\}\)..*/\1/
21779 s/["\\]/\\&/g; s/^/"/; s/$/"/
21783 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21788 ' <conf$$subs.awk | sed '
21793 ' >>$CONFIG_STATUS || ac_write_fail=1
21794 rm -f conf$$subs.awk
21795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21797 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21798 for (key in S) S_is_set[key] = 1
21804 nfields = split(line, field, "@")
21806 len = length(field[1])
21807 for (i = 2; i < nfields; i++) {
21809 keylen = length(key)
21810 if (S_is_set[key]) {
21812 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21813 len += length(value) + length(field[++i])
21824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21825 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21826 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21829 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21830 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21833 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21834 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21835 # trailing colons and then remove the whole line if VPATH becomes empty
21836 # (actually we leave an empty line to preserve line numbers).
21837 if test "x$srcdir" = x.; then
21838 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21857 fi # test -n "$CONFIG_FILES"
21859 # Set up the scripts for CONFIG_HEADERS section.
21860 # No need to generate them if there are no CONFIG_HEADERS.
21861 # This happens for instance with `./config.status Makefile'.
21862 if test -n "$CONFIG_HEADERS"; then
21863 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21867 # Transform confdefs.h into an awk script `defines.awk', embedded as
21868 # here-document in config.status, that substitutes the proper values into
21869 # config.h.in to produce config.h.
21871 # Create a delimiter string that does not exist in confdefs.h, to ease
21872 # handling of long lines.
21874 for ac_last_try in false false :; do
21875 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21876 if test -z "$ac_tt"; then
21878 elif $ac_last_try; then
21879 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21881 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21885 # For the awk script, D is an array of macro values keyed by name,
21886 # likewise P contains macro parameters if any. Preserve backslash
21887 # newline sequences.
21889 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21891 s/.\{148\}/&'"$ac_delim"'/g
21894 s/^[ ]*#[ ]*define[ ][ ]*/ /
21901 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21903 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21907 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21908 D["\1"]=" \3\\\\\\n"\\/p
21910 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21915 s/.\{148\}/&'"$ac_delim"'/g
21920 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21923 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21925 ' <confdefs.h | sed '
21926 s/'"$ac_delim"'/"\\\
21927 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21930 for (key in D) D_is_set[key] = 1
21933 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21935 split(line, arg, " ")
21936 if (arg[1] == "#") {
21940 defundef = substr(arg[1], 2)
21943 split(mac1, mac2, "(") #)
21945 prefix = substr(line, 1, index(line, defundef) - 1)
21946 if (D_is_set[macro]) {
21947 # Preserve the white space surrounding the "#".
21948 print prefix "define", macro P[macro] D[macro]
21951 # Replace #undef with comments. This is necessary, for example,
21952 # in the case of _POSIX_SOURCE, which is predefined and required
21953 # on some systems where configure will not decide to define it.
21954 if (defundef == "undef") {
21955 print "/*", prefix defundef, macro, "*/"
21963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21964 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21965 fi # test -n "$CONFIG_HEADERS"
21968 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21973 :[FHLC]) ac_mode=$ac_tag; continue;;
21975 case $ac_mode$ac_tag in
21977 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21978 :[FH]-) ac_tag=-:-;;
21979 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21996 -) ac_f="$ac_tmp/stdin";;
21997 *) # Look for the file first in the build tree, then in the source tree
21998 # (if the path is not absolute). The absolute path cannot be DOS-style,
21999 # because $ac_f cannot contain `:'.
22003 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22005 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22007 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22008 as_fn_append ac_file_inputs " '$ac_f'"
22011 # Let's still pretend it is `configure' which instantiates (i.e., don't
22012 # use $as_me), people would be surprised to read:
22013 # /* config.h. Generated by config.status. */
22014 configure_input='Generated from '`
22015 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22017 if test x"$ac_file" != x-; then
22018 configure_input="$ac_file. $configure_input"
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22020 $as_echo "$as_me: creating $ac_file" >&6;}
22022 # Neutralize special characters interpreted by sed in replacement strings.
22023 case $configure_input in #(
22024 *\&* | *\|* | *\\* )
22025 ac_sed_conf_input=`$as_echo "$configure_input" |
22026 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22027 *) ac_sed_conf_input=$configure_input;;
22031 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22037 ac_dir=`$as_dirname -- "$ac_file" ||
22038 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22039 X"$ac_file" : 'X\(//\)[^/]' \| \
22040 X"$ac_file" : 'X\(//\)$' \| \
22041 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22042 $as_echo X"$ac_file" |
22043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22047 /^X\(\/\/\)[^/].*/{
22060 as_dir="$ac_dir"; as_fn_mkdir_p
22064 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22066 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22067 # A ".." for each directory in $ac_dir_suffix.
22068 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22069 case $ac_top_builddir_sub in
22070 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22071 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22074 ac_abs_top_builddir=$ac_pwd
22075 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22076 # for backward compatibility:
22077 ac_top_builddir=$ac_top_build_prefix
22080 .) # We are building in place.
22082 ac_top_srcdir=$ac_top_builddir_sub
22083 ac_abs_top_srcdir=$ac_pwd ;;
22084 [\\/]* | ?:[\\/]* ) # Absolute name.
22085 ac_srcdir=$srcdir$ac_dir_suffix;
22086 ac_top_srcdir=$srcdir
22087 ac_abs_top_srcdir=$srcdir ;;
22088 *) # Relative name.
22089 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22090 ac_top_srcdir=$ac_top_build_prefix$srcdir
22091 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22093 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22105 # If the template does not know about datarootdir, expand it.
22106 # FIXME: This hack should be removed a few years after 2.60.
22107 ac_datarootdir_hack=; ac_datarootdir_seen=
22118 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22119 *datarootdir*) ac_datarootdir_seen=yes;;
22120 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22122 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22125 ac_datarootdir_hack='
22126 s&@datadir@&$datadir&g
22127 s&@docdir@&$docdir&g
22128 s&@infodir@&$infodir&g
22129 s&@localedir@&$localedir&g
22130 s&@mandir@&$mandir&g
22131 s&\\\${datarootdir}&$datarootdir&g' ;;
22135 # Neutralize VPATH when `$srcdir' = `.'.
22136 # Shell code in configure.ac might set extrasub.
22137 # FIXME: do we really want to maintain this feature?
22138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22139 ac_sed_extra="$ac_vpsub
22142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22144 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22145 s|@configure_input@|$ac_sed_conf_input|;t t
22146 s&@top_builddir@&$ac_top_builddir_sub&;t t
22147 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22148 s&@srcdir@&$ac_srcdir&;t t
22149 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22150 s&@top_srcdir@&$ac_top_srcdir&;t t
22151 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22152 s&@builddir@&$ac_builddir&;t t
22153 s&@abs_builddir@&$ac_abs_builddir&;t t
22154 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22155 $ac_datarootdir_hack
22157 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22158 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22160 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22161 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22162 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22163 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22165 which seems to be undefined. Please make sure it is defined" >&5
22166 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22167 which seems to be undefined. Please make sure it is defined" >&2;}
22169 rm -f "$ac_tmp/stdin"
22171 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22172 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22180 if test x"$ac_file" != x-; then
22182 $as_echo "/* $configure_input */" \
22183 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22184 } >"$ac_tmp/config.h" \
22185 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22186 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22188 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22191 mv "$ac_tmp/config.h" "$ac_file" \
22192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22195 $as_echo "/* $configure_input */" \
22196 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22197 || as_fn_error $? "could not create -" "$LINENO" 5
22201 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22202 $as_echo "$as_me: executing $ac_file commands" >&6;}
22207 case $ac_file$ac_mode in
22210 # See if we are running on zsh, and set the options that allow our
22211 # commands through without removal of \ escapes.
22212 if test -n "${ZSH_VERSION+set}"; then
22213 setopt NO_GLOB_SUBST
22217 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22220 cat <<_LT_EOF >> "$cfgfile"
22222 # Generated automatically by $as_me ($PACKAGE) $VERSION
22223 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22224 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22226 # Provide generalized library-building support services.
22227 # Written by Gordon Matzigkeit, 1996
22229 # Copyright (C) 2014 Free Software Foundation, Inc.
22230 # This is free software; see the source for copying conditions. There is NO
22231 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22233 # GNU Libtool is free software; you can redistribute it and/or modify
22234 # it under the terms of the GNU General Public License as published by
22235 # the Free Software Foundation; either version 2 of of the License, or
22236 # (at your option) any later version.
22238 # As a special exception to the GNU General Public License, if you
22239 # distribute this file as part of a program or library that is built
22240 # using GNU Libtool, you may include this file under the same
22241 # distribution terms that you use for the rest of that program.
22243 # GNU Libtool is distributed in the hope that it will be useful, but
22244 # WITHOUT ANY WARRANTY; without even the implied warranty of
22245 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22246 # GNU General Public License for more details.
22248 # You should have received a copy of the GNU General Public License
22249 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22252 # The names of the tagged configurations supported by this script.
22255 # Configured defaults for sys_lib_dlsearch_path munging.
22256 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22258 # ### BEGIN LIBTOOL CONFIG
22260 # Which release of libtool.m4 was used?
22261 macro_version=$macro_version
22262 macro_revision=$macro_revision
22264 # Whether or not to build shared libraries.
22265 build_libtool_libs=$enable_shared
22267 # Whether or not to build static libraries.
22268 build_old_libs=$enable_static
22270 # What type of objects to build.
22273 # Whether or not to optimize for fast installation.
22274 fast_install=$enable_fast_install
22276 # Shared archive member basename,for filename based shared library versioning on AIX.
22277 shared_archive_member_spec=$shared_archive_member_spec
22279 # Shell to use when invoking shell scripts.
22282 # An echo program that protects backslashes.
22285 # The PATH separator for the build system.
22286 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22289 host_alias=$host_alias
22293 # The build system.
22294 build_alias=$build_alias
22298 # A sed program that does not truncate output.
22301 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22302 Xsed="\$SED -e 1s/^X//"
22304 # A grep program that handles long lines.
22310 # A literal string matcher.
22313 # A BSD- or MS-compatible name lister.
22316 # Whether we need soft or hard links.
22319 # What is the maximum length of a command?
22320 max_cmd_len=$max_cmd_len
22322 # Object file suffix (normally "o").
22325 # Executable file suffix (normally "").
22328 # whether the shell understands "unset".
22331 # turn spaces into newlines.
22334 # turn newlines into spaces.
22337 # convert \$build file names to \$host format.
22338 to_host_file_cmd=$lt_cv_to_host_file_cmd
22340 # convert \$build files to toolchain format.
22341 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22343 # An object symbol dumper.
22344 OBJDUMP=$lt_OBJDUMP
22346 # Method to check whether dependent libraries are shared objects.
22347 deplibs_check_method=$lt_deplibs_check_method
22349 # Command to use when deplibs_check_method = "file_magic".
22350 file_magic_cmd=$lt_file_magic_cmd
22352 # How to find potential files when deplibs_check_method = "file_magic".
22353 file_magic_glob=$lt_file_magic_glob
22355 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22356 want_nocaseglob=$lt_want_nocaseglob
22358 # DLL creation program.
22359 DLLTOOL=$lt_DLLTOOL
22361 # Command to associate shared and link libraries.
22362 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22367 # Flags to create an archive.
22368 AR_FLAGS=$lt_AR_FLAGS
22370 # How to feed a file listing to the archiver.
22371 archiver_list_spec=$lt_archiver_list_spec
22373 # A symbol stripping program.
22376 # Commands used to install an old-style archive.
22378 old_postinstall_cmds=$lt_old_postinstall_cmds
22379 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22381 # Whether to use a lock for old archive extraction.
22382 lock_old_archive_extraction=$lock_old_archive_extraction
22387 # LTCC compiler flags.
22388 LTCFLAGS=$lt_CFLAGS
22390 # Take the output of nm and produce a listing of raw symbols and C names.
22391 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22393 # Transform the output of nm in a proper C declaration.
22394 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22396 # Transform the output of nm into a list of symbols to manually relocate.
22397 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22399 # Transform the output of nm in a C name address pair.
22400 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22402 # Transform the output of nm in a C name address pair when lib prefix is needed.
22403 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22405 # The name lister interface.
22406 nm_interface=$lt_lt_cv_nm_interface
22408 # Specify filename containing input files for \$NM.
22409 nm_file_list_spec=$lt_nm_file_list_spec
22411 # The root where to search for dependent libraries,and where our libraries should be installed.
22412 lt_sysroot=$lt_sysroot
22414 # Command to truncate a binary pipe.
22415 lt_truncate_bin=$lt_lt_cv_truncate_bin
22417 # The name of the directory that contains temporary libtool files.
22420 # Used to examine libraries when file_magic_cmd begins with "file".
22421 MAGIC_CMD=$MAGIC_CMD
22423 # Must we lock files when doing compilation?
22424 need_locks=$lt_need_locks
22427 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22429 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22430 DSYMUTIL=$lt_DSYMUTIL
22432 # Tool to change global to local symbols on Mac OS X.
22435 # Tool to manipulate fat objects and archives on Mac OS X.
22438 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22441 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22442 OTOOL64=$lt_OTOOL64
22444 # Old archive suffix (normally "a").
22447 # Shared library suffix (normally ".so").
22448 shrext_cmds=$lt_shrext_cmds
22450 # The commands to extract the exported symbol list from a shared archive.
22451 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22453 # Variables whose values should be saved in libtool wrapper scripts and
22454 # restored at link time.
22455 variables_saved_for_relink=$lt_variables_saved_for_relink
22457 # Do we need the "lib" prefix for modules?
22458 need_lib_prefix=$need_lib_prefix
22460 # Do we need a version for libraries?
22461 need_version=$need_version
22463 # Library versioning type.
22464 version_type=$version_type
22466 # Shared library runtime path variable.
22467 runpath_var=$runpath_var
22469 # Shared library path variable.
22470 shlibpath_var=$shlibpath_var
22472 # Is shlibpath searched before the hard-coded library search path?
22473 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22475 # Format of library name prefix.
22476 libname_spec=$lt_libname_spec
22478 # List of archive names. First name is the real one, the rest are links.
22479 # The last name is the one that the linker finds with -lNAME
22480 library_names_spec=$lt_library_names_spec
22482 # The coded name of the library, if different from the real name.
22483 soname_spec=$lt_soname_spec
22485 # Permission mode override for installation of shared libraries.
22486 install_override_mode=$lt_install_override_mode
22488 # Command to use after installation of a shared archive.
22489 postinstall_cmds=$lt_postinstall_cmds
22491 # Command to use after uninstallation of a shared archive.
22492 postuninstall_cmds=$lt_postuninstall_cmds
22494 # Commands used to finish a libtool library installation in a directory.
22495 finish_cmds=$lt_finish_cmds
22497 # As "finish_cmds", except a single script fragment to be evaled but
22499 finish_eval=$lt_finish_eval
22501 # Whether we should hardcode library paths into libraries.
22502 hardcode_into_libs=$hardcode_into_libs
22504 # Compile-time system search path for libraries.
22505 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22507 # Detected run-time system search path for libraries.
22508 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22510 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22511 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22513 # Whether dlopen is supported.
22514 dlopen_support=$enable_dlopen
22516 # Whether dlopen of programs is supported.
22517 dlopen_self=$enable_dlopen_self
22519 # Whether dlopen of statically linked programs is supported.
22520 dlopen_self_static=$enable_dlopen_self_static
22522 # Commands to strip libraries.
22523 old_striplib=$lt_old_striplib
22524 striplib=$lt_striplib
22527 # The linker used to build libraries.
22530 # How to create reloadable object files.
22531 reload_flag=$lt_reload_flag
22532 reload_cmds=$lt_reload_cmds
22534 # Commands used to build an old-style archive.
22535 old_archive_cmds=$lt_old_archive_cmds
22537 # A language specific compiler.
22540 # Is the compiler the GNU compiler?
22543 # Compiler flag to turn off builtin functions.
22544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22546 # Additional compiler flags for building library objects.
22547 pic_flag=$lt_lt_prog_compiler_pic
22549 # How to pass a linker flag through the compiler.
22550 wl=$lt_lt_prog_compiler_wl
22552 # Compiler flag to prevent dynamic linking.
22553 link_static_flag=$lt_lt_prog_compiler_static
22555 # Does compiler simultaneously support -c and -o options?
22556 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22558 # Whether or not to add -lc for building shared libraries.
22559 build_libtool_need_lc=$archive_cmds_need_lc
22561 # Whether or not to disallow shared libs when runtime libs are static.
22562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22564 # Compiler flag to allow reflexive dlopens.
22565 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22567 # Compiler flag to generate shared objects directly from archives.
22568 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22570 # Whether the compiler copes with passing no objects directly.
22571 compiler_needs_object=$lt_compiler_needs_object
22573 # Create an old-style archive from a shared archive.
22574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22576 # Create a temporary old-style archive to link instead of a shared archive.
22577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22579 # Commands used to build a shared archive.
22580 archive_cmds=$lt_archive_cmds
22581 archive_expsym_cmds=$lt_archive_expsym_cmds
22583 # Commands used to build a loadable module if different from building
22584 # a shared archive.
22585 module_cmds=$lt_module_cmds
22586 module_expsym_cmds=$lt_module_expsym_cmds
22588 # Whether we are building with GNU ld or not.
22589 with_gnu_ld=$lt_with_gnu_ld
22591 # Flag that allows shared libraries with undefined symbols to be built.
22592 allow_undefined_flag=$lt_allow_undefined_flag
22594 # Flag that enforces no undefined symbols.
22595 no_undefined_flag=$lt_no_undefined_flag
22597 # Flag to hardcode \$libdir into a binary during linking.
22598 # This must work even if \$libdir does not exist
22599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22601 # Whether we need a single "-rpath" flag with a separated argument.
22602 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22604 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22605 # DIR into the resulting binary.
22606 hardcode_direct=$hardcode_direct
22608 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22609 # DIR into the resulting binary and the resulting library dependency is
22610 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22611 # library is relocated.
22612 hardcode_direct_absolute=$hardcode_direct_absolute
22614 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22615 # into the resulting binary.
22616 hardcode_minus_L=$hardcode_minus_L
22618 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22619 # into the resulting binary.
22620 hardcode_shlibpath_var=$hardcode_shlibpath_var
22622 # Set to "yes" if building a shared library automatically hardcodes DIR
22623 # into the library and all subsequent libraries and executables linked
22625 hardcode_automatic=$hardcode_automatic
22627 # Set to yes if linker adds runtime paths of dependent libraries
22628 # to runtime path list.
22629 inherit_rpath=$inherit_rpath
22631 # Whether libtool must link a program against all its dependency libraries.
22632 link_all_deplibs=$link_all_deplibs
22634 # Set to "yes" if exported symbols are required.
22635 always_export_symbols=$always_export_symbols
22637 # The commands to list exported symbols.
22638 export_symbols_cmds=$lt_export_symbols_cmds
22640 # Symbols that should not be listed in the preloaded symbols.
22641 exclude_expsyms=$lt_exclude_expsyms
22643 # Symbols that must always be exported.
22644 include_expsyms=$lt_include_expsyms
22646 # Commands necessary for linking programs (against libraries) with templates.
22647 prelink_cmds=$lt_prelink_cmds
22649 # Commands necessary for finishing linking programs.
22650 postlink_cmds=$lt_postlink_cmds
22652 # Specify filename containing input files.
22653 file_list_spec=$lt_file_list_spec
22655 # How to hardcode a shared library path into an executable.
22656 hardcode_action=$hardcode_action
22658 # ### END LIBTOOL CONFIG
22662 cat <<'_LT_EOF' >> "$cfgfile"
22664 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22666 # func_munge_path_list VARIABLE PATH
22667 # -----------------------------------
22668 # VARIABLE is name of variable containing _space_ separated list of
22669 # directories to be munged by the contents of PATH, which is string
22672 # string "DIR[ DIR]" will be prepended to VARIABLE
22674 # string "DIR[ DIR]" will be appended to VARIABLE
22675 # "DIRP[:DIRP]::[DIRA:]DIRA"
22676 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22677 # "DIRA[ DIRA]" will be appended to VARIABLE
22679 # VARIABLE will be replaced by "DIR[ DIR]"
22680 func_munge_path_list ()
22686 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22689 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22692 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22693 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22696 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22702 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22703 func_cc_basename ()
22705 for cc_temp in $*""; do
22707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22713 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22717 # ### END FUNCTIONS SHARED WITH CONFIGURE
22723 cat <<\_LT_EOF >> "$cfgfile"
22724 # AIX sometimes has problems with the GCC collect2 program. For some
22725 # reason, if we set the COLLECT_NAMES environment variable, the problems
22726 # vanish in a puff of smoke.
22727 if test set != "${COLLECT_NAMES+set}"; then
22729 export COLLECT_NAMES
22736 ltmain=$ac_aux_dir/ltmain.sh
22739 # We use sed instead of cat because bash on DJGPP gets confused if
22740 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22741 # text mode, it properly converts lines to CR/LF. This bash problem
22742 # is reportedly fixed, but why not run on old versions too?
22743 sed '$q' "$ltmain" >> "$cfgfile" \
22744 || (rm -f "$cfgfile"; exit 1)
22746 mv -f "$cfgfile" "$ofile" ||
22747 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22752 sed < libtool > libtool-2 \
22753 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
22754 mv libtool-2 libtool
22756 libtool="./libtool"
22765 ac_clean_files=$ac_clean_files_save
22767 test $ac_write_fail = 0 ||
22768 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22771 # configure is writing to config.log, and then calls config.status.
22772 # config.status does its own redirection, appending to config.log.
22773 # Unfortunately, on DOS this fails, as config.log is still kept open
22774 # by configure, so config.status won't be able to write to it; its
22775 # output is simply discarded. So we exec the FD to /dev/null,
22776 # effectively closing config.log, so it can be properly (re)opened and
22777 # appended to by config.status. When coming back to configure, we
22778 # need to make the FD available again.
22779 if test "$no_create" != yes; then
22781 ac_config_status_args=
22782 test "$silent" = yes &&
22783 ac_config_status_args="$ac_config_status_args --quiet"
22785 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22787 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22788 # would make configure fail if this is the last instruction.
22789 $ac_cs_success || as_fn_exit 1
22791 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22793 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}