2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.4.22.
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.4.22'
594 PACKAGE_STRING='unbound 1.4.22'
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
641 COMMON_OBJ_ALL_SYMBOLS
643 WIN_CHECKCONF_OBJ_LINK
645 WIN_UBANCHOR_OBJ_LINK
654 UNBOUND_EVENT_UNINSTALL
655 UNBOUND_EVENT_INSTALL
724 UNBOUND_ROOTCERT_FILE
744 UNBOUND_VERSION_MICRO
745 UNBOUND_VERSION_MINOR
746 UNBOUND_VERSION_MAJOR
774 program_transform_name
787 enable_option_checking
810 enable_alloc_nonregional
828 ac_precious_vars='build_alias
842 # Initialize some variables set by options.
844 ac_init_version=false
845 ac_unrecognized_opts=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
856 program_transform_name=s,x,x,
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir='${datarootdir}/info'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
931 cache_file=config.cache ;;
933 -datadir | --datadir | --datadi | --datad)
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error $? "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
959 eval enable_$ac_useropt=no ;;
961 -docdir | --docdir | --docdi | --doc | --do)
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error $? "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
985 eval enable_$ac_useropt=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1149 -site=* | --site=* | --sit=*)
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error $? "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1189 eval with_$ac_useropt=\$ac_optarg ;;
1191 -without-* | --without-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1205 eval with_$ac_useropt=no ;;
1208 # Obsolete; use --with-x.
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information"
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error $? "missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1258 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 # Check all directory arguments for consistency.
1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1276 # Be sure to have absolute directory names.
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1289 target=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 elif test "x$build_alias" != "x$host_alias"; then
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303 test "$silent" = yes && exec 6>/dev/null
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error $? "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error $? "pwd does not report name of working directory"
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1346 ac_srcdir_defaulted=no
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 for ac_var in $ac_precious_vars; do
1367 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_env_${ac_var}_value=\$${ac_var}
1369 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 # Report the --help message.
1376 if test "$ac_init_help" = "long"; then
1377 # Omit some internal or obsolete options to make the list less imposing.
1378 # This message is too long to be a string in the A/UX 3.1 sh.
1380 \`configure' configures unbound 1.4.22 to adapt to many kinds of systems.
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE. See below for descriptions of some of the useful variables.
1387 Defaults for the options are specified in brackets.
1390 -h, --help display this help and exit
1391 --help=short display options specific to this package
1392 --help=recursive display the short help of all the included packages
1393 -V, --version display version information and exit
1394 -q, --quiet, --silent do not print \`checking ...' messages
1395 --cache-file=FILE cache test results in FILE [disabled]
1396 -C, --config-cache alias for \`--cache-file=config.cache'
1397 -n, --no-create do not create output files
1398 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400 Installation directories:
1401 --prefix=PREFIX install architecture-independent files in PREFIX
1402 [$ac_default_prefix]
1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1411 For better control, use the options below.
1413 Fine tuning of the installation directories:
1414 --bindir=DIR user executables [EPREFIX/bin]
1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1420 --libdir=DIR object code libraries [EPREFIX/lib]
1421 --includedir=DIR C header files [PREFIX/include]
1422 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1425 --infodir=DIR info documentation [DATAROOTDIR/info]
1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1427 --mandir=DIR man documentation [DATAROOTDIR/man]
1428 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of unbound 1.4.22:";;
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-checking Enable warnings, asserts, makefile-dependencies
1454 --enable-debug same as enable-checking
1455 --disable-flto Disable link-time optimization (gcc specific option)
1456 --enable-shared[=PKGS] build shared libraries [default=yes]
1457 --enable-static[=PKGS] build static libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --disable-rpath disable hardcoded rpath (default=enabled)
1462 --disable-largefile omit support for large files
1463 --enable-alloc-checks enable to memory allocation statistics, for debug
1465 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1467 --enable-alloc-nonregional
1468 enable nonregional allocs, slow but exposes regional
1469 allocations to other memory purifiers, for debug
1471 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1472 --disable-gost Disable GOST support
1473 --disable-ecdsa Disable ECDSA support
1474 --enable-event-api Enable (experimental) libevent-based libunbound API
1475 installed to unbound-event.h
1476 --enable-static-exe enable to compile executables statically against
1477 (event) libs, for debug purposes
1478 --enable-lock-checks enable to check lock and unlock calls, for debug
1480 --enable-allsymbols export all symbols from libunbound and link binaries
1481 to it, smaller install size but libunbound export
1482 table is polluted by internal symbols
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-conf-file=path Pathname to the Unbound configuration file
1488 --with-run-dir=path set default directory to chdir to (by default dir
1490 --with-chroot-dir=path set default directory to chroot to (by default same
1492 --with-share-dir=path set default directory with shared data (by default
1493 same as share/unbound)
1494 --with-pidfile=filename set default pathname to unbound pidfile (default
1495 run-dir/unbound.pid)
1496 --with-rootkey-file=filename
1497 set default pathname to root key file (default
1498 run-dir/root.key). This file is read and written.
1499 --with-rootcert-file=filename
1500 set default pathname to root update certificate file
1501 (default run-dir/icannbundle.pem). This file need
1502 not exist if you are content with the builtin.
1503 --with-username=user set default user that unbound changes to (default
1505 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-sysroot=DIR Search for dependent libraries within DIR
1509 (or the compiler's sysroot if not specified).
1510 --with-pthreads use pthreads library, or --without-pthreads to
1511 disable threading support.
1512 --with-solaris-threads use solaris native thread library.
1513 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1515 --with-pythonmodule build Python module, or --without-pythonmodule to
1516 disable script engine. (default=no)
1517 --with-nss=path use libnss instead of openssl, installed at path.
1518 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1519 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1521 --with-libevent=pathname
1522 use libevent (will check /usr/local /opt/local
1523 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1524 an explicit path). Slower, but allows use of large
1525 outgoing port ranges.
1526 --with-libexpat=path specify explicit path for libexpat.
1527 --with-libunbound-only do not build daemon and tool programs
1529 Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
1534 LIBS libraries to pass to the linker, e.g. -l<library>
1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
1538 YACC The `Yet Another Compiler Compiler' implementation to use.
1539 Defaults to the first program found out of: `bison -y', `byacc',
1541 YFLAGS The list of arguments that will be passed by default to $YACC.
1542 This script will default YFLAGS to the empty string to avoid a
1543 default value of `-d' given by some make applications.
1545 The installed Python version to use, for example '2.3'. This
1546 string will be appended to the Python interpreter canonical
1549 Use these variables to override the choices made by `configure' or to help
1550 it to find libraries and programs with nonstandard names/locations.
1552 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1582 .) # We are building in place.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1604 $SHELL "$ac_srcdir/configure" --help=recursive
1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 cd "$ac_pwd" || { ac_status=$?; break; }
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1615 unbound configure 1.4.22
1616 generated by GNU Autoconf 2.69
1618 Copyright (C) 2012 Free Software Foundation, Inc.
1619 This configure script is free software; the Free Software Foundation
1620 gives unlimited permission to copy, distribute and modify it.
1625 ## ------------------------ ##
1626 ## Autoconf initialization. ##
1627 ## ------------------------ ##
1629 # ac_fn_c_try_compile LINENO
1630 # --------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_compile ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest.$ac_objext; then :
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1665 } # ac_fn_c_try_compile
1667 # ac_fn_c_try_cpp LINENO
1668 # ----------------------
1669 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_cpp conftest.$ac_ext"
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } > conftest.i && {
1689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1704 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1705 # -------------------------------------------------------
1706 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1707 # the include files in INCLUDES and setting the cache variable VAR
1709 ac_fn_c_check_header_mongrel ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if eval \${$3+:} false; then :
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1722 # Is the header compilable?
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1724 $as_echo_n "checking $2 usability... " >&6; }
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1730 if ac_fn_c_try_compile "$LINENO"; then :
1731 ac_header_compiler=yes
1733 ac_header_compiler=no
1735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1737 $as_echo "$ac_header_compiler" >&6; }
1739 # Is the header present?
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1741 $as_echo_n "checking $2 presence... " >&6; }
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1746 if ac_fn_c_try_cpp "$LINENO"; then :
1747 ac_header_preproc=yes
1749 ac_header_preproc=no
1751 rm -f conftest.err conftest.i conftest.$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1753 $as_echo "$ac_header_preproc" >&6; }
1755 # So? What about this header?
1756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1759 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1761 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1765 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1767 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1769 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1771 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1773 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1774 ( $as_echo "## ---------------------------------------- ##
1775 ## Report this to unbound-bugs@nlnetlabs.nl ##
1776 ## ---------------------------------------- ##"
1777 ) | sed "s/^/$as_me: WARNING: /" >&2
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1785 eval "$3=\$ac_header_compiler"
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 } # ac_fn_c_check_header_mongrel
1795 # ac_fn_c_try_run LINENO
1796 # ----------------------
1797 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1798 # that executables *can* be run.
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if { { ac_try="$ac_link"
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_link") 2>&5
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1813 { { case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_try") 2>&5
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; }; }; then :
1825 $as_echo "$as_me: program exited with status $ac_status" >&5
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 ac_retval=$ac_status
1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1837 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1838 # -------------------------------------------------------
1839 # Tests whether HEADER exists and can be compiled using the include files in
1840 # INCLUDES, setting the cache variable VAR accordingly.
1841 ac_fn_c_check_header_compile ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1854 if ac_fn_c_try_compile "$LINENO"; then :
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 } # ac_fn_c_check_header_compile
1868 # ac_fn_c_try_link LINENO
1869 # -----------------------
1870 # Try to link conftest.$ac_ext, and return whether this succeeded.
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 rm -f conftest.$ac_objext conftest$ac_exeext
1875 if { { ac_try="$ac_link"
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_link") 2>conftest.err
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } && {
1891 test -z "$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1893 } && test -s conftest$ac_exeext && {
1894 test "$cross_compiling" = yes ||
1895 test -x conftest$ac_exeext
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1904 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1905 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1906 # interfere with the next link command; also delete a directory that is
1907 # left behind by Apple's compiler. We do this before executing the actions.
1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 as_fn_set_status $ac_retval
1912 } # ac_fn_c_try_link
1914 # ac_fn_c_check_func LINENO FUNC VAR
1915 # ----------------------------------
1916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1917 ac_fn_c_check_func ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1927 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1929 #define $2 innocuous_$2
1931 /* System header to define __stub macros and hopefully few prototypes,
1932 which can conflict with char $2 (); below.
1933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1934 <limits.h> exists even on freestanding compilers. */
1937 # include <limits.h>
1939 # include <assert.h>
1944 /* Override any GCC internal prototype to avoid an error.
1945 Use char because int might match the return type of a GCC
1946 builtin and then its argument prototype would still apply. */
1951 /* The GNU C library defines this for functions which it implements
1952 to always fail with ENOSYS. Some functions are actually named
1953 something starting with __ and the normal name is an alias. */
1954 #if defined __stub_$2 || defined __stub___$2
1966 if ac_fn_c_try_link "$LINENO"; then :
1971 rm -f core conftest.err conftest.$ac_objext \
1972 conftest$ac_exeext conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 } # ac_fn_c_check_func
1981 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1982 # -------------------------------------------
1983 # Tests whether TYPE exists after having included INCLUDES, setting cache
1984 # variable VAR accordingly.
1985 ac_fn_c_check_type ()
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991 $as_echo_n "(cached) " >&6
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2019 if ac_fn_c_try_compile "$LINENO"; then :
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 } # ac_fn_c_check_type
2035 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2036 # --------------------------------------------
2037 # Tries to find the compile-time value of EXPR in a program that includes
2038 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2040 ac_fn_c_compute_int ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if test "$cross_compiling" = yes; then
2044 # Depending upon the size, compute the lo and hi bounds.
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2051 static int test_array [1 - 2 * !(($2) >= 0)];
2053 return test_array [0];
2059 if ac_fn_c_try_compile "$LINENO"; then :
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2068 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2070 return test_array [0];
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 ac_hi=$ac_mid; break
2079 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2080 if test $ac_lo -le $ac_mid; then
2084 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2095 static int test_array [1 - 2 * !(($2) < 0)];
2097 return test_array [0];
2103 if ac_fn_c_try_compile "$LINENO"; then :
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2112 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2114 return test_array [0];
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_lo=$ac_mid; break
2123 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2124 if test $ac_mid -le $ac_hi; then
2128 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 # Binary search between lo and hi bounds.
2139 while test "x$ac_lo" != "x$ac_hi"; do
2140 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2147 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2149 return test_array [0];
2155 if ac_fn_c_try_compile "$LINENO"; then :
2158 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2170 static long int longval () { return $2; }
2171 static unsigned long int ulongval () { return $2; }
2178 FILE *f = fopen ("conftest.val", "w");
2183 long int i = longval ();
2186 fprintf (f, "%ld", i);
2190 unsigned long int i = ulongval ();
2193 fprintf (f, "%lu", i);
2195 /* Do not output a trailing newline, as this causes \r\n confusion
2196 on some platforms. */
2197 return ferror (f) || fclose (f) != 0;
2203 if ac_fn_c_try_run "$LINENO"; then :
2204 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2209 conftest.$ac_objext conftest.beam conftest.$ac_ext
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 as_fn_set_status $ac_retval
2216 } # ac_fn_c_compute_int
2218 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2219 # ---------------------------------------------
2220 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2222 ac_fn_c_check_decl ()
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 as_decl_name=`echo $2|sed 's/ *(.*//'`
2226 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2228 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2229 if eval \${$3+:} false; then :
2230 $as_echo_n "(cached) " >&6
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2238 #ifndef $as_decl_name
2240 (void) $as_decl_use;
2242 (void) $as_decl_name;
2250 if ac_fn_c_try_compile "$LINENO"; then :
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262 } # ac_fn_c_check_decl
2264 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2265 # ----------------------------------------------------
2266 # Tries to find if the field MEMBER exists in type AGGR, after including
2267 # INCLUDES, setting cache variable VAR accordingly.
2268 ac_fn_c_check_member ()
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2272 $as_echo_n "checking for $2.$3... " >&6; }
2273 if eval \${$4+:} false; then :
2274 $as_echo_n "(cached) " >&6
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2289 if ac_fn_c_try_compile "$LINENO"; then :
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2299 if (sizeof ac_aggr.$3)
2305 if ac_fn_c_try_compile "$LINENO"; then :
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316 $as_echo "$ac_res" >&6; }
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 } # ac_fn_c_check_member
2320 cat >config.log <<_ACEOF
2321 This file contains any messages produced by compilers while
2322 running configure, to aid debugging if configure makes a mistake.
2324 It was created by unbound $as_me 1.4.22, which was
2325 generated by GNU Autoconf 2.69. Invocation command line was
2337 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2338 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2339 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2340 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2341 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2343 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2344 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2346 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2347 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2348 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2349 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2350 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2351 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2352 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 test -z "$as_dir" && as_dir=.
2361 $as_echo "PATH: $as_dir"
2377 # Keep a trace of the command line.
2378 # Strip out --no-create and --no-recursion so they do not pile up.
2379 # Strip out --silent because we don't want to record it for future runs.
2380 # Also quote any args containing shell meta-characters.
2381 # Make two passes to allow for proper duplicate-argument suppression.
2385 ac_must_keep_next=false
2391 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2393 | -silent | --silent | --silen | --sile | --sil)
2396 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2399 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2401 as_fn_append ac_configure_args1 " '$ac_arg'"
2402 if test $ac_must_keep_next = true; then
2403 ac_must_keep_next=false # Got value, back to normal.
2406 *=* | --config-cache | -C | -disable-* | --disable-* \
2407 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2408 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2409 | -with-* | --with-* | -without-* | --without-* | --x)
2410 case "$ac_configure_args0 " in
2411 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2414 -* ) ac_must_keep_next=true ;;
2417 as_fn_append ac_configure_args " '$ac_arg'"
2422 { ac_configure_args0=; unset ac_configure_args0;}
2423 { ac_configure_args1=; unset ac_configure_args1;}
2425 # When interrupted or exit'd, cleanup temporary files, and complete
2426 # config.log. We remove comments because anyway the quotes in there
2427 # would cause problems or look ugly.
2428 # WARNING: Use '\'' to represent an apostrophe within the trap.
2429 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2430 trap 'exit_status=$?
2431 # Save into config.log some information that might help in debugging.
2435 $as_echo "## ---------------- ##
2436 ## Cache variables. ##
2437 ## ---------------- ##"
2439 # The following way of writing the cache mishandles newlines in values,
2441 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2442 eval ac_val=\$$ac_var
2446 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2447 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2450 _ | IFS | as_nl) ;; #(
2451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2452 *) { eval $ac_var=; unset $ac_var;} ;;
2457 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2458 *${as_nl}ac_space=\ *)
2460 "s/'\''/'\''\\\\'\'''\''/g;
2461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2471 $as_echo "## ----------------- ##
2472 ## Output variables. ##
2473 ## ----------------- ##"
2475 for ac_var in $ac_subst_vars
2477 eval ac_val=\$$ac_var
2479 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2481 $as_echo "$ac_var='\''$ac_val'\''"
2485 if test -n "$ac_subst_files"; then
2486 $as_echo "## ------------------- ##
2487 ## File substitutions. ##
2488 ## ------------------- ##"
2490 for ac_var in $ac_subst_files
2492 eval ac_val=\$$ac_var
2494 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2496 $as_echo "$ac_var='\''$ac_val'\''"
2501 if test -s confdefs.h; then
2502 $as_echo "## ----------- ##
2509 test "$ac_signal" != 0 &&
2510 $as_echo "$as_me: caught signal $ac_signal"
2511 $as_echo "$as_me: exit $exit_status"
2513 rm -f core *.core core.conftest.* &&
2514 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2517 for ac_signal in 1 2 13 15; do
2518 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2523 rm -f -r conftest* confdefs.h
2525 $as_echo "/* confdefs.h */" > confdefs.h
2527 # Predefined preprocessor variables.
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_NAME "$PACKAGE_NAME"
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_STRING "$PACKAGE_STRING"
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_URL "$PACKAGE_URL"
2554 # Let the site file select an alternate cache file if it wants to.
2555 # Prefer an explicitly selected file to automatically selected ones.
2558 if test -n "$CONFIG_SITE"; then
2559 # We do not want a PATH search for config.site.
2560 case $CONFIG_SITE in #((
2561 -*) ac_site_file1=./$CONFIG_SITE;;
2562 */*) ac_site_file1=$CONFIG_SITE;;
2563 *) ac_site_file1=./$CONFIG_SITE;;
2565 elif test "x$prefix" != xNONE; then
2566 ac_site_file1=$prefix/share/config.site
2567 ac_site_file2=$prefix/etc/config.site
2569 ac_site_file1=$ac_default_prefix/share/config.site
2570 ac_site_file2=$ac_default_prefix/etc/config.site
2572 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2574 test "x$ac_site_file" = xNONE && continue
2575 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2577 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2578 sed 's/^/| /' "$ac_site_file" >&5
2580 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 as_fn_error $? "failed to load site script $ac_site_file
2583 See \`config.log' for more details" "$LINENO" 5; }
2587 if test -r "$cache_file"; then
2588 # Some versions of bash will fail to source /dev/null (special files
2589 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2590 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2592 $as_echo "$as_me: loading cache $cache_file" >&6;}
2594 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2595 *) . "./$cache_file";;
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2600 $as_echo "$as_me: creating cache $cache_file" >&6;}
2604 # Check that the precious variables saved in the cache have kept the same
2606 ac_cache_corrupted=false
2607 for ac_var in $ac_precious_vars; do
2608 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2609 eval ac_new_set=\$ac_env_${ac_var}_set
2610 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2611 eval ac_new_val=\$ac_env_${ac_var}_value
2612 case $ac_old_set,$ac_new_set in
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2615 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2616 ac_cache_corrupted=: ;;
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2619 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2620 ac_cache_corrupted=: ;;
2623 if test "x$ac_old_val" != "x$ac_new_val"; then
2624 # differences in whitespace do not lead to failure.
2625 ac_old_val_w=`echo x $ac_old_val`
2626 ac_new_val_w=`echo x $ac_new_val`
2627 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2629 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2630 ac_cache_corrupted=:
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2633 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2634 eval $ac_var=\$ac_old_val
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2637 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2639 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2642 # Pass precious variables to config.status.
2643 if test "$ac_new_set" = set; then
2645 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2646 *) ac_arg=$ac_var=$ac_new_val ;;
2648 case " $ac_configure_args " in
2649 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2650 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2654 if $ac_cache_corrupted; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2658 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2659 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2661 ## -------------------- ##
2662 ## Main body of script. ##
2663 ## -------------------- ##
2666 ac_cpp='$CPP $CPPFLAGS'
2667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2672 UNBOUND_VERSION_MAJOR=1
2674 UNBOUND_VERSION_MINOR=4
2676 UNBOUND_VERSION_MICRO=22
2679 LIBUNBOUND_CURRENT=4
2680 LIBUNBOUND_REVISION=1
2689 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2694 # 1.4.0-snapshots had 1:5:0
2695 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2709 # and 1.4.13p1 and 1.4.13.p2
2711 # 1.4.15 had 3:0:1 # adds ub_version()
2716 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2719 # Current -- the number of the binary API that we're implementing
2720 # Revision -- which iteration of the implementation of the binary
2721 # API are we supplying?
2722 # Age -- How many previous binary API versions do we also
2725 # If we release a new version that does not change the binary API,
2726 # increment Revision.
2728 # If we release a new version that changes the binary API, but does
2729 # not break programs compiled against the old binary API, increment
2730 # Current and Age. Set Revision to 0, since this is the first
2731 # implementation of the new API.
2733 # Otherwise, we're changing the binary API and breaking bakward
2734 # compatibility with old binaries. Increment Current. Set Age to 0,
2735 # since we're backward compatible with no previous APIs. Set Revision
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2749 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_CC+:} false; then :
2753 $as_echo_n "(cached) " >&6
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 if test -n "$CC"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2778 $as_echo "$CC" >&6; }
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2786 if test -z "$ac_cv_prog_CC"; then
2788 # Extract the first word of "gcc", so it can be a program name with args.
2789 set dummy gcc; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2793 $as_echo_n "(cached) " >&6
2795 if test -n "$ac_ct_CC"; then
2796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_ac_ct_CC="gcc"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816 if test -n "$ac_ct_CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2818 $as_echo "$ac_ct_CC" >&6; }
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2824 if test "x$ac_ct_CC" = x; then
2827 case $cross_compiling:$ac_tool_warned in
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831 ac_tool_warned=yes ;;
2839 if test -z "$CC"; then
2840 if test -n "$ac_tool_prefix"; then
2841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}cc; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_CC+:} false; then :
2846 $as_echo_n "(cached) " >&6
2848 if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_CC="${ac_tool_prefix}cc"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 if test -n "$CC"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871 $as_echo "$CC" >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2880 if test -z "$CC"; then
2881 # Extract the first word of "cc", so it can be a program name with args.
2882 set dummy cc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2900 ac_prog_rejected=yes
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 if test $ac_prog_rejected = yes; then
2912 # We found a bogon in the path, so make sure we never use it.
2913 set dummy $ac_cv_prog_CC
2915 if test $# != 0; then
2916 # We chose a different compiler from the bogus one.
2917 # However, it has the same basename, so the bogon will be chosen
2918 # first if we set CC to just the basename; use the full file name.
2920 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2926 if test -n "$CC"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928 $as_echo "$CC" >&6; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 for ac_prog in cl.exe
2940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_CC+:} false; then :
2945 $as_echo_n "(cached) " >&6
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 if test -n "$CC"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2977 test -n "$CC" && break
2980 if test -z "$CC"; then
2982 for ac_prog in cl.exe
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2989 $as_echo_n "(cached) " >&6
2991 if test -n "$ac_ct_CC"; then
2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_ac_ct_CC="$ac_prog"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012 if test -n "$ac_ct_CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3014 $as_echo "$ac_ct_CC" >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3021 test -n "$ac_ct_CC" && break
3024 if test "x$ac_ct_CC" = x; then
3027 case $cross_compiling:$ac_tool_warned in
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031 ac_tool_warned=yes ;;
3040 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error $? "no acceptable C compiler found in \$PATH
3043 See \`config.log' for more details" "$LINENO" 5; }
3045 # Provide some information about the compiler.
3046 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3049 for ac_option in --version -v -V -qversion; do
3050 { { ac_try="$ac_compiler $ac_option >&5"
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3059 if test -s conftest.err; then
3061 ... rest of stderr output deleted ...
3062 10q' conftest.err >conftest.er1
3063 cat conftest.er1 >&5
3065 rm -f conftest.er1 conftest.err
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3081 ac_clean_files_save=$ac_clean_files
3082 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3083 # Try to create an executable without -o first, disregard a.out.
3084 # It will help us diagnose broken compilers, and finding out an intuition
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3087 $as_echo_n "checking whether the C compiler works... " >&6; }
3088 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3090 # The possible output files:
3091 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3094 for ac_file in $ac_files
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3098 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3103 if { { ac_try="$ac_link_default"
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link_default") 2>&5
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }; then :
3114 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3115 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3116 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3117 # so that the user can short-circuit this test for compilers unknown to
3119 for ac_file in $ac_files ''
3121 test -f "$ac_file" || continue
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3126 # We found the default executable, but exeext='' is most
3130 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3132 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3134 # We set ac_cv_exeext here because the later test for it is not
3135 # safe: cross compilers may not add the suffix if given an `-o'
3136 # argument, so we may need to know it at that point already.
3137 # Even if this section looks crufty: it has the advantage of
3144 test "$ac_cv_exeext" = no && ac_cv_exeext=
3149 if test -z "$ac_file"; then :
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 $as_echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error 77 "C compiler cannot create executables
3158 See \`config.log' for more details" "$LINENO" 5; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161 $as_echo "yes" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3164 $as_echo_n "checking for C compiler default output file name... " >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3166 $as_echo "$ac_file" >&6; }
3167 ac_exeext=$ac_cv_exeext
3169 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3170 ac_clean_files=$ac_clean_files_save
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3172 $as_echo_n "checking for suffix of executables... " >&6; }
3173 if { { ac_try="$ac_link"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_link") 2>&5
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; then :
3184 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3185 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3186 # work properly (i.e., refer to `conftest.exe'), while it won't with
3188 for ac_file in conftest.exe conftest conftest.*; do
3189 test -f "$ac_file" || continue
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3201 See \`config.log' for more details" "$LINENO" 5; }
3203 rm -f conftest conftest$ac_cv_exeext
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3205 $as_echo "$ac_cv_exeext" >&6; }
3207 rm -f conftest.$ac_ext
3208 EXEEXT=$ac_cv_exeext
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3216 FILE *f = fopen ("conftest.out", "w");
3217 return ferror (f) || fclose (f) != 0;
3223 ac_clean_files="$ac_clean_files conftest.out"
3224 # Check that the compiler produces executables we can run. If not, either
3225 # the compiler is broken, or we cross compile.
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3227 $as_echo_n "checking whether we are cross compiling... " >&6; }
3228 if test "$cross_compiling" != yes; then
3229 { { ac_try="$ac_link"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_link") 2>&5
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }
3240 if { ac_try='./conftest$ac_cv_exeext'
3241 { { case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_try") 2>&5
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; }; then
3253 if test "$cross_compiling" = maybe; then
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error $? "cannot run C compiled programs.
3259 If you meant to cross compile, use \`--host'.
3260 See \`config.log' for more details" "$LINENO" 5; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3265 $as_echo "$cross_compiling" >&6; }
3267 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3268 ac_clean_files=$ac_clean_files_save
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3270 $as_echo_n "checking for suffix of object files... " >&6; }
3271 if ${ac_cv_objext+:} false; then :
3272 $as_echo_n "(cached) " >&6
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3285 rm -f conftest.o conftest.obj
3286 if { { ac_try="$ac_compile"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_compile") 2>&5
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; then :
3297 for ac_file in conftest.o conftest.obj conftest.*; do
3298 test -f "$ac_file" || continue;
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3306 $as_echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "cannot compute suffix of object files: cannot compile
3312 See \`config.log' for more details" "$LINENO" 5; }
3314 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3317 $as_echo "$ac_cv_objext" >&6; }
3318 OBJEXT=$ac_cv_objext
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3321 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3322 if ${ac_cv_c_compiler_gnu+:} false; then :
3323 $as_echo_n "(cached) " >&6
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3339 if ac_fn_c_try_compile "$LINENO"; then :
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3349 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3350 if test $ac_compiler_gnu = yes; then
3355 ac_test_CFLAGS=${CFLAGS+set}
3356 ac_save_CFLAGS=$CFLAGS
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3358 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3359 if ${ac_cv_prog_cc_g+:} false; then :
3360 $as_echo_n "(cached) " >&6
3362 ac_save_c_werror_flag=$ac_c_werror_flag
3363 ac_c_werror_flag=yes
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3377 if ac_fn_c_try_compile "$LINENO"; then :
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3392 if ac_fn_c_try_compile "$LINENO"; then :
3395 ac_c_werror_flag=$ac_save_c_werror_flag
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3408 if ac_fn_c_try_compile "$LINENO"; then :
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 ac_c_werror_flag=$ac_save_c_werror_flag
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3419 $as_echo "$ac_cv_prog_cc_g" >&6; }
3420 if test "$ac_test_CFLAGS" = set; then
3421 CFLAGS=$ac_save_CFLAGS
3422 elif test $ac_cv_prog_cc_g = yes; then
3423 if test "$GCC" = yes; then
3429 if test "$GCC" = yes; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3436 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3437 if ${ac_cv_prog_cc_c89+:} false; then :
3438 $as_echo_n "(cached) " >&6
3440 ac_cv_prog_cc_c89=no
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3448 struct buf { int x; };
3449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3450 static char *e (p, i)
3456 static char *f (char * (*g) (char **, int), char **p, ...)
3461 s = g (p, va_arg (v,int));
3466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3467 function prototypes and stuff, but not '\xHH' hex character constants.
3468 These don't provoke an error unfortunately, instead are silently treated
3469 as 'x'. The following induces an error, until -std is added to get
3470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3471 array size at least. It's necessary to write '\x00'==0 to get something
3472 that's true only with -std. */
3473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3475 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3476 inside strings and character constants. */
3478 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3480 int test (int i, double x);
3481 struct s1 {int (*f) (int a);};
3482 struct s2 {int (*f) (double a);};
3483 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3489 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3494 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3495 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3497 CC="$ac_save_CC $ac_arg"
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_cv_prog_cc_c89=$ac_arg
3501 rm -f core conftest.err conftest.$ac_objext
3502 test "x$ac_cv_prog_cc_c89" != "xno" && break
3504 rm -f conftest.$ac_ext
3509 case "x$ac_cv_prog_cc_c89" in
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3512 $as_echo "none needed" >&6; } ;;
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3515 $as_echo "unsupported" >&6; } ;;
3517 CC="$CC $ac_cv_prog_cc_c89"
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3519 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3521 if test "x$ac_cv_prog_cc_c89" != xno; then :
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3538 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3539 # On Suns, sometimes $CPP names a directory.
3540 if test -n "$CPP" && test -d "$CPP"; then
3543 if test -z "$CPP"; then
3544 if ${ac_cv_prog_CPP+:} false; then :
3545 $as_echo_n "(cached) " >&6
3547 # Double quotes because CPP needs to be expanded
3548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3551 for ac_c_preproc_warn_flag in '' yes
3553 # Use a header file that comes with gcc, so configuring glibc
3554 # with a fresh cross-compiler works.
3555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3556 # <limits.h> exists even on freestanding compilers.
3557 # On the NeXT, cc -E runs the code through the compiler's parser,
3558 # not just through cpp. "Syntax error" is here to catch this case.
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3562 # include <limits.h>
3564 # include <assert.h>
3568 if ac_fn_c_try_cpp "$LINENO"; then :
3571 # Broken: fails on valid input.
3574 rm -f conftest.err conftest.i conftest.$ac_ext
3576 # OK, works on sane cases. Now check whether nonexistent headers
3577 # can be detected and how.
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580 #include <ac_nonexistent.h>
3582 if ac_fn_c_try_cpp "$LINENO"; then :
3583 # Broken: success on invalid input.
3586 # Passes both tests.
3590 rm -f conftest.err conftest.i conftest.$ac_ext
3593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3594 rm -f conftest.i conftest.err conftest.$ac_ext
3595 if $ac_preproc_ok; then :
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3608 $as_echo "$CPP" >&6; }
3610 for ac_c_preproc_warn_flag in '' yes
3612 # Use a header file that comes with gcc, so configuring glibc
3613 # with a fresh cross-compiler works.
3614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3615 # <limits.h> exists even on freestanding compilers.
3616 # On the NeXT, cc -E runs the code through the compiler's parser,
3617 # not just through cpp. "Syntax error" is here to catch this case.
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3621 # include <limits.h>
3623 # include <assert.h>
3627 if ac_fn_c_try_cpp "$LINENO"; then :
3630 # Broken: fails on valid input.
3633 rm -f conftest.err conftest.i conftest.$ac_ext
3635 # OK, works on sane cases. Now check whether nonexistent headers
3636 # can be detected and how.
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639 #include <ac_nonexistent.h>
3641 if ac_fn_c_try_cpp "$LINENO"; then :
3642 # Broken: success on invalid input.
3645 # Passes both tests.
3649 rm -f conftest.err conftest.i conftest.$ac_ext
3652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3653 rm -f conftest.i conftest.err conftest.$ac_ext
3654 if $ac_preproc_ok; then :
3657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3660 See \`config.log' for more details" "$LINENO" 5; }
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3671 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3672 if ${ac_cv_path_GREP+:} false; then :
3673 $as_echo_n "(cached) " >&6
3675 if test -z "$GREP"; then
3676 ac_path_GREP_found=false
3677 # Loop through the user's path and test for each of PROGNAME-LIST
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3682 test -z "$as_dir" && as_dir=.
3683 for ac_prog in grep ggrep; do
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3686 as_fn_executable_p "$ac_path_GREP" || continue
3687 # Check for GNU ac_path_GREP and select it if it is found.
3688 # Check for GNU $ac_path_GREP
3689 case `"$ac_path_GREP" --version 2>&1` in
3691 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3694 $as_echo_n 0123456789 >"conftest.in"
3697 cat "conftest.in" "conftest.in" >"conftest.tmp"
3698 mv "conftest.tmp" "conftest.in"
3699 cp "conftest.in" "conftest.nl"
3700 $as_echo 'GREP' >> "conftest.nl"
3701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703 as_fn_arith $ac_count + 1 && ac_count=$as_val
3704 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3705 # Best one so far, save it but keep looking for a better one
3706 ac_cv_path_GREP="$ac_path_GREP"
3707 ac_path_GREP_max=$ac_count
3709 # 10*(2^10) chars as input seems more than enough
3710 test $ac_count -gt 10 && break
3712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3715 $ac_path_GREP_found && break 3
3720 if test -z "$ac_cv_path_GREP"; then
3721 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3724 ac_cv_path_GREP=$GREP
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3729 $as_echo "$ac_cv_path_GREP" >&6; }
3730 GREP="$ac_cv_path_GREP"
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3734 $as_echo_n "checking for egrep... " >&6; }
3735 if ${ac_cv_path_EGREP+:} false; then :
3736 $as_echo_n "(cached) " >&6
3738 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3739 then ac_cv_path_EGREP="$GREP -E"
3741 if test -z "$EGREP"; then
3742 ac_path_EGREP_found=false
3743 # Loop through the user's path and test for each of PROGNAME-LIST
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748 test -z "$as_dir" && as_dir=.
3749 for ac_prog in egrep; do
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3752 as_fn_executable_p "$ac_path_EGREP" || continue
3753 # Check for GNU ac_path_EGREP and select it if it is found.
3754 # Check for GNU $ac_path_EGREP
3755 case `"$ac_path_EGREP" --version 2>&1` in
3757 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3760 $as_echo_n 0123456789 >"conftest.in"
3763 cat "conftest.in" "conftest.in" >"conftest.tmp"
3764 mv "conftest.tmp" "conftest.in"
3765 cp "conftest.in" "conftest.nl"
3766 $as_echo 'EGREP' >> "conftest.nl"
3767 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3769 as_fn_arith $ac_count + 1 && ac_count=$as_val
3770 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3771 # Best one so far, save it but keep looking for a better one
3772 ac_cv_path_EGREP="$ac_path_EGREP"
3773 ac_path_EGREP_max=$ac_count
3775 # 10*(2^10) chars as input seems more than enough
3776 test $ac_count -gt 10 && break
3778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781 $ac_path_EGREP_found && break 3
3786 if test -z "$ac_cv_path_EGREP"; then
3787 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3790 ac_cv_path_EGREP=$EGREP
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3796 $as_echo "$ac_cv_path_EGREP" >&6; }
3797 EGREP="$ac_cv_path_EGREP"
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3801 $as_echo_n "checking for ANSI C header files... " >&6; }
3802 if ${ac_cv_header_stdc+:} false; then :
3803 $as_echo_n "(cached) " >&6
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_cv_header_stdc=yes
3823 ac_cv_header_stdc=no
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 if test $ac_cv_header_stdc = yes; then
3828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835 $EGREP "memchr" >/dev/null 2>&1; then :
3838 ac_cv_header_stdc=no
3844 if test $ac_cv_header_stdc = yes; then
3845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3852 $EGREP "free" >/dev/null 2>&1; then :
3855 ac_cv_header_stdc=no
3861 if test $ac_cv_header_stdc = yes; then
3862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3863 if test "$cross_compiling" = yes; then :
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3870 #if ((' ' & 0x0FF) == 0x020)
3871 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3872 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3874 # define ISLOWER(c) \
3875 (('a' <= (c) && (c) <= 'i') \
3876 || ('j' <= (c) && (c) <= 'r') \
3877 || ('s' <= (c) && (c) <= 'z'))
3878 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3881 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3886 for (i = 0; i < 256; i++)
3887 if (XOR (islower (i), ISLOWER (i))
3888 || toupper (i) != TOUPPER (i))
3893 if ac_fn_c_try_run "$LINENO"; then :
3896 ac_cv_header_stdc=no
3898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3899 conftest.$ac_objext conftest.beam conftest.$ac_ext
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3905 $as_echo "$ac_cv_header_stdc" >&6; }
3906 if test $ac_cv_header_stdc = yes; then
3908 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3912 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3913 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3914 inttypes.h stdint.h unistd.h
3916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3917 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3919 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3920 cat >>confdefs.h <<_ACEOF
3921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3930 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3931 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3938 if test "$MINIX" = yes; then
3940 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3943 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3946 $as_echo "#define _MINIX 1" >>confdefs.h
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3952 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3953 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3954 $as_echo_n "(cached) " >&6
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3959 # define __EXTENSIONS__ 1
3960 $ac_includes_default
3969 if ac_fn_c_try_compile "$LINENO"; then :
3970 ac_cv_safe_to_define___extensions__=yes
3972 ac_cv_safe_to_define___extensions__=no
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3977 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3978 test $ac_cv_safe_to_define___extensions__ = yes &&
3979 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3981 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3983 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3985 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3987 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3991 if test "$ac_cv_header_minix_config_h" = "yes"; then
3993 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4004 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4006 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
4007 else on_mingw="no"; fi
4011 # Determine configuration file
4012 # the eval is to evaluate shell expansion twice
4013 if test $on_mingw = "no"; then
4014 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4016 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4019 # Check whether --with-conf_file was given.
4020 if test "${with_conf_file+set}" = set; then :
4021 withval=$with_conf_file; ub_conf_file="$withval"
4025 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4028 cat >>confdefs.h <<_ACEOF
4029 #define CONFIGFILE "$hdr_config"
4033 # Determine run, chroot directory and pidfile locations
4035 # Check whether --with-run-dir was given.
4036 if test "${with_run_dir+set}" = set; then :
4037 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4039 if test $on_mingw = no; then
4040 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4048 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4051 cat >>confdefs.h <<_ACEOF
4052 #define RUN_DIR "$hdr_run"
4057 # Check whether --with-chroot-dir was given.
4058 if test "${with_chroot_dir+set}" = set; then :
4059 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4061 if test $on_mingw = no; then
4062 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4064 UNBOUND_CHROOT_DIR=""
4070 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4073 cat >>confdefs.h <<_ACEOF
4074 #define CHROOT_DIR "$hdr_chroot"
4079 # Check whether --with-share-dir was given.
4080 if test "${with_share_dir+set}" = set; then :
4081 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4083 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4088 cat >>confdefs.h <<_ACEOF
4089 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4094 # Check whether --with-pidfile was given.
4095 if test "${with_pidfile+set}" = set; then :
4096 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4098 if test $on_mingw = no; then
4099 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4107 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4110 cat >>confdefs.h <<_ACEOF
4111 #define PIDFILE "$hdr_pid"
4116 # Check whether --with-rootkey-file was given.
4117 if test "${with_rootkey_file+set}" = set; then :
4118 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4120 if test $on_mingw = no; then
4121 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4123 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4129 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4132 cat >>confdefs.h <<_ACEOF
4133 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4138 # Check whether --with-rootcert-file was given.
4139 if test "${with_rootcert_file+set}" = set; then :
4140 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4142 if test $on_mingw = no; then
4143 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4145 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4151 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4154 cat >>confdefs.h <<_ACEOF
4155 #define ROOT_CERT_FILE "$hdr_rpem"
4160 # Check whether --with-username was given.
4161 if test "${with_username+set}" = set; then :
4162 withval=$with_username; UNBOUND_USERNAME="$withval"
4164 UNBOUND_USERNAME="unbound"
4169 cat >>confdefs.h <<_ACEOF
4170 #define UB_USERNAME "$UNBOUND_USERNAME"
4175 $as_echo "#define WINVER 0x0502" >>confdefs.h
4177 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/' `
4180 cat >>confdefs.h <<_ACEOF
4181 #define RSRC_PACKAGE_VERSION $wnvs
4185 # Checks for typedefs, structures, and compiler characteristics.
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4187 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4188 if ${ac_cv_c_const+:} false; then :
4189 $as_echo_n "(cached) " >&6
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4199 /* Ultrix mips cc rejects this sort of thing. */
4200 typedef int charset[2];
4201 const charset cs = { 0, 0 };
4202 /* SunOS 4.1.1 cc rejects this. */
4203 char const *const *pcpcc;
4205 /* NEC SVR4.0.2 mips cc rejects this. */
4206 struct point {int x, y;};
4207 static struct point const zero = {0,0};
4208 /* AIX XL C 1.02.0.0 rejects this.
4209 It does not let you subtract one const X* pointer from another in
4210 an arm of an if-expression whose if-part is not a constant
4212 const char *g = "string";
4213 pcpcc = &g + (g ? g-g : 0);
4214 /* HPUX 7.0 cc rejects these. */
4216 ppc = (char**) pcpcc;
4217 pcpcc = (char const *const *) ppc;
4218 { /* SCO 3.2v4 cc rejects this sort of thing. */
4221 char const *s = 0 ? (char *) 0 : (char const *) 0;
4226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4228 const int *foo = &x[0];
4231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4232 typedef const int *iptr;
4236 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4238 struct s { int j; const int *ap[3]; } bx;
4239 struct s *b = &bx; b->j = 5;
4241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4245 return !cs[0] && !zero.x;
4252 if ac_fn_c_try_compile "$LINENO"; then :
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4260 $as_echo "$ac_cv_c_const" >&6; }
4261 if test $ac_cv_c_const = no; then
4263 $as_echo "#define const /**/" >>confdefs.h
4268 ac_cpp='$CPP $CPPFLAGS'
4269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273 # allow user to override the -g -O2 flags.
4274 if test "x$CFLAGS" = "x" ; then
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4278 $as_echo_n "checking whether $CC supports -g... " >&6; }
4279 cache=`echo g | sed 'y%.=/+-%___p_%'`
4280 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4281 $as_echo_n "(cached) " >&6
4284 echo 'void f(void){}' >conftest.c
4285 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4286 eval "cv_prog_cc_flag_$cache=yes"
4288 eval "cv_prog_cc_flag_$cache=no"
4290 rm -f conftest conftest.o conftest.c
4294 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4296 $as_echo "yes" >&6; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4309 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4310 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4311 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4312 $as_echo_n "(cached) " >&6
4315 echo 'void f(void){}' >conftest.c
4316 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4317 eval "cv_prog_cc_flag_$cache=yes"
4319 eval "cv_prog_cc_flag_$cache=no"
4321 rm -f conftest conftest.o conftest.c
4325 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4327 $as_echo "yes" >&6; }
4329 CFLAGS="$CFLAGS -O2"
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 if test -n "$ac_tool_prefix"; then
4344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4345 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347 $as_echo_n "checking for $ac_word... " >&6; }
4348 if ${ac_cv_prog_CC+:} false; then :
4349 $as_echo_n "(cached) " >&6
4351 if test -n "$CC"; then
4352 ac_cv_prog_CC="$CC" # Let the user override the test.
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4361 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 if test -n "$CC"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4374 $as_echo "$CC" >&6; }
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4382 if test -z "$ac_cv_prog_CC"; then
4384 # Extract the first word of "gcc", so it can be a program name with args.
4385 set dummy gcc; ac_word=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4389 $as_echo_n "(cached) " >&6
4391 if test -n "$ac_ct_CC"; then
4392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401 ac_cv_prog_ac_ct_CC="gcc"
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4412 if test -n "$ac_ct_CC"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4414 $as_echo "$ac_ct_CC" >&6; }
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4420 if test "x$ac_ct_CC" = x; then
4423 case $cross_compiling:$ac_tool_warned in
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4427 ac_tool_warned=yes ;;
4435 if test -z "$CC"; then
4436 if test -n "$ac_tool_prefix"; then
4437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4438 set dummy ${ac_tool_prefix}cc; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if ${ac_cv_prog_CC+:} false; then :
4442 $as_echo_n "(cached) " >&6
4444 if test -n "$CC"; then
4445 ac_cv_prog_CC="$CC" # Let the user override the test.
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_prog_CC="${ac_tool_prefix}cc"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 if test -n "$CC"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4467 $as_echo "$CC" >&6; }
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4476 if test -z "$CC"; then
4477 # Extract the first word of "cc", so it can be a program name with args.
4478 set dummy cc; ac_word=$2
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480 $as_echo_n "checking for $ac_word... " >&6; }
4481 if ${ac_cv_prog_CC+:} false; then :
4482 $as_echo_n "(cached) " >&6
4484 if test -n "$CC"; then
4485 ac_cv_prog_CC="$CC" # Let the user override the test.
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4496 ac_prog_rejected=yes
4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 if test $ac_prog_rejected = yes; then
4508 # We found a bogon in the path, so make sure we never use it.
4509 set dummy $ac_cv_prog_CC
4511 if test $# != 0; then
4512 # We chose a different compiler from the bogus one.
4513 # However, it has the same basename, so the bogon will be chosen
4514 # first if we set CC to just the basename; use the full file name.
4516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4522 if test -n "$CC"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4524 $as_echo "$CC" >&6; }
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4532 if test -z "$CC"; then
4533 if test -n "$ac_tool_prefix"; then
4534 for ac_prog in cl.exe
4536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if ${ac_cv_prog_CC+:} false; then :
4541 $as_echo_n "(cached) " >&6
4543 if test -n "$CC"; then
4544 ac_cv_prog_CC="$CC" # Let the user override the test.
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 if test -n "$CC"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4566 $as_echo "$CC" >&6; }
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4573 test -n "$CC" && break
4576 if test -z "$CC"; then
4578 for ac_prog in cl.exe
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4585 $as_echo_n "(cached) " >&6
4587 if test -n "$ac_ct_CC"; then
4588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_ac_ct_CC="$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4608 if test -n "$ac_ct_CC"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4610 $as_echo "$ac_ct_CC" >&6; }
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4617 test -n "$ac_ct_CC" && break
4620 if test "x$ac_ct_CC" = x; then
4623 case $cross_compiling:$ac_tool_warned in
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627 ac_tool_warned=yes ;;
4636 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4638 as_fn_error $? "no acceptable C compiler found in \$PATH
4639 See \`config.log' for more details" "$LINENO" 5; }
4641 # Provide some information about the compiler.
4642 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4645 for ac_option in --version -v -V -qversion; do
4646 { { ac_try="$ac_compiler $ac_option >&5"
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4652 $as_echo "$ac_try_echo"; } >&5
4653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4655 if test -s conftest.err; then
4657 ... rest of stderr output deleted ...
4658 10q' conftest.err >conftest.er1
4659 cat conftest.er1 >&5
4661 rm -f conftest.er1 conftest.err
4662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4663 test $ac_status = 0; }
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4668 if ${ac_cv_c_compiler_gnu+:} false; then :
4669 $as_echo_n "(cached) " >&6
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4685 if ac_fn_c_try_compile "$LINENO"; then :
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4696 if test $ac_compiler_gnu = yes; then
4701 ac_test_CFLAGS=${CFLAGS+set}
4702 ac_save_CFLAGS=$CFLAGS
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4705 if ${ac_cv_prog_cc_g+:} false; then :
4706 $as_echo_n "(cached) " >&6
4708 ac_save_c_werror_flag=$ac_c_werror_flag
4709 ac_c_werror_flag=yes
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4723 if ac_fn_c_try_compile "$LINENO"; then :
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4738 if ac_fn_c_try_compile "$LINENO"; then :
4741 ac_c_werror_flag=$ac_save_c_werror_flag
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4754 if ac_fn_c_try_compile "$LINENO"; then :
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_c_werror_flag=$ac_save_c_werror_flag
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4765 $as_echo "$ac_cv_prog_cc_g" >&6; }
4766 if test "$ac_test_CFLAGS" = set; then
4767 CFLAGS=$ac_save_CFLAGS
4768 elif test $ac_cv_prog_cc_g = yes; then
4769 if test "$GCC" = yes; then
4775 if test "$GCC" = yes; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4783 if ${ac_cv_prog_cc_c89+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 ac_cv_prog_cc_c89=no
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4794 struct buf { int x; };
4795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4796 static char *e (p, i)
4802 static char *f (char * (*g) (char **, int), char **p, ...)
4807 s = g (p, va_arg (v,int));
4812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4813 function prototypes and stuff, but not '\xHH' hex character constants.
4814 These don't provoke an error unfortunately, instead are silently treated
4815 as 'x'. The following induces an error, until -std is added to get
4816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4817 array size at least. It's necessary to write '\x00'==0 to get something
4818 that's true only with -std. */
4819 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4822 inside strings and character constants. */
4824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4826 int test (int i, double x);
4827 struct s1 {int (*f) (int a);};
4828 struct s2 {int (*f) (double a);};
4829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4835 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4843 CC="$ac_save_CC $ac_arg"
4844 if ac_fn_c_try_compile "$LINENO"; then :
4845 ac_cv_prog_cc_c89=$ac_arg
4847 rm -f core conftest.err conftest.$ac_objext
4848 test "x$ac_cv_prog_cc_c89" != "xno" && break
4850 rm -f conftest.$ac_ext
4855 case "x$ac_cv_prog_cc_c89" in
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4858 $as_echo "none needed" >&6; } ;;
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4861 $as_echo "unsupported" >&6; } ;;
4863 CC="$CC $ac_cv_prog_cc_c89"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4867 if test "x$ac_cv_prog_cc_c89" != xno; then :
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4879 $as_echo_n "checking $CC dependency flag... " >&6; }
4880 echo 'void f(){}' >conftest.c
4881 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4884 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4887 DEPFLAG="-MM" # dunno do something
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4891 $as_echo "$DEPFLAG" >&6; }
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4899 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4900 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4901 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4902 $as_echo_n "(cached) " >&6
4905 echo 'void f(void){}' >conftest.c
4906 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4907 eval "cv_prog_cc_flag_$cache=yes"
4909 eval "cv_prog_cc_flag_$cache=no"
4911 rm -f conftest conftest.o conftest.c
4915 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4917 $as_echo "yes" >&6; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4930 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4931 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4932 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4933 $as_echo_n "(cached) " >&6
4936 echo 'void f(void){}' >conftest.c
4937 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4938 eval "cv_prog_cc_flag_$cache=yes"
4940 eval "cv_prog_cc_flag_$cache=no"
4942 rm -f conftest conftest.o conftest.c
4946 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4948 $as_echo "yes" >&6; }
4950 ERRFLAG="$ERRFLAG -Wall"
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4955 ERRFLAG="$ERRFLAG -errfmt"
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4963 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4964 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4965 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4966 $as_echo_n "(cached) " >&6
4969 echo 'void f(void){}' >conftest.c
4970 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4971 eval "cv_prog_cc_flag_$cache=yes"
4973 eval "cv_prog_cc_flag_$cache=no"
4975 rm -f conftest conftest.o conftest.c
4979 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4981 $as_echo "yes" >&6; }
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4994 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
4995 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4996 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4997 $as_echo_n "(cached) " >&6
5000 echo 'void f(void){}' >conftest.c
5001 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5002 eval "cv_prog_cc_flag_$cache=yes"
5004 eval "cv_prog_cc_flag_$cache=no"
5006 rm -f conftest conftest.o conftest.c
5010 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5012 $as_echo "yes" >&6; }
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5023 for ac_header in getopt.h time.h
5025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5026 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5029 cat >>confdefs.h <<_ACEOF
5030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5042 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5043 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5044 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5045 $as_echo_n "(cached) " >&6
5049 #include "confdefs.h"
5052 #include <sys/time.h>
5058 #ifdef HAVE_GETOPT_H
5069 const char* str = NULL;
5071 msg.msg_control = 0;
5072 t = ctime_r(&time, buf);
5075 a = getopt(2, opts, "a");
5077 str = gai_strerror(0);
5078 if(str && t && tv.tv_usec && msg.msg_control)
5083 echo 'void f(){}' >>conftest.c
5084 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5085 eval "cv_prog_cc_flag_needed_$cache=no"
5088 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_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
5089 eval "cv_prog_cc_flag_needed_$cache=yes"
5091 eval "cv_prog_cc_flag_needed_$cache=fail"
5092 #echo 'Test with flag fails too!'
5094 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5095 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5100 rm -f conftest conftest.c conftest.o
5104 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5106 $as_echo "yes" >&6; }
5108 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5110 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5113 #echo 'Test with flag is no!'
5115 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5116 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5122 $as_echo "failed" >&6; }
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5133 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5134 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5135 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5136 $as_echo_n "(cached) " >&6
5140 #include "confdefs.h"
5143 #include <sys/time.h>
5149 #ifdef HAVE_GETOPT_H
5160 const char* str = NULL;
5162 msg.msg_control = 0;
5163 t = ctime_r(&time, buf);
5166 a = getopt(2, opts, "a");
5168 str = gai_strerror(0);
5169 if(str && t && tv.tv_usec && msg.msg_control)
5174 echo 'void f(){}' >>conftest.c
5175 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5176 eval "cv_prog_cc_flag_needed_$cache=no"
5179 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5180 eval "cv_prog_cc_flag_needed_$cache=yes"
5182 eval "cv_prog_cc_flag_needed_$cache=fail"
5183 #echo 'Test with flag fails too!'
5185 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5186 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5191 rm -f conftest conftest.c conftest.o
5195 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5197 $as_echo "yes" >&6; }
5199 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5201 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204 #echo 'Test with flag is no!'
5206 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5207 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5213 $as_echo "failed" >&6; }
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5224 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5225 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5226 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5227 $as_echo_n "(cached) " >&6
5231 #include <stdbool.h>
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 $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 $ERRFLAG -c conftest.c 2>&1"
5250 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $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"
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 $ERRFLAG -c conftest.c 2>&1"
5271 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $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 -D_BSD_SOURCE as a flag for $CC" >&5
5288 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5290 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5291 $as_echo_n "(cached) " >&6
5303 echo 'void f(){}' >>conftest.c
5304 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5305 eval "cv_prog_cc_flag_needed_$cache=no"
5308 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5309 eval "cv_prog_cc_flag_needed_$cache=yes"
5311 eval "cv_prog_cc_flag_needed_$cache=fail"
5312 #echo 'Test with flag fails too!'
5314 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5315 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5320 rm -f conftest conftest.c conftest.o
5324 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326 $as_echo "yes" >&6; }
5328 CFLAGS="$CFLAGS -D_BSD_SOURCE"
5330 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5333 #echo 'Test with flag is no!'
5335 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5336 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5342 $as_echo "failed" >&6; }
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5353 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5355 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5356 $as_echo_n "(cached) " >&6
5360 #include <netinet/in.h>
5363 struct in6_pktinfo inf;
5364 int a = (int)sizeof(inf);
5368 echo 'void f(){}' >>conftest.c
5369 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5370 eval "cv_prog_cc_flag_needed_$cache=no"
5373 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5374 eval "cv_prog_cc_flag_needed_$cache=yes"
5376 eval "cv_prog_cc_flag_needed_$cache=fail"
5377 #echo 'Test with flag fails too!'
5379 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5380 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5385 rm -f conftest conftest.c conftest.o
5389 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5391 $as_echo "yes" >&6; }
5393 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5395 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 #echo 'Test with flag is no!'
5400 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5401 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5407 $as_echo "failed" >&6; }
5414 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5415 # is not available at all. -D_FRSRESGID is to make this check unique.
5416 # otherwise we would get the previous cached result.
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5421 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5422 cache=_D_GNU_SOURCE__D_FRSRESGID
5423 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5424 $as_echo_n "(cached) " >&6
5431 int a = setresgid(0,0,0);
5432 a = setresuid(0,0,0);
5436 echo 'void f(){}' >>conftest.c
5437 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5438 eval "cv_prog_cc_flag_needed_$cache=no"
5441 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5442 eval "cv_prog_cc_flag_needed_$cache=yes"
5444 eval "cv_prog_cc_flag_needed_$cache=fail"
5445 #echo 'Test with flag fails too!'
5447 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5448 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5453 rm -f conftest conftest.c conftest.o
5457 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5459 $as_echo "yes" >&6; }
5461 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5463 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5466 #echo 'Test with flag is no!'
5468 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5469 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5475 $as_echo "failed" >&6; }
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5486 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5487 cache=_D_POSIX_C_SOURCE_200112
5488 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5489 $as_echo_n "(cached) " >&6
5493 #include "confdefs.h"
5504 const char* str = NULL;
5505 t = ctime_r(&time, buf);
5506 str = gai_strerror(0);
5512 echo 'void f(){}' >>conftest.c
5513 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5514 eval "cv_prog_cc_flag_needed_$cache=no"
5517 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5518 eval "cv_prog_cc_flag_needed_$cache=yes"
5520 eval "cv_prog_cc_flag_needed_$cache=fail"
5521 #echo 'Test with flag fails too!'
5523 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5524 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5529 rm -f conftest conftest.c conftest.o
5533 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5535 $as_echo "yes" >&6; }
5537 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5539 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 $as_echo "no" >&6; }
5542 #echo 'Test with flag is no!'
5544 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5545 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5551 $as_echo "failed" >&6; }
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5562 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5563 cache=_D__EXTENSIONS__
5564 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5565 $as_echo_n "(cached) " >&6
5569 #include "confdefs.h"
5572 #include <sys/time.h>
5577 #ifdef HAVE_GETOPT_H
5587 a = getopt(2, opts, "a");
5594 echo 'void f(){}' >>conftest.c
5595 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5596 eval "cv_prog_cc_flag_needed_$cache=no"
5599 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5600 eval "cv_prog_cc_flag_needed_$cache=yes"
5602 eval "cv_prog_cc_flag_needed_$cache=fail"
5603 #echo 'Test with flag fails too!'
5605 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5606 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5611 rm -f conftest conftest.c conftest.o
5615 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5617 $as_echo "yes" >&6; }
5619 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5621 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5624 #echo 'Test with flag is no!'
5626 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5627 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5633 $as_echo "failed" >&6; }
5642 # debug mode flags warnings
5643 # Check whether --enable-checking was given.
5644 if test "${enable_checking+set}" = set; then :
5645 enableval=$enable_checking;
5648 # Check whether --enable-debug was given.
5649 if test "${enable_debug+set}" = set; then :
5650 enableval=$enable_debug;
5653 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5654 else debug_enabled="$enable_checking"; fi
5656 case "$debug_enabled" in
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5661 $as_echo_n "checking whether $CC supports -W... " >&6; }
5662 cache=`echo W | sed 'y%.=/+-%___p_%'`
5663 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5664 $as_echo_n "(cached) " >&6
5667 echo 'void f(void){}' >conftest.c
5668 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5669 eval "cv_prog_cc_flag_$cache=yes"
5671 eval "cv_prog_cc_flag_$cache=no"
5673 rm -f conftest conftest.o conftest.c
5677 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5679 $as_echo "yes" >&6; }
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5692 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5693 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5694 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5695 $as_echo_n "(cached) " >&6
5698 echo 'void f(void){}' >conftest.c
5699 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5700 eval "cv_prog_cc_flag_$cache=yes"
5702 eval "cv_prog_cc_flag_$cache=no"
5704 rm -f conftest conftest.o conftest.c
5708 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710 $as_echo "yes" >&6; }
5712 CFLAGS="$CFLAGS -Wall"
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5723 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5724 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5725 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5726 $as_echo_n "(cached) " >&6
5729 echo 'void f(void){}' >conftest.c
5730 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5731 eval "cv_prog_cc_flag_$cache=yes"
5733 eval "cv_prog_cc_flag_$cache=no"
5735 rm -f conftest conftest.o conftest.c
5739 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5741 $as_echo "yes" >&6; }
5743 CFLAGS="$CFLAGS -Wextra"
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5754 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5755 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5756 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5757 $as_echo_n "(cached) " >&6
5760 echo 'void f(void){}' >conftest.c
5761 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5762 eval "cv_prog_cc_flag_$cache=yes"
5764 eval "cv_prog_cc_flag_$cache=no"
5766 rm -f conftest conftest.o conftest.c
5770 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5772 $as_echo "yes" >&6; }
5774 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777 $as_echo "no" >&6; }
5783 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5791 # Check whether --enable-flto was given.
5792 if test "${enable_flto+set}" = set; then :
5793 enableval=$enable_flto;
5796 if test "x$enable_flto" != "xno"; then :
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5799 $as_echo_n "checking if $CC supports -flto... " >&6; }
5801 CFLAGS="$CFLAGS -flto"
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5813 if ac_fn_c_try_link "$LINENO"; then :
5815 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5821 $as_echo "yes" >&6; }
5823 rm -f conftest conftest.c conftest.o
5826 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5829 rm -f core conftest.err conftest.$ac_objext \
5830 conftest$ac_exeext conftest.$ac_ext
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5836 $as_echo_n "checking for inline... " >&6; }
5837 if ${ac_cv_c_inline+:} false; then :
5838 $as_echo_n "(cached) " >&6
5841 for ac_kw in inline __inline__ __inline; do
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5846 static $ac_kw foo_t static_foo () {return 0; }
5847 $ac_kw foo_t foo () {return 0; }
5851 if ac_fn_c_try_compile "$LINENO"; then :
5852 ac_cv_c_inline=$ac_kw
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 test "$ac_cv_c_inline" != no && break
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5860 $as_echo "$ac_cv_c_inline" >&6; }
5862 case $ac_cv_c_inline in
5865 case $ac_cv_c_inline in
5867 *) ac_val=$ac_cv_c_inline;;
5869 cat >>confdefs.h <<_ACEOF
5871 #define inline $ac_val
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5879 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5880 if ${ac_cv_c_format_attribute+:} false; then :
5881 $as_echo_n "(cached) " >&6
5883 ac_cv_c_format_attribute=no
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5887 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5888 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5900 if ac_fn_c_try_compile "$LINENO"; then :
5901 ac_cv_c_format_attribute="yes"
5903 ac_cv_c_format_attribute="no"
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5911 $as_echo "$ac_cv_c_format_attribute" >&6; }
5912 if test $ac_cv_c_format_attribute = yes; then
5914 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5920 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5921 if ${ac_cv_c_unused_attribute+:} false; then :
5922 $as_echo_n "(cached) " >&6
5924 ac_cv_c_unused_attribute=no
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5928 void f (char *u __attribute__((unused)));
5940 if ac_fn_c_try_compile "$LINENO"; then :
5941 ac_cv_c_unused_attribute="yes"
5943 ac_cv_c_unused_attribute="no"
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
5953 $as_echo "$ac_cv_c_unused_attribute" >&6; }
5954 if test $ac_cv_c_unused_attribute = yes; then
5956 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
5961 if test "$srcdir" != "."; then
5962 CPPFLAGS="$CPPFLAGS -I$srcdir"
5967 for ac_prog in flex lex
5969 # Extract the first word of "$ac_prog", so it can be a program name with args.
5970 set dummy $ac_prog; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if ${ac_cv_prog_LEX+:} false; then :
5974 $as_echo_n "(cached) " >&6
5976 if test -n "$LEX"; then
5977 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_prog_LEX="$ac_prog"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 if test -n "$LEX"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5999 $as_echo "$LEX" >&6; }
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6006 test -n "$LEX" && break
6008 test -n "$LEX" || LEX=":"
6010 if test "x$LEX" != "x:"; then
6011 cat >conftest.l <<_ACEOF
6017 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6018 yyless ((input () != 0)); }
6019 f { unput (yytext[0]); }
6020 . { BEGIN INITIAL; }
6022 #ifdef YYTEXT_POINTER
6023 extern char *yytext;
6028 return ! yylex () + ! yywrap ();
6031 { { ac_try="$LEX conftest.l"
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6037 $as_echo "$ac_try_echo"; } >&5
6038 (eval "$LEX conftest.l") 2>&5
6040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6041 test $ac_status = 0; }
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6043 $as_echo_n "checking lex output file root... " >&6; }
6044 if ${ac_cv_prog_lex_root+:} false; then :
6045 $as_echo_n "(cached) " >&6
6048 if test -f lex.yy.c; then
6049 ac_cv_prog_lex_root=lex.yy
6050 elif test -f lexyy.c; then
6051 ac_cv_prog_lex_root=lexyy
6053 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6057 $as_echo "$ac_cv_prog_lex_root" >&6; }
6058 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6060 if test -z "${LEXLIB+set}"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6062 $as_echo_n "checking lex library... " >&6; }
6063 if ${ac_cv_lib_lex+:} false; then :
6064 $as_echo_n "(cached) " >&6
6068 ac_cv_lib_lex='none needed'
6069 for ac_lib in '' -lfl -ll; do
6070 LIBS="$ac_lib $ac_save_LIBS"
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 `cat $LEX_OUTPUT_ROOT.c`
6075 if ac_fn_c_try_link "$LINENO"; then :
6076 ac_cv_lib_lex=$ac_lib
6078 rm -f core conftest.err conftest.$ac_objext \
6079 conftest$ac_exeext conftest.$ac_ext
6080 test "$ac_cv_lib_lex" != 'none needed' && break
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6086 $as_echo "$ac_cv_lib_lex" >&6; }
6087 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6092 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6093 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6094 $as_echo_n "(cached) " >&6
6096 # POSIX says lex can declare yytext either as a pointer or an array; the
6097 # default is implementation-dependent. Figure out which it is, since
6098 # not all implementations provide the %pointer and %array declarations.
6099 ac_cv_prog_lex_yytext_pointer=no
6101 LIBS="$LEXLIB $ac_save_LIBS"
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6105 #define YYTEXT_POINTER 1
6106 `cat $LEX_OUTPUT_ROOT.c`
6108 if ac_fn_c_try_link "$LINENO"; then :
6109 ac_cv_prog_lex_yytext_pointer=yes
6111 rm -f core conftest.err conftest.$ac_objext \
6112 conftest$ac_exeext conftest.$ac_ext
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6117 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6118 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6120 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6123 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6128 $as_echo_n "checking for yylex_destroy... " >&6; }
6129 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6131 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6134 $as_echo "yes" >&6; }
6135 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }; fi
6138 for ac_prog in 'bison -y' byacc
6140 # Extract the first word of "$ac_prog", so it can be a program name with args.
6141 set dummy $ac_prog; ac_word=$2
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143 $as_echo_n "checking for $ac_word... " >&6; }
6144 if ${ac_cv_prog_YACC+:} false; then :
6145 $as_echo_n "(cached) " >&6
6147 if test -n "$YACC"; then
6148 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6157 ac_cv_prog_YACC="$ac_prog"
6158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 YACC=$ac_cv_prog_YACC
6168 if test -n "$YACC"; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6170 $as_echo "$YACC" >&6; }
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173 $as_echo "no" >&6; }
6177 test -n "$YACC" && break
6179 test -n "$YACC" || YACC="yacc"
6181 # Extract the first word of "doxygen", so it can be a program name with args.
6182 set dummy doxygen; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_doxygen+:} false; then :
6186 $as_echo_n "(cached) " >&6
6188 if test -n "$doxygen"; then
6189 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6198 ac_cv_prog_doxygen="doxygen"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 doxygen=$ac_cv_prog_doxygen
6209 if test -n "$doxygen"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6211 $as_echo "$doxygen" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6218 if test -n "$ac_tool_prefix"; then
6219 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6220 set dummy ${ac_tool_prefix}strip; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if ${ac_cv_prog_STRIP+:} false; then :
6224 $as_echo_n "(cached) " >&6
6226 if test -n "$STRIP"; then
6227 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 STRIP=$ac_cv_prog_STRIP
6247 if test -n "$STRIP"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6249 $as_echo "$STRIP" >&6; }
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6257 if test -z "$ac_cv_prog_STRIP"; then
6259 # Extract the first word of "strip", so it can be a program name with args.
6260 set dummy strip; ac_word=$2
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262 $as_echo_n "checking for $ac_word... " >&6; }
6263 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6264 $as_echo_n "(cached) " >&6
6266 if test -n "$ac_ct_STRIP"; then
6267 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276 ac_cv_prog_ac_ct_STRIP="strip"
6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6287 if test -n "$ac_ct_STRIP"; then
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6289 $as_echo "$ac_ct_STRIP" >&6; }
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 $as_echo "no" >&6; }
6295 if test "x$ac_ct_STRIP" = x; then
6298 case $cross_compiling:$ac_tool_warned in
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6302 ac_tool_warned=yes ;;
6307 STRIP="$ac_cv_prog_STRIP"
6311 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6312 if test -f "$ac_dir/install-sh"; then
6314 ac_install_sh="$ac_aux_dir/install-sh -c"
6316 elif test -f "$ac_dir/install.sh"; then
6318 ac_install_sh="$ac_aux_dir/install.sh -c"
6320 elif test -f "$ac_dir/shtool"; then
6322 ac_install_sh="$ac_aux_dir/shtool install -c"
6326 if test -z "$ac_aux_dir"; then
6327 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6330 # These three variables are undocumented and unsupported,
6331 # and are intended to be withdrawn in a future Autoconf release.
6332 # They can cause serious problems if a builder's source tree is in a directory
6333 # whose full name contains unusual characters.
6334 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6335 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6336 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6339 # Make sure we can run config.sub.
6340 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6341 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6344 $as_echo_n "checking build system type... " >&6; }
6345 if ${ac_cv_build+:} false; then :
6346 $as_echo_n "(cached) " >&6
6348 ac_build_alias=$build_alias
6349 test "x$ac_build_alias" = x &&
6350 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6351 test "x$ac_build_alias" = x &&
6352 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6353 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6354 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6358 $as_echo "$ac_cv_build" >&6; }
6359 case $ac_cv_build in
6361 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6364 ac_save_IFS=$IFS; IFS='-'
6370 # Remember, the first character of IFS is used to create $*,
6371 # except with old shells:
6374 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6378 $as_echo_n "checking host system type... " >&6; }
6379 if ${ac_cv_host+:} false; then :
6380 $as_echo_n "(cached) " >&6
6382 if test "x$host_alias" = x; then
6383 ac_cv_host=$ac_cv_build
6385 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6391 $as_echo "$ac_cv_host" >&6; }
6394 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6397 ac_save_IFS=$IFS; IFS='-'
6403 # Remember, the first character of IFS is used to create $*,
6404 # except with old shells:
6407 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6411 # skip these tests, we do not need them.
6420 # always use ./libtool unless override from commandline (libtool=mylibtool)
6421 if test -z "$libtool"; then
6425 # avoid libtool max commandline length test on systems that fork slowly.
6427 if echo "$host_os" | grep "sunos4" >/dev/null; then
6428 lt_cv_sys_max_cmd_len=32750;
6430 if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6432 set dummy ${ac_tool_prefix}ar; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_path_AR+:} false; then :
6436 $as_echo_n "(cached) " >&6
6440 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 if test -n "$AR"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6464 $as_echo "$AR" >&6; }
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6472 if test -z "$ac_cv_path_AR"; then
6474 # Extract the first word of "ar", so it can be a program name with args.
6475 set dummy ar; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_path_ac_pt_AR+:} false; then :
6479 $as_echo_n "(cached) " >&6
6483 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 ac_pt_AR=$ac_cv_path_ac_pt_AR
6505 if test -n "$ac_pt_AR"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6507 $as_echo "$ac_pt_AR" >&6; }
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6513 if test "x$ac_pt_AR" = x; then
6516 case $cross_compiling:$ac_tool_warned in
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6520 ac_tool_warned=yes ;;
6528 if test $AR = false; then
6529 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6535 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6540 macro_version='2.4.2'
6541 macro_revision='1.3337'
6555 ltmain="$ac_aux_dir/ltmain.sh"
6557 # Backslashify metacharacters that are still active within
6558 # double-quoted strings.
6559 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6561 # Same as above, but do not quote variable references.
6562 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6564 # Sed substitution to delay expansion of an escaped shell variable in a
6565 # double_quote_subst'ed string.
6566 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6568 # Sed substitution to delay expansion of an escaped single quote.
6569 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6571 # Sed substitution to avoid accidental globbing in evaled expressions
6572 no_glob_subst='s/\*/\\\*/g'
6574 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6575 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6576 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6579 $as_echo_n "checking how to print strings... " >&6; }
6580 # Test print first, because it will be a builtin if present.
6581 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6582 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6584 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6587 # Use this function as a fallback that always works.
6588 func_fallback_echo ()
6590 eval 'cat <<_LTECHO_EOF
6594 ECHO='func_fallback_echo'
6597 # func_echo_all arg...
6598 # Invoke $ECHO with all args, space-separated.
6605 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6606 $as_echo "printf" >&6; } ;;
6607 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6608 $as_echo "print -r" >&6; } ;;
6609 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6610 $as_echo "cat" >&6; } ;;
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6627 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6628 if ${ac_cv_path_SED+:} false; then :
6629 $as_echo_n "(cached) " >&6
6631 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6632 for ac_i in 1 2 3 4 5 6 7; do
6633 ac_script="$ac_script$as_nl$ac_script"
6635 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6636 { ac_script=; unset ac_script;}
6637 if test -z "$SED"; then
6638 ac_path_SED_found=false
6639 # Loop through the user's path and test for each of PROGNAME-LIST
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 test -z "$as_dir" && as_dir=.
6645 for ac_prog in sed gsed; do
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6648 as_fn_executable_p "$ac_path_SED" || continue
6649 # Check for GNU ac_path_SED and select it if it is found.
6650 # Check for GNU $ac_path_SED
6651 case `"$ac_path_SED" --version 2>&1` in
6653 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6656 $as_echo_n 0123456789 >"conftest.in"
6659 cat "conftest.in" "conftest.in" >"conftest.tmp"
6660 mv "conftest.tmp" "conftest.in"
6661 cp "conftest.in" "conftest.nl"
6662 $as_echo '' >> "conftest.nl"
6663 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6665 as_fn_arith $ac_count + 1 && ac_count=$as_val
6666 if test $ac_count -gt ${ac_path_SED_max-0}; then
6667 # Best one so far, save it but keep looking for a better one
6668 ac_cv_path_SED="$ac_path_SED"
6669 ac_path_SED_max=$ac_count
6671 # 10*(2^10) chars as input seems more than enough
6672 test $ac_count -gt 10 && break
6674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6677 $ac_path_SED_found && break 3
6682 if test -z "$ac_cv_path_SED"; then
6683 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6691 $as_echo "$ac_cv_path_SED" >&6; }
6692 SED="$ac_cv_path_SED"
6695 test -z "$SED" && SED=sed
6696 Xsed="$SED -e 1s/^X//"
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6709 $as_echo_n "checking for fgrep... " >&6; }
6710 if ${ac_cv_path_FGREP+:} false; then :
6711 $as_echo_n "(cached) " >&6
6713 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6714 then ac_cv_path_FGREP="$GREP -F"
6716 if test -z "$FGREP"; then
6717 ac_path_FGREP_found=false
6718 # Loop through the user's path and test for each of PROGNAME-LIST
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6723 test -z "$as_dir" && as_dir=.
6724 for ac_prog in fgrep; do
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6727 as_fn_executable_p "$ac_path_FGREP" || continue
6728 # Check for GNU ac_path_FGREP and select it if it is found.
6729 # Check for GNU $ac_path_FGREP
6730 case `"$ac_path_FGREP" --version 2>&1` in
6732 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6735 $as_echo_n 0123456789 >"conftest.in"
6738 cat "conftest.in" "conftest.in" >"conftest.tmp"
6739 mv "conftest.tmp" "conftest.in"
6740 cp "conftest.in" "conftest.nl"
6741 $as_echo 'FGREP' >> "conftest.nl"
6742 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6744 as_fn_arith $ac_count + 1 && ac_count=$as_val
6745 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6746 # Best one so far, save it but keep looking for a better one
6747 ac_cv_path_FGREP="$ac_path_FGREP"
6748 ac_path_FGREP_max=$ac_count
6750 # 10*(2^10) chars as input seems more than enough
6751 test $ac_count -gt 10 && break
6753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6756 $ac_path_FGREP_found && break 3
6761 if test -z "$ac_cv_path_FGREP"; then
6762 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6765 ac_cv_path_FGREP=$FGREP
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6771 $as_echo "$ac_cv_path_FGREP" >&6; }
6772 FGREP="$ac_cv_path_FGREP"
6775 test -z "$GREP" && GREP=grep
6795 # Check whether --with-gnu-ld was given.
6796 if test "${with_gnu_ld+set}" = set; then :
6797 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6803 if test "$GCC" = yes; then
6804 # Check if gcc -print-prog-name=ld gives a path.
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6806 $as_echo_n "checking for ld used by $CC... " >&6; }
6809 # gcc leaves a trailing carriage return which upsets mingw
6810 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6812 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6815 # Accept absolute paths.
6817 re_direlt='/[^/][^/]*/\.\./'
6818 # Canonicalize the pathname of ld
6819 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6820 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6821 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6823 test -z "$LD" && LD="$ac_prog"
6826 # If it fails, then pretend we aren't using GCC.
6830 # If it is relative, then search for the first ld in PATH.
6834 elif test "$with_gnu_ld" = yes; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6836 $as_echo_n "checking for GNU ld... " >&6; }
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6839 $as_echo_n "checking for non-GNU ld... " >&6; }
6841 if ${lt_cv_path_LD+:} false; then :
6842 $as_echo_n "(cached) " >&6
6844 if test -z "$LD"; then
6845 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6846 for ac_dir in $PATH; do
6848 test -z "$ac_dir" && ac_dir=.
6849 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6850 lt_cv_path_LD="$ac_dir/$ac_prog"
6851 # Check to see if the program is GNU ld. I'd rather use --version,
6852 # but apparently some variants of GNU ld only accept -v.
6853 # Break only if it was the GNU/non-GNU ld that we prefer.
6854 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6855 *GNU* | *'with BFD'*)
6856 test "$with_gnu_ld" != no && break
6859 test "$with_gnu_ld" != yes && break
6866 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6871 if test -n "$LD"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6873 $as_echo "$LD" >&6; }
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6878 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6880 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6881 if ${lt_cv_prog_gnu_ld+:} false; then :
6882 $as_echo_n "(cached) " >&6
6884 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6885 case `$LD -v 2>&1 </dev/null` in
6886 *GNU* | *'with BFD'*)
6887 lt_cv_prog_gnu_ld=yes
6890 lt_cv_prog_gnu_ld=no
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6895 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6896 with_gnu_ld=$lt_cv_prog_gnu_ld
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6907 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6908 if ${lt_cv_path_NM+:} false; then :
6909 $as_echo_n "(cached) " >&6
6911 if test -n "$NM"; then
6912 # Let the user override the test.
6915 lt_nm_to_check="${ac_tool_prefix}nm"
6916 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6917 lt_nm_to_check="$lt_nm_to_check nm"
6919 for lt_tmp_nm in $lt_nm_to_check; do
6920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6921 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6923 test -z "$ac_dir" && ac_dir=.
6924 tmp_nm="$ac_dir/$lt_tmp_nm"
6925 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6926 # Check to see if the nm accepts a BSD-compat flag.
6927 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6928 # nm: unknown option "B" ignored
6929 # Tru64's nm complains that /dev/null is an invalid object file
6930 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6931 */dev/null* | *'Invalid file or object type'*)
6932 lt_cv_path_NM="$tmp_nm -B"
6936 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6938 lt_cv_path_NM="$tmp_nm -p"
6942 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6943 continue # so that we can try to find one that supports BSD flags
6952 : ${lt_cv_path_NM=no}
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6956 $as_echo "$lt_cv_path_NM" >&6; }
6957 if test "$lt_cv_path_NM" != "no"; then
6960 # Didn't find any BSD compatible name lister, look for dumpbin.
6961 if test -n "$DUMPBIN"; then :
6962 # Let the user override the test.
6964 if test -n "$ac_tool_prefix"; then
6965 for ac_prog in dumpbin "link -dump"
6967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_DUMPBIN+:} false; then :
6972 $as_echo_n "(cached) " >&6
6974 if test -n "$DUMPBIN"; then
6975 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 DUMPBIN=$ac_cv_prog_DUMPBIN
6995 if test -n "$DUMPBIN"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6997 $as_echo "$DUMPBIN" >&6; }
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7004 test -n "$DUMPBIN" && break
7007 if test -z "$DUMPBIN"; then
7008 ac_ct_DUMPBIN=$DUMPBIN
7009 for ac_prog in dumpbin "link -dump"
7011 # Extract the first word of "$ac_prog", so it can be a program name with args.
7012 set dummy $ac_prog; ac_word=$2
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014 $as_echo_n "checking for $ac_word... " >&6; }
7015 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7016 $as_echo_n "(cached) " >&6
7018 if test -n "$ac_ct_DUMPBIN"; then
7019 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7028 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7039 if test -n "$ac_ct_DUMPBIN"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7041 $as_echo "$ac_ct_DUMPBIN" >&6; }
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7048 test -n "$ac_ct_DUMPBIN" && break
7051 if test "x$ac_ct_DUMPBIN" = x; then
7054 case $cross_compiling:$ac_tool_warned in
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7058 ac_tool_warned=yes ;;
7060 DUMPBIN=$ac_ct_DUMPBIN
7064 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7066 DUMPBIN="$DUMPBIN -symbols"
7074 if test "$DUMPBIN" != ":"; then
7078 test -z "$NM" && NM=nm
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7086 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7087 if ${lt_cv_nm_interface+:} false; then :
7088 $as_echo_n "(cached) " >&6
7090 lt_cv_nm_interface="BSD nm"
7091 echo "int some_variable = 0;" > conftest.$ac_ext
7092 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7093 (eval "$ac_compile" 2>conftest.err)
7094 cat conftest.err >&5
7095 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7096 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7097 cat conftest.err >&5
7098 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7099 cat conftest.out >&5
7100 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7101 lt_cv_nm_interface="MS dumpbin"
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7106 $as_echo "$lt_cv_nm_interface" >&6; }
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7109 $as_echo_n "checking whether ln -s works... " >&6; }
7111 if test "$LN_S" = "ln -s"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7116 $as_echo "no, using $LN_S" >&6; }
7119 # find the maximum length of command line arguments
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7121 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7122 if ${lt_cv_sys_max_cmd_len+:} false; then :
7123 $as_echo_n "(cached) " >&6
7130 # On DJGPP, this test can blow up pretty badly due to problems in libc
7131 # (any single argument exceeding 2000 bytes causes a buffer overrun
7132 # during glob expansion). Even if it were fixed, the result of this
7133 # check would be larger than it should be.
7134 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7138 # Under GNU Hurd, this test is not required because there is
7139 # no limit to the length of command line arguments.
7140 # Libtool will interpret -1 as no limit whatsoever
7141 lt_cv_sys_max_cmd_len=-1;
7144 cygwin* | mingw* | cegcc*)
7145 # On Win9x/ME, this test blows up -- it succeeds, but takes
7146 # about 5 minutes as the teststring grows exponentially.
7147 # Worse, since 9x/ME are not pre-emptively multitasking,
7148 # you end up with a "frozen" computer, even though with patience
7149 # the test eventually succeeds (with a max line length of 256k).
7150 # Instead, let's just punt: use the minimum linelength reported by
7151 # all of the supported platforms: 8192 (on NT/2K/XP).
7152 lt_cv_sys_max_cmd_len=8192;
7156 # On MiNT this can take a long time and run out of memory.
7157 lt_cv_sys_max_cmd_len=8192;
7161 # On AmigaOS with pdksh, this test takes hours, literally.
7162 # So we just punt and use a minimum line length of 8192.
7163 lt_cv_sys_max_cmd_len=8192;
7166 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7167 # This has been around since 386BSD, at least. Likely further.
7168 if test -x /sbin/sysctl; then
7169 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7170 elif test -x /usr/sbin/sysctl; then
7171 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7173 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7175 # And add a safety zone
7176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7181 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7182 lt_cv_sys_max_cmd_len=196608
7186 # The test takes a long time on OS/2.
7187 lt_cv_sys_max_cmd_len=8192
7191 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7192 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7193 # nice to cause kernel panics so lets avoid the loop below.
7194 # First set a reasonable default.
7195 lt_cv_sys_max_cmd_len=16384
7197 if test -x /sbin/sysconfig; then
7198 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7199 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7204 lt_cv_sys_max_cmd_len=102400
7206 sysv5* | sco5v6* | sysv4.2uw2*)
7207 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7208 if test -n "$kargmax"; then
7209 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7211 lt_cv_sys_max_cmd_len=32768
7215 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7216 if test -n "$lt_cv_sys_max_cmd_len"; then
7217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7218 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7220 # Make teststring a little bigger before we do anything with it.
7221 # a 1K string should be a reasonable start.
7222 for i in 1 2 3 4 5 6 7 8 ; do
7223 teststring=$teststring$teststring
7225 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7226 # If test is not a shell built-in, we'll probably end up computing a
7227 # maximum length that is only half of the actual maximum length, but
7229 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7230 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7231 test $i != 17 # 1/2 MB should be enough
7234 teststring=$teststring$teststring
7236 # Only check the string length outside the loop.
7237 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7239 # Add a significant safety factor because C++ compilers can tack on
7240 # massive amounts of additional arguments before passing them to the
7241 # linker. It appears as though 1/2 is a usable value.
7242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7249 if test -n $lt_cv_sys_max_cmd_len ; then
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7251 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7254 $as_echo "none" >&6; }
7256 max_cmd_len=$lt_cv_sys_max_cmd_len
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7268 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7269 # Try some XSI features
7272 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7274 && eval 'test $(( 1 + 1 )) -eq 2 \
7275 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7278 $as_echo "$xsi_shell" >&6; }
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7282 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7284 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7286 && lt_shell_append=yes
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7288 $as_echo "$lt_shell_append" >&6; }
7291 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7301 # test EBCDIC or ASCII
7302 case `echo X|tr X '\101'` in
7303 A) # ASCII based system
7304 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7305 lt_SP2NL='tr \040 \012'
7306 lt_NL2SP='tr \015\012 \040\040'
7308 *) # EBCDIC based system
7309 lt_SP2NL='tr \100 \n'
7310 lt_NL2SP='tr \r\n \100\100'
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7323 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7324 if ${lt_cv_to_host_file_cmd+:} false; then :
7325 $as_echo_n "(cached) " >&6
7330 *-*-mingw* ) # actually msys
7331 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7334 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7336 * ) # otherwise, assume *nix
7337 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7343 *-*-mingw* ) # actually msys
7344 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7347 lt_cv_to_host_file_cmd=func_convert_file_noop
7349 * ) # otherwise, assume *nix
7350 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7354 * ) # unhandled hosts (and "normal" native builds)
7355 lt_cv_to_host_file_cmd=func_convert_file_noop
7361 to_host_file_cmd=$lt_cv_to_host_file_cmd
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7363 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7370 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7371 if ${lt_cv_to_tool_file_cmd+:} false; then :
7372 $as_echo_n "(cached) " >&6
7374 #assume ordinary cross tools, or native build.
7375 lt_cv_to_tool_file_cmd=func_convert_file_noop
7379 *-*-mingw* ) # actually msys
7380 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7388 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7390 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7397 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7398 if ${lt_cv_ld_reload_flag+:} false; then :
7399 $as_echo_n "(cached) " >&6
7401 lt_cv_ld_reload_flag='-r'
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7404 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7405 reload_flag=$lt_cv_ld_reload_flag
7406 case $reload_flag in
7408 *) reload_flag=" $reload_flag" ;;
7410 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7412 cygwin* | mingw* | pw32* | cegcc*)
7413 if test "$GCC" != yes; then
7418 if test "$GCC" = yes; then
7419 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7421 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7434 if test -n "$ac_tool_prefix"; then
7435 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7436 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if ${ac_cv_prog_OBJDUMP+:} false; then :
7440 $as_echo_n "(cached) " >&6
7442 if test -n "$OBJDUMP"; then
7443 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7452 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 OBJDUMP=$ac_cv_prog_OBJDUMP
7463 if test -n "$OBJDUMP"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7465 $as_echo "$OBJDUMP" >&6; }
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7473 if test -z "$ac_cv_prog_OBJDUMP"; then
7474 ac_ct_OBJDUMP=$OBJDUMP
7475 # Extract the first word of "objdump", so it can be a program name with args.
7476 set dummy objdump; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7480 $as_echo_n "(cached) " >&6
7482 if test -n "$ac_ct_OBJDUMP"; then
7483 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7503 if test -n "$ac_ct_OBJDUMP"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7505 $as_echo "$ac_ct_OBJDUMP" >&6; }
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7511 if test "x$ac_ct_OBJDUMP" = x; then
7514 case $cross_compiling:$ac_tool_warned in
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7518 ac_tool_warned=yes ;;
7520 OBJDUMP=$ac_ct_OBJDUMP
7523 OBJDUMP="$ac_cv_prog_OBJDUMP"
7526 test -z "$OBJDUMP" && OBJDUMP=objdump
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7537 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7538 if ${lt_cv_deplibs_check_method+:} false; then :
7539 $as_echo_n "(cached) " >&6
7541 lt_cv_file_magic_cmd='$MAGIC_CMD'
7542 lt_cv_file_magic_test_file=
7543 lt_cv_deplibs_check_method='unknown'
7544 # Need to set the preceding variable on all platforms that support
7545 # interlibrary dependencies.
7546 # 'none' -- dependencies not supported.
7547 # `unknown' -- same as none, but documents that we really don't know.
7548 # 'pass_all' -- all dependencies passed with no checks.
7549 # 'test_compile' -- check by making test program.
7550 # 'file_magic [[regex]]' -- check by looking for files in library path
7551 # which responds to the $file_magic_cmd with a given extended regex.
7552 # If you have `file' or equivalent on your system and you're not sure
7553 # whether `pass_all' will *always* work, you probably want this one.
7557 lt_cv_deplibs_check_method=pass_all
7561 lt_cv_deplibs_check_method=pass_all
7565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7566 lt_cv_file_magic_cmd='/usr/bin/file -L'
7567 lt_cv_file_magic_test_file=/shlib/libc.so
7571 # func_win32_libid is a shell function defined in ltmain.sh
7572 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7573 lt_cv_file_magic_cmd='func_win32_libid'
7577 # Base MSYS/MinGW do not provide the 'file' command needed by
7578 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7579 # unless we find 'file', for example because we are cross-compiling.
7580 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7581 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7582 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7583 lt_cv_file_magic_cmd='func_win32_libid'
7585 # Keep this pattern in sync with the one in func_win32_libid.
7586 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7587 lt_cv_file_magic_cmd='$OBJDUMP -f'
7592 # use the weaker test based on 'objdump'. See mingw*.
7593 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7594 lt_cv_file_magic_cmd='$OBJDUMP -f'
7597 darwin* | rhapsody*)
7598 lt_cv_deplibs_check_method=pass_all
7601 freebsd* | dragonfly*)
7602 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7605 # Not sure whether the presence of OpenBSD here was a mistake.
7606 # Let's accept both of them until this is cleared up.
7607 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7608 lt_cv_file_magic_cmd=/usr/bin/file
7609 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7613 lt_cv_deplibs_check_method=pass_all
7618 lt_cv_deplibs_check_method=pass_all
7622 lt_cv_deplibs_check_method=pass_all
7625 hpux10.20* | hpux11*)
7626 lt_cv_file_magic_cmd=/usr/bin/file
7629 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7630 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7633 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]'
7634 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7638 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7644 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7648 irix5* | irix6* | nonstopux*)
7650 *-32|*"-32 ") libmagic=32-bit;;
7651 *-n32|*"-n32 ") libmagic=N32;;
7652 *-64|*"-64 ") libmagic=64-bit;;
7653 *) libmagic=never-match;;
7655 lt_cv_deplibs_check_method=pass_all
7658 # This must be glibc/ELF.
7659 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7660 lt_cv_deplibs_check_method=pass_all
7664 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7672 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7673 lt_cv_file_magic_cmd=/usr/bin/file
7674 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7678 lt_cv_deplibs_check_method=pass_all
7682 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7689 osf3* | osf4* | osf5*)
7690 lt_cv_deplibs_check_method=pass_all
7694 lt_cv_deplibs_check_method=pass_all
7698 lt_cv_deplibs_check_method=pass_all
7701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7702 lt_cv_deplibs_check_method=pass_all
7706 case $host_vendor in
7708 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]'
7709 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7712 lt_cv_deplibs_check_method=pass_all
7715 lt_cv_file_magic_cmd='/bin/file'
7716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7719 lt_cv_file_magic_cmd='/bin/file'
7720 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7721 lt_cv_file_magic_test_file=/lib/libc.so
7724 lt_cv_deplibs_check_method=pass_all
7727 lt_cv_deplibs_check_method=pass_all
7733 lt_cv_deplibs_check_method=pass_all
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7739 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7743 if test "$build" = "$host"; then
7746 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7749 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7755 file_magic_cmd=$lt_cv_file_magic_cmd
7756 deplibs_check_method=$lt_cv_deplibs_check_method
7757 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7780 if test -n "$ac_tool_prefix"; then
7781 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7782 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784 $as_echo_n "checking for $ac_word... " >&6; }
7785 if ${ac_cv_prog_DLLTOOL+:} false; then :
7786 $as_echo_n "(cached) " >&6
7788 if test -n "$DLLTOOL"; then
7789 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7798 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 DLLTOOL=$ac_cv_prog_DLLTOOL
7809 if test -n "$DLLTOOL"; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7811 $as_echo "$DLLTOOL" >&6; }
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 $as_echo "no" >&6; }
7819 if test -z "$ac_cv_prog_DLLTOOL"; then
7820 ac_ct_DLLTOOL=$DLLTOOL
7821 # Extract the first word of "dlltool", so it can be a program name with args.
7822 set dummy dlltool; ac_word=$2
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824 $as_echo_n "checking for $ac_word... " >&6; }
7825 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7826 $as_echo_n "(cached) " >&6
7828 if test -n "$ac_ct_DLLTOOL"; then
7829 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7849 if test -n "$ac_ct_DLLTOOL"; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7851 $as_echo "$ac_ct_DLLTOOL" >&6; }
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 $as_echo "no" >&6; }
7857 if test "x$ac_ct_DLLTOOL" = x; then
7860 case $cross_compiling:$ac_tool_warned in
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7864 ac_tool_warned=yes ;;
7866 DLLTOOL=$ac_ct_DLLTOOL
7869 DLLTOOL="$ac_cv_prog_DLLTOOL"
7872 test -z "$DLLTOOL" && DLLTOOL=dlltool
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7884 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7885 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7886 $as_echo_n "(cached) " >&6
7888 lt_cv_sharedlib_from_linklib_cmd='unknown'
7891 cygwin* | mingw* | pw32* | cegcc*)
7892 # two different shell functions defined in ltmain.sh
7893 # decide which to use based on capabilities of $DLLTOOL
7894 case `$DLLTOOL --help 2>&1` in
7895 *--identify-strict*)
7896 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7899 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7904 # fallback: assume linklib IS sharedlib
7905 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7911 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7912 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7913 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7921 if test -n "$ac_tool_prefix"; then
7924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if ${ac_cv_prog_AR+:} false; then :
7929 $as_echo_n "(cached) " >&6
7931 if test -n "$AR"; then
7932 ac_cv_prog_AR="$AR" # Let the user override the test.
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 if test -n "$AR"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7954 $as_echo "$AR" >&6; }
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7961 test -n "$AR" && break
7964 if test -z "$AR"; then
7968 # Extract the first word of "$ac_prog", so it can be a program name with args.
7969 set dummy $ac_prog; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7973 $as_echo_n "(cached) " >&6
7975 if test -n "$ac_ct_AR"; then
7976 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985 ac_cv_prog_ac_ct_AR="$ac_prog"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7996 if test -n "$ac_ct_AR"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7998 $as_echo "$ac_ct_AR" >&6; }
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8005 test -n "$ac_ct_AR" && break
8008 if test "x$ac_ct_AR" = x; then
8011 case $cross_compiling:$ac_tool_warned in
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8015 ac_tool_warned=yes ;;
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8035 $as_echo_n "checking for archiver @FILE support... " >&6; }
8036 if ${lt_cv_ar_at_file+:} false; then :
8037 $as_echo_n "(cached) " >&6
8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h. */
8051 if ac_fn_c_try_compile "$LINENO"; then :
8052 echo conftest.$ac_objext > conftest.lst
8053 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8055 (eval $lt_ar_try) 2>&5
8057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8058 test $ac_status = 0; }
8059 if test "$ac_status" -eq 0; then
8060 # Ensure the archiver fails upon bogus file names.
8061 rm -f conftest.$ac_objext libconftest.a
8062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8063 (eval $lt_ar_try) 2>&5
8065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8066 test $ac_status = 0; }
8067 if test "$ac_status" -ne 0; then
8071 rm -f conftest.* libconftest.a
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8078 $as_echo "$lt_cv_ar_at_file" >&6; }
8080 if test "x$lt_cv_ar_at_file" = xno; then
8083 archiver_list_spec=$lt_cv_ar_at_file
8092 if test -n "$ac_tool_prefix"; then
8093 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8094 set dummy ${ac_tool_prefix}strip; ac_word=$2
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096 $as_echo_n "checking for $ac_word... " >&6; }
8097 if ${ac_cv_prog_STRIP+:} false; then :
8098 $as_echo_n "(cached) " >&6
8100 if test -n "$STRIP"; then
8101 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8110 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 STRIP=$ac_cv_prog_STRIP
8121 if test -n "$STRIP"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8123 $as_echo "$STRIP" >&6; }
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126 $as_echo "no" >&6; }
8131 if test -z "$ac_cv_prog_STRIP"; then
8133 # Extract the first word of "strip", so it can be a program name with args.
8134 set dummy strip; ac_word=$2
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8138 $as_echo_n "(cached) " >&6
8140 if test -n "$ac_ct_STRIP"; then
8141 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8150 ac_cv_prog_ac_ct_STRIP="strip"
8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8161 if test -n "$ac_ct_STRIP"; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8163 $as_echo "$ac_ct_STRIP" >&6; }
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166 $as_echo "no" >&6; }
8169 if test "x$ac_ct_STRIP" = x; then
8172 case $cross_compiling:$ac_tool_warned in
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8176 ac_tool_warned=yes ;;
8181 STRIP="$ac_cv_prog_STRIP"
8184 test -z "$STRIP" && STRIP=:
8191 if test -n "$ac_tool_prefix"; then
8192 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8193 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195 $as_echo_n "checking for $ac_word... " >&6; }
8196 if ${ac_cv_prog_RANLIB+:} false; then :
8197 $as_echo_n "(cached) " >&6
8199 if test -n "$RANLIB"; then
8200 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8209 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 RANLIB=$ac_cv_prog_RANLIB
8220 if test -n "$RANLIB"; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8222 $as_echo "$RANLIB" >&6; }
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 $as_echo "no" >&6; }
8230 if test -z "$ac_cv_prog_RANLIB"; then
8231 ac_ct_RANLIB=$RANLIB
8232 # Extract the first word of "ranlib", so it can be a program name with args.
8233 set dummy ranlib; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8237 $as_echo_n "(cached) " >&6
8239 if test -n "$ac_ct_RANLIB"; then
8240 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8249 ac_cv_prog_ac_ct_RANLIB="ranlib"
8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8260 if test -n "$ac_ct_RANLIB"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8262 $as_echo "$ac_ct_RANLIB" >&6; }
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8268 if test "x$ac_ct_RANLIB" = x; then
8271 case $cross_compiling:$ac_tool_warned in
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8275 ac_tool_warned=yes ;;
8277 RANLIB=$ac_ct_RANLIB
8280 RANLIB="$ac_cv_prog_RANLIB"
8283 test -z "$RANLIB" && RANLIB=:
8290 # Determine commands to create old-style static archives.
8291 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8292 old_postinstall_cmds='chmod 644 $oldlib'
8293 old_postuninstall_cmds=
8295 if test -n "$RANLIB"; then
8298 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8301 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8304 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8309 lock_old_archive_extraction=yes ;;
8311 lock_old_archive_extraction=no ;;
8334 for ac_prog in gawk mawk nawk awk
8336 # Extract the first word of "$ac_prog", so it can be a program name with args.
8337 set dummy $ac_prog; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_prog_AWK+:} false; then :
8341 $as_echo_n "(cached) " >&6
8343 if test -n "$AWK"; then
8344 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8353 ac_cv_prog_AWK="$ac_prog"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 if test -n "$AWK"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8366 $as_echo "$AWK" >&6; }
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8373 test -n "$AWK" && break
8394 # If no C compiler was specified, use CC.
8397 # If no C compiler flags were specified, use CFLAGS.
8398 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8400 # Allow CC to be a program name with arguments.
8404 # Check for command to grab the raw symbol name followed by C symbol from nm.
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8406 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8407 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8408 $as_echo_n "(cached) " >&6
8411 # These are sane defaults that work on at least a few old systems.
8412 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8414 # Character class describing NM global symbol codes.
8415 symcode='[BCDEGRST]'
8417 # Regexp to match symbols that can be accessed directly from C.
8418 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8420 # Define system-specific variables.
8425 cygwin* | mingw* | pw32* | cegcc*)
8426 symcode='[ABCDGISTW]'
8429 if test "$host_cpu" = ia64; then
8430 symcode='[ABCDEGRST]'
8434 symcode='[BCDEGRST]'
8437 symcode='[BCDEGQRST]'
8448 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8456 # If we're using GNU nm, then use its standard symbol codes.
8457 case `$NM -V 2>&1` in
8458 *GNU* | *'with BFD'*)
8459 symcode='[ABCDGIRSTW]' ;;
8462 # Transform an extracted symbol line into a proper C declaration.
8463 # Some systems (esp. on ia64) link data and code symbols differently,
8464 # so use this general approach.
8465 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8467 # Transform an extracted symbol line into symbol name and symbol address
8468 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8469 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8471 # Handle CRLF in mingw tool chain
8475 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8479 # Try without a prefix underscore, then with it.
8480 for ac_symprfx in "" "_"; do
8482 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8483 symxfrm="\\1 $ac_symprfx\\2 \\2"
8485 # Write the raw and C identifiers.
8486 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8487 # Fake it for dumpbin and say T for any non-static function
8488 # and D for any global variable.
8489 # Also find C++ and __fastcall symbols from MSVC++,
8490 # which start with @ or ?.
8491 lt_cv_sys_global_symbol_pipe="$AWK '"\
8492 " {last_section=section; section=\$ 3};"\
8493 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8494 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8495 " \$ 0!~/External *\|/{next};"\
8496 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8497 " {if(hide[section]) next};"\
8498 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8499 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8500 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8501 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8502 " ' prfx=^$ac_symprfx"
8504 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8506 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8508 # Check to see that the pipe works correctly.
8512 cat > conftest.$ac_ext <<_LT_EOF
8517 void nm_test_func(void);
8518 void nm_test_func(void){}
8522 int main(){nm_test_var='a';nm_test_func();return(0);}
8525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8526 (eval $ac_compile) 2>&5
8528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8529 test $ac_status = 0; }; then
8530 # Now try to grab the symbols.
8532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8533 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8536 test $ac_status = 0; } && test -s "$nlist"; then
8537 # Try sorting and uniquifying the output.
8538 if sort "$nlist" | uniq > "$nlist"T; then
8539 mv -f "$nlist"T "$nlist"
8544 # Make sure that we snagged all the symbols we need.
8545 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8546 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8547 cat <<_LT_EOF > conftest.$ac_ext
8548 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8549 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8550 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8551 relocations are performed -- see ld's documentation on pseudo-relocs. */
8552 # define LT_DLSYM_CONST
8553 #elif defined(__osf__)
8554 /* This system does not cope well with relocations in const data. */
8555 # define LT_DLSYM_CONST
8557 # define LT_DLSYM_CONST const
8565 # Now generate the symbol file.
8566 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8568 cat <<_LT_EOF >> conftest.$ac_ext
8570 /* The mapping between symbol names and symbols. */
8571 LT_DLSYM_CONST struct {
8575 lt__PROGRAM__LTX_preloaded_symbols[] =
8577 { "@PROGRAM@", (void *) 0 },
8579 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8580 cat <<\_LT_EOF >> conftest.$ac_ext
8584 /* This works around a problem in FreeBSD linker */
8585 #ifdef FREEBSD_WORKAROUND
8586 static const void *lt_preloaded_setup() {
8587 return lt__PROGRAM__LTX_preloaded_symbols;
8595 # Now try linking the two files.
8596 mv conftest.$ac_objext conftstm.$ac_objext
8597 lt_globsym_save_LIBS=$LIBS
8598 lt_globsym_save_CFLAGS=$CFLAGS
8599 LIBS="conftstm.$ac_objext"
8600 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8602 (eval $ac_link) 2>&5
8604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8605 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8608 LIBS=$lt_globsym_save_LIBS
8609 CFLAGS=$lt_globsym_save_CFLAGS
8611 echo "cannot find nm_test_func in $nlist" >&5
8614 echo "cannot find nm_test_var in $nlist" >&5
8617 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8620 echo "$progname: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8623 rm -rf conftest* conftst*
8625 # Do not use the global_symbol_pipe unless it works.
8626 if test "$pipe_works" = yes; then
8629 lt_cv_sys_global_symbol_pipe=
8635 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8636 lt_cv_sys_global_symbol_to_cdecl=
8638 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8640 $as_echo "failed" >&6; }
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8643 $as_echo "ok" >&6; }
8646 # Response file support.
8647 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8648 nm_file_list_spec='@'
8649 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8650 nm_file_list_spec='@'
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8680 $as_echo_n "checking for sysroot... " >&6; }
8682 # Check whether --with-sysroot was given.
8683 if test "${with_sysroot+set}" = set; then :
8684 withval=$with_sysroot;
8691 case ${with_sysroot} in #(
8693 if test "$GCC" = yes; then
8694 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8698 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8704 $as_echo "${with_sysroot}" >&6; }
8705 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8710 $as_echo "${lt_sysroot:-no}" >&6; }
8716 # Check whether --enable-libtool-lock was given.
8717 if test "${enable_libtool_lock+set}" = set; then :
8718 enableval=$enable_libtool_lock;
8721 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8723 # Some flags need to be propagated to the compiler or linker for good
8727 # Find out which ABI we are using.
8728 echo 'int i;' > conftest.$ac_ext
8729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8730 (eval $ac_compile) 2>&5
8732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8733 test $ac_status = 0; }; then
8734 case `/usr/bin/file conftest.$ac_objext` in
8746 # Find out which ABI we are using.
8747 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8749 (eval $ac_compile) 2>&5
8751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8752 test $ac_status = 0; }; then
8753 if test "$lt_cv_prog_gnu_ld" = yes; then
8754 case `/usr/bin/file conftest.$ac_objext` in
8756 LD="${LD-ld} -melf32bsmip"
8759 LD="${LD-ld} -melf32bmipn32"
8762 LD="${LD-ld} -melf64bmip"
8766 case `/usr/bin/file conftest.$ac_objext` in
8782 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8783 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8784 # Find out which ABI we are using.
8785 echo 'int i;' > conftest.$ac_ext
8786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8787 (eval $ac_compile) 2>&5
8789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8790 test $ac_status = 0; }; then
8791 case `/usr/bin/file conftest.o` in
8794 x86_64-*kfreebsd*-gnu)
8795 LD="${LD-ld} -m elf_i386_fbsd"
8798 LD="${LD-ld} -m elf_i386"
8800 ppc64-*linux*|powerpc64-*linux*)
8801 LD="${LD-ld} -m elf32ppclinux"
8804 LD="${LD-ld} -m elf_s390"
8807 LD="${LD-ld} -m elf32_sparc"
8813 x86_64-*kfreebsd*-gnu)
8814 LD="${LD-ld} -m elf_x86_64_fbsd"
8817 LD="${LD-ld} -m elf_x86_64"
8819 ppc*-*linux*|powerpc*-*linux*)
8820 LD="${LD-ld} -m elf64ppc"
8822 s390*-*linux*|s390*-*tpf*)
8823 LD="${LD-ld} -m elf64_s390"
8826 LD="${LD-ld} -m elf64_sparc"
8836 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8837 SAVE_CFLAGS="$CFLAGS"
8838 CFLAGS="$CFLAGS -belf"
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8840 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8841 if ${lt_cv_cc_needs_belf+:} false; then :
8842 $as_echo_n "(cached) " >&6
8845 ac_cpp='$CPP $CPPFLAGS'
8846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8861 if ac_fn_c_try_link "$LINENO"; then :
8862 lt_cv_cc_needs_belf=yes
8864 lt_cv_cc_needs_belf=no
8866 rm -f core conftest.err conftest.$ac_objext \
8867 conftest$ac_exeext conftest.$ac_ext
8869 ac_cpp='$CPP $CPPFLAGS'
8870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8876 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8877 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8878 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8879 CFLAGS="$SAVE_CFLAGS"
8883 # Find out which ABI we are using.
8884 echo 'int i;' > conftest.$ac_ext
8885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8886 (eval $ac_compile) 2>&5
8888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8889 test $ac_status = 0; }; then
8890 case `/usr/bin/file conftest.o` in
8892 case $lt_cv_prog_gnu_ld in
8896 LD="${LD-ld} -m elf_x86_64"
8899 LD="${LD-ld} -m elf64_sparc"
8902 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8903 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8908 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8920 need_locks="$enable_libtool_lock"
8922 if test -n "$ac_tool_prefix"; then
8923 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8924 set dummy ${ac_tool_prefix}mt; ac_word=$2
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 $as_echo_n "checking for $ac_word... " >&6; }
8927 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8928 $as_echo_n "(cached) " >&6
8930 if test -n "$MANIFEST_TOOL"; then
8931 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937 test -z "$as_dir" && as_dir=.
8938 for ac_exec_ext in '' $ac_executable_extensions; do
8939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8940 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8950 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8951 if test -n "$MANIFEST_TOOL"; then
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8953 $as_echo "$MANIFEST_TOOL" >&6; }
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956 $as_echo "no" >&6; }
8961 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8962 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8963 # Extract the first word of "mt", so it can be a program name with args.
8964 set dummy mt; ac_word=$2
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8966 $as_echo_n "checking for $ac_word... " >&6; }
8967 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8968 $as_echo_n "(cached) " >&6
8970 if test -n "$ac_ct_MANIFEST_TOOL"; then
8971 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977 test -z "$as_dir" && as_dir=.
8978 for ac_exec_ext in '' $ac_executable_extensions; do
8979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8980 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8990 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8991 if test -n "$ac_ct_MANIFEST_TOOL"; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8993 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
8999 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9002 case $cross_compiling:$ac_tool_warned in
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9006 ac_tool_warned=yes ;;
9008 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9011 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9014 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9016 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9017 if ${lt_cv_path_mainfest_tool+:} false; then :
9018 $as_echo_n "(cached) " >&6
9020 lt_cv_path_mainfest_tool=no
9021 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9022 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9023 cat conftest.err >&5
9024 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9025 lt_cv_path_mainfest_tool=yes
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9030 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9031 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9041 rhapsody* | darwin*)
9042 if test -n "$ac_tool_prefix"; then
9043 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9044 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046 $as_echo_n "checking for $ac_word... " >&6; }
9047 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9048 $as_echo_n "(cached) " >&6
9050 if test -n "$DSYMUTIL"; then
9051 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9060 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9070 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9071 if test -n "$DSYMUTIL"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9073 $as_echo "$DSYMUTIL" >&6; }
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9081 if test -z "$ac_cv_prog_DSYMUTIL"; then
9082 ac_ct_DSYMUTIL=$DSYMUTIL
9083 # Extract the first word of "dsymutil", so it can be a program name with args.
9084 set dummy dsymutil; ac_word=$2
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086 $as_echo_n "checking for $ac_word... " >&6; }
9087 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9088 $as_echo_n "(cached) " >&6
9090 if test -n "$ac_ct_DSYMUTIL"; then
9091 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 test -z "$as_dir" && as_dir=.
9098 for ac_exec_ext in '' $ac_executable_extensions; do
9099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9100 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9110 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9111 if test -n "$ac_ct_DSYMUTIL"; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9113 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116 $as_echo "no" >&6; }
9119 if test "x$ac_ct_DSYMUTIL" = x; then
9122 case $cross_compiling:$ac_tool_warned in
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9126 ac_tool_warned=yes ;;
9128 DSYMUTIL=$ac_ct_DSYMUTIL
9131 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9134 if test -n "$ac_tool_prefix"; then
9135 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9136 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9138 $as_echo_n "checking for $ac_word... " >&6; }
9139 if ${ac_cv_prog_NMEDIT+:} false; then :
9140 $as_echo_n "(cached) " >&6
9142 if test -n "$NMEDIT"; then
9143 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9149 test -z "$as_dir" && as_dir=.
9150 for ac_exec_ext in '' $ac_executable_extensions; do
9151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9152 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9162 NMEDIT=$ac_cv_prog_NMEDIT
9163 if test -n "$NMEDIT"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9165 $as_echo "$NMEDIT" >&6; }
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9173 if test -z "$ac_cv_prog_NMEDIT"; then
9174 ac_ct_NMEDIT=$NMEDIT
9175 # Extract the first word of "nmedit", so it can be a program name with args.
9176 set dummy nmedit; ac_word=$2
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9178 $as_echo_n "checking for $ac_word... " >&6; }
9179 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9180 $as_echo_n "(cached) " >&6
9182 if test -n "$ac_ct_NMEDIT"; then
9183 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 test -z "$as_dir" && as_dir=.
9190 for ac_exec_ext in '' $ac_executable_extensions; do
9191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9192 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9202 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9203 if test -n "$ac_ct_NMEDIT"; then
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9205 $as_echo "$ac_ct_NMEDIT" >&6; }
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9208 $as_echo "no" >&6; }
9211 if test "x$ac_ct_NMEDIT" = x; then
9214 case $cross_compiling:$ac_tool_warned in
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9218 ac_tool_warned=yes ;;
9220 NMEDIT=$ac_ct_NMEDIT
9223 NMEDIT="$ac_cv_prog_NMEDIT"
9226 if test -n "$ac_tool_prefix"; then
9227 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9228 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9230 $as_echo_n "checking for $ac_word... " >&6; }
9231 if ${ac_cv_prog_LIPO+:} false; then :
9232 $as_echo_n "(cached) " >&6
9234 if test -n "$LIPO"; then
9235 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9241 test -z "$as_dir" && as_dir=.
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9244 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9254 LIPO=$ac_cv_prog_LIPO
9255 if test -n "$LIPO"; then
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9257 $as_echo "$LIPO" >&6; }
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260 $as_echo "no" >&6; }
9265 if test -z "$ac_cv_prog_LIPO"; then
9267 # Extract the first word of "lipo", so it can be a program name with args.
9268 set dummy lipo; ac_word=$2
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9270 $as_echo_n "checking for $ac_word... " >&6; }
9271 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9272 $as_echo_n "(cached) " >&6
9274 if test -n "$ac_ct_LIPO"; then
9275 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 test -z "$as_dir" && as_dir=.
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9284 ac_cv_prog_ac_ct_LIPO="lipo"
9285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9294 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9295 if test -n "$ac_ct_LIPO"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9297 $as_echo "$ac_ct_LIPO" >&6; }
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300 $as_echo "no" >&6; }
9303 if test "x$ac_ct_LIPO" = x; then
9306 case $cross_compiling:$ac_tool_warned in
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9310 ac_tool_warned=yes ;;
9315 LIPO="$ac_cv_prog_LIPO"
9318 if test -n "$ac_tool_prefix"; then
9319 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9320 set dummy ${ac_tool_prefix}otool; ac_word=$2
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322 $as_echo_n "checking for $ac_word... " >&6; }
9323 if ${ac_cv_prog_OTOOL+:} false; then :
9324 $as_echo_n "(cached) " >&6
9326 if test -n "$OTOOL"; then
9327 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9333 test -z "$as_dir" && as_dir=.
9334 for ac_exec_ext in '' $ac_executable_extensions; do
9335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9336 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9346 OTOOL=$ac_cv_prog_OTOOL
9347 if test -n "$OTOOL"; then
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9349 $as_echo "$OTOOL" >&6; }
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352 $as_echo "no" >&6; }
9357 if test -z "$ac_cv_prog_OTOOL"; then
9359 # Extract the first word of "otool", so it can be a program name with args.
9360 set dummy otool; ac_word=$2
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9362 $as_echo_n "checking for $ac_word... " >&6; }
9363 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9364 $as_echo_n "(cached) " >&6
9366 if test -n "$ac_ct_OTOOL"; then
9367 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 test -z "$as_dir" && as_dir=.
9374 for ac_exec_ext in '' $ac_executable_extensions; do
9375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9376 ac_cv_prog_ac_ct_OTOOL="otool"
9377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9386 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9387 if test -n "$ac_ct_OTOOL"; then
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9389 $as_echo "$ac_ct_OTOOL" >&6; }
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9392 $as_echo "no" >&6; }
9395 if test "x$ac_ct_OTOOL" = x; then
9398 case $cross_compiling:$ac_tool_warned in
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9402 ac_tool_warned=yes ;;
9407 OTOOL="$ac_cv_prog_OTOOL"
9410 if test -n "$ac_tool_prefix"; then
9411 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9412 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9414 $as_echo_n "checking for $ac_word... " >&6; }
9415 if ${ac_cv_prog_OTOOL64+:} false; then :
9416 $as_echo_n "(cached) " >&6
9418 if test -n "$OTOOL64"; then
9419 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425 test -z "$as_dir" && as_dir=.
9426 for ac_exec_ext in '' $ac_executable_extensions; do
9427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9428 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9438 OTOOL64=$ac_cv_prog_OTOOL64
9439 if test -n "$OTOOL64"; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9441 $as_echo "$OTOOL64" >&6; }
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9444 $as_echo "no" >&6; }
9449 if test -z "$ac_cv_prog_OTOOL64"; then
9450 ac_ct_OTOOL64=$OTOOL64
9451 # Extract the first word of "otool64", so it can be a program name with args.
9452 set dummy otool64; ac_word=$2
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9454 $as_echo_n "checking for $ac_word... " >&6; }
9455 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9456 $as_echo_n "(cached) " >&6
9458 if test -n "$ac_ct_OTOOL64"; then
9459 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465 test -z "$as_dir" && as_dir=.
9466 for ac_exec_ext in '' $ac_executable_extensions; do
9467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9468 ac_cv_prog_ac_ct_OTOOL64="otool64"
9469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9479 if test -n "$ac_ct_OTOOL64"; then
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9481 $as_echo "$ac_ct_OTOOL64" >&6; }
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 $as_echo "no" >&6; }
9487 if test "x$ac_ct_OTOOL64" = x; then
9490 case $cross_compiling:$ac_tool_warned in
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9494 ac_tool_warned=yes ;;
9496 OTOOL64=$ac_ct_OTOOL64
9499 OTOOL64="$ac_cv_prog_OTOOL64"
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9529 $as_echo_n "checking for -single_module linker flag... " >&6; }
9530 if ${lt_cv_apple_cc_single_mod+:} false; then :
9531 $as_echo_n "(cached) " >&6
9533 lt_cv_apple_cc_single_mod=no
9534 if test -z "${LT_MULTI_MODULE}"; then
9535 # By default we will add the -single_module flag. You can override
9536 # by either setting the environment variable LT_MULTI_MODULE
9537 # non-empty at configure time, or by adding -multi_module to the
9539 rm -rf libconftest.dylib*
9540 echo "int foo(void){return 1;}" > conftest.c
9541 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9542 -dynamiclib -Wl,-single_module conftest.c" >&5
9543 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9544 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9546 # If there is a non-empty error log, and "single_module"
9547 # appears in it, assume the flag caused a linker warning
9548 if test -s conftest.err && $GREP single_module conftest.err; then
9549 cat conftest.err >&5
9550 # Otherwise, if the output was created with a 0 exit code from
9551 # the compiler, it worked.
9552 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9553 lt_cv_apple_cc_single_mod=yes
9555 cat conftest.err >&5
9557 rm -rf libconftest.dylib*
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9562 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9565 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9566 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9567 $as_echo_n "(cached) " >&6
9569 lt_cv_ld_exported_symbols_list=no
9570 save_LDFLAGS=$LDFLAGS
9571 echo "_main" > conftest.sym
9572 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9584 if ac_fn_c_try_link "$LINENO"; then :
9585 lt_cv_ld_exported_symbols_list=yes
9587 lt_cv_ld_exported_symbols_list=no
9589 rm -f core conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9591 LDFLAGS="$save_LDFLAGS"
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9595 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9598 $as_echo_n "checking for -force_load linker flag... " >&6; }
9599 if ${lt_cv_ld_force_load+:} false; then :
9600 $as_echo_n "(cached) " >&6
9602 lt_cv_ld_force_load=no
9603 cat > conftest.c << _LT_EOF
9604 int forced_loaded() { return 2;}
9606 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9607 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9608 echo "$AR cru libconftest.a conftest.o" >&5
9609 $AR cru libconftest.a conftest.o 2>&5
9610 echo "$RANLIB libconftest.a" >&5
9611 $RANLIB libconftest.a 2>&5
9612 cat > conftest.c << _LT_EOF
9613 int main() { return 0;}
9615 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9616 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9618 if test -s conftest.err && $GREP force_load conftest.err; then
9619 cat conftest.err >&5
9620 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9621 lt_cv_ld_force_load=yes
9623 cat conftest.err >&5
9625 rm -f conftest.err libconftest.a conftest conftest.c
9626 rm -rf conftest.dSYM
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9630 $as_echo "$lt_cv_ld_force_load" >&6; }
9632 rhapsody* | darwin1.[012])
9633 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9635 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9636 darwin*) # darwin 5.x on
9637 # if running on 10.5 or later, the deployment target defaults
9638 # to the OS version, if on x86, and 10.4, the deployment
9639 # target defaults to 10.4. Don't you love it?
9640 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9641 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9642 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9644 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9646 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9650 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9651 _lt_dar_single_mod='$single_module'
9653 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9654 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9656 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9658 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9659 _lt_dsymutil='~$DSYMUTIL $lib || :'
9666 for ac_header in dlfcn.h
9668 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9670 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9671 cat >>confdefs.h <<_ACEOF
9672 #define HAVE_DLFCN_H 1
9695 # Check whether --enable-shared was given.
9696 if test "${enable_shared+set}" = set; then :
9697 enableval=$enable_shared; p=${PACKAGE-default}
9699 yes) enable_shared=yes ;;
9700 no) enable_shared=no ;;
9703 # Look at the argument we got. We use all the common list separators.
9704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9705 for pkg in $enableval; do
9707 if test "X$pkg" = "X$p"; then
9726 # Check whether --enable-static was given.
9727 if test "${enable_static+set}" = set; then :
9728 enableval=$enable_static; p=${PACKAGE-default}
9730 yes) enable_static=yes ;;
9731 no) enable_static=no ;;
9734 # Look at the argument we got. We use all the common list separators.
9735 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9736 for pkg in $enableval; do
9738 if test "X$pkg" = "X$p"; then
9758 # Check whether --with-pic was given.
9759 if test "${with_pic+set}" = set; then :
9760 withval=$with_pic; lt_p=${PACKAGE-default}
9762 yes|no) pic_mode=$withval ;;
9765 # Look at the argument we got. We use all the common list separators.
9766 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9767 for lt_pkg in $withval; do
9769 if test "X$lt_pkg" = "X$lt_p"; then
9781 test -z "$pic_mode" && pic_mode=default
9789 # Check whether --enable-fast-install was given.
9790 if test "${enable_fast_install+set}" = set; then :
9791 enableval=$enable_fast_install; p=${PACKAGE-default}
9793 yes) enable_fast_install=yes ;;
9794 no) enable_fast_install=no ;;
9796 enable_fast_install=no
9797 # Look at the argument we got. We use all the common list separators.
9798 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9799 for pkg in $enableval; do
9801 if test "X$pkg" = "X$p"; then
9802 enable_fast_install=yes
9809 enable_fast_install=yes
9822 # This can be used to rebuild libtool when needed
9823 LIBTOOL_DEPS="$ltmain"
9825 # Always use our own libtool.
9826 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9857 test -z "$LN_S" && LN_S="ln -s"
9872 if test -n "${ZSH_VERSION+set}" ; then
9873 setopt NO_GLOB_SUBST
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9877 $as_echo_n "checking for objdir... " >&6; }
9878 if ${lt_cv_objdir+:} false; then :
9879 $as_echo_n "(cached) " >&6
9881 rm -f .libs 2>/dev/null
9882 mkdir .libs 2>/dev/null
9883 if test -d .libs; then
9886 # MS-DOS does not allow filenames that begin with a dot.
9889 rmdir .libs 2>/dev/null
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9892 $as_echo "$lt_cv_objdir" >&6; }
9893 objdir=$lt_cv_objdir
9899 cat >>confdefs.h <<_ACEOF
9900 #define LT_OBJDIR "$lt_cv_objdir/"
9908 # AIX sometimes has problems with the GCC collect2 program. For some
9909 # reason, if we set the COLLECT_NAMES environment variable, the problems
9910 # vanish in a puff of smoke.
9911 if test "X${COLLECT_NAMES+set}" != Xset; then
9913 export COLLECT_NAMES
9920 can_build_shared=yes
9922 # All known linkers require a `.a' archive for static linking (except MSVC,
9923 # which needs '.lib').
9926 with_gnu_ld="$lt_cv_prog_gnu_ld"
9929 old_CFLAGS="$CFLAGS"
9931 # Set sane defaults for various variables
9932 test -z "$CC" && CC=cc
9933 test -z "$LTCC" && LTCC=$CC
9934 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9935 test -z "$LD" && LD=ld
9936 test -z "$ac_objext" && ac_objext=o
9938 for cc_temp in $compiler""; do
9940 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9941 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9946 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9949 # Only perform the check for file, if the check method requires it
9950 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9951 case $deplibs_check_method in
9953 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9955 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9956 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9957 $as_echo_n "(cached) " >&6
9961 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9964 lt_save_MAGIC_CMD="$MAGIC_CMD"
9965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9966 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9967 for ac_dir in $ac_dummy; do
9969 test -z "$ac_dir" && ac_dir=.
9970 if test -f $ac_dir/${ac_tool_prefix}file; then
9971 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9972 if test -n "$file_magic_test_file"; then
9973 case $deplibs_check_method in
9975 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9977 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9978 $EGREP "$file_magic_regex" > /dev/null; then
9983 *** Warning: the command libtool uses to detect shared libraries,
9984 *** $file_magic_cmd, produces output that libtool cannot recognize.
9985 *** The result is that libtool may fail to recognize shared libraries
9986 *** as such. This will affect the creation of libtool libraries that
9987 *** depend on shared libraries, but programs linked with such libtool
9988 *** libraries will work regardless of this problem. Nevertheless, you
9989 *** may want to report the problem to your system manager and/or to
9990 *** bug-libtool@gnu.org
10000 MAGIC_CMD="$lt_save_MAGIC_CMD"
10005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10006 if test -n "$MAGIC_CMD"; then
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10008 $as_echo "$MAGIC_CMD" >&6; }
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011 $as_echo "no" >&6; }
10018 if test -z "$lt_cv_path_MAGIC_CMD"; then
10019 if test -n "$ac_tool_prefix"; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10021 $as_echo_n "checking for file... " >&6; }
10022 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10023 $as_echo_n "(cached) " >&6
10027 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10030 lt_save_MAGIC_CMD="$MAGIC_CMD"
10031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10032 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10033 for ac_dir in $ac_dummy; do
10035 test -z "$ac_dir" && ac_dir=.
10036 if test -f $ac_dir/file; then
10037 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10038 if test -n "$file_magic_test_file"; then
10039 case $deplibs_check_method in
10041 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10044 $EGREP "$file_magic_regex" > /dev/null; then
10049 *** Warning: the command libtool uses to detect shared libraries,
10050 *** $file_magic_cmd, produces output that libtool cannot recognize.
10051 *** The result is that libtool may fail to recognize shared libraries
10052 *** as such. This will affect the creation of libtool libraries that
10053 *** depend on shared libraries, but programs linked with such libtool
10054 *** libraries will work regardless of this problem. Nevertheless, you
10055 *** may want to report the problem to your system manager and/or to
10056 *** bug-libtool@gnu.org
10066 MAGIC_CMD="$lt_save_MAGIC_CMD"
10071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10072 if test -n "$MAGIC_CMD"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10074 $as_echo "$MAGIC_CMD" >&6; }
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10090 # Use C for the default configuration in the libtool script
10094 ac_cpp='$CPP $CPPFLAGS'
10095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10100 # Source file extension for C test sources.
10103 # Object file extension for compiled C test sources.
10107 # Code to be used in simple compile tests
10108 lt_simple_compile_test_code="int some_variable = 0;"
10110 # Code to be used in simple link tests
10111 lt_simple_link_test_code='int main(){return(0);}'
10119 # If no C compiler was specified, use CC.
10122 # If no C compiler flags were specified, use CFLAGS.
10123 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10125 # Allow CC to be a program name with arguments.
10128 # Save the default compiler, since it gets overwritten when the other
10129 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10130 compiler_DEFAULT=$CC
10132 # save warnings/boilerplate of simple test code
10133 ac_outfile=conftest.$ac_objext
10134 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10135 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10136 _lt_compiler_boilerplate=`cat conftest.err`
10139 ac_outfile=conftest.$ac_objext
10140 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10141 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10142 _lt_linker_boilerplate=`cat conftest.err`
10146 if test -n "$compiler"; then
10148 lt_prog_compiler_no_builtin_flag=
10150 if test "$GCC" = yes; then
10151 case $cc_basename in
10153 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10155 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10159 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10160 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10161 $as_echo_n "(cached) " >&6
10163 lt_cv_prog_compiler_rtti_exceptions=no
10164 ac_outfile=conftest.$ac_objext
10165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10166 lt_compiler_flag="-fno-rtti -fno-exceptions"
10167 # Insert the option either (1) after the last *FLAGS variable, or
10168 # (2) before a word containing "conftest.", or (3) at the end.
10169 # Note that $ac_compile itself does not contain backslashes and begins
10170 # with a dollar sign (not a hyphen), so the echo should work correctly.
10171 # The option is referenced via a variable to avoid confusing sed.
10172 lt_compile=`echo "$ac_compile" | $SED \
10173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10175 -e 's:$: $lt_compiler_flag:'`
10176 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10177 (eval "$lt_compile" 2>conftest.err)
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 if (exit $ac_status) && test -s "$ac_outfile"; then
10182 # The compiler can only warn and ignore the option if not recognized
10183 # So say no if there are warnings other than the usual output.
10184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10187 lt_cv_prog_compiler_rtti_exceptions=yes
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10194 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10196 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10197 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10209 lt_prog_compiler_wl=
10210 lt_prog_compiler_pic=
10211 lt_prog_compiler_static=
10214 if test "$GCC" = yes; then
10215 lt_prog_compiler_wl='-Wl,'
10216 lt_prog_compiler_static='-static'
10220 # All AIX code is PIC.
10221 if test "$host_cpu" = ia64; then
10222 # AIX 5 now supports IA64 processor
10223 lt_prog_compiler_static='-Bstatic'
10230 # see comment about AmigaOS4 .so support
10231 lt_prog_compiler_pic='-fPIC'
10234 # FIXME: we need at least 68020 code to build shared libraries, but
10235 # adding the `-m68020' flag to GCC prevents building anything better,
10237 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10242 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10243 # PIC is the default for these OSes.
10246 mingw* | cygwin* | pw32* | os2* | cegcc*)
10247 # This hack is so that the source file can tell whether it is being
10248 # built for inclusion in a dll (and should export symbols for example).
10249 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10250 # (--disable-auto-import) libraries
10251 lt_prog_compiler_pic='-DDLL_EXPORT'
10254 darwin* | rhapsody*)
10255 # PIC is the default on this platform
10256 # Common symbols not allowed in MH_DYLIB files
10257 lt_prog_compiler_pic='-fno-common'
10261 # PIC is the default for Haiku.
10262 # The "-static" flag exists, but is broken.
10263 lt_prog_compiler_static=
10267 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10268 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10269 # sets the default TLS model and affects inlining.
10275 lt_prog_compiler_pic='-fPIC'
10281 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10282 # Instead, we relocate shared libraries at runtime.
10286 # Just because we use GCC doesn't mean we suddenly get shared libraries
10287 # on systems that don't support them.
10288 lt_prog_compiler_can_build_shared=no
10293 # QNX uses GNU C++, but need to define -shared option too, otherwise
10294 # it will coredump.
10295 lt_prog_compiler_pic='-fPIC -shared'
10299 if test -d /usr/nec; then
10300 lt_prog_compiler_pic=-Kconform_pic
10305 lt_prog_compiler_pic='-fPIC'
10309 case $cc_basename in
10310 nvcc*) # Cuda Compiler Driver 2.2
10311 lt_prog_compiler_wl='-Xlinker '
10312 if test -n "$lt_prog_compiler_pic"; then
10313 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10318 # PORTME Check for flag to pass linker flags through the system compiler.
10321 lt_prog_compiler_wl='-Wl,'
10322 if test "$host_cpu" = ia64; then
10323 # AIX 5 now supports IA64 processor
10324 lt_prog_compiler_static='-Bstatic'
10326 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10330 mingw* | cygwin* | pw32* | os2* | cegcc*)
10331 # This hack is so that the source file can tell whether it is being
10332 # built for inclusion in a dll (and should export symbols for example).
10333 lt_prog_compiler_pic='-DDLL_EXPORT'
10336 hpux9* | hpux10* | hpux11*)
10337 lt_prog_compiler_wl='-Wl,'
10338 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10339 # not for PA HP-UX.
10345 lt_prog_compiler_pic='+Z'
10348 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10349 lt_prog_compiler_static='${wl}-a ${wl}archive'
10352 irix5* | irix6* | nonstopux*)
10353 lt_prog_compiler_wl='-Wl,'
10354 # PIC (with -KPIC) is the default.
10355 lt_prog_compiler_static='-non_shared'
10358 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10359 case $cc_basename in
10360 # old Intel for x86_64 which still supported -KPIC.
10362 lt_prog_compiler_wl='-Wl,'
10363 lt_prog_compiler_pic='-KPIC'
10364 lt_prog_compiler_static='-static'
10366 # icc used to be incompatible with GCC.
10367 # ICC 10 doesn't accept -KPIC any more.
10369 lt_prog_compiler_wl='-Wl,'
10370 lt_prog_compiler_pic='-fPIC'
10371 lt_prog_compiler_static='-static'
10373 # Lahey Fortran 8.1.
10375 lt_prog_compiler_wl='-Wl,'
10376 lt_prog_compiler_pic='--shared'
10377 lt_prog_compiler_static='--static'
10380 # NAG Fortran compiler
10381 lt_prog_compiler_wl='-Wl,-Wl,,'
10382 lt_prog_compiler_pic='-PIC'
10383 lt_prog_compiler_static='-Bstatic'
10385 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10386 # Portland Group compilers (*not* the Pentium gcc compiler,
10387 # which looks to be a dead project)
10388 lt_prog_compiler_wl='-Wl,'
10389 lt_prog_compiler_pic='-fpic'
10390 lt_prog_compiler_static='-Bstatic'
10393 lt_prog_compiler_wl='-Wl,'
10394 # All Alpha code is PIC.
10395 lt_prog_compiler_static='-non_shared'
10397 xl* | bgxl* | bgf* | mpixl*)
10398 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10399 lt_prog_compiler_wl='-Wl,'
10400 lt_prog_compiler_pic='-qpic'
10401 lt_prog_compiler_static='-qstaticlink'
10404 case `$CC -V 2>&1 | sed 5q` in
10405 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10406 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10407 lt_prog_compiler_pic='-KPIC'
10408 lt_prog_compiler_static='-Bstatic'
10409 lt_prog_compiler_wl=''
10411 *Sun\ F* | *Sun*Fortran*)
10412 lt_prog_compiler_pic='-KPIC'
10413 lt_prog_compiler_static='-Bstatic'
10414 lt_prog_compiler_wl='-Qoption ld '
10418 lt_prog_compiler_pic='-KPIC'
10419 lt_prog_compiler_static='-Bstatic'
10420 lt_prog_compiler_wl='-Wl,'
10422 *Intel*\ [CF]*Compiler*)
10423 lt_prog_compiler_wl='-Wl,'
10424 lt_prog_compiler_pic='-fPIC'
10425 lt_prog_compiler_static='-static'
10428 lt_prog_compiler_wl='-Wl,'
10429 lt_prog_compiler_pic='-fpic'
10430 lt_prog_compiler_static='-Bstatic'
10438 lt_prog_compiler_pic='-KPIC'
10439 lt_prog_compiler_static='-Bstatic'
10443 # QNX uses GNU C++, but need to define -shared option too, otherwise
10444 # it will coredump.
10445 lt_prog_compiler_pic='-fPIC -shared'
10448 osf3* | osf4* | osf5*)
10449 lt_prog_compiler_wl='-Wl,'
10450 # All OSF/1 code is PIC.
10451 lt_prog_compiler_static='-non_shared'
10455 lt_prog_compiler_static='-non_shared'
10459 lt_prog_compiler_pic='-KPIC'
10460 lt_prog_compiler_static='-Bstatic'
10461 case $cc_basename in
10462 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10463 lt_prog_compiler_wl='-Qoption ld ';;
10465 lt_prog_compiler_wl='-Wl,';;
10470 lt_prog_compiler_wl='-Qoption ld '
10471 lt_prog_compiler_pic='-PIC'
10472 lt_prog_compiler_static='-Bstatic'
10475 sysv4 | sysv4.2uw2* | sysv4.3*)
10476 lt_prog_compiler_wl='-Wl,'
10477 lt_prog_compiler_pic='-KPIC'
10478 lt_prog_compiler_static='-Bstatic'
10482 if test -d /usr/nec ;then
10483 lt_prog_compiler_pic='-Kconform_pic'
10484 lt_prog_compiler_static='-Bstatic'
10488 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10489 lt_prog_compiler_wl='-Wl,'
10490 lt_prog_compiler_pic='-KPIC'
10491 lt_prog_compiler_static='-Bstatic'
10495 lt_prog_compiler_wl='-Wl,'
10496 lt_prog_compiler_can_build_shared=no
10500 lt_prog_compiler_pic='-pic'
10501 lt_prog_compiler_static='-Bstatic'
10505 lt_prog_compiler_can_build_shared=no
10511 # For platforms which do not support PIC, -DPIC is meaningless:
10513 lt_prog_compiler_pic=
10516 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10521 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10522 if ${lt_cv_prog_compiler_pic+:} false; then :
10523 $as_echo_n "(cached) " >&6
10525 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10528 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10529 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10532 # Check to make sure the PIC flag actually works.
10534 if test -n "$lt_prog_compiler_pic"; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10536 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10537 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10538 $as_echo_n "(cached) " >&6
10540 lt_cv_prog_compiler_pic_works=no
10541 ac_outfile=conftest.$ac_objext
10542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10543 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10544 # Insert the option either (1) after the last *FLAGS variable, or
10545 # (2) before a word containing "conftest.", or (3) at the end.
10546 # Note that $ac_compile itself does not contain backslashes and begins
10547 # with a dollar sign (not a hyphen), so the echo should work correctly.
10548 # The option is referenced via a variable to avoid confusing sed.
10549 lt_compile=`echo "$ac_compile" | $SED \
10550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10552 -e 's:$: $lt_compiler_flag:'`
10553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10554 (eval "$lt_compile" 2>conftest.err)
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 if (exit $ac_status) && test -s "$ac_outfile"; then
10559 # The compiler can only warn and ignore the option if not recognized
10560 # So say no if there are warnings other than the usual output.
10561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10564 lt_cv_prog_compiler_pic_works=yes
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10571 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10573 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10574 case $lt_prog_compiler_pic in
10576 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10579 lt_prog_compiler_pic=
10580 lt_prog_compiler_can_build_shared=no
10596 # Check to make sure the static flag actually works.
10598 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10600 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10601 if ${lt_cv_prog_compiler_static_works+:} false; then :
10602 $as_echo_n "(cached) " >&6
10604 lt_cv_prog_compiler_static_works=no
10605 save_LDFLAGS="$LDFLAGS"
10606 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10607 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10609 # The linker can only warn and ignore the option if not recognized
10610 # So say no if there are warnings
10611 if test -s conftest.err; then
10612 # Append any errors to the config.log.
10613 cat conftest.err 1>&5
10614 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10616 if diff conftest.exp conftest.er2 >/dev/null; then
10617 lt_cv_prog_compiler_static_works=yes
10620 lt_cv_prog_compiler_static_works=yes
10624 LDFLAGS="$save_LDFLAGS"
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10628 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10630 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10633 lt_prog_compiler_static=
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10643 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10644 if ${lt_cv_prog_compiler_c_o+:} false; then :
10645 $as_echo_n "(cached) " >&6
10647 lt_cv_prog_compiler_c_o=no
10648 $RM -r conftest 2>/dev/null
10652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10654 lt_compiler_flag="-o out/conftest2.$ac_objext"
10655 # Insert the option either (1) after the last *FLAGS variable, or
10656 # (2) before a word containing "conftest.", or (3) at the end.
10657 # Note that $ac_compile itself does not contain backslashes and begins
10658 # with a dollar sign (not a hyphen), so the echo should work correctly.
10659 lt_compile=`echo "$ac_compile" | $SED \
10660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10662 -e 's:$: $lt_compiler_flag:'`
10663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10664 (eval "$lt_compile" 2>out/conftest.err)
10666 cat out/conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10670 # The compiler can only warn and ignore the option if not recognized
10671 # So say no if there are warnings
10672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10675 lt_cv_prog_compiler_c_o=yes
10680 # SGI C++ compiler will create directory out/ii_files/ for
10681 # template instantiation
10682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10683 $RM out/* && rmdir out
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10690 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10698 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10699 if ${lt_cv_prog_compiler_c_o+:} false; then :
10700 $as_echo_n "(cached) " >&6
10702 lt_cv_prog_compiler_c_o=no
10703 $RM -r conftest 2>/dev/null
10707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10709 lt_compiler_flag="-o out/conftest2.$ac_objext"
10710 # Insert the option either (1) after the last *FLAGS variable, or
10711 # (2) before a word containing "conftest.", or (3) at the end.
10712 # Note that $ac_compile itself does not contain backslashes and begins
10713 # with a dollar sign (not a hyphen), so the echo should work correctly.
10714 lt_compile=`echo "$ac_compile" | $SED \
10715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10717 -e 's:$: $lt_compiler_flag:'`
10718 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10719 (eval "$lt_compile" 2>out/conftest.err)
10721 cat out/conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10725 # The compiler can only warn and ignore the option if not recognized
10726 # So say no if there are warnings
10727 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10730 lt_cv_prog_compiler_c_o=yes
10735 # SGI C++ compiler will create directory out/ii_files/ for
10736 # template instantiation
10737 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10738 $RM out/* && rmdir out
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10745 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10750 hard_links="nottested"
10751 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10752 # do not overwrite the value of need_locks provided by the user
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10754 $as_echo_n "checking if we can lock with hard links... " >&6; }
10757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10759 ln conftest.a conftest.b 2>&5 || hard_links=no
10760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10762 $as_echo "$hard_links" >&6; }
10763 if test "$hard_links" = no; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10765 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10778 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10781 allow_undefined_flag=
10782 always_export_symbols=no
10784 archive_expsym_cmds=
10785 compiler_needs_object=no
10786 enable_shared_with_static_runtimes=no
10787 export_dynamic_flag_spec=
10788 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10789 hardcode_automatic=no
10791 hardcode_direct_absolute=no
10792 hardcode_libdir_flag_spec=
10793 hardcode_libdir_separator=
10794 hardcode_minus_L=no
10795 hardcode_shlibpath_var=unsupported
10797 link_all_deplibs=unknown
10799 module_expsym_cmds=
10800 old_archive_from_new_cmds=
10801 old_archive_from_expsyms_cmds=
10802 thread_safe_flag_spec=
10803 whole_archive_flag_spec=
10804 # include_expsyms should be a list of space-separated symbols to be *always*
10805 # included in the symbol list
10807 # exclude_expsyms can be an extended regexp of symbols to exclude
10808 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10809 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10810 # as well as any symbol that contains `d'.
10811 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10812 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10813 # platforms (ab)use it in PIC code, but their linkers get confused if
10814 # the symbol is explicitly referenced. Since portable code cannot
10815 # rely on this symbol name, it's probably fine to never include it in
10816 # preloaded symbol tables.
10817 # Exclude shared library initialization/finalization symbols.
10818 extract_expsyms_cmds=
10821 cygwin* | mingw* | pw32* | cegcc*)
10822 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10823 # When not using gcc, we currently assume that we are using
10824 # Microsoft Visual C++.
10825 if test "$GCC" != yes; then
10830 # we just hope/assume this is gcc and not c89 (= MSVC++)
10840 # On some targets, GNU ld is compatible enough with the native linker
10841 # that we're better off using the native interface for both.
10842 lt_use_gnu_ld_interface=no
10843 if test "$with_gnu_ld" = yes; then
10846 # The AIX port of GNU ld has always aspired to compatibility
10847 # with the native linker. However, as the warning in the GNU ld
10848 # block says, versions before 2.19.5* couldn't really create working
10849 # shared libraries, regardless of the interface used.
10850 case `$LD -v 2>&1` in
10851 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10852 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10853 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10855 lt_use_gnu_ld_interface=yes
10860 lt_use_gnu_ld_interface=yes
10865 if test "$lt_use_gnu_ld_interface" = yes; then
10866 # If archive_cmds runs LD, not CC, wlarc should be empty
10869 # Set some defaults for GNU ld with shared library support. These
10870 # are reset later if shared libraries are not supported. Putting them
10871 # here allows them to be overridden if necessary.
10872 runpath_var=LD_RUN_PATH
10873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10874 export_dynamic_flag_spec='${wl}--export-dynamic'
10875 # ancient GNU ld didn't support --whole-archive et. al.
10876 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10877 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10879 whole_archive_flag_spec=
10881 supports_anon_versioning=no
10882 case `$LD -v 2>&1` in
10883 *GNU\ gold*) supports_anon_versioning=yes ;;
10884 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10885 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10886 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10887 *\ 2.11.*) ;; # other 2.11 versions
10888 *) supports_anon_versioning=yes ;;
10891 # See if GNU ld supports shared libraries.
10894 # On AIX/PPC, the GNU linker is very broken
10895 if test "$host_cpu" != ia64; then
10899 *** Warning: the GNU linker, at least up to release 2.19, is reported
10900 *** to be unable to reliably create shared libraries on AIX.
10901 *** Therefore, libtool is disabling shared libraries support. If you
10902 *** really care for shared libraries, you may want to install binutils
10903 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10904 *** You will then need to restart the configuration process.
10913 # see comment about AmigaOS4 .so support
10914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10915 archive_expsym_cmds=''
10918 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)'
10919 hardcode_libdir_flag_spec='-L$libdir'
10920 hardcode_minus_L=yes
10926 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10927 allow_undefined_flag=unsupported
10928 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10929 # support --undefined. This deserves some investigation. FIXME
10930 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10936 cygwin* | mingw* | pw32* | cegcc*)
10937 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10938 # as there is no search path for DLLs.
10939 hardcode_libdir_flag_spec='-L$libdir'
10940 export_dynamic_flag_spec='${wl}--export-all-symbols'
10941 allow_undefined_flag=unsupported
10942 always_export_symbols=no
10943 enable_shared_with_static_runtimes=yes
10944 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'
10945 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10947 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10949 # If the export-symbols file already is a .def file (1st line
10950 # is EXPORTS), use it as is; otherwise, prepend...
10951 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10952 cp $export_symbols $output_objdir/$soname.def;
10954 echo EXPORTS > $output_objdir/$soname.def;
10955 cat $export_symbols >> $output_objdir/$soname.def;
10957 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10965 link_all_deplibs=yes
10970 hardcode_shlibpath_var=no
10971 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10972 export_dynamic_flag_spec='${wl}-E'
10973 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10974 # Instead, shared libraries are loaded at an image base (0x10000000 by
10975 # default) and relocated if they conflict, which is a slow very memory
10976 # consuming and fragmenting process. To avoid this, we pick a random,
10977 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10978 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10979 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10980 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'
10983 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10985 if test "$host_os" = linux-dietlibc; then
10986 case $cc_basename in
10987 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10990 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10991 && test "$tmp_diet" = no
10993 tmp_addflag=' $pic_flag'
10994 tmp_sharedflag='-shared'
10995 case $cc_basename,$host_cpu in
10996 pgcc*) # Portland Group C compiler
10997 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'
10998 tmp_addflag=' $pic_flag'
11000 pgf77* | pgf90* | pgf95* | pgfortran*)
11001 # Portland Group f77 and f90 compilers
11002 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'
11003 tmp_addflag=' $pic_flag -Mnomain' ;;
11004 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11005 tmp_addflag=' -i_dynamic' ;;
11006 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11007 tmp_addflag=' -i_dynamic -nofor_main' ;;
11008 ifc* | ifort*) # Intel Fortran compiler
11009 tmp_addflag=' -nofor_main' ;;
11010 lf95*) # Lahey Fortran 8.1
11011 whole_archive_flag_spec=
11012 tmp_sharedflag='--shared' ;;
11013 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11014 tmp_sharedflag='-qmkshrobj'
11016 nvcc*) # Cuda Compiler Driver 2.2
11017 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'
11018 compiler_needs_object=yes
11021 case `$CC -V 2>&1 | sed 5q` in
11022 *Sun\ C*) # Sun C 5.9
11023 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'
11024 compiler_needs_object=yes
11025 tmp_sharedflag='-G' ;;
11026 *Sun\ F*) # Sun Fortran 8.3
11027 tmp_sharedflag='-G' ;;
11029 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11031 if test "x$supports_anon_versioning" = xyes; then
11032 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11034 echo "local: *; };" >> $output_objdir/$libname.ver~
11035 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11038 case $cc_basename in
11039 xlf* | bgf* | bgxlf* | mpixlf*)
11040 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11041 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11043 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11044 if test "x$supports_anon_versioning" = xyes; then
11045 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11046 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11047 echo "local: *; };" >> $output_objdir/$libname.ver~
11048 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11058 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11059 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11062 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11063 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11068 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11072 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11073 *** create shared libraries on Solaris systems. Therefore, libtool
11074 *** is disabling shared libraries support. We urge you to upgrade GNU
11075 *** binutils to release 2.9.1 or newer. Another option is to modify
11076 *** your PATH or compiler configuration so that the native linker is
11077 *** used, and then restart.
11080 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11081 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11082 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11089 case `$LD -v 2>&1` in
11090 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11094 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11095 *** reliably create shared libraries on SCO systems. Therefore, libtool
11096 *** is disabling shared libraries support. We urge you to upgrade GNU
11097 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11098 *** your PATH or compiler configuration so that the native linker is
11099 *** used, and then restart.
11104 # For security reasons, it is highly recommended that you always
11105 # use absolute paths for naming shared libraries, and exclude the
11106 # DT_RUNPATH tag from executables and libraries. But doing so
11107 # requires that you compile everything twice, which is a pain.
11108 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11111 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11120 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11122 hardcode_direct=yes
11123 hardcode_shlibpath_var=no
11127 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11128 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11129 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11136 if test "$ld_shlibs" = no; then
11138 hardcode_libdir_flag_spec=
11139 export_dynamic_flag_spec=
11140 whole_archive_flag_spec=
11143 # PORTME fill in a description of your system's linker (not GNU ld)
11146 allow_undefined_flag=unsupported
11147 always_export_symbols=yes
11148 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'
11149 # Note: this linker hardcodes the directories in LIBPATH if there
11150 # are no directories specified by -L.
11151 hardcode_minus_L=yes
11152 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11153 # Neither direct hardcoding nor static linking is supported with a
11155 hardcode_direct=unsupported
11160 if test "$host_cpu" = ia64; then
11161 # On IA64, the linker does run time linking by default, so we don't
11162 # have to do anything special.
11163 aix_use_runtimelinking=no
11164 exp_sym_flag='-Bexport'
11167 # If we're using GNU nm, then we don't want the "-C" option.
11168 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11169 # Also, AIX nm treats weak defined symbols like other global
11170 # defined symbols, whereas GNU nm marks them as "W".
11171 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11172 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11174 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11176 aix_use_runtimelinking=no
11178 # Test if we are trying to use run time linking or normal
11179 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11180 # need to do runtime linking.
11181 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11182 for ld_flag in $LDFLAGS; do
11183 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11184 aix_use_runtimelinking=yes
11191 exp_sym_flag='-bexport'
11192 no_entry_flag='-bnoentry'
11195 # When large executables or shared objects are built, AIX ld can
11196 # have problems creating the table of contents. If linking a library
11197 # or program results in "error TOC overflow" add -mminimal-toc to
11198 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11199 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11202 hardcode_direct=yes
11203 hardcode_direct_absolute=yes
11204 hardcode_libdir_separator=':'
11205 link_all_deplibs=yes
11206 file_list_spec='${wl}-f,'
11208 if test "$GCC" = yes; then
11209 case $host_os in aix4.[012]|aix4.[012].*)
11210 # We only want to do this on AIX 4.2 and lower, the check
11211 # below for broken collect2 doesn't work under 4.3+
11212 collect2name=`${CC} -print-prog-name=collect2`
11213 if test -f "$collect2name" &&
11214 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11216 # We have reworked collect2
11219 # We have old collect2
11220 hardcode_direct=unsupported
11221 # It fails to find uninstalled libraries when the uninstalled
11222 # path is not listed in the libpath. Setting hardcode_minus_L
11223 # to unsupported forces relinking
11224 hardcode_minus_L=yes
11225 hardcode_libdir_flag_spec='-L$libdir'
11226 hardcode_libdir_separator=
11230 shared_flag='-shared'
11231 if test "$aix_use_runtimelinking" = yes; then
11232 shared_flag="$shared_flag "'${wl}-G'
11236 if test "$host_cpu" = ia64; then
11237 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11238 # chokes on -Wl,-G. The following line is correct:
11241 if test "$aix_use_runtimelinking" = yes; then
11242 shared_flag='${wl}-G'
11244 shared_flag='${wl}-bM:SRE'
11249 export_dynamic_flag_spec='${wl}-bexpall'
11250 # It seems that -bexpall does not export symbols beginning with
11251 # underscore (_), so it is better to generate a list of symbols to export.
11252 always_export_symbols=yes
11253 if test "$aix_use_runtimelinking" = yes; then
11254 # Warning - without using the other runtime loading flags (-brtl),
11255 # -berok will link without error, but may produce a broken library.
11256 allow_undefined_flag='-berok'
11257 # Determine the default libpath from the value encoded in an
11258 # empty executable.
11259 if test "${lt_cv_aix_libpath+set}" = set; then
11260 aix_libpath=$lt_cv_aix_libpath
11262 if ${lt_cv_aix_libpath_+:} false; then :
11263 $as_echo_n "(cached) " >&6
11265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h. */
11276 if ac_fn_c_try_link "$LINENO"; then :
11278 lt_aix_libpath_sed='
11279 /Import File Strings/,/^$/ {
11281 s/^0 *\([^ ]*\) *$/\1/
11285 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11286 # Check for a 64-bit object if we didn't find anything.
11287 if test -z "$lt_cv_aix_libpath_"; then
11288 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11291 rm -f core conftest.err conftest.$ac_objext \
11292 conftest$ac_exeext conftest.$ac_ext
11293 if test -z "$lt_cv_aix_libpath_"; then
11294 lt_cv_aix_libpath_="/usr/lib:/lib"
11299 aix_libpath=$lt_cv_aix_libpath_
11302 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11303 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11305 if test "$host_cpu" = ia64; then
11306 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11307 allow_undefined_flag="-z nodefs"
11308 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"
11310 # Determine the default libpath from the value encoded in an
11311 # empty executable.
11312 if test "${lt_cv_aix_libpath+set}" = set; then
11313 aix_libpath=$lt_cv_aix_libpath
11315 if ${lt_cv_aix_libpath_+:} false; then :
11316 $as_echo_n "(cached) " >&6
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11329 if ac_fn_c_try_link "$LINENO"; then :
11331 lt_aix_libpath_sed='
11332 /Import File Strings/,/^$/ {
11334 s/^0 *\([^ ]*\) *$/\1/
11338 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11339 # Check for a 64-bit object if we didn't find anything.
11340 if test -z "$lt_cv_aix_libpath_"; then
11341 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11344 rm -f core conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346 if test -z "$lt_cv_aix_libpath_"; then
11347 lt_cv_aix_libpath_="/usr/lib:/lib"
11352 aix_libpath=$lt_cv_aix_libpath_
11355 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11356 # Warning - without using the other run time loading flags,
11357 # -berok will link without error, but may produce a broken library.
11358 no_undefined_flag=' ${wl}-bernotok'
11359 allow_undefined_flag=' ${wl}-berok'
11360 if test "$with_gnu_ld" = yes; then
11361 # We only use this code for GNU lds that support --whole-archive.
11362 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11364 # Exported symbols can be pulled into shared objects from archives
11365 whole_archive_flag_spec='$convenience'
11367 archive_cmds_need_lc=yes
11368 # This is similar to how AIX traditionally builds its shared libraries.
11369 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11377 # see comment about AmigaOS4 .so support
11378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11379 archive_expsym_cmds=''
11382 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)'
11383 hardcode_libdir_flag_spec='-L$libdir'
11384 hardcode_minus_L=yes
11390 export_dynamic_flag_spec=-rdynamic
11393 cygwin* | mingw* | pw32* | cegcc*)
11394 # When not using gcc, we currently assume that we are using
11395 # Microsoft Visual C++.
11396 # hardcode_libdir_flag_spec is actually meaningless, as there is
11397 # no search path for DLLs.
11398 case $cc_basename in
11401 hardcode_libdir_flag_spec=' '
11402 allow_undefined_flag=unsupported
11403 always_export_symbols=yes
11405 # Tell ltmain to make .lib files, not .a files.
11407 # Tell ltmain to make .dll files, not .so files.
11409 # FIXME: Setting linknames here is a bad hack.
11410 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11411 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11412 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11414 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11416 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11418 # The linker will not automatically build a static lib if we build a DLL.
11419 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11420 enable_shared_with_static_runtimes=yes
11421 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11422 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11424 old_postinstall_cmds='chmod 644 $oldlib'
11425 postlink_cmds='lt_outputfile="@OUTPUT@"~
11426 lt_tool_outputfile="@TOOL_OUTPUT@"~
11427 case $lt_outputfile in
11430 lt_outputfile="$lt_outputfile.exe"
11431 lt_tool_outputfile="$lt_tool_outputfile.exe"
11434 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11435 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11436 $RM "$lt_outputfile.manifest";
11440 # Assume MSVC wrapper
11441 hardcode_libdir_flag_spec=' '
11442 allow_undefined_flag=unsupported
11443 # Tell ltmain to make .lib files, not .a files.
11445 # Tell ltmain to make .dll files, not .so files.
11447 # FIXME: Setting linknames here is a bad hack.
11448 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11449 # The linker will automatically build a .lib file if we build a DLL.
11450 old_archive_from_new_cmds='true'
11451 # FIXME: Should let the user specify the lib program.
11452 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11453 enable_shared_with_static_runtimes=yes
11458 darwin* | rhapsody*)
11461 archive_cmds_need_lc=no
11463 hardcode_automatic=yes
11464 hardcode_shlibpath_var=unsupported
11465 if test "$lt_cv_ld_force_load" = "yes"; then
11466 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\"`'
11469 whole_archive_flag_spec=''
11471 link_all_deplibs=yes
11472 allow_undefined_flag="$_lt_dar_allow_undefined"
11473 case $cc_basename in
11474 ifort*) _lt_dar_can_shared=yes ;;
11475 *) _lt_dar_can_shared=$GCC ;;
11477 if test "$_lt_dar_can_shared" = "yes"; then
11478 output_verbose_link_cmd=func_echo_all
11479 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11480 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11481 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}"
11482 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}"
11491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11492 hardcode_libdir_flag_spec='-L$libdir'
11493 hardcode_shlibpath_var=no
11496 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11497 # support. Future versions do this automatically, but an explicit c++rt0.o
11498 # does not break anything, and helps significantly (at the cost of a little
11501 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11502 hardcode_libdir_flag_spec='-R$libdir'
11503 hardcode_direct=yes
11504 hardcode_shlibpath_var=no
11507 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11510 hardcode_direct=yes
11511 hardcode_minus_L=yes
11512 hardcode_shlibpath_var=no
11515 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11516 freebsd* | dragonfly*)
11517 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11518 hardcode_libdir_flag_spec='-R$libdir'
11519 hardcode_direct=yes
11520 hardcode_shlibpath_var=no
11524 if test "$GCC" = yes; then
11525 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11527 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11529 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11530 hardcode_libdir_separator=:
11531 hardcode_direct=yes
11533 # hardcode_minus_L: Not really in the search PATH,
11534 # but as the default location of the library.
11535 hardcode_minus_L=yes
11536 export_dynamic_flag_spec='${wl}-E'
11540 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11541 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11543 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11545 if test "$with_gnu_ld" = no; then
11546 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11547 hardcode_libdir_separator=:
11548 hardcode_direct=yes
11549 hardcode_direct_absolute=yes
11550 export_dynamic_flag_spec='${wl}-E'
11551 # hardcode_minus_L: Not really in the search PATH,
11552 # but as the default location of the library.
11553 hardcode_minus_L=yes
11558 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11561 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11564 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11567 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11573 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11576 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11580 # Older versions of the 11.00 compiler do not understand -b yet
11581 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11583 $as_echo_n "checking if $CC understands -b... " >&6; }
11584 if ${lt_cv_prog_compiler__b+:} false; then :
11585 $as_echo_n "(cached) " >&6
11587 lt_cv_prog_compiler__b=no
11588 save_LDFLAGS="$LDFLAGS"
11589 LDFLAGS="$LDFLAGS -b"
11590 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11591 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11592 # The linker can only warn and ignore the option if not recognized
11593 # So say no if there are warnings
11594 if test -s conftest.err; then
11595 # Append any errors to the config.log.
11596 cat conftest.err 1>&5
11597 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11599 if diff conftest.exp conftest.er2 >/dev/null; then
11600 lt_cv_prog_compiler__b=yes
11603 lt_cv_prog_compiler__b=yes
11607 LDFLAGS="$save_LDFLAGS"
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11611 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11613 if test x"$lt_cv_prog_compiler__b" = xyes; then
11614 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11616 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11622 if test "$with_gnu_ld" = no; then
11623 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11624 hardcode_libdir_separator=:
11629 hardcode_shlibpath_var=no
11632 hardcode_direct=yes
11633 hardcode_direct_absolute=yes
11634 export_dynamic_flag_spec='${wl}-E'
11636 # hardcode_minus_L: Not really in the search PATH,
11637 # but as the default location of the library.
11638 hardcode_minus_L=yes
11644 irix5* | irix6* | nonstopux*)
11645 if test "$GCC" = yes; then
11646 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'
11647 # Try to use the -exported_symbol ld option, if it does not
11648 # work, assume that -exports_file does not work either and
11649 # implicitly export all symbols.
11650 # This should be the same for all languages, so no per-tag cache variable.
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11652 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11653 if ${lt_cv_irix_exported_symbol+:} false; then :
11654 $as_echo_n "(cached) " >&6
11656 save_LDFLAGS="$LDFLAGS"
11657 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11660 int foo (void) { return 0; }
11662 if ac_fn_c_try_link "$LINENO"; then :
11663 lt_cv_irix_exported_symbol=yes
11665 lt_cv_irix_exported_symbol=no
11667 rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LDFLAGS="$save_LDFLAGS"
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11672 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11673 if test "$lt_cv_irix_exported_symbol" = yes; then
11674 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'
11677 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'
11678 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'
11680 archive_cmds_need_lc='no'
11681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11682 hardcode_libdir_separator=:
11684 link_all_deplibs=yes
11688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11691 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11693 hardcode_libdir_flag_spec='-R$libdir'
11694 hardcode_direct=yes
11695 hardcode_shlibpath_var=no
11699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11700 hardcode_direct=yes
11701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11702 hardcode_libdir_separator=:
11703 hardcode_shlibpath_var=no
11710 if test -f /usr/libexec/ld.so; then
11711 hardcode_direct=yes
11712 hardcode_shlibpath_var=no
11713 hardcode_direct_absolute=yes
11714 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11715 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11716 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11717 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11718 export_dynamic_flag_spec='${wl}-E'
11721 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11723 hardcode_libdir_flag_spec='-R$libdir'
11726 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11727 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11737 hardcode_libdir_flag_spec='-L$libdir'
11738 hardcode_minus_L=yes
11739 allow_undefined_flag=unsupported
11740 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11741 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11745 if test "$GCC" = yes; then
11746 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11747 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'
11749 allow_undefined_flag=' -expect_unresolved \*'
11750 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'
11752 archive_cmds_need_lc='no'
11753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11754 hardcode_libdir_separator=:
11757 osf4* | osf5*) # as osf3* with the addition of -msym flag
11758 if test "$GCC" = yes; then
11759 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11760 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'
11761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11763 allow_undefined_flag=' -expect_unresolved \*'
11764 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'
11765 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~
11766 $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'
11768 # Both c and cxx compiler support -rpath directly
11769 hardcode_libdir_flag_spec='-rpath $libdir'
11771 archive_cmds_need_lc='no'
11772 hardcode_libdir_separator=:
11776 no_undefined_flag=' -z defs'
11777 if test "$GCC" = yes; then
11779 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11780 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11781 $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'
11783 case `$CC -V 2>&1` in
11786 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11787 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11788 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11792 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11793 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11794 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11798 hardcode_libdir_flag_spec='-R$libdir'
11799 hardcode_shlibpath_var=no
11801 solaris2.[0-5] | solaris2.[0-5].*) ;;
11803 # The compiler driver will combine and reorder linker options,
11804 # but understands `-z linker_flag'. GCC discards it without `$wl',
11805 # but is careful enough not to reorder.
11806 # Supported since Solaris 2.6 (maybe 2.5.1?)
11807 if test "$GCC" = yes; then
11808 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11810 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11814 link_all_deplibs=yes
11818 if test "x$host_vendor" = xsequent; then
11819 # Use $CC to link under sequent, because it throws in some extra .o
11820 # files that make .init and .fini sections work.
11821 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11823 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11825 hardcode_libdir_flag_spec='-L$libdir'
11826 hardcode_direct=yes
11827 hardcode_minus_L=yes
11828 hardcode_shlibpath_var=no
11832 case $host_vendor in
11834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11835 hardcode_direct=yes # is this really true???
11838 ## LD is ld it makes a PLAMLIB
11839 ## CC just makes a GrossModule.
11840 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11841 reload_cmds='$CC -r -o $output$reload_objs'
11845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11846 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11849 runpath_var='LD_RUN_PATH'
11850 hardcode_shlibpath_var=no
11854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11855 hardcode_shlibpath_var=no
11856 export_dynamic_flag_spec='-Bexport'
11860 if test -d /usr/nec; then
11861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11862 hardcode_shlibpath_var=no
11863 runpath_var=LD_RUN_PATH
11864 hardcode_runpath_var=yes
11869 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11870 no_undefined_flag='${wl}-z,text'
11871 archive_cmds_need_lc=no
11872 hardcode_shlibpath_var=no
11873 runpath_var='LD_RUN_PATH'
11875 if test "$GCC" = yes; then
11876 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11877 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11879 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11880 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11884 sysv5* | sco3.2v5* | sco5v6*)
11885 # Note: We can NOT use -z defs as we might desire, because we do not
11886 # link with -lc, and that would cause any symbols used from libc to
11887 # always be unresolved, which means just about no library would
11888 # ever link correctly. If we're not using GNU ld we use -z text
11889 # though, which does catch some bad symbols but isn't as heavy-handed
11891 no_undefined_flag='${wl}-z,text'
11892 allow_undefined_flag='${wl}-z,nodefs'
11893 archive_cmds_need_lc=no
11894 hardcode_shlibpath_var=no
11895 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11896 hardcode_libdir_separator=':'
11897 link_all_deplibs=yes
11898 export_dynamic_flag_spec='${wl}-Bexport'
11899 runpath_var='LD_RUN_PATH'
11901 if test "$GCC" = yes; then
11902 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11903 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11905 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11906 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11912 hardcode_libdir_flag_spec='-L$libdir'
11913 hardcode_shlibpath_var=no
11921 if test x$host_vendor = xsni; then
11923 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11924 export_dynamic_flag_spec='${wl}-Blargedynsym'
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11931 $as_echo "$ld_shlibs" >&6; }
11932 test "$ld_shlibs" = no && can_build_shared=no
11934 with_gnu_ld=$with_gnu_ld
11951 # Do we need to explicitly link libc?
11953 case "x$archive_cmds_need_lc" in
11955 # Assume -lc should be added
11956 archive_cmds_need_lc=yes
11958 if test "$enable_shared" = yes && test "$GCC" = yes; then
11959 case $archive_cmds in
11961 # FIXME: we may have to deal with multi-command sequences.
11964 # Test whether the compiler implicitly links with -lc since on some
11965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11966 # to ld, don't add -lc before -lgcc.
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11968 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11969 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11970 $as_echo_n "(cached) " >&6
11973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11976 (eval $ac_compile) 2>&5
11978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11979 test $ac_status = 0; } 2>conftest.err; then
11982 libobjs=conftest.$ac_objext
11984 wl=$lt_prog_compiler_wl
11985 pic_flag=$lt_prog_compiler_pic
11991 lt_save_allow_undefined_flag=$allow_undefined_flag
11992 allow_undefined_flag=
11993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11994 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11997 test $ac_status = 0; }
11999 lt_cv_archive_cmds_need_lc=no
12001 lt_cv_archive_cmds_need_lc=yes
12003 allow_undefined_flag=$lt_save_allow_undefined_flag
12005 cat conftest.err 1>&5
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12011 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12012 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12171 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12173 if test "$GCC" = yes; then
12175 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12176 *) lt_awk_arg="/^libraries:/" ;;
12179 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12180 *) lt_sed_strip_eq="s,=/,/,g" ;;
12182 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12183 case $lt_search_path_spec in
12185 # if the path contains ";" then we assume it to be the separator
12186 # otherwise default to the standard path separator (i.e. ":") - it is
12187 # assumed that no part of a normal pathname contains ";" but that should
12188 # okay in the real world where ";" in dirpaths is itself problematic.
12189 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12192 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12195 # Ok, now we have the path, separated by spaces, we can step through it
12196 # and add multilib dir if necessary.
12197 lt_tmp_lt_search_path_spec=
12198 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12199 for lt_sys_path in $lt_search_path_spec; do
12200 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12201 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12203 test -d "$lt_sys_path" && \
12204 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12207 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12208 BEGIN {RS=" "; FS="/|\n";} {
12211 for (lt_i = NF; lt_i > 0; lt_i--) {
12212 if ($lt_i != "" && $lt_i != ".") {
12213 if ($lt_i == "..") {
12216 if (lt_count == 0) {
12217 lt_foo="/" $lt_i lt_foo;
12224 if (lt_foo != "") { lt_freq[lt_foo]++; }
12225 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12227 # AWK program above erroneously prepends '/' to C:/dos/paths
12230 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12231 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12233 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12235 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12237 library_names_spec=
12238 libname_spec='lib$name'
12242 postuninstall_cmds=
12246 shlibpath_overrides_runpath=unknown
12248 dynamic_linker="$host_os ld.so"
12249 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12250 need_lib_prefix=unknown
12251 hardcode_into_libs=no
12253 # when you set need_version to no, make sure it does not cause -set_version
12254 # flags to be left without arguments
12255 need_version=unknown
12259 version_type=linux # correct to gnu/linux during the next big refactor
12260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12261 shlibpath_var=LIBPATH
12263 # AIX 3 has no versioning support, so we append a major version to the name.
12264 soname_spec='${libname}${release}${shared_ext}$major'
12268 version_type=linux # correct to gnu/linux during the next big refactor
12271 hardcode_into_libs=yes
12272 if test "$host_cpu" = ia64; then
12273 # AIX 5 supports IA64
12274 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12275 shlibpath_var=LD_LIBRARY_PATH
12277 # With GCC up to 2.95.x, collect2 would create an import file
12278 # for dependence libraries. The import file would start with
12279 # the line `#! .'. This would cause the generated library to
12280 # depend on `.', always an invalid library. This was fixed in
12281 # development snapshots of GCC prior to 3.0.
12283 aix4 | aix4.[01] | aix4.[01].*)
12284 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12286 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12289 can_build_shared=no
12293 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12294 # soname into executable. Probably we can add versioning support to
12295 # collect2, so additional links can be useful in future.
12296 if test "$aix_use_runtimelinking" = yes; then
12297 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12298 # instead of lib<name>.a to let people know that these are not
12299 # typical AIX shared libraries.
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12302 # We preserve .a as extension for shared libraries through AIX4.2
12303 # and later when we are not doing run time linking.
12304 library_names_spec='${libname}${release}.a $libname.a'
12305 soname_spec='${libname}${release}${shared_ext}$major'
12307 shlibpath_var=LIBPATH
12314 # Since July 2007 AmigaOS4 officially supports .so libraries.
12315 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319 library_names_spec='$libname.ixlibrary $libname.a'
12320 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12321 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
12327 library_names_spec='${libname}${shared_ext}'
12328 dynamic_linker="$host_os ld.so"
12329 shlibpath_var=LIBRARY_PATH
12333 version_type=linux # correct to gnu/linux during the next big refactor
12335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12336 soname_spec='${libname}${release}${shared_ext}$major'
12337 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12338 shlibpath_var=LD_LIBRARY_PATH
12339 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12340 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12341 # the default ld.so.conf also contains /usr/contrib/lib and
12342 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12343 # libtool to hard-code these into programs
12346 cygwin* | mingw* | pw32* | cegcc*)
12347 version_type=windows
12352 case $GCC,$cc_basename in
12355 library_names_spec='$libname.dll.a'
12356 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12357 postinstall_cmds='base_file=`basename \${file}`~
12358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12359 dldir=$destdir/`dirname \$dlpath`~
12360 test -d \$dldir || mkdir -p \$dldir~
12361 $install_prog $dir/$dlname \$dldir/$dlname~
12362 chmod a+x \$dldir/$dlname~
12363 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12364 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12366 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12367 dlpath=$dir/\$dldll~
12369 shlibpath_overrides_runpath=yes
12373 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12374 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12376 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12379 # MinGW DLLs use traditional 'lib' prefix
12380 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12383 # pw32 DLLs use 'pw' prefix rather than 'lib'
12384 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12387 dynamic_linker='Win32 ld.exe'
12392 libname_spec='$name'
12393 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12394 library_names_spec='${libname}.dll.lib'
12398 sys_lib_search_path_spec=
12401 for lt_path in $LIB
12404 # Let DOS variable expansion print the short 8.3 style file name.
12405 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12406 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12409 # Convert to MSYS style.
12410 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12413 # Convert to unix form, then to dos form, then back to unix form
12414 # but this time dos style (no spaces!) so that the unix form looks
12415 # like /cygdrive/c/PROGRA~1:/cygdr...
12416 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12417 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12418 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12421 sys_lib_search_path_spec="$LIB"
12422 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12423 # It is most probably a Windows format PATH.
12424 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12426 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12428 # FIXME: find the short name or the path components, as spaces are
12429 # common. (e.g. "Program Files" -> "PROGRA~1")
12433 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12434 postinstall_cmds='base_file=`basename \${file}`~
12435 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12436 dldir=$destdir/`dirname \$dlpath`~
12437 test -d \$dldir || mkdir -p \$dldir~
12438 $install_prog $dir/$dlname \$dldir/$dlname'
12439 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12440 dlpath=$dir/\$dldll~
12442 shlibpath_overrides_runpath=yes
12443 dynamic_linker='Win32 link.exe'
12447 # Assume MSVC wrapper
12448 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12449 dynamic_linker='Win32 ld.exe'
12452 # FIXME: first we should search . and the directory the executable is in
12456 darwin* | rhapsody*)
12457 dynamic_linker="$host_os dyld"
12458 version_type=darwin
12461 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12462 soname_spec='${libname}${release}${major}$shared_ext'
12463 shlibpath_overrides_runpath=yes
12464 shlibpath_var=DYLD_LIBRARY_PATH
12465 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12467 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12468 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12472 version_type=linux # correct to gnu/linux during the next big refactor
12475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12476 soname_spec='${libname}${release}${shared_ext}$major'
12477 shlibpath_var=LD_LIBRARY_PATH
12480 freebsd* | dragonfly*)
12481 # DragonFly does not have aout. When/if they implement a new
12482 # versioning mechanism, adjust this.
12483 if test -x /usr/bin/objformat; then
12484 objformat=`/usr/bin/objformat`
12487 freebsd[23].*) objformat=aout ;;
12488 *) objformat=elf ;;
12491 version_type=freebsd-$objformat
12492 case $version_type in
12494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12499 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12503 shlibpath_var=LD_LIBRARY_PATH
12506 shlibpath_overrides_runpath=yes
12508 freebsd3.[01]* | freebsdelf3.[01]*)
12509 shlibpath_overrides_runpath=yes
12510 hardcode_into_libs=yes
12512 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12513 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12514 shlibpath_overrides_runpath=no
12515 hardcode_into_libs=yes
12517 *) # from 4.6 on, and DragonFly
12518 shlibpath_overrides_runpath=yes
12519 hardcode_into_libs=yes
12525 version_type=linux # correct to gnu/linux during the next big refactor
12528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12529 soname_spec='${libname}${release}${shared_ext}$major'
12530 shlibpath_var=LD_LIBRARY_PATH
12531 shlibpath_overrides_runpath=no
12532 hardcode_into_libs=yes
12536 version_type=linux # correct to gnu/linux during the next big refactor
12539 dynamic_linker="$host_os runtime_loader"
12540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12541 soname_spec='${libname}${release}${shared_ext}$major'
12542 shlibpath_var=LIBRARY_PATH
12543 shlibpath_overrides_runpath=yes
12544 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12545 hardcode_into_libs=yes
12548 hpux9* | hpux10* | hpux11*)
12549 # Give a soname corresponding to the major version so that dld.sl refuses to
12550 # link against other versions.
12557 hardcode_into_libs=yes
12558 dynamic_linker="$host_os dld.so"
12559 shlibpath_var=LD_LIBRARY_PATH
12560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12562 soname_spec='${libname}${release}${shared_ext}$major'
12563 if test "X$HPUX_IA64_MODE" = X32; then
12564 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12566 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12572 hardcode_into_libs=yes
12573 dynamic_linker="$host_os dld.sl"
12574 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12577 soname_spec='${libname}${release}${shared_ext}$major'
12578 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12583 dynamic_linker="$host_os dld.sl"
12584 shlibpath_var=SHLIB_PATH
12585 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12587 soname_spec='${libname}${release}${shared_ext}$major'
12590 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12591 postinstall_cmds='chmod 555 $lib'
12592 # or fails outright, so override atomically:
12593 install_override_mode=555
12597 version_type=linux # correct to gnu/linux during the next big refactor
12600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12601 soname_spec='${libname}${release}${shared_ext}$major'
12602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12603 shlibpath_var=LD_LIBRARY_PATH
12604 shlibpath_overrides_runpath=no
12605 hardcode_into_libs=yes
12608 irix5* | irix6* | nonstopux*)
12610 nonstopux*) version_type=nonstopux ;;
12612 if test "$lt_cv_prog_gnu_ld" = yes; then
12613 version_type=linux # correct to gnu/linux during the next big refactor
12620 soname_spec='${libname}${release}${shared_ext}$major'
12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12623 irix5* | nonstopux*)
12624 libsuff= shlibsuff=
12627 case $LD in # libtool.m4 will add one of these switches to LD
12628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12629 libsuff= shlibsuff= libmagic=32-bit;;
12630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12631 libsuff=32 shlibsuff=N32 libmagic=N32;;
12632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12634 *) libsuff= shlibsuff= libmagic=never-match;;
12638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12639 shlibpath_overrides_runpath=no
12640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12642 hardcode_into_libs=yes
12645 # No shared lib support for Linux oldld, aout, or coff.
12646 linux*oldld* | linux*aout* | linux*coff*)
12650 # This must be glibc/ELF.
12651 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12652 version_type=linux # correct to gnu/linux during the next big refactor
12655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12656 soname_spec='${libname}${release}${shared_ext}$major'
12657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12658 shlibpath_var=LD_LIBRARY_PATH
12659 shlibpath_overrides_runpath=no
12661 # Some binutils ld are patched to set DT_RUNPATH
12662 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12663 $as_echo_n "(cached) " >&6
12665 lt_cv_shlibpath_overrides_runpath=no
12666 save_LDFLAGS=$LDFLAGS
12667 save_libdir=$libdir
12668 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12669 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12681 if ac_fn_c_try_link "$LINENO"; then :
12682 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12683 lt_cv_shlibpath_overrides_runpath=yes
12686 rm -f core conftest.err conftest.$ac_objext \
12687 conftest$ac_exeext conftest.$ac_ext
12688 LDFLAGS=$save_LDFLAGS
12689 libdir=$save_libdir
12693 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12695 # This implies no fast_install, which is unacceptable.
12696 # Some rework will be needed to allow for fast_install
12697 # before this can be enabled.
12698 hardcode_into_libs=yes
12700 # Add ABI-specific directories to the system library path.
12701 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12703 # Append ld.so.conf contents to the search path
12704 if test -f /etc/ld.so.conf; then
12705 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' ' '`
12706 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12710 # We used to test for /lib/ld.so.1 and disable shared libraries on
12711 # powerpc, because MkLinux only supported shared libraries with the
12712 # GNU dynamic linker. Since this was broken with cross compilers,
12713 # most powerpc-linux boxes support dynamic linking these days and
12714 # people can always --disable-shared, the test was removed, and we
12715 # assume the GNU/Linux dynamic linker is in use.
12716 dynamic_linker='GNU/Linux ld.so'
12723 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12726 dynamic_linker='NetBSD (a.out) ld.so'
12728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12729 soname_spec='${libname}${release}${shared_ext}$major'
12730 dynamic_linker='NetBSD ld.elf_so'
12732 shlibpath_var=LD_LIBRARY_PATH
12733 shlibpath_overrides_runpath=yes
12734 hardcode_into_libs=yes
12738 version_type=linux # correct to gnu/linux during the next big refactor
12739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12740 shlibpath_var=LD_LIBRARY_PATH
12741 shlibpath_overrides_runpath=yes
12748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12749 soname_spec='${libname}${release}${shared_ext}$major'
12750 shlibpath_var=LD_LIBRARY_PATH
12751 shlibpath_overrides_runpath=no
12752 hardcode_into_libs=yes
12753 dynamic_linker='ldqnx.so'
12758 sys_lib_dlsearch_path_spec="/usr/lib"
12760 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12762 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12763 *) need_version=no ;;
12765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12767 shlibpath_var=LD_LIBRARY_PATH
12768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12770 openbsd2.[89] | openbsd2.[89].*)
12771 shlibpath_overrides_runpath=no
12774 shlibpath_overrides_runpath=yes
12778 shlibpath_overrides_runpath=yes
12783 libname_spec='$name'
12786 library_names_spec='$libname${shared_ext} $libname.a'
12787 dynamic_linker='OS/2 ld.exe'
12788 shlibpath_var=LIBPATH
12791 osf3* | osf4* | osf5*)
12795 soname_spec='${libname}${release}${shared_ext}$major'
12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12797 shlibpath_var=LD_LIBRARY_PATH
12798 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12799 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12807 version_type=linux # correct to gnu/linux during the next big refactor
12810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12811 soname_spec='${libname}${release}${shared_ext}$major'
12812 shlibpath_var=LD_LIBRARY_PATH
12813 shlibpath_overrides_runpath=yes
12814 hardcode_into_libs=yes
12815 # ldd complains unless libraries are executable
12816 postinstall_cmds='chmod +x $lib'
12821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12822 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12823 shlibpath_var=LD_LIBRARY_PATH
12824 shlibpath_overrides_runpath=yes
12825 if test "$with_gnu_ld" = yes; then
12832 version_type=linux # correct to gnu/linux during the next big refactor
12833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12834 soname_spec='${libname}${release}${shared_ext}$major'
12835 shlibpath_var=LD_LIBRARY_PATH
12836 case $host_vendor in
12838 shlibpath_overrides_runpath=no
12840 runpath_var=LD_RUN_PATH
12848 shlibpath_overrides_runpath=no
12849 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12855 if test -d /usr/nec ;then
12856 version_type=linux # correct to gnu/linux during the next big refactor
12857 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12858 soname_spec='$libname${shared_ext}.$major'
12859 shlibpath_var=LD_LIBRARY_PATH
12863 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12864 version_type=freebsd-elf
12867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12868 soname_spec='${libname}${release}${shared_ext}$major'
12869 shlibpath_var=LD_LIBRARY_PATH
12870 shlibpath_overrides_runpath=yes
12871 hardcode_into_libs=yes
12872 if test "$with_gnu_ld" = yes; then
12873 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12875 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12878 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12882 sys_lib_dlsearch_path_spec='/usr/lib'
12886 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12887 version_type=linux # correct to gnu/linux during the next big refactor
12890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12891 shlibpath_var=LD_LIBRARY_PATH
12892 shlibpath_overrides_runpath=no
12893 hardcode_into_libs=yes
12897 version_type=linux # correct to gnu/linux during the next big refactor
12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12899 soname_spec='${libname}${release}${shared_ext}$major'
12900 shlibpath_var=LD_LIBRARY_PATH
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12908 $as_echo "$dynamic_linker" >&6; }
12909 test "$dynamic_linker" = no && can_build_shared=no
12911 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12912 if test "$GCC" = yes; then
12913 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12916 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12917 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12919 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12920 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13015 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13017 if test -n "$hardcode_libdir_flag_spec" ||
13018 test -n "$runpath_var" ||
13019 test "X$hardcode_automatic" = "Xyes" ; then
13021 # We can hardcode non-existent directories.
13022 if test "$hardcode_direct" != no &&
13023 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13024 # have to relink, otherwise we might link with an installed library
13025 # when we should be linking with a yet-to-be-installed one
13026 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13027 test "$hardcode_minus_L" != no; then
13028 # Linking always hardcodes the temporary library directory.
13029 hardcode_action=relink
13031 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13032 hardcode_action=immediate
13035 # We cannot hardcode anything, or else we can only hardcode existing
13037 hardcode_action=unsupported
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13040 $as_echo "$hardcode_action" >&6; }
13042 if test "$hardcode_action" = relink ||
13043 test "$inherit_rpath" = yes; then
13044 # Fast installation is not supported
13045 enable_fast_install=no
13046 elif test "$shlibpath_overrides_runpath" = yes ||
13047 test "$enable_shared" = no; then
13048 # Fast installation is not necessary
13049 enable_fast_install=needless
13057 if test "x$enable_dlopen" != xyes; then
13058 enable_dlopen=unknown
13059 enable_dlopen_self=unknown
13060 enable_dlopen_self_static=unknown
13067 lt_cv_dlopen="load_add_on"
13069 lt_cv_dlopen_self=yes
13072 mingw* | pw32* | cegcc*)
13073 lt_cv_dlopen="LoadLibrary"
13078 lt_cv_dlopen="dlopen"
13083 # if libdl is installed we need to link against it
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13085 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13086 if ${ac_cv_lib_dl_dlopen+:} false; then :
13087 $as_echo_n "(cached) " >&6
13089 ac_check_lib_save_LIBS=$LIBS
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13094 /* Override any GCC internal prototype to avoid an error.
13095 Use char because int might match the return type of a GCC
13096 builtin and then its argument prototype would still apply. */
13109 if ac_fn_c_try_link "$LINENO"; then :
13110 ac_cv_lib_dl_dlopen=yes
13112 ac_cv_lib_dl_dlopen=no
13114 rm -f core conftest.err conftest.$ac_objext \
13115 conftest$ac_exeext conftest.$ac_ext
13116 LIBS=$ac_check_lib_save_LIBS
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13119 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13120 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13124 lt_cv_dlopen="dyld"
13126 lt_cv_dlopen_self=yes
13133 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13134 if test "x$ac_cv_func_shl_load" = xyes; then :
13135 lt_cv_dlopen="shl_load"
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13138 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13139 if ${ac_cv_lib_dld_shl_load+:} false; then :
13140 $as_echo_n "(cached) " >&6
13142 ac_check_lib_save_LIBS=$LIBS
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13147 /* Override any GCC internal prototype to avoid an error.
13148 Use char because int might match the return type of a GCC
13149 builtin and then its argument prototype would still apply. */
13157 return shl_load ();
13162 if ac_fn_c_try_link "$LINENO"; then :
13163 ac_cv_lib_dld_shl_load=yes
13165 ac_cv_lib_dld_shl_load=no
13167 rm -f core conftest.err conftest.$ac_objext \
13168 conftest$ac_exeext conftest.$ac_ext
13169 LIBS=$ac_check_lib_save_LIBS
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13172 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13173 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13174 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13176 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13177 if test "x$ac_cv_func_dlopen" = xyes; then :
13178 lt_cv_dlopen="dlopen"
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13181 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13182 if ${ac_cv_lib_dl_dlopen+:} false; then :
13183 $as_echo_n "(cached) " >&6
13185 ac_check_lib_save_LIBS=$LIBS
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13190 /* Override any GCC internal prototype to avoid an error.
13191 Use char because int might match the return type of a GCC
13192 builtin and then its argument prototype would still apply. */
13205 if ac_fn_c_try_link "$LINENO"; then :
13206 ac_cv_lib_dl_dlopen=yes
13208 ac_cv_lib_dl_dlopen=no
13210 rm -f core conftest.err conftest.$ac_objext \
13211 conftest$ac_exeext conftest.$ac_ext
13212 LIBS=$ac_check_lib_save_LIBS
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13215 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13216 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13220 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13221 if ${ac_cv_lib_svld_dlopen+:} false; then :
13222 $as_echo_n "(cached) " >&6
13224 ac_check_lib_save_LIBS=$LIBS
13225 LIBS="-lsvld $LIBS"
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13229 /* Override any GCC internal prototype to avoid an error.
13230 Use char because int might match the return type of a GCC
13231 builtin and then its argument prototype would still apply. */
13244 if ac_fn_c_try_link "$LINENO"; then :
13245 ac_cv_lib_svld_dlopen=yes
13247 ac_cv_lib_svld_dlopen=no
13249 rm -f core conftest.err conftest.$ac_objext \
13250 conftest$ac_exeext conftest.$ac_ext
13251 LIBS=$ac_check_lib_save_LIBS
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13254 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13255 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13256 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13259 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13260 if ${ac_cv_lib_dld_dld_link+:} false; then :
13261 $as_echo_n "(cached) " >&6
13263 ac_check_lib_save_LIBS=$LIBS
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13268 /* Override any GCC internal prototype to avoid an error.
13269 Use char because int might match the return type of a GCC
13270 builtin and then its argument prototype would still apply. */
13278 return dld_link ();
13283 if ac_fn_c_try_link "$LINENO"; then :
13284 ac_cv_lib_dld_dld_link=yes
13286 ac_cv_lib_dld_dld_link=no
13288 rm -f core conftest.err conftest.$ac_objext \
13289 conftest$ac_exeext conftest.$ac_ext
13290 LIBS=$ac_check_lib_save_LIBS
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13293 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13294 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13295 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13316 if test "x$lt_cv_dlopen" != xno; then
13322 case $lt_cv_dlopen in
13324 save_CPPFLAGS="$CPPFLAGS"
13325 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13327 save_LDFLAGS="$LDFLAGS"
13328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13331 LIBS="$lt_cv_dlopen_libs $LIBS"
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13334 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13335 if ${lt_cv_dlopen_self+:} false; then :
13336 $as_echo_n "(cached) " >&6
13338 if test "$cross_compiling" = yes; then :
13339 lt_cv_dlopen_self=cross
13341 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13342 lt_status=$lt_dlunknown
13343 cat > conftest.$ac_ext <<_LT_EOF
13344 #line $LINENO "configure"
13345 #include "confdefs.h"
13354 # define LT_DLGLOBAL RTLD_GLOBAL
13357 # define LT_DLGLOBAL DL_GLOBAL
13359 # define LT_DLGLOBAL 0
13363 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13364 find out it does not work in some platform. */
13365 #ifndef LT_DLLAZY_OR_NOW
13367 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13370 # define LT_DLLAZY_OR_NOW DL_LAZY
13373 # define LT_DLLAZY_OR_NOW RTLD_NOW
13376 # define LT_DLLAZY_OR_NOW DL_NOW
13378 # define LT_DLLAZY_OR_NOW 0
13385 /* When -fvisbility=hidden is used, assume the code has been annotated
13386 correspondingly for the symbols needed. */
13387 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13388 int fnord () __attribute__((visibility("default")));
13391 int fnord () { return 42; }
13394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13395 int status = $lt_dlunknown;
13399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13402 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13403 else puts (dlerror ());
13405 /* dlclose (self); */
13413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13414 (eval $ac_link) 2>&5
13416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13417 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13418 (./conftest; exit; ) >&5 2>/dev/null
13420 case x$lt_status in
13421 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13422 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13423 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13426 # compilation failed
13427 lt_cv_dlopen_self=no
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13435 $as_echo "$lt_cv_dlopen_self" >&6; }
13437 if test "x$lt_cv_dlopen_self" = xyes; then
13438 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13440 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13441 if ${lt_cv_dlopen_self_static+:} false; then :
13442 $as_echo_n "(cached) " >&6
13444 if test "$cross_compiling" = yes; then :
13445 lt_cv_dlopen_self_static=cross
13447 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13448 lt_status=$lt_dlunknown
13449 cat > conftest.$ac_ext <<_LT_EOF
13450 #line $LINENO "configure"
13451 #include "confdefs.h"
13460 # define LT_DLGLOBAL RTLD_GLOBAL
13463 # define LT_DLGLOBAL DL_GLOBAL
13465 # define LT_DLGLOBAL 0
13469 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13470 find out it does not work in some platform. */
13471 #ifndef LT_DLLAZY_OR_NOW
13473 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13476 # define LT_DLLAZY_OR_NOW DL_LAZY
13479 # define LT_DLLAZY_OR_NOW RTLD_NOW
13482 # define LT_DLLAZY_OR_NOW DL_NOW
13484 # define LT_DLLAZY_OR_NOW 0
13491 /* When -fvisbility=hidden is used, assume the code has been annotated
13492 correspondingly for the symbols needed. */
13493 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13494 int fnord () __attribute__((visibility("default")));
13497 int fnord () { return 42; }
13500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13501 int status = $lt_dlunknown;
13505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13508 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13509 else puts (dlerror ());
13511 /* dlclose (self); */
13519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13520 (eval $ac_link) 2>&5
13522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13523 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13524 (./conftest; exit; ) >&5 2>/dev/null
13526 case x$lt_status in
13527 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13528 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13529 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13532 # compilation failed
13533 lt_cv_dlopen_self_static=no
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13541 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13544 CPPFLAGS="$save_CPPFLAGS"
13545 LDFLAGS="$save_LDFLAGS"
13550 case $lt_cv_dlopen_self in
13551 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13552 *) enable_dlopen_self=unknown ;;
13555 case $lt_cv_dlopen_self_static in
13556 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13557 *) enable_dlopen_self_static=unknown ;;
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13580 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13581 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13582 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13583 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13585 $as_echo "yes" >&6; }
13587 # FIXME - insert some real tests, host_os isn't really good enough
13590 if test -n "$STRIP" ; then
13591 striplib="$STRIP -x"
13592 old_striplib="$STRIP -S"
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13594 $as_echo "yes" >&6; }
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597 $as_echo "no" >&6; }
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13618 # Report which library types will actually be built
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13620 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13622 $as_echo "$can_build_shared" >&6; }
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13625 $as_echo_n "checking whether to build shared libraries... " >&6; }
13626 test "$can_build_shared" = "no" && enable_shared=no
13628 # On AIX, shared libraries and static libraries use the same namespace, and
13629 # are all built from PIC.
13632 test "$enable_shared" = yes && enable_static=no
13633 if test -n "$RANLIB"; then
13634 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13635 postinstall_cmds='$RANLIB $lib'
13640 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13641 test "$enable_shared" = yes && enable_static=no
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13646 $as_echo "$enable_shared" >&6; }
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13649 $as_echo_n "checking whether to build static libraries... " >&6; }
13650 # Make sure either enable_shared or enable_static is yes.
13651 test "$enable_shared" = yes || enable_static=yes
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13653 $as_echo "$enable_static" >&6; }
13660 ac_cpp='$CPP $CPPFLAGS'
13661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13681 ac_config_commands="$ac_config_commands libtool"
13686 # Only expand once:
13691 # Checks for header files.
13692 for ac_header in stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.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
13694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13695 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13697 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13698 cat >>confdefs.h <<_ACEOF
13699 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13708 # Using own tests for int64* because autoconf builtin only give 32bit.
13709 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13710 if test "x$ac_cv_type_int8_t" = xyes; then :
13714 cat >>confdefs.h <<_ACEOF
13715 #define int8_t signed char
13720 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13721 if test "x$ac_cv_type_int16_t" = xyes; then :
13725 cat >>confdefs.h <<_ACEOF
13726 #define int16_t short
13731 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13732 if test "x$ac_cv_type_int32_t" = xyes; then :
13736 cat >>confdefs.h <<_ACEOF
13737 #define int32_t int
13742 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13743 if test "x$ac_cv_type_int64_t" = xyes; then :
13747 cat >>confdefs.h <<_ACEOF
13748 #define int64_t long long
13753 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13754 if test "x$ac_cv_type_uint8_t" = xyes; then :
13758 cat >>confdefs.h <<_ACEOF
13759 #define uint8_t unsigned char
13764 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13765 if test "x$ac_cv_type_uint16_t" = xyes; then :
13769 cat >>confdefs.h <<_ACEOF
13770 #define uint16_t unsigned short
13775 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13776 if test "x$ac_cv_type_uint32_t" = xyes; then :
13780 cat >>confdefs.h <<_ACEOF
13781 #define uint32_t unsigned int
13786 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13787 if test "x$ac_cv_type_uint64_t" = xyes; then :
13791 cat >>confdefs.h <<_ACEOF
13792 #define uint64_t unsigned long long
13797 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13798 if test "x$ac_cv_type_size_t" = xyes; then :
13802 cat >>confdefs.h <<_ACEOF
13803 #define size_t unsigned int
13808 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13809 if test "x$ac_cv_type_ssize_t" = xyes; then :
13813 cat >>confdefs.h <<_ACEOF
13814 #define ssize_t int
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13820 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13821 if ${ac_cv_type_uid_t+:} false; then :
13822 $as_echo_n "(cached) " >&6
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 #include <sys/types.h>
13829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13830 $EGREP "uid_t" >/dev/null 2>&1; then :
13831 ac_cv_type_uid_t=yes
13833 ac_cv_type_uid_t=no
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13839 $as_echo "$ac_cv_type_uid_t" >&6; }
13840 if test $ac_cv_type_uid_t = no; then
13842 $as_echo "#define uid_t int" >>confdefs.h
13845 $as_echo "#define gid_t int" >>confdefs.h
13849 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13850 if test "x$ac_cv_type_pid_t" = xyes; then :
13854 cat >>confdefs.h <<_ACEOF
13860 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13861 if test "x$ac_cv_type_off_t" = xyes; then :
13865 cat >>confdefs.h <<_ACEOF
13866 #define off_t long int
13871 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
13872 $ac_includes_default
13873 #ifdef HAVE_WINSOCK2_H
13874 # include <winsock2.h>
13878 if test "x$ac_cv_type_u_char" = xyes; then :
13882 $as_echo "#define u_char unsigned char" >>confdefs.h
13886 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
13887 $ac_includes_default
13888 #ifdef HAVE_SYS_RESOURCE_H
13889 # include <sys/resource.h>
13893 if test "x$ac_cv_type_rlim_t" = xyes; then :
13897 $as_echo "#define rlim_t unsigned long" >>confdefs.h
13902 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13903 $ac_includes_default
13904 #ifdef HAVE_SYS_SOCKET_H
13905 # include <sys/socket.h>
13907 #ifdef HAVE_WS2TCPIP_H
13908 # include <ws2tcpip.h>
13912 if test "x$ac_cv_type_socklen_t" = xyes; then :
13916 $as_echo "#define socklen_t int" >>confdefs.h
13920 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
13921 $ac_includes_default
13922 #ifdef HAVE_SYS_TYPES_H
13923 # include <sys/types.h>
13925 #ifdef HAVE_NETINET_IN_H
13926 # include <netinet/in.h>
13930 if test "x$ac_cv_type_in_addr_t" = xyes; then :
13934 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
13938 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
13939 $ac_includes_default
13940 #ifdef HAVE_SYS_TYPES_H
13941 # include <sys/types.h>
13943 #ifdef HAVE_NETINET_IN_H
13944 # include <netinet/in.h>
13948 if test "x$ac_cv_type_in_port_t" = xyes; then :
13952 $as_echo "#define in_port_t uint16_t" >>confdefs.h
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
13957 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
13958 if test "$cross_compiling" = yes; then :
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
13960 $as_echo "cross-compile no" >&6; }
13962 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13964 case " $LIBOBJS " in
13965 *" memcmp.$ac_objext "* ) ;;
13966 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973 /* end confdefs.h. */
13976 #include <stdlib.h>
13977 #include <string.h>
13980 char a = 255, b = 0;
13981 if(memcmp(&a, &b, 1) < 0)
13987 if ac_fn_c_try_run "$LINENO"; then :
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13989 $as_echo "yes" >&6; }
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992 $as_echo "no" >&6; }
13994 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13996 case " $LIBOBJS " in
13997 *" memcmp.$ac_objext "* ) ;;
13998 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14005 conftest.$ac_objext conftest.beam conftest.$ac_ext
14009 # The cast to long int works around a bug in the HP C Compiler
14010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14012 # This bug is HP SR number 8606223364.
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14014 $as_echo_n "checking size of time_t... " >&6; }
14015 if ${ac_cv_sizeof_time_t+:} false; then :
14016 $as_echo_n "(cached) " >&6
14018 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14019 $ac_includes_default
14020 #ifdef TIME_WITH_SYS_TIME
14021 # include <sys/time.h>
14024 # ifdef HAVE_SYS_TIME_H
14025 # include <sys/time.h>
14034 if test "$ac_cv_type_time_t" = yes; then
14035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14037 as_fn_error 77 "cannot compute sizeof (time_t)
14038 See \`config.log' for more details" "$LINENO" 5; }
14040 ac_cv_sizeof_time_t=0
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14046 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14050 cat >>confdefs.h <<_ACEOF
14051 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14056 # add option to disable the evil rpath
14058 # Check whether --enable-rpath was given.
14059 if test "${enable_rpath+set}" = set; then :
14060 enableval=$enable_rpath; enable_rpath=$enableval
14065 if test "x$enable_rpath" = xno; then
14066 ac_config_commands="$ac_config_commands disable-rpath"
14072 # check to see if libraries are needed for these functions.
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14074 $as_echo_n "checking for library containing inet_pton... " >&6; }
14075 if ${ac_cv_search_inet_pton+:} false; then :
14076 $as_echo_n "(cached) " >&6
14078 ac_func_search_save_LIBS=$LIBS
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14082 /* Override any GCC internal prototype to avoid an error.
14083 Use char because int might match the return type of a GCC
14084 builtin and then its argument prototype would still apply. */
14092 return inet_pton ();
14097 for ac_lib in '' nsl; do
14098 if test -z "$ac_lib"; then
14099 ac_res="none required"
14102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14104 if ac_fn_c_try_link "$LINENO"; then :
14105 ac_cv_search_inet_pton=$ac_res
14107 rm -f core conftest.err conftest.$ac_objext \
14109 if ${ac_cv_search_inet_pton+:} false; then :
14113 if ${ac_cv_search_inet_pton+:} false; then :
14116 ac_cv_search_inet_pton=no
14118 rm conftest.$ac_ext
14119 LIBS=$ac_func_search_save_LIBS
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14122 $as_echo "$ac_cv_search_inet_pton" >&6; }
14123 ac_res=$ac_cv_search_inet_pton
14124 if test "$ac_res" != no; then :
14125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14130 $as_echo_n "checking for library containing socket... " >&6; }
14131 if ${ac_cv_search_socket+:} false; then :
14132 $as_echo_n "(cached) " >&6
14134 ac_func_search_save_LIBS=$LIBS
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14138 /* Override any GCC internal prototype to avoid an error.
14139 Use char because int might match the return type of a GCC
14140 builtin and then its argument prototype would still apply. */
14153 for ac_lib in '' socket; do
14154 if test -z "$ac_lib"; then
14155 ac_res="none required"
14158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14160 if ac_fn_c_try_link "$LINENO"; then :
14161 ac_cv_search_socket=$ac_res
14163 rm -f core conftest.err conftest.$ac_objext \
14165 if ${ac_cv_search_socket+:} false; then :
14169 if ${ac_cv_search_socket+:} false; then :
14172 ac_cv_search_socket=no
14174 rm conftest.$ac_ext
14175 LIBS=$ac_func_search_save_LIBS
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14178 $as_echo "$ac_cv_search_socket" >&6; }
14179 ac_res=$ac_cv_search_socket
14180 if test "$ac_res" != no; then :
14181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14186 # check wether strptime also works
14188 # check some functions of the OS before linking libs (while still runnable).
14189 for ac_header in unistd.h
14191 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14192 if test "x$ac_cv_header_unistd_h" = xyes; then :
14193 cat >>confdefs.h <<_ACEOF
14194 #define HAVE_UNISTD_H 1
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14202 $as_echo_n "checking for working chown... " >&6; }
14203 if ${ac_cv_func_chown_works+:} false; then :
14204 $as_echo_n "(cached) " >&6
14206 if test "$cross_compiling" = yes; then :
14207 ac_cv_func_chown_works=no
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211 $ac_includes_default
14217 char *f = "conftest.chown";
14218 struct stat before, after;
14220 if (creat (f, 0600) < 0)
14222 if (stat (f, &before) < 0)
14224 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14226 if (stat (f, &after) < 0)
14228 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14234 if ac_fn_c_try_run "$LINENO"; then :
14235 ac_cv_func_chown_works=yes
14237 ac_cv_func_chown_works=no
14239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14240 conftest.$ac_objext conftest.beam conftest.$ac_ext
14243 rm -f conftest.chown
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14247 $as_echo "$ac_cv_func_chown_works" >&6; }
14248 if test $ac_cv_func_chown_works = yes; then
14250 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14254 for ac_header in vfork.h
14256 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14257 if test "x$ac_cv_header_vfork_h" = xyes; then :
14258 cat >>confdefs.h <<_ACEOF
14259 #define HAVE_VFORK_H 1
14266 for ac_func in fork vfork
14268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14269 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14270 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14271 cat >>confdefs.h <<_ACEOF
14272 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14278 if test "x$ac_cv_func_fork" = xyes; then
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14280 $as_echo_n "checking for working fork... " >&6; }
14281 if ${ac_cv_func_fork_works+:} false; then :
14282 $as_echo_n "(cached) " >&6
14284 if test "$cross_compiling" = yes; then :
14285 ac_cv_func_fork_works=cross
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14289 $ac_includes_default
14294 /* By Ruediger Kuhlmann. */
14295 return fork () < 0;
14301 if ac_fn_c_try_run "$LINENO"; then :
14302 ac_cv_func_fork_works=yes
14304 ac_cv_func_fork_works=no
14306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14307 conftest.$ac_objext conftest.beam conftest.$ac_ext
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14312 $as_echo "$ac_cv_func_fork_works" >&6; }
14315 ac_cv_func_fork_works=$ac_cv_func_fork
14317 if test "x$ac_cv_func_fork_works" = xcross; then
14319 *-*-amigaos* | *-*-msdosdjgpp*)
14320 # Override, as these systems have only a dummy fork() stub
14321 ac_cv_func_fork_works=no
14324 ac_cv_func_fork_works=yes
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14328 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14330 ac_cv_func_vfork_works=$ac_cv_func_vfork
14331 if test "x$ac_cv_func_vfork" = xyes; then
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14333 $as_echo_n "checking for working vfork... " >&6; }
14334 if ${ac_cv_func_vfork_works+:} false; then :
14335 $as_echo_n "(cached) " >&6
14337 if test "$cross_compiling" = yes; then :
14338 ac_cv_func_vfork_works=cross
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14342 /* Thanks to Paul Eggert for this test. */
14343 $ac_includes_default
14344 #include <sys/wait.h>
14345 #ifdef HAVE_VFORK_H
14346 # include <vfork.h>
14348 /* On some sparc systems, changes by the child to local and incoming
14349 argument registers are propagated back to the parent. The compiler
14350 is told about this with #include <vfork.h>, but some compilers
14351 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14352 static variable whose address is put into a register that is
14353 clobbered by the vfork. */
14356 sparc_address_test (int arg)
14358 sparc_address_test (arg) int arg;
14361 static pid_t child;
14379 pid_t parent = getpid ();
14382 sparc_address_test (0);
14387 /* Here is another test for sparc vfork register problems. This
14388 test uses lots of local variables, at least as many local
14389 variables as main has allocated so far including compiler
14390 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14391 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14392 reuse the register of parent for one of the local variables,
14393 since it will think that parent can't possibly be used any more
14394 in this routine. Assigning to the local variable will thus
14395 munge parent in the parent process. */
14397 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14398 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14399 /* Convince the compiler that p..p7 are live; otherwise, it might
14400 use the same hardware register for all 8 local variables. */
14401 if (p != p1 || p != p2 || p != p3 || p != p4
14402 || p != p5 || p != p6 || p != p7)
14405 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14406 from child file descriptors. If the child closes a descriptor
14407 before it execs or exits, this munges the parent's descriptor
14408 as well. Test for this by closing stdout in the child. */
14409 _exit(close(fileno(stdout)) != 0);
14414 while (wait(&status) != child)
14417 /* Was there some problem with vforking? */
14420 /* Did the child fail? (This shouldn't happen.) */
14423 /* Did the vfork/compiler bug occur? */
14424 || parent != getpid()
14426 /* Did the file descriptor bug occur? */
14427 || fstat(fileno(stdout), &st) != 0
14432 if ac_fn_c_try_run "$LINENO"; then :
14433 ac_cv_func_vfork_works=yes
14435 ac_cv_func_vfork_works=no
14437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14438 conftest.$ac_objext conftest.beam conftest.$ac_ext
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14443 $as_echo "$ac_cv_func_vfork_works" >&6; }
14446 if test "x$ac_cv_func_fork_works" = xcross; then
14447 ac_cv_func_vfork_works=$ac_cv_func_vfork
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14449 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14452 if test "x$ac_cv_func_vfork_works" = xyes; then
14454 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14458 $as_echo "#define vfork fork" >>confdefs.h
14461 if test "x$ac_cv_func_fork_works" = xyes; then
14463 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14468 $as_echo_n "checking return type of signal handlers... " >&6; }
14469 if ${ac_cv_type_signal+:} false; then :
14470 $as_echo_n "(cached) " >&6
14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h. */
14474 #include <sys/types.h>
14475 #include <signal.h>
14480 return *(signal (0, 0)) (0) == 1;
14485 if ac_fn_c_try_compile "$LINENO"; then :
14486 ac_cv_type_signal=int
14488 ac_cv_type_signal=void
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14493 $as_echo "$ac_cv_type_signal" >&6; }
14495 cat >>confdefs.h <<_ACEOF
14496 #define RETSIGTYPE $ac_cv_type_signal
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14501 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14502 if ${ac_cv_sys_largefile_source+:} false; then :
14503 $as_echo_n "(cached) " >&6
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14508 #include <sys/types.h> /* for off_t */
14513 int (*fp) (FILE *, off_t, int) = fseeko;
14514 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14519 if ac_fn_c_try_link "$LINENO"; then :
14520 ac_cv_sys_largefile_source=no; break
14522 rm -f core conftest.err conftest.$ac_objext \
14523 conftest$ac_exeext conftest.$ac_ext
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14526 #define _LARGEFILE_SOURCE 1
14527 #include <sys/types.h> /* for off_t */
14532 int (*fp) (FILE *, off_t, int) = fseeko;
14533 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14538 if ac_fn_c_try_link "$LINENO"; then :
14539 ac_cv_sys_largefile_source=1; break
14541 rm -f core conftest.err conftest.$ac_objext \
14542 conftest$ac_exeext conftest.$ac_ext
14543 ac_cv_sys_largefile_source=unknown
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14548 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14549 case $ac_cv_sys_largefile_source in #(
14552 cat >>confdefs.h <<_ACEOF
14553 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14559 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14560 # in glibc 2.1.3, but that breaks too many other things.
14561 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14562 if test $ac_cv_sys_largefile_source != unknown; then
14564 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14569 # Check whether --enable-largefile was given.
14570 if test "${enable_largefile+set}" = set; then :
14571 enableval=$enable_largefile;
14574 if test "$enable_largefile" != no; then
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14577 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14578 if ${ac_cv_sys_largefile_CC+:} false; then :
14579 $as_echo_n "(cached) " >&6
14581 ac_cv_sys_largefile_CC=no
14582 if test "$GCC" != yes; then
14585 # IRIX 6.2 and later do not support large files by default,
14586 # so use the C compiler's -n32 option if that helps.
14587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588 /* end confdefs.h. */
14589 #include <sys/types.h>
14590 /* Check that off_t can represent 2**63 - 1 correctly.
14591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14592 since some C++ compilers masquerading as C compilers
14593 incorrectly reject 9223372036854775807. */
14594 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14596 && LARGE_OFF_T % 2147483647 == 1)
14606 if ac_fn_c_try_compile "$LINENO"; then :
14609 rm -f core conftest.err conftest.$ac_objext
14611 if ac_fn_c_try_compile "$LINENO"; then :
14612 ac_cv_sys_largefile_CC=' -n32'; break
14614 rm -f core conftest.err conftest.$ac_objext
14618 rm -f conftest.$ac_ext
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14622 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14623 if test "$ac_cv_sys_largefile_CC" != no; then
14624 CC=$CC$ac_cv_sys_largefile_CC
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14628 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14629 if ${ac_cv_sys_file_offset_bits+:} false; then :
14630 $as_echo_n "(cached) " >&6
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14635 #include <sys/types.h>
14636 /* Check that off_t can represent 2**63 - 1 correctly.
14637 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14638 since some C++ compilers masquerading as C compilers
14639 incorrectly reject 9223372036854775807. */
14640 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14641 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14642 && LARGE_OFF_T % 2147483647 == 1)
14652 if ac_fn_c_try_compile "$LINENO"; then :
14653 ac_cv_sys_file_offset_bits=no; break
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657 /* end confdefs.h. */
14658 #define _FILE_OFFSET_BITS 64
14659 #include <sys/types.h>
14660 /* Check that off_t can represent 2**63 - 1 correctly.
14661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14662 since some C++ compilers masquerading as C compilers
14663 incorrectly reject 9223372036854775807. */
14664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14666 && LARGE_OFF_T % 2147483647 == 1)
14676 if ac_fn_c_try_compile "$LINENO"; then :
14677 ac_cv_sys_file_offset_bits=64; break
14679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14680 ac_cv_sys_file_offset_bits=unknown
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14685 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14686 case $ac_cv_sys_file_offset_bits in #(
14689 cat >>confdefs.h <<_ACEOF
14690 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14695 if test $ac_cv_sys_file_offset_bits = unknown; then
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14697 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14698 if ${ac_cv_sys_large_files+:} false; then :
14699 $as_echo_n "(cached) " >&6
14702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14703 /* end confdefs.h. */
14704 #include <sys/types.h>
14705 /* Check that off_t can represent 2**63 - 1 correctly.
14706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14707 since some C++ compilers masquerading as C compilers
14708 incorrectly reject 9223372036854775807. */
14709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14711 && LARGE_OFF_T % 2147483647 == 1)
14721 if ac_fn_c_try_compile "$LINENO"; then :
14722 ac_cv_sys_large_files=no; break
14724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h. */
14727 #define _LARGE_FILES 1
14728 #include <sys/types.h>
14729 /* Check that off_t can represent 2**63 - 1 correctly.
14730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14731 since some C++ compilers masquerading as C compilers
14732 incorrectly reject 9223372036854775807. */
14733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14735 && LARGE_OFF_T % 2147483647 == 1)
14745 if ac_fn_c_try_compile "$LINENO"; then :
14746 ac_cv_sys_large_files=1; break
14748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14749 ac_cv_sys_large_files=unknown
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14754 $as_echo "$ac_cv_sys_large_files" >&6; }
14755 case $ac_cv_sys_large_files in #(
14758 cat >>confdefs.h <<_ACEOF
14759 #define _LARGE_FILES $ac_cv_sys_large_files
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14773 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14774 cache=_D_LARGEFILE_SOURCE_1
14775 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
14776 $as_echo_n "(cached) " >&6
14782 int a = fseeko(stdin, 0, 0);
14786 echo 'void f(){}' >>conftest.c
14787 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14788 eval "cv_prog_cc_flag_needed_$cache=no"
14791 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14792 eval "cv_prog_cc_flag_needed_$cache=yes"
14794 eval "cv_prog_cc_flag_needed_$cache=fail"
14795 #echo 'Test with flag fails too!'
14797 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14798 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14803 rm -f conftest conftest.c conftest.o
14807 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14809 $as_echo "yes" >&6; }
14811 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
14813 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14815 $as_echo "no" >&6; }
14816 #echo 'Test with flag is no!'
14818 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14819 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14825 $as_echo "failed" >&6; }
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14834 $as_echo_n "checking if nonblocking sockets work... " >&6; }
14835 if echo $target | grep mingw32 >/dev/null; then
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14837 $as_echo "no (windows)" >&6; }
14839 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14842 if test "$cross_compiling" = yes; then :
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
14845 $as_echo "crosscompile(yes)" >&6; }
14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14853 #include <string.h>
14854 #include <stdlib.h>
14857 #ifdef HAVE_SYS_TYPES_H
14858 #include <sys/types.h>
14860 #ifdef HAVE_SYS_SOCKET_H
14861 #include <sys/socket.h>
14863 #ifdef HAVE_NETINET_IN_H
14864 #include <netinet/in.h>
14866 #ifdef HAVE_ARPA_INET_H
14867 #include <arpa/inet.h>
14869 #ifdef HAVE_UNISTD_H
14870 #include <unistd.h>
14882 struct sockaddr_in a;
14883 /* test if select and nonblocking reads work well together */
14885 fork child to send 10 messages.
14887 then try to nonblocking read the 10 messages
14888 then, nonblocking read must give EAGAIN
14891 port = 12345 + (time(0)%32);
14892 sfd = socket(PF_INET, SOCK_DGRAM, 0);
14897 memset(&a, 0, sizeof(a));
14898 a.sin_family = AF_INET;
14899 a.sin_port = htons(port);
14900 a.sin_addr.s_addr = inet_addr("127.0.0.1");
14901 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14905 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
14910 cfd = socket(PF_INET, SOCK_DGRAM, 0);
14912 perror("client socket");
14916 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14917 perror("client bind");
14920 a.sin_port = htons(port);
14922 /* no handler, causes exit in 10 seconds */
14925 /* send and receive on the socket */
14926 if((p=fork()) == 0) {
14927 for(i=0; i<num; i++) {
14928 if(sendto(cfd, &i, sizeof(i), 0,
14929 (struct sockaddr*)&a, sizeof(a)) < 0) {
14943 FD_SET(sfd, &rset);
14944 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
14950 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
14951 if(errno == EAGAIN)
14958 /* now we want to get EAGAIN: nonblocking goodness */
14960 recv(sfd, &x, sizeof(x), 0);
14961 if(errno != EAGAIN) {
14962 perror("trying to recv again");
14965 /* EAGAIN encountered */
14974 if ac_fn_c_try_run "$LINENO"; then :
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14977 $as_echo "yes" >&6; }
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14982 $as_echo "no" >&6; }
14984 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14989 conftest.$ac_objext conftest.beam conftest.$ac_ext
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
14996 $as_echo_n "checking whether mkdir has one arg... " >&6; }
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15001 #include <unistd.h>
15002 #ifdef HAVE_WINSOCK2_H
15003 #include <winsock2.h>
15005 #ifdef HAVE_SYS_STAT_H
15006 #include <sys/stat.h>
15013 (void)mkdir("directory");
15019 if ac_fn_c_try_compile "$LINENO"; then :
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15021 $as_echo "yes" >&6; }
15023 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15028 $as_echo "no" >&6; }
15031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15033 for ac_func in strptime
15035 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15036 if test "x$ac_cv_func_strptime" = xyes; then :
15037 cat >>confdefs.h <<_ACEOF
15038 #define HAVE_STRPTIME 1
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15042 $as_echo_n "checking whether strptime works... " >&6; }
15043 if test c${cross_compiling} = cno; then
15044 if test "$cross_compiling" = yes; then :
15045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15047 as_fn_error $? "cannot run test program while cross compiling
15048 See \`config.log' for more details" "$LINENO" 5; }
15050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051 /* end confdefs.h. */
15053 #define _XOPEN_SOURCE
15055 int main(void) { struct tm tm; char *res;
15056 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);
15057 if (!res) return 2;
15058 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15059 if (!res) return 1; return 0; }
15062 if ac_fn_c_try_run "$LINENO"; then :
15063 eval "ac_cv_c_strptime_works=yes"
15065 eval "ac_cv_c_strptime_works=no"
15067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15068 conftest.$ac_objext conftest.beam conftest.$ac_ext
15072 eval "ac_cv_c_strptime_works=maybe"
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15075 $as_echo "$ac_cv_c_strptime_works" >&6; }
15076 if test $ac_cv_c_strptime_works = no; then
15077 case " $LIBOBJS " in
15078 *" strptime.$ac_objext "* ) ;;
15079 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15085 cat >>confdefs.h <<_ACEOF
15086 #define STRPTIME_WORKS 1
15092 case " $LIBOBJS " in
15093 *" strptime.$ac_objext "* ) ;;
15094 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15102 # set memory allocation checking if requested
15103 # Check whether --enable-alloc-checks was given.
15104 if test "${enable_alloc_checks+set}" = set; then :
15105 enableval=$enable_alloc_checks;
15108 # Check whether --enable-alloc-lite was given.
15109 if test "${enable_alloc_lite+set}" = set; then :
15110 enableval=$enable_alloc_lite;
15113 # Check whether --enable-alloc-nonregional was given.
15114 if test "${enable_alloc_nonregional+set}" = set; then :
15115 enableval=$enable_alloc_nonregional;
15118 if test x_$enable_alloc_nonregional = x_yes; then
15120 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15123 if test x_$enable_alloc_checks = x_yes; then
15125 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15128 if test x_$enable_alloc_lite = x_yes; then
15130 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15135 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15136 if test "$cross_compiling" = yes; then :
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15138 $as_echo "no (crosscompile)" >&6; }
15139 case " $LIBOBJS " in
15140 *" malloc.$ac_objext "* ) ;;
15141 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15146 cat >>confdefs.h <<_ACEOF
15147 #define malloc rpl_malloc_unbound
15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152 /* end confdefs.h. */
15153 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15154 #include <stdlib.h>
15162 if(malloc(0) != 0) return 1;
15168 if ac_fn_c_try_run "$LINENO"; then :
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15170 $as_echo "no" >&6; }
15171 case " $LIBOBJS " in
15172 *" malloc.$ac_objext "* ) ;;
15173 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15178 cat >>confdefs.h <<_ACEOF
15179 #define malloc rpl_malloc_unbound
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15184 $as_echo "yes" >&6; }
15186 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15190 conftest.$ac_objext conftest.beam conftest.$ac_ext
15197 # check windows threads (we use them, not pthreads, on windows).
15198 if test "$on_mingw" = "yes"; then
15199 # check windows threads
15200 for ac_header in windows.h
15202 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15204 if test "x$ac_cv_header_windows_h" = xyes; then :
15205 cat >>confdefs.h <<_ACEOF
15206 #define HAVE_WINDOWS_H 1
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15214 $as_echo_n "checking for CreateThread... " >&6; }
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15218 #ifdef HAVE_WINDOWS_H
15219 #include <windows.h>
15226 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15232 if ac_fn_c_try_compile "$LINENO"; then :
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15234 $as_echo "yes" >&6; }
15236 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15241 $as_echo "no" >&6; }
15244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15247 # not on mingw, check thread libraries.
15249 # check for thread library.
15250 # check this first, so that the pthread lib does not get linked in via
15251 # libssl or libpython, and thus distorts the tests, and we end up using
15252 # the non-threadsafe C libraries.
15254 # Check whether --with-pthreads was given.
15255 if test "${with_pthreads+set}" = set; then :
15256 withval=$with_pthreads;
15261 ub_have_pthreads=no
15262 if test x_$withval != x_no; then
15266 ac_cpp='$CPP $CPPFLAGS'
15267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15273 # We used to check for pthread.h first, but this fails if pthread.h
15274 # requires special compiler flags (e.g. on True64 or Sequent).
15275 # It gets checked for in the link test anyway.
15277 # First of all, check if the user has set any of the PTHREAD_LIBS,
15278 # etcetera environment variables, and if threads linking works using
15280 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15281 save_CFLAGS="$CFLAGS"
15282 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15284 LIBS="$PTHREAD_LIBS $LIBS"
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15286 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h. */
15290 /* Override any GCC internal prototype to avoid an error.
15291 Use char because int might match the return type of a GCC
15292 builtin and then its argument prototype would still apply. */
15296 char pthread_join ();
15300 return pthread_join ();
15305 if ac_fn_c_try_link "$LINENO"; then :
15308 rm -f core conftest.err conftest.$ac_objext \
15309 conftest$ac_exeext conftest.$ac_ext
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15311 $as_echo "$ax_pthread_ok" >&6; }
15312 if test x"$ax_pthread_ok" = xno; then
15317 CFLAGS="$save_CFLAGS"
15320 # We must check for the threads library under a number of different
15321 # names; the ordering is very important because some systems
15322 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15323 # libraries is broken (non-POSIX).
15325 # Create a list of thread flags to try. Items starting with a "-" are
15326 # C compiler flags, and other items are library names, except for "none"
15327 # which indicates that we try without any flags at all, and "pthread-config"
15328 # which is a program returning the flags for the Pth emulation library.
15330 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15332 # The ordering *is* (sometimes) important. Some notes on the
15333 # individual items follow:
15335 # pthreads: AIX (must check this before -lpthread)
15336 # none: in case threads are in libc; should be tried before -Kthread and
15337 # other compiler flags to prevent continual compiler warnings
15338 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15339 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15340 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15341 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15342 # -pthreads: Solaris/gcc
15343 # -mthreads: Mingw32/gcc, Lynx/gcc
15344 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15345 # doesn't hurt to check since this sometimes defines pthreads too;
15346 # also defines -D_REENTRANT)
15347 # ... -mt is also the pthreads flag for HP/aCC
15348 # pthread: Linux, etcetera
15349 # --thread-safe: KAI C++
15350 # pthread-config: use pthread-config program (for GNU Pth library)
15355 # On Solaris (at least, for some versions), libc contains stubbed
15356 # (non-functional) versions of the pthreads routines, so link-based
15357 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15358 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15359 # a function called by this macro, so we could check for that, but
15360 # who knows whether they'll stub that too in a future libc.) So,
15361 # we'll just look for -pthreads and -lpthread first:
15363 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
15367 ax_pthread_flags="-pthread $ax_pthread_flags"
15371 if test x"$ax_pthread_ok" = xno; then
15372 for flag in $ax_pthread_flags; do
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15377 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15382 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15383 PTHREAD_CFLAGS="$flag"
15387 # Extract the first word of "pthread-config", so it can be a program name with args.
15388 set dummy pthread-config; ac_word=$2
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15390 $as_echo_n "checking for $ac_word... " >&6; }
15391 if ${ac_cv_prog_ax_pthread_config+:} false; then :
15392 $as_echo_n "(cached) " >&6
15394 if test -n "$ax_pthread_config"; then
15395 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15398 for as_dir in $PATH
15401 test -z "$as_dir" && as_dir=.
15402 for ac_exec_ext in '' $ac_executable_extensions; do
15403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15404 ac_cv_prog_ax_pthread_config="yes"
15405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15412 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15415 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15416 if test -n "$ax_pthread_config"; then
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15418 $as_echo "$ax_pthread_config" >&6; }
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15421 $as_echo "no" >&6; }
15425 if test x"$ax_pthread_config" = xno; then continue; fi
15426 PTHREAD_CFLAGS="`pthread-config --cflags`"
15427 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15432 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15433 PTHREAD_LIBS="-l$flag"
15438 save_CFLAGS="$CFLAGS"
15439 LIBS="$PTHREAD_LIBS $LIBS"
15440 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15442 # Check for various functions. We must include pthread.h,
15443 # since some functions may be macros. (On the Sequent, we
15444 # need a special flag -Kthread to make this header compile.)
15445 # We check for pthread_join because it is in -lpthread on IRIX
15446 # while pthread_create is in libc. We check for pthread_attr_init
15447 # due to DEC craziness with -lpthreads. We check for
15448 # pthread_cleanup_push because it is one of the few pthread
15449 # functions on Solaris that doesn't have a non-functional libc stub.
15450 # We try pthread_create on general principles.
15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15453 #include <pthread.h>
15454 static void routine(void *a) { *((int*)a) = 0; }
15455 static void *start_routine(void *a) { return a; }
15459 pthread_t th; pthread_attr_t attr;
15460 pthread_create(&th, 0, start_routine, 0);
15461 pthread_join(th, 0);
15462 pthread_attr_init(&attr);
15463 pthread_cleanup_push(routine, 0);
15464 pthread_cleanup_pop(0) /* ; */
15469 if ac_fn_c_try_link "$LINENO"; then :
15472 rm -f core conftest.err conftest.$ac_objext \
15473 conftest$ac_exeext conftest.$ac_ext
15476 CFLAGS="$save_CFLAGS"
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15479 $as_echo "$ax_pthread_ok" >&6; }
15480 if test "x$ax_pthread_ok" = xyes; then
15489 # Various other checks:
15490 if test "x$ax_pthread_ok" = xyes; then
15492 LIBS="$PTHREAD_LIBS $LIBS"
15493 save_CFLAGS="$CFLAGS"
15494 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15496 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15498 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15500 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15503 #include <pthread.h>
15507 int attr = $attr; return attr /* ; */
15512 if ac_fn_c_try_link "$LINENO"; then :
15513 attr_name=$attr; break
15515 rm -f core conftest.err conftest.$ac_objext \
15516 conftest$ac_exeext conftest.$ac_ext
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15519 $as_echo "$attr_name" >&6; }
15520 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15522 cat >>confdefs.h <<_ACEOF
15523 #define PTHREAD_CREATE_JOINABLE $attr_name
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15529 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15532 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
15533 osf* | hpux*) flag="-D_REENTRANT";;
15535 if test "$GCC" = "yes"; then
15536 flag="-D_REENTRANT"
15538 flag="-mt -D_REENTRANT"
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15543 $as_echo "${flag}" >&6; }
15544 if test "x$flag" != xno; then
15545 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15549 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15550 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15551 $as_echo_n "(cached) " >&6
15554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555 /* end confdefs.h. */
15557 #include <pthread.h>
15561 int i = PTHREAD_PRIO_INHERIT;
15566 if ac_fn_c_try_link "$LINENO"; then :
15567 ax_cv_PTHREAD_PRIO_INHERIT=yes
15569 ax_cv_PTHREAD_PRIO_INHERIT=no
15571 rm -f core conftest.err conftest.$ac_objext \
15572 conftest$ac_exeext conftest.$ac_ext
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15576 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15577 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
15579 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15584 CFLAGS="$save_CFLAGS"
15586 # More AIX lossage: compile with *_r variant
15587 if test "x$GCC" != xyes; then
15591 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15592 #handle absolute path differently from PATH based program lookup
15595 if as_fn_executable_p ${CC}_r; then :
15596 PTHREAD_CC="${CC}_r"
15599 for ac_prog in ${CC}_r
15601 # Extract the first word of "$ac_prog", so it can be a program name with args.
15602 set dummy $ac_prog; ac_word=$2
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15604 $as_echo_n "checking for $ac_word... " >&6; }
15605 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15606 $as_echo_n "(cached) " >&6
15608 if test -n "$PTHREAD_CC"; then
15609 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15612 for as_dir in $PATH
15615 test -z "$as_dir" && as_dir=.
15616 for ac_exec_ext in '' $ac_executable_extensions; do
15617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15618 ac_cv_prog_PTHREAD_CC="$ac_prog"
15619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15628 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15629 if test -n "$PTHREAD_CC"; then
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15631 $as_echo "$PTHREAD_CC" >&6; }
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15634 $as_echo "no" >&6; }
15638 test -n "$PTHREAD_CC" && break
15640 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15651 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15657 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15658 if test x"$ax_pthread_ok" = xyes; then
15661 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15663 LIBS="$PTHREAD_LIBS $LIBS"
15664 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15666 ub_have_pthreads=yes
15667 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15669 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
15671 cat >>confdefs.h <<_ACEOF
15672 #define HAVE_PTHREAD_SPINLOCK_T 1
15677 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15679 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15681 cat >>confdefs.h <<_ACEOF
15682 #define HAVE_PTHREAD_RWLOCK_T 1
15695 ac_cpp='$CPP $CPPFLAGS'
15696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15703 # check solaris thread library
15705 # Check whether --with-solaris-threads was given.
15706 if test "${with_solaris_threads+set}" = set; then :
15707 withval=$with_solaris_threads;
15712 ub_have_sol_threads=no
15713 if test x_$withval != x_no; then
15714 if test x_$ub_have_pthreads != x_no; then
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15716 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15719 $as_echo_n "checking for library containing thr_create... " >&6; }
15720 if ${ac_cv_search_thr_create+:} false; then :
15721 $as_echo_n "(cached) " >&6
15723 ac_func_search_save_LIBS=$LIBS
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15727 /* Override any GCC internal prototype to avoid an error.
15728 Use char because int might match the return type of a GCC
15729 builtin and then its argument prototype would still apply. */
15733 char thr_create ();
15737 return thr_create ();
15742 for ac_lib in '' thread; do
15743 if test -z "$ac_lib"; then
15744 ac_res="none required"
15747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15749 if ac_fn_c_try_link "$LINENO"; then :
15750 ac_cv_search_thr_create=$ac_res
15752 rm -f core conftest.err conftest.$ac_objext \
15754 if ${ac_cv_search_thr_create+:} false; then :
15758 if ${ac_cv_search_thr_create+:} false; then :
15761 ac_cv_search_thr_create=no
15763 rm conftest.$ac_ext
15764 LIBS=$ac_func_search_save_LIBS
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15767 $as_echo "$ac_cv_search_thr_create" >&6; }
15768 ac_res=$ac_cv_search_thr_create
15769 if test "$ac_res" != no; then :
15770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15773 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15779 $as_echo_n "checking whether $CC supports -mt... " >&6; }
15780 cache=`echo mt | sed 'y%.=/+-%___p_%'`
15781 if eval \${cv_prog_cc_flag_$cache+:} false; then :
15782 $as_echo_n "(cached) " >&6
15785 echo 'void f(void){}' >conftest.c
15786 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15787 eval "cv_prog_cc_flag_$cache=yes"
15789 eval "cv_prog_cc_flag_$cache=no"
15791 rm -f conftest conftest.o conftest.c
15795 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15797 $as_echo "yes" >&6; }
15799 CFLAGS="$CFLAGS -mt"
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15802 $as_echo "no" >&6; }
15804 CFLAGS="$CFLAGS -D_REENTRANT"
15807 ub_have_sol_threads=yes
15811 as_fn_error $? "no solaris threads found." "$LINENO" 5
15818 fi # end of non-mingw check of thread libraries
15820 # Check for PyUnbound
15822 # Check whether --with-pyunbound was given.
15823 if test "${with_pyunbound+set}" = set; then :
15824 withval=$with_pyunbound;
15831 ub_with_pyunbound=no
15832 if test x_$withval != x_no; then
15833 ub_with_pyunbound=yes
15837 # Check for Python module
15839 # Check whether --with-pythonmodule was given.
15840 if test "${with_pythonmodule+set}" = set; then :
15841 withval=$with_pythonmodule;
15847 ub_with_pythonmod=no
15848 if test x_$withval != x_no; then
15849 ub_with_pythonmod=yes
15853 # Check for Python & SWIG only on PyUnbound or PyModule
15854 if test x_$ub_test_python != x_no; then
15858 ac_save_LIBS="$LIBS"
15860 # Allow the use of a (user set) custom python version
15864 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15865 set dummy python$PYTHON_VERSION; ac_word=$2
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15867 $as_echo_n "checking for $ac_word... " >&6; }
15868 if ${ac_cv_path_PYTHON+:} false; then :
15869 $as_echo_n "(cached) " >&6
15873 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15877 for as_dir in $PATH
15880 test -z "$as_dir" && as_dir=.
15881 for ac_exec_ext in '' $ac_executable_extensions; do
15882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15883 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15894 PYTHON=$ac_cv_path_PYTHON
15895 if test -n "$PYTHON"; then
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15897 $as_echo "$PYTHON" >&6; }
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15900 $as_echo "no" >&6; }
15904 if test -z "$PYTHON"; then
15905 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15909 if test -z "$PYTHON_VERSION"; then
15910 PYTHON_VERSION=`$PYTHON -c "import sys, string; \
15911 print string.split(sys.version)[0]"`
15915 # Check for a version of Python >= 2.1.0
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
15918 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
15919 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15920 ver = string.split(sys.version)[0]; \
15921 print ver >= '2.1.0'"`
15922 if test "$ac_supports_python_ver" != "True"; then
15923 if test -z "$PYTHON_NOVERSIONCHECK"; then
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15925 $as_echo "no" >&6; }
15926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15929 This version of the AC_PYTHON_DEVEL macro
15930 doesn't work properly with versions of Python before
15931 2.1.0. You may need to re-run configure, setting the
15932 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
15933 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
15934 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
15935 to something else than an empty string.
15937 See \`config.log' for more details" "$LINENO" 5; }
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
15940 $as_echo "skip at user request" >&6; }
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15944 $as_echo "yes" >&6; }
15948 # if the macro parameter ``version'' is set, honour it
15950 if test -n ""; then
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
15952 $as_echo_n "checking for a version of Python ... " >&6; }
15953 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15954 ver = string.split(sys.version)[0]; \
15956 if test "$ac_supports_python_ver" = "True"; then
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15958 $as_echo "yes" >&6; }
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15961 $as_echo "no" >&6; }
15962 as_fn_error $? "this package requires Python .
15963 If you have it installed, but it isn't the default Python
15964 interpreter in your system path, please pass the PYTHON_VERSION
15965 variable to configure. See \`\`configure --help'' for reference.
15972 # Check if you have distutils, else fail
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15975 $as_echo_n "checking for the distutils Python package... " >&6; }
15976 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15977 if test -z "$ac_distutils_result"; then
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15979 $as_echo "yes" >&6; }
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15982 $as_echo "no" >&6; }
15983 as_fn_error $? "cannot import Python module \"distutils\".
15984 Please check your Python installation. The error was:
15985 $ac_distutils_result" "$LINENO" 5
15990 # Check for Python include path
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15993 $as_echo_n "checking for Python include path... " >&6; }
15994 if test -z "$PYTHON_CPPFLAGS"; then
15995 python_path=`$PYTHON -c "import distutils.sysconfig; \
15996 print distutils.sysconfig.get_python_inc();"`
15997 if test -n "${python_path}"; then
15998 python_path="-I$python_path"
16000 PYTHON_CPPFLAGS=$python_path
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16003 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16007 # Check for Python library path
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16010 $as_echo_n "checking for Python library path... " >&6; }
16011 if test -z "$PYTHON_LDFLAGS"; then
16012 # (makes two attempts to ensure we've got a version number
16013 # from the interpreter)
16014 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
16015 from string import join; \
16016 print join(get_config_vars('VERSION'))"`
16017 if test "$py_version" = "None"; then
16018 if test -n "$PYTHON_VERSION"; then
16019 py_version=$PYTHON_VERSION
16021 py_version=`$PYTHON -c "import sys; \
16022 print sys.version[:3]"`
16026 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16027 from string import join; \
16028 print '-L' + get_python_lib(0,1), \
16029 '-L' + os.path.dirname(get_python_lib(0,1)), \
16030 '-lpython';"`$py_version
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16033 $as_echo "$PYTHON_LDFLAGS" >&6; }
16037 # Check for site packages
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16040 $as_echo_n "checking for Python site-packages path... " >&6; }
16041 if test -z "$PYTHON_SITE_PKG"; then
16042 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16043 print distutils.sysconfig.get_python_lib(1,0);"`
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16046 $as_echo "$PYTHON_SITE_PKG" >&6; }
16050 # libraries which must be linked in when embedding
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
16053 $as_echo_n "checking python extra libraries... " >&6; }
16054 if test -z "$PYTHON_EXTRA_LIBS"; then
16055 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
16056 conf = distutils.sysconfig.get_config_var; \
16057 print conf('LOCALMODLIBS'), conf('LIBS')"`
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
16060 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
16064 # linking flags needed when embedding
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
16067 $as_echo_n "checking python extra linking flags... " >&6; }
16068 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
16069 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
16070 conf = distutils.sysconfig.get_config_var; \
16071 print conf('LINKFORSHARED')"`
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
16074 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
16078 # final check to see if everything compiles alright
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16081 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16083 ac_cpp='$CPP $CPPFLAGS'
16084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16088 # save current global flags
16089 ac_save_LIBS="$LIBS"
16090 ac_save_CPPFLAGS="$CPPFLAGS"
16092 LIBS="$LIBS $PYTHON_LDFLAGS"
16093 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095 /* end confdefs.h. */
16097 #include <Python.h>
16109 if ac_fn_c_try_link "$LINENO"; then :
16114 rm -f core conftest.err conftest.$ac_objext \
16115 conftest$ac_exeext conftest.$ac_ext
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16118 $as_echo "$pythonexists" >&6; }
16120 if test ! "$pythonexists" = "yes"; then
16122 Could not link test program to Python. Maybe the main Python library has been
16123 installed in some non-standard library path. If so, pass it to configure,
16124 via the LDFLAGS environment variable.
16125 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16126 ============================================================================
16128 You probably have to install the development version of the Python package
16129 for your distribution. The exact name of this package varies among them.
16130 ============================================================================
16135 ac_cpp='$CPP $CPPFLAGS'
16136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16140 # turn back to default flags
16141 CPPFLAGS="$ac_save_CPPFLAGS"
16142 LIBS="$ac_save_LIBS"
16148 if test ! -z "$PYTHON_VERSION"; then
16149 if test `$PYTHON -c "print '$PYTHON_VERSION' >= '2.4.0'"` = "False"; then
16150 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16155 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16157 LIBS="$PYTHON_LDFLAGS $LIBS"
16158 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16164 # Extract the first word of "swig", so it can be a program name with args.
16165 set dummy swig; ac_word=$2
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16167 $as_echo_n "checking for $ac_word... " >&6; }
16168 if ${ac_cv_path_SWIG+:} false; then :
16169 $as_echo_n "(cached) " >&6
16173 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16177 for as_dir in $PATH
16180 test -z "$as_dir" && as_dir=.
16181 for ac_exec_ext in '' $ac_executable_extensions; do
16182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16183 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16194 SWIG=$ac_cv_path_SWIG
16195 if test -n "$SWIG"; then
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16197 $as_echo "$SWIG" >&6; }
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16200 $as_echo "no" >&6; }
16204 if test -z "$SWIG" ; then
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16206 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16207 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16208 elif test -n "" ; then
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16210 $as_echo_n "checking for SWIG version... " >&6; }
16211 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'`
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16213 $as_echo "$swig_version" >&6; }
16214 if test -n "$swig_version" ; then
16215 # Calculate the required version number components
16217 required_major=`echo $required | sed 's/[^0-9].*//'`
16218 if test -z "$required_major" ; then
16221 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16222 required_minor=`echo $required | sed 's/[^0-9].*//'`
16223 if test -z "$required_minor" ; then
16226 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16227 required_patch=`echo $required | sed 's/[^0-9].*//'`
16228 if test -z "$required_patch" ; then
16231 # Calculate the available version number components
16232 available=$swig_version
16233 available_major=`echo $available | sed 's/[^0-9].*//'`
16234 if test -z "$available_major" ; then
16237 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16238 available_minor=`echo $available | sed 's/[^0-9].*//'`
16239 if test -z "$available_minor" ; then
16242 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16243 available_patch=`echo $available | sed 's/[^0-9].*//'`
16244 if test -z "$available_patch" ; then
16247 if test $available_major -ne $required_major \
16248 -o $available_minor -ne $required_minor \
16249 -o $available_patch -lt $required_patch ; then
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&5
16251 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
16252 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
16255 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
16256 SWIG_LIB=`$SWIG -swiglib`
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
16258 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16262 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16263 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16269 $as_echo_n "checking SWIG... " >&6; }
16270 if test ! -x "$SWIG"; then
16271 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16274 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16279 $as_echo "present" >&6; }
16281 # If have Python & SWIG
16282 # Declare PythonMod
16283 if test x_$ub_with_pythonmod != x_no; then
16285 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16287 WITH_PYTHONMODULE=yes
16289 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
16291 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
16293 PYTHONMOD_INSTALL=pythonmod-install
16295 PYTHONMOD_UNINSTALL=pythonmod-uninstall
16299 # Declare PyUnbound
16300 if test x_$ub_with_pyunbound != x_no; then
16302 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16306 PYUNBOUND_OBJ="libunbound_wrap.lo"
16308 PYUNBOUND_TARGET="_unbound.la"
16310 PYUNBOUND_INSTALL=pyunbound-install
16312 PYUNBOUND_UNINSTALL=pyunbound-uninstall
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16318 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16319 ub_with_pyunbound=no
16320 ub_with_pythonmod=no
16324 if test "`uname`" = "NetBSD"; then
16325 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16328 CONFIG_DATE=`date +%Y%m%d`
16331 # Checks for libraries.
16336 # Check whether --with-nss was given.
16337 if test "${with_nss+set}" = set; then :
16341 $as_echo "#define HAVE_NSS 1" >>confdefs.h
16343 if test "$withval" != "" -a "$withval" != "yes"; then
16344 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
16345 LDFLAGS="$LDFLAGS -L$withval/lib"
16347 if test "x$enable_rpath" = xyes; then
16348 if echo "$withval/lib" | grep "^/" >/dev/null; then
16349 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16353 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16355 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
16356 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16358 LIBS="$LIBS -lnss3 -lnspr4"
16365 if test $USE_NSS = "no"; then
16368 # Check whether --with-ssl was given.
16369 if test "${with_ssl+set}" = set; then :
16378 if test x_$withval = x_no; then
16379 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
16383 if test x_$withval != x_no; then
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16385 $as_echo_n "checking for SSL... " >&6; }
16386 if test x_$withval = x_ -o x_$withval = x_yes; then
16387 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16389 for dir in $withval; do
16391 if test -f "$dir/include/openssl/ssl.h"; then
16394 cat >>confdefs.h <<_ACEOF
16395 #define HAVE_SSL /**/
16398 if test "$ssldir" != "/usr"; then
16399 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16400 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16405 if test x_$found_ssl != x_yes; then
16406 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16409 $as_echo "found in $ssldir" >&6; }
16411 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16412 LDFLAGS="$LDFLAGS -L$ssldir/lib"
16413 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16415 if test "x$enable_rpath" = xyes; then
16416 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16417 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16424 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16425 LIBS="$LIBS -lcrypto"
16426 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16434 int HMAC_CTX_init(void);
16435 (void)HMAC_CTX_init();
16441 if ac_fn_c_try_link "$LINENO"; then :
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16444 $as_echo "yes" >&6; }
16446 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16452 $as_echo "no" >&6; }
16453 # check if -lwsock32 or -lgdi32 are needed.
16455 BAKSSLLIBS="$LIBSSL_LIBS"
16456 LIBS="$LIBS -lgdi32"
16457 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16459 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16461 /* end confdefs.h. */
16467 int HMAC_CTX_init(void);
16468 (void)HMAC_CTX_init();
16474 if ac_fn_c_try_link "$LINENO"; then :
16477 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16480 $as_echo "yes" >&6; }
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16485 $as_echo "no" >&6; }
16487 LIBSSL_LIBS="$BAKSSLLIBS"
16489 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16491 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h. */
16499 int HMAC_CTX_init(void);
16500 (void)HMAC_CTX_init();
16506 if ac_fn_c_try_link "$LINENO"; then :
16509 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16512 $as_echo "yes" >&6; }
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16517 $as_echo "no" >&6; }
16518 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16521 rm -f core conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext conftest.$ac_ext
16525 rm -f core conftest.err conftest.$ac_objext \
16526 conftest$ac_exeext conftest.$ac_ext
16529 rm -f core conftest.err conftest.$ac_objext \
16530 conftest$ac_exeext conftest.$ac_ext
16534 # openssl engine functionality needs dlopen().
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16537 $as_echo_n "checking for library containing dlopen... " >&6; }
16538 if ${ac_cv_search_dlopen+:} false; then :
16539 $as_echo_n "(cached) " >&6
16541 ac_func_search_save_LIBS=$LIBS
16542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16543 /* end confdefs.h. */
16545 /* Override any GCC internal prototype to avoid an error.
16546 Use char because int might match the return type of a GCC
16547 builtin and then its argument prototype would still apply. */
16560 for ac_lib in '' dl; do
16561 if test -z "$ac_lib"; then
16562 ac_res="none required"
16565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16567 if ac_fn_c_try_link "$LINENO"; then :
16568 ac_cv_search_dlopen=$ac_res
16570 rm -f core conftest.err conftest.$ac_objext \
16572 if ${ac_cv_search_dlopen+:} false; then :
16576 if ${ac_cv_search_dlopen+:} false; then :
16579 ac_cv_search_dlopen=no
16581 rm conftest.$ac_ext
16582 LIBS=$ac_func_search_save_LIBS
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16585 $as_echo "$ac_cv_search_dlopen" >&6; }
16586 ac_res=$ac_cv_search_dlopen
16587 if test "$ac_res" != no; then :
16588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16592 if test "$LIBS" != "$BAKLIBS"; then
16593 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16596 for ac_header in openssl/ssl.h
16598 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16600 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
16601 cat >>confdefs.h <<_ACEOF
16602 #define HAVE_OPENSSL_SSL_H 1
16609 for ac_header in openssl/err.h
16611 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16613 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
16614 cat >>confdefs.h <<_ACEOF
16615 #define HAVE_OPENSSL_ERR_H 1
16622 for ac_header in openssl/rand.h
16624 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16626 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
16627 cat >>confdefs.h <<_ACEOF
16628 #define HAVE_OPENSSL_RAND_H 1
16638 # check if libssl needs libdl
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16642 $as_echo_n "checking if libssl needs libdl... " >&6; }
16643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644 /* end confdefs.h. */
16646 /* Override any GCC internal prototype to avoid an error.
16647 Use char because int might match the return type of a GCC
16648 builtin and then its argument prototype would still apply. */
16652 char SSL_CTX_new ();
16656 return SSL_CTX_new ();
16661 if ac_fn_c_try_link "$LINENO"; then :
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16664 $as_echo "no" >&6; }
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16670 $as_echo "yes" >&6; }
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16673 $as_echo_n "checking for library containing dlopen... " >&6; }
16674 if ${ac_cv_search_dlopen+:} false; then :
16675 $as_echo_n "(cached) " >&6
16677 ac_func_search_save_LIBS=$LIBS
16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h. */
16681 /* Override any GCC internal prototype to avoid an error.
16682 Use char because int might match the return type of a GCC
16683 builtin and then its argument prototype would still apply. */
16696 for ac_lib in '' dl; do
16697 if test -z "$ac_lib"; then
16698 ac_res="none required"
16701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16703 if ac_fn_c_try_link "$LINENO"; then :
16704 ac_cv_search_dlopen=$ac_res
16706 rm -f core conftest.err conftest.$ac_objext \
16708 if ${ac_cv_search_dlopen+:} false; then :
16712 if ${ac_cv_search_dlopen+:} false; then :
16715 ac_cv_search_dlopen=no
16717 rm conftest.$ac_ext
16718 LIBS=$ac_func_search_save_LIBS
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16721 $as_echo "$ac_cv_search_dlopen" >&6; }
16722 ac_res=$ac_cv_search_dlopen
16723 if test "$ac_res" != no; then :
16724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16730 rm -f core conftest.err conftest.$ac_objext \
16731 conftest$ac_exeext conftest.$ac_ext
16732 for ac_header in openssl/conf.h
16734 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16736 if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
16737 cat >>confdefs.h <<_ACEOF
16738 #define HAVE_OPENSSL_CONF_H 1
16745 for ac_header in openssl/engine.h
16747 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16749 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
16750 cat >>confdefs.h <<_ACEOF
16751 #define HAVE_OPENSSL_ENGINE_H 1
16758 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16760 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16761 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16762 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16763 cat >>confdefs.h <<_ACEOF
16764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16770 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16771 $ac_includes_default
16772 #ifdef HAVE_OPENSSL_ERR_H
16773 #include <openssl/err.h>
16776 #ifdef HAVE_OPENSSL_RAND_H
16777 #include <openssl/rand.h>
16780 #ifdef HAVE_OPENSSL_CONF_H
16781 #include <openssl/conf.h>
16784 #ifdef HAVE_OPENSSL_ENGINE_H
16785 #include <openssl/engine.h>
16787 #include <openssl/ssl.h>
16788 #include <openssl/evp.h>
16791 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
16797 cat >>confdefs.h <<_ACEOF
16798 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16800 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16801 $ac_includes_default
16802 #ifdef HAVE_OPENSSL_ERR_H
16803 #include <openssl/err.h>
16806 #ifdef HAVE_OPENSSL_RAND_H
16807 #include <openssl/rand.h>
16810 #ifdef HAVE_OPENSSL_CONF_H
16811 #include <openssl/conf.h>
16814 #ifdef HAVE_OPENSSL_ENGINE_H
16815 #include <openssl/engine.h>
16817 #include <openssl/ssl.h>
16818 #include <openssl/evp.h>
16821 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
16827 cat >>confdefs.h <<_ACEOF
16828 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16834 # Check whether --enable-sha2 was given.
16835 if test "${enable_sha2+set}" = set; then :
16836 enableval=$enable_sha2;
16839 case "$enable_sha2" in
16844 $as_echo "#define USE_SHA2 1" >>confdefs.h
16849 # check wether gost also works
16851 # Check whether --enable-gost was given.
16852 if test "${enable_gost+set}" = set; then :
16853 enableval=$enable_gost;
16857 if test $USE_NSS = "no"; then
16858 case "$enable_gost" in
16862 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16863 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
16866 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
16869 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16870 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
16873 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16878 $as_echo_n "checking if GOST works... " >&6; }
16879 if test c${cross_compiling} = cno; then
16880 BAKCFLAGS="$CFLAGS"
16881 if test -n "$ssldir"; then
16882 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
16884 if test "$cross_compiling" = yes; then :
16885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16887 as_fn_error $? "cannot run test program while cross compiling
16888 See \`config.log' for more details" "$LINENO" 5; }
16890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16893 #include <string.h>
16894 #include <openssl/ssl.h>
16895 #include <openssl/evp.h>
16896 #include <openssl/engine.h>
16897 #include <openssl/conf.h>
16898 /* routine to load gost (from sldns) */
16899 int load_gost_id(void)
16901 static int gost_id = 0;
16902 const EVP_PKEY_ASN1_METHOD* meth;
16905 if(gost_id) return gost_id;
16907 /* see if configuration loaded gost implementation from other engine*/
16908 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16910 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16914 /* see if engine can be loaded already */
16915 e = ENGINE_by_id("gost");
16917 /* load it ourself, in case statically linked */
16918 ENGINE_load_builtin_engines();
16919 ENGINE_load_dynamic();
16920 e = ENGINE_by_id("gost");
16923 /* no gost engine in openssl */
16926 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16932 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16934 /* algo not found */
16939 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16945 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16946 const char* str = "Hello world";
16947 const unsigned char check[] = {
16948 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16949 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16950 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16951 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16953 OPENSSL_config(NULL);
16954 (void)load_gost_id();
16955 md = EVP_get_digestbyname("md_gost94");
16957 memset(digest, 0, sizeof(digest));
16958 ctx = EVP_MD_CTX_create();
16960 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16961 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16962 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16963 /* uncomment to see the hash calculated.
16965 for(i=0; i<32; i++)
16966 printf(" %2.2x", (int)digest[i]);
16969 if(memcmp(digest, check, sizeof(check)) != 0)
16975 if ac_fn_c_try_run "$LINENO"; then :
16976 eval "ac_cv_c_gost_works=yes"
16978 eval "ac_cv_c_gost_works=no"
16980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16981 conftest.$ac_objext conftest.beam conftest.$ac_ext
16984 CFLAGS="$BAKCFLAGS"
16986 eval "ac_cv_c_gost_works=maybe"
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
16989 $as_echo "$ac_cv_c_gost_works" >&6; }
16991 if test "$ac_cv_c_gost_works" != no; then
16994 $as_echo "#define USE_GOST 1" >>confdefs.h
17000 # Check whether --enable-ecdsa was given.
17001 if test "${enable_ecdsa+set}" = set; then :
17002 enableval=$enable_ecdsa;
17006 case "$enable_ecdsa" in
17010 if test $USE_NSS = "no"; then
17011 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
17012 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
17015 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17018 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
17019 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
17022 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17025 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17026 #include <openssl/evp.h>
17029 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
17038 if test $ac_have_decl = 1; then :
17041 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17043 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
17044 #include <openssl/evp.h>
17047 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
17053 cat >>confdefs.h <<_ACEOF
17054 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
17056 if test $ac_have_decl = 1; then :
17059 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17062 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
17064 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
17065 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17067 $as_echo "no" >&6; }
17069 cat >>confdefs.h <<_ACEOF
17070 #define USE_ECDSA_EVP_WORKAROUND 1
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17075 $as_echo "yes" >&6; }
17078 # we now know we have ECDSA and the required curves.
17080 cat >>confdefs.h <<_ACEOF
17081 #define USE_ECDSA 1
17088 # Check whether --enable-event-api was given.
17089 if test "${enable_event_api+set}" = set; then :
17090 enableval=$enable_event_api;
17093 use_unbound_event="no"
17094 case "$enable_event_api" in
17096 use_unbound_event="yes"
17102 # check for libevent
17104 # Check whether --with-libevent was given.
17105 if test "${with_libevent+set}" = set; then :
17106 withval=$with_libevent;
17111 if test x_$withval = x_yes -o x_$withval != x_no; then
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
17113 $as_echo_n "checking for libevent... " >&6; }
17114 if test x_$withval = x_ -o x_$withval = x_yes; then
17115 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17117 for dir in $withval; do
17119 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
17120 found_libevent="yes"
17121 if test "$thedir" != "/usr"; then
17122 CPPFLAGS="$CPPFLAGS -I$thedir/include"
17127 if test x_$found_libevent != x_yes; then
17128 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
17129 # libevent source directory
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17131 $as_echo "found in $thedir" >&6; }
17132 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
17133 BAK_LDFLAGS_SET="1"
17134 BAK_LDFLAGS="$LDFLAGS"
17135 # remove evdns from linking
17136 mkdir build >/dev/null 2>&1
17137 mkdir build/libevent >/dev/null 2>&1
17138 mkdir build/libevent/.libs >/dev/null 2>&1
17139 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17140 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
17141 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17142 cp $ev_files_o build/libevent
17143 cp $ev_files_lo build/libevent
17144 cp $ev_files_libso build/libevent/.libs
17145 LATE_LDFLAGS="build/libevent/*.lo -lm"
17146 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
17148 as_fn_error $? "Cannot find the libevent library in $withval
17149 You can restart ./configure --with-libevent=no to use a builtin alternative.
17150 Please note that this alternative is not as capable as libevent when using
17151 large outgoing port ranges. " "$LINENO" 5
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17155 $as_echo "found in $thedir" >&6; }
17156 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
17157 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
17159 if test "x$enable_rpath" = xyes; then
17160 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
17161 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
17166 if test "$thedir" != "/usr" -a "$thedir" != ""; then
17167 LDFLAGS="$LDFLAGS -L$thedir/lib"
17169 if test "x$enable_rpath" = xyes; then
17170 if echo "$thedir/lib" | grep "^/" >/dev/null; then
17171 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
17178 # check for library used by libevent after 1.3c
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17180 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17181 if ${ac_cv_search_clock_gettime+:} false; then :
17182 $as_echo_n "(cached) " >&6
17184 ac_func_search_save_LIBS=$LIBS
17185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186 /* end confdefs.h. */
17188 /* Override any GCC internal prototype to avoid an error.
17189 Use char because int might match the return type of a GCC
17190 builtin and then its argument prototype would still apply. */
17194 char clock_gettime ();
17198 return clock_gettime ();
17203 for ac_lib in '' rt; do
17204 if test -z "$ac_lib"; then
17205 ac_res="none required"
17208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17210 if ac_fn_c_try_link "$LINENO"; then :
17211 ac_cv_search_clock_gettime=$ac_res
17213 rm -f core conftest.err conftest.$ac_objext \
17215 if ${ac_cv_search_clock_gettime+:} false; then :
17219 if ${ac_cv_search_clock_gettime+:} false; then :
17222 ac_cv_search_clock_gettime=no
17224 rm conftest.$ac_ext
17225 LIBS=$ac_func_search_save_LIBS
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17228 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17229 ac_res=$ac_cv_search_clock_gettime
17230 if test "$ac_res" != no; then :
17231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17236 # is the event.h header libev or libevent?
17237 for ac_header in event.h
17239 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
17241 if test "x$ac_cv_header_event_h" = xyes; then :
17242 cat >>confdefs.h <<_ACEOF
17243 #define HAVE_EVENT_H 1
17250 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
17254 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17257 $as_echo_n "checking for library containing event_set... " >&6; }
17258 if ${ac_cv_search_event_set+:} false; then :
17259 $as_echo_n "(cached) " >&6
17261 ac_func_search_save_LIBS=$LIBS
17262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17263 /* end confdefs.h. */
17265 /* Override any GCC internal prototype to avoid an error.
17266 Use char because int might match the return type of a GCC
17267 builtin and then its argument prototype would still apply. */
17275 return event_set ();
17280 for ac_lib in '' ev; do
17281 if test -z "$ac_lib"; then
17282 ac_res="none required"
17285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17287 if ac_fn_c_try_link "$LINENO"; then :
17288 ac_cv_search_event_set=$ac_res
17290 rm -f core conftest.err conftest.$ac_objext \
17292 if ${ac_cv_search_event_set+:} false; then :
17296 if ${ac_cv_search_event_set+:} false; then :
17299 ac_cv_search_event_set=no
17301 rm conftest.$ac_ext
17302 LIBS=$ac_func_search_save_LIBS
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17305 $as_echo "$ac_cv_search_event_set" >&6; }
17306 ac_res=$ac_cv_search_event_set
17307 if test "$ac_res" != no; then :
17308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17316 $as_echo_n "checking for library containing event_set... " >&6; }
17317 if ${ac_cv_search_event_set+:} false; then :
17318 $as_echo_n "(cached) " >&6
17320 ac_func_search_save_LIBS=$LIBS
17321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322 /* end confdefs.h. */
17324 /* Override any GCC internal prototype to avoid an error.
17325 Use char because int might match the return type of a GCC
17326 builtin and then its argument prototype would still apply. */
17334 return event_set ();
17339 for ac_lib in '' event; do
17340 if test -z "$ac_lib"; then
17341 ac_res="none required"
17344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17346 if ac_fn_c_try_link "$LINENO"; then :
17347 ac_cv_search_event_set=$ac_res
17349 rm -f core conftest.err conftest.$ac_objext \
17351 if ${ac_cv_search_event_set+:} false; then :
17355 if ${ac_cv_search_event_set+:} false; then :
17358 ac_cv_search_event_set=no
17360 rm conftest.$ac_ext
17361 LIBS=$ac_func_search_save_LIBS
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17364 $as_echo "$ac_cv_search_event_set" >&6; }
17365 ac_res=$ac_cv_search_event_set
17366 if test "$ac_res" != no; then :
17367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17374 for ac_func in event_base_free
17376 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17377 if test "x$ac_cv_func_event_base_free" = xyes; then :
17378 cat >>confdefs.h <<_ACEOF
17379 #define HAVE_EVENT_BASE_FREE 1
17384 # only in libevent 1.2 and later
17385 for ac_func in event_base_once
17387 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17388 if test "x$ac_cv_func_event_base_once" = xyes; then :
17389 cat >>confdefs.h <<_ACEOF
17390 #define HAVE_EVENT_BASE_ONCE 1
17395 # only in libevent 1.4.1 and later
17396 for ac_func in event_base_new
17398 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17399 if test "x$ac_cv_func_event_base_new" = xyes; then :
17400 cat >>confdefs.h <<_ACEOF
17401 #define HAVE_EVENT_BASE_NEW 1
17406 # only in libevent 1.4.1 and later
17407 for ac_func in event_base_get_method
17409 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17410 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
17411 cat >>confdefs.h <<_ACEOF
17412 #define HAVE_EVENT_BASE_GET_METHOD 1
17417 # only in libevent 1.4.3 and later
17418 for ac_func in ev_loop
17420 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17421 if test "x$ac_cv_func_ev_loop" = xyes; then :
17422 cat >>confdefs.h <<_ACEOF
17423 #define HAVE_EV_LOOP 1
17428 # only in libev. (tested on 3.51)
17429 for ac_func in ev_default_loop
17431 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17432 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
17433 cat >>confdefs.h <<_ACEOF
17434 #define HAVE_EV_DEFAULT_LOOP 1
17439 # only in libev. (tested on 4.00)
17440 if test -n "$BAK_LDFLAGS_SET"; then
17441 LDFLAGS="$BAK_LDFLAGS"
17443 if test "$use_unbound_event" = "yes"; then
17444 UNBOUND_EVENT_INSTALL=unbound-event-install
17446 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
17451 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17455 # check for libexpat
17457 # Check whether --with-libexpat was given.
17458 if test "${with_libexpat+set}" = set; then :
17459 withval=$with_libexpat;
17461 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17465 $as_echo_n "checking for libexpat... " >&6; }
17466 found_libexpat="no"
17467 for dir in $withval ; do
17468 if test -f "$dir/include/expat.h"; then
17469 found_libexpat="yes"
17470 if test "$dir" != "/usr"; then
17471 CPPFLAGS="$CPPFLAGS -I$dir/include"
17472 LDFLAGS="$LDFLAGS -L$dir/lib"
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17475 $as_echo "found in $dir" >&6; }
17479 if test x_$found_libexpat != x_yes; then
17480 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
17482 for ac_header in expat.h
17484 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17486 if test "x$ac_cv_header_expat_h" = xyes; then :
17487 cat >>confdefs.h <<_ACEOF
17488 #define HAVE_EXPAT_H 1
17496 # set static linking if requested
17499 # Check whether --enable-static-exe was given.
17500 if test "${enable_static_exe+set}" = set; then :
17501 enableval=$enable_static_exe;
17504 if test x_$enable_static_exe = x_yes; then
17505 staticexe="-static"
17506 if test "$on_mingw" = yes; then
17507 staticexe="-all-static"
17508 # for static crosscompile, include gdi32 and zlib here.
17509 if test "`uname`" = "Linux"; then
17510 LIBS="$LIBS -lgdi32 -lz"
17515 # set lock checking if requested
17516 # Check whether --enable-lock_checks was given.
17517 if test "${enable_lock_checks+set}" = set; then :
17518 enableval=$enable_lock_checks;
17521 if test x_$enable_lock_checks = x_yes; then
17523 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17525 CHECKLOCK_OBJ="checklocks.lo"
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17531 $as_echo_n "checking for getaddrinfo... " >&6; }
17532 ac_cv_func_getaddrinfo=no
17533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17534 /* end confdefs.h. */
17540 char* getaddrinfo();
17541 char* (*f) () = getaddrinfo;
17551 if ac_fn_c_try_link "$LINENO"; then :
17552 ac_cv_func_getaddrinfo="yes"
17553 if test "$ac_cv_header_windows_h" = "yes"; then
17555 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17558 LIBS="$LIBS -lws2_32"
17563 LIBS="$LIBS -lws2_32"
17564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h. */
17567 #ifdef HAVE_WS2TCPIP_H
17568 #include <ws2tcpip.h>
17575 (void)getaddrinfo(NULL, NULL, NULL, NULL);
17582 if ac_fn_c_try_link "$LINENO"; then :
17584 ac_cv_func_getaddrinfo="yes"
17586 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17592 ac_cv_func_getaddrinfo="no"
17596 rm -f core conftest.err conftest.$ac_objext \
17597 conftest$ac_exeext conftest.$ac_ext
17600 rm -f core conftest.err conftest.$ac_objext \
17601 conftest$ac_exeext conftest.$ac_ext
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17604 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
17605 if test $ac_cv_func_getaddrinfo = yes; then
17607 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17611 if test "$USE_WINSOCK" = 1; then
17613 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17615 for ac_header in iphlpapi.h
17617 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17618 #include <windows.h>
17621 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
17622 cat >>confdefs.h <<_ACEOF
17623 #define HAVE_IPHLPAPI_H 1
17630 if test -n "$ac_tool_prefix"; then
17631 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17632 set dummy ${ac_tool_prefix}windres; ac_word=$2
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17634 $as_echo_n "checking for $ac_word... " >&6; }
17635 if ${ac_cv_prog_WINDRES+:} false; then :
17636 $as_echo_n "(cached) " >&6
17638 if test -n "$WINDRES"; then
17639 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17642 for as_dir in $PATH
17645 test -z "$as_dir" && as_dir=.
17646 for ac_exec_ext in '' $ac_executable_extensions; do
17647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17648 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17658 WINDRES=$ac_cv_prog_WINDRES
17659 if test -n "$WINDRES"; then
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17661 $as_echo "$WINDRES" >&6; }
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17664 $as_echo "no" >&6; }
17669 if test -z "$ac_cv_prog_WINDRES"; then
17670 ac_ct_WINDRES=$WINDRES
17671 # Extract the first word of "windres", so it can be a program name with args.
17672 set dummy windres; ac_word=$2
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17674 $as_echo_n "checking for $ac_word... " >&6; }
17675 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17676 $as_echo_n "(cached) " >&6
17678 if test -n "$ac_ct_WINDRES"; then
17679 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17682 for as_dir in $PATH
17685 test -z "$as_dir" && as_dir=.
17686 for ac_exec_ext in '' $ac_executable_extensions; do
17687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17688 ac_cv_prog_ac_ct_WINDRES="windres"
17689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17698 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17699 if test -n "$ac_ct_WINDRES"; then
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17701 $as_echo "$ac_ct_WINDRES" >&6; }
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17704 $as_echo "no" >&6; }
17707 if test "x$ac_ct_WINDRES" = x; then
17710 case $cross_compiling:$ac_tool_warned in
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17714 ac_tool_warned=yes ;;
17716 WINDRES=$ac_ct_WINDRES
17719 WINDRES="$ac_cv_prog_WINDRES"
17722 LIBS="$LIBS -liphlpapi"
17723 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17725 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
17727 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
17729 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
17731 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
17733 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
17735 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
17737 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
17740 if test $ac_cv_func_getaddrinfo = no; then
17741 case " $LIBOBJS " in
17742 *" fake-rfc2553.$ac_objext "* ) ;;
17743 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17748 # check after getaddrinfo for its libraries
17750 # check ioctlsocket
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17752 $as_echo_n "checking for ioctlsocket... " >&6; }
17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17756 #ifdef HAVE_WINSOCK2_H
17757 #include <winsock2.h>
17764 (void)ioctlsocket(0, 0, NULL);
17770 if ac_fn_c_try_link "$LINENO"; then :
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17773 $as_echo "yes" >&6; }
17775 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17780 $as_echo "no" >&6; }
17782 rm -f core conftest.err conftest.$ac_objext \
17783 conftest$ac_exeext conftest.$ac_ext
17786 # see if daemon(3) exists, and if it is deprecated.
17787 for ac_func in daemon
17789 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17790 if test "x$ac_cv_func_daemon" = xyes; then :
17791 cat >>confdefs.h <<_ACEOF
17792 #define HAVE_DAEMON 1
17798 if test $ac_cv_func_daemon = yes; then
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17802 $as_echo_n "checking if daemon is deprecated... " >&6; }
17803 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
17804 if eval \${cv_cc_deprecated_$cache+:} false; then :
17805 $as_echo_n "(cached) " >&6
17809 #include <stdlib.h>
17811 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17812 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17813 eval "cv_cc_deprecated_$cache=no"
17815 eval "cv_cc_deprecated_$cache=yes"
17817 rm -f conftest conftest.o conftest.c
17821 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17823 $as_echo "yes" >&6; }
17825 cat >>confdefs.h <<_ACEOF
17826 #define DEPRECATED_DAEMON 1
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17833 $as_echo "no" >&6; }
17840 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
17841 $ac_includes_default
17842 #if HAVE_SYS_PARAM_H
17843 #include <sys/param.h>
17846 #ifdef HAVE_SYS_SOCKET_H
17847 #include <sys/socket.h>
17850 #ifdef HAVE_SYS_UIO_H
17851 #include <sys/uio.h>
17854 #ifdef HAVE_NETINET_IN_H
17855 #include <netinet/in.h>
17858 #ifdef HAVE_ARPA_INET_H
17859 #include <arpa/inet.h>
17862 #ifdef HAVE_WINSOCK2_H
17863 #include <winsock2.h>
17866 #ifdef HAVE_WS2TCPIP_H
17867 #include <ws2tcpip.h>
17871 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
17873 cat >>confdefs.h <<_ACEOF
17874 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17881 $as_echo_n "checking for library containing setusercontext... " >&6; }
17882 if ${ac_cv_search_setusercontext+:} false; then :
17883 $as_echo_n "(cached) " >&6
17885 ac_func_search_save_LIBS=$LIBS
17886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17889 /* Override any GCC internal prototype to avoid an error.
17890 Use char because int might match the return type of a GCC
17891 builtin and then its argument prototype would still apply. */
17895 char setusercontext ();
17899 return setusercontext ();
17904 for ac_lib in '' util; do
17905 if test -z "$ac_lib"; then
17906 ac_res="none required"
17909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17911 if ac_fn_c_try_link "$LINENO"; then :
17912 ac_cv_search_setusercontext=$ac_res
17914 rm -f core conftest.err conftest.$ac_objext \
17916 if ${ac_cv_search_setusercontext+:} false; then :
17920 if ${ac_cv_search_setusercontext+:} false; then :
17923 ac_cv_search_setusercontext=no
17925 rm conftest.$ac_ext
17926 LIBS=$ac_func_search_save_LIBS
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
17929 $as_echo "$ac_cv_search_setusercontext" >&6; }
17930 ac_res=$ac_cv_search_setusercontext
17931 if test "$ac_res" != no; then :
17932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17936 for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent
17938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17939 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17940 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17941 cat >>confdefs.h <<_ACEOF
17942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17948 for ac_func in setresuid
17950 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17951 if test "x$ac_cv_func_setresuid" = xyes; then :
17952 cat >>confdefs.h <<_ACEOF
17953 #define HAVE_SETRESUID 1
17957 for ac_func in setreuid
17959 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17960 if test "x$ac_cv_func_setreuid" = xyes; then :
17961 cat >>confdefs.h <<_ACEOF
17962 #define HAVE_SETREUID 1
17971 for ac_func in setresgid
17973 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
17974 if test "x$ac_cv_func_setresgid" = xyes; then :
17975 cat >>confdefs.h <<_ACEOF
17976 #define HAVE_SETRESGID 1
17980 for ac_func in setregid
17982 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
17983 if test "x$ac_cv_func_setregid" = xyes; then :
17984 cat >>confdefs.h <<_ACEOF
17985 #define HAVE_SETREGID 1
17995 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
17996 if echo $build_os | grep darwin8 > /dev/null; then
17998 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
18001 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
18002 if test "x$ac_cv_func_inet_aton" = xyes; then :
18003 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
18006 case " $LIBOBJS " in
18007 *" inet_aton.$ac_objext "* ) ;;
18008 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
18015 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
18016 if test "x$ac_cv_func_inet_pton" = xyes; then :
18017 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
18020 case " $LIBOBJS " in
18021 *" inet_pton.$ac_objext "* ) ;;
18022 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
18029 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
18030 if test "x$ac_cv_func_inet_ntop" = xyes; then :
18031 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
18034 case " $LIBOBJS " in
18035 *" inet_ntop.$ac_objext "* ) ;;
18036 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
18043 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18044 if test "x$ac_cv_func_snprintf" = xyes; then :
18045 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
18048 case " $LIBOBJS " in
18049 *" snprintf.$ac_objext "* ) ;;
18050 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18057 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
18058 if test "x$ac_cv_func_strlcat" = xyes; then :
18059 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
18062 case " $LIBOBJS " in
18063 *" strlcat.$ac_objext "* ) ;;
18064 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
18071 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18072 if test "x$ac_cv_func_strlcpy" = xyes; then :
18073 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
18076 case " $LIBOBJS " in
18077 *" strlcpy.$ac_objext "* ) ;;
18078 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
18085 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18086 if test "x$ac_cv_func_memmove" = xyes; then :
18087 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
18090 case " $LIBOBJS " in
18091 *" memmove.$ac_objext "* ) ;;
18092 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
18099 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18100 if test "x$ac_cv_func_gmtime_r" = xyes; then :
18101 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
18104 case " $LIBOBJS " in
18105 *" gmtime_r.$ac_objext "* ) ;;
18106 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
18113 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
18115 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
18116 if test "x$ac_cv_func_ctime_r" = xyes; then :
18117 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
18120 case " $LIBOBJS " in
18121 *" ctime_r.$ac_objext "* ) ;;
18122 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
18130 # Check whether --enable-allsymbols was given.
18131 if test "${enable_allsymbols+set}" = set; then :
18132 enableval=$enable_allsymbols;
18135 case "$enable_allsymbols" in
18137 COMMON_OBJ_ALL_SYMBOLS=""
18139 EXTRALINK="-L. -L.libs -lunbound"
18141 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
18145 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
18146 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
18153 if test x_$enable_lock_checks = x_yes; then
18154 UBSYMS="-export-symbols clubsyms.def"
18155 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
18156 echo lock_protect >> clubsyms.def
18157 echo lock_unprotect >> clubsyms.def
18158 echo lock_get_mem >> clubsyms.def
18159 echo checklock_start >> clubsyms.def
18160 echo checklock_stop >> clubsyms.def
18161 echo checklock_lock >> clubsyms.def
18162 echo checklock_unlock >> clubsyms.def
18163 echo checklock_init >> clubsyms.def
18164 echo checklock_thrcreate >> clubsyms.def
18165 echo checklock_thrjoin >> clubsyms.def
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
18169 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
18170 # on openBSD, the implicit rule make $< work.
18171 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
18173 cat >conftest.make <<EOF
18176 conftest.lo foo.lo bla.lo:
18177 if test -f "\$<"; then touch \$@; fi
18181 if test -f "\$<"; then touch \$@; fi
18183 conftest.lo: conftest.dir/conftest.c
18186 touch conftest.dir/conftest.c
18187 rm -f conftest.lo conftest.c
18188 ${MAKE:-make} -f conftest.make >/dev/null
18189 rm -f conftest.make conftest.c conftest.dir/conftest.c
18190 rm -rf conftest.dir
18191 if test ! -f conftest.lo; then
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193 $as_echo "no" >&6; }
18194 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
18195 SOURCEFILE='`cat .source`'
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18198 $as_echo "yes" >&6; }
18199 SOURCEDETERMINE=':'
18206 # see if we want to build the library or everything
18207 ALLTARGET="alltargets"
18208 INSTALLTARGET="install-all"
18210 # Check whether --with-libunbound-only was given.
18211 if test "${with_libunbound_only+set}" = set; then :
18212 withval=$with_libunbound_only;
18213 if test "$withval" = "yes"; then
18215 INSTALLTARGET="install-lib"
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18225 $as_echo "$as_me: Stripping extension flags..." >&6;}
18227 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
18228 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18230 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
18235 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
18236 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
18238 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
18243 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
18244 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
18246 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
18251 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
18252 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
18254 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
18259 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
18260 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
18262 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
18267 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
18268 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
18270 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
18275 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
18276 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
18278 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
18283 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
18284 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
18286 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
18291 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
18294 cat >>confdefs.h <<_ACEOF
18295 #define MAXSYSLOGMSGLEN 10240
18301 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 smallapp/unbound-control-setup.sh"
18303 ac_config_headers="$ac_config_headers config.h"
18305 cat >confcache <<\_ACEOF
18306 # This file is a shell script that caches the results of configure
18307 # tests run on this system so they can be shared between configure
18308 # scripts and configure runs, see configure's option --config-cache.
18309 # It is not useful on other systems. If it contains results you don't
18310 # want to keep, you may remove or edit it.
18312 # config.status only pays attention to the cache file if you give it
18313 # the --recheck option to rerun configure.
18315 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18316 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18317 # following values.
18321 # The following way of writing the cache mishandles newlines in values,
18322 # but we know of no workaround that is simple, portable, and efficient.
18323 # So, we kill variables containing newlines.
18324 # Ultrix sh set writes to stderr and can't be redirected directly,
18325 # and sets the high bit in the cache file unless we assign to the vars.
18327 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18328 eval ac_val=\$$ac_var
18332 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18333 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18336 _ | IFS | as_nl) ;; #(
18337 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18338 *) { eval $ac_var=; unset $ac_var;} ;;
18344 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18345 *${as_nl}ac_space=\ *)
18346 # `set' does not quote correctly, so add quotes: double-quote
18347 # substitution turns \\\\ into \\, and sed turns \\ into \.
18350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18353 # `set' quotes correctly as required by POSIX, so do not add quotes.
18354 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18363 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18365 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18367 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18368 if test -w "$cache_file"; then
18369 if test "x$cache_file" != "x/dev/null"; then
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18371 $as_echo "$as_me: updating cache $cache_file" >&6;}
18372 if test ! -f "$cache_file" || test -h "$cache_file"; then
18373 cat confcache >"$cache_file"
18375 case $cache_file in #(
18377 mv -f confcache "$cache_file"$$ &&
18378 mv -f "$cache_file"$$ "$cache_file" ;; #(
18380 mv -f confcache "$cache_file" ;;
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18386 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18391 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18392 # Let make expand exec_prefix.
18393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18395 DEFS=-DHAVE_CONFIG_H
18400 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18401 # 1. Remove the extension, and $U if already installed.
18402 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18403 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18404 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18405 # will be set to the directory where LIBOBJS objects are built.
18406 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18407 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18409 LIBOBJS=$ac_libobjs
18411 LTLIBOBJS=$ac_ltlibobjs
18415 : "${CONFIG_STATUS=./config.status}"
18417 ac_clean_files_save=$ac_clean_files
18418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18420 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18422 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18424 # Generated by $as_me.
18425 # Run this file to recreate the current configuration.
18426 # Compiler output produced by configure, useful for debugging
18427 # configure, is in config.log if it exists.
18430 ac_cs_recheck=false
18433 SHELL=\${CONFIG_SHELL-$SHELL}
18436 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18437 ## -------------------- ##
18438 ## M4sh Initialization. ##
18439 ## -------------------- ##
18441 # Be more Bourne compatible
18442 DUALCASE=1; export DUALCASE # for MKS sh
18443 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18446 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18447 # is contrary to our usage. Disable this feature.
18448 alias -g '${1+"$@"}'='"$@"'
18449 setopt NO_GLOB_SUBST
18451 case `(set -o) 2>/dev/null` in #(
18463 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18464 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18465 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18466 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18467 # Prefer a ksh shell builtin over an external printf program on Solaris,
18468 # but without wasting forks for bash or zsh.
18469 if test -z "$BASH_VERSION$ZSH_VERSION" \
18470 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18471 as_echo='print -r --'
18472 as_echo_n='print -rn --'
18473 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18474 as_echo='printf %s\n'
18475 as_echo_n='printf %s'
18477 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18479 as_echo_n='/usr/ucb/echo -n'
18481 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18482 as_echo_n_body='eval
18486 expr "X$arg" : "X\\(.*\\)$as_nl";
18487 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18489 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18491 export as_echo_n_body
18492 as_echo_n='sh -c $as_echo_n_body as_echo'
18494 export as_echo_body
18495 as_echo='sh -c $as_echo_body as_echo'
18498 # The user is always right.
18499 if test "${PATH_SEPARATOR+set}" != set; then
18501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18509 # We need space, tab and new line, in precisely that order. Quoting is
18510 # there to prevent editors from complaining about space-tab.
18511 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18512 # splitting by setting IFS to empty value.)
18515 # Find who we are. Look in the path if we contain no directory separator.
18518 *[\\/]* ) as_myself=$0 ;;
18519 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18520 for as_dir in $PATH
18523 test -z "$as_dir" && as_dir=.
18524 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18530 # We did not find ourselves, most probably we were run as `sh COMMAND'
18531 # in which case we are not to be found in the path.
18532 if test "x$as_myself" = x; then
18535 if test ! -f "$as_myself"; then
18536 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18540 # Unset variables that we do not need and which cause bugs (e.g. in
18541 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18542 # suppresses any "Segmentation fault" message there. '((' could
18543 # trigger a bug in pdksh 5.2.14.
18544 for as_var in BASH_ENV ENV MAIL MAILPATH
18545 do eval test x\${$as_var+set} = xset \
18546 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18559 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18562 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18563 # ----------------------------------------
18564 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18565 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18566 # script with STATUS, using 1 if that was 0.
18569 as_status=$1; test $as_status -eq 0 && as_status=1
18571 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18572 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18574 $as_echo "$as_me: error: $2" >&2
18575 as_fn_exit $as_status
18579 # as_fn_set_status STATUS
18580 # -----------------------
18581 # Set $? to STATUS, without forking.
18582 as_fn_set_status ()
18585 } # as_fn_set_status
18587 # as_fn_exit STATUS
18588 # -----------------
18589 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18593 as_fn_set_status $1
18599 # Portably unset VAR.
18602 { eval $1=; unset $1;}
18604 as_unset=as_fn_unset
18605 # as_fn_append VAR VALUE
18606 # ----------------------
18607 # Append the text in VALUE to the end of the definition contained in VAR. Take
18608 # advantage of any shell optimizations that allow amortized linear growth over
18609 # repeated appends, instead of the typical quadratic growth present in naive
18611 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18612 eval 'as_fn_append ()
18623 # as_fn_arith ARG...
18624 # ------------------
18625 # Perform arithmetic evaluation on the ARGs, and store the result in the
18626 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18627 # must be portable across $(()) and expr.
18628 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18629 eval 'as_fn_arith ()
18636 as_val=`expr "$@" || test $? -eq 1`
18641 if expr a : '\(a\)' >/dev/null 2>&1 &&
18642 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18648 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18649 as_basename=basename
18654 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18660 as_me=`$as_basename -- "$0" ||
18661 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18662 X"$0" : 'X\(//\)$' \| \
18663 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18665 sed '/^.*\/\([^/][^/]*\)\/*$/{
18679 # Avoid depending upon Character Ranges.
18680 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18681 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18682 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18683 as_cr_digits='0123456789'
18684 as_cr_alnum=$as_cr_Letters$as_cr_digits
18686 ECHO_C= ECHO_N= ECHO_T=
18687 case `echo -n x` in #(((((
18689 case `echo 'xy\c'` in
18690 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18692 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18699 rm -f conf$$ conf$$.exe conf$$.file
18700 if test -d conf$$.dir; then
18701 rm -f conf$$.dir/conf$$.file
18704 mkdir conf$$.dir 2>/dev/null
18706 if (echo >conf$$.file) 2>/dev/null; then
18707 if ln -s conf$$.file conf$$ 2>/dev/null; then
18709 # ... but there are two gotchas:
18710 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18711 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18712 # In both cases, we have to default to `cp -pR'.
18713 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18715 elif ln conf$$.file conf$$ 2>/dev/null; then
18723 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18724 rmdir conf$$.dir 2>/dev/null
18729 # Create "$as_dir" as a directory, including parents if necessary.
18734 -*) as_dir=./$as_dir;;
18736 test -d "$as_dir" || eval $as_mkdir_p || {
18740 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18741 *) as_qdir=$as_dir;;
18743 as_dirs="'$as_qdir' $as_dirs"
18744 as_dir=`$as_dirname -- "$as_dir" ||
18745 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18746 X"$as_dir" : 'X\(//\)[^/]' \| \
18747 X"$as_dir" : 'X\(//\)$' \| \
18748 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18749 $as_echo X"$as_dir" |
18750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18754 /^X\(\/\/\)[^/].*/{
18767 test -d "$as_dir" && break
18769 test -z "$as_dirs" || eval "mkdir $as_dirs"
18770 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18774 if mkdir -p . 2>/dev/null; then
18775 as_mkdir_p='mkdir -p "$as_dir"'
18777 test -d ./-p && rmdir ./-p
18782 # as_fn_executable_p FILE
18783 # -----------------------
18784 # Test if FILE is an executable regular file.
18785 as_fn_executable_p ()
18787 test -f "$1" && test -x "$1"
18788 } # as_fn_executable_p
18789 as_test_x='test -x'
18790 as_executable_p=as_fn_executable_p
18792 # Sed expression to map a string onto a valid CPP name.
18793 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18795 # Sed expression to map a string onto a valid variable name.
18796 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18800 ## ----------------------------------- ##
18801 ## Main body of $CONFIG_STATUS script. ##
18802 ## ----------------------------------- ##
18804 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18807 # Save the log message, to keep $0 and so on meaningful, and to
18808 # report actual input values of CONFIG_FILES etc. instead of their
18809 # values after options handling.
18811 This file was extended by unbound $as_me 1.4.22, which was
18812 generated by GNU Autoconf 2.69. Invocation command line was
18814 CONFIG_FILES = $CONFIG_FILES
18815 CONFIG_HEADERS = $CONFIG_HEADERS
18816 CONFIG_LINKS = $CONFIG_LINKS
18817 CONFIG_COMMANDS = $CONFIG_COMMANDS
18820 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18825 case $ac_config_files in *"
18826 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18829 case $ac_config_headers in *"
18830 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18835 # Files that config.status was made for.
18836 config_files="$ac_config_files"
18837 config_headers="$ac_config_headers"
18838 config_commands="$ac_config_commands"
18842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18844 \`$as_me' instantiates files and other configuration actions
18845 from templates according to the current configuration. Unless the files
18846 and actions are specified as TAGs, all are instantiated by default.
18848 Usage: $0 [OPTION]... [TAG]...
18850 -h, --help print this help, then exit
18851 -V, --version print version number and configuration settings, then exit
18852 --config print configuration, then exit
18853 -q, --quiet, --silent
18854 do not print progress messages
18855 -d, --debug don't remove temporary files
18856 --recheck update $as_me by reconfiguring in the same conditions
18857 --file=FILE[:TEMPLATE]
18858 instantiate the configuration file FILE
18859 --header=FILE[:TEMPLATE]
18860 instantiate the configuration header FILE
18862 Configuration files:
18865 Configuration headers:
18868 Configuration commands:
18871 Report bugs to <unbound-bugs@nlnetlabs.nl>."
18874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18875 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18877 unbound config.status 1.4.22
18878 configured by $0, generated by GNU Autoconf 2.69,
18879 with options \\"\$ac_cs_config\\"
18881 Copyright (C) 2012 Free Software Foundation, Inc.
18882 This config.status script is free software; the Free Software Foundation
18883 gives unlimited permission to copy, distribute and modify it."
18888 test -n "\$AWK" || AWK=awk
18891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18892 # The default lists apply if the user does not specify any file.
18898 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18899 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18903 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18915 # Handling of the options.
18916 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18918 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18919 $as_echo "$ac_cs_version"; exit ;;
18920 --config | --confi | --conf | --con | --co | --c )
18921 $as_echo "$ac_cs_config"; exit ;;
18922 --debug | --debu | --deb | --de | --d | -d )
18924 --file | --fil | --fi | --f )
18927 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18928 '') as_fn_error $? "missing file argument" ;;
18930 as_fn_append CONFIG_FILES " '$ac_optarg'"
18931 ac_need_defaults=false;;
18932 --header | --heade | --head | --hea )
18935 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18937 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18938 ac_need_defaults=false;;
18940 # Conflict between --help and --header
18941 as_fn_error $? "ambiguous option: \`$1'
18942 Try \`$0 --help' for more information.";;
18943 --help | --hel | -h )
18944 $as_echo "$ac_cs_usage"; exit ;;
18945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18946 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18949 # This is an error.
18950 -*) as_fn_error $? "unrecognized option: \`$1'
18951 Try \`$0 --help' for more information." ;;
18953 *) as_fn_append ac_config_targets " $1"
18954 ac_need_defaults=false ;;
18960 ac_configure_extra_args=
18962 if $ac_cs_silent; then
18964 ac_configure_extra_args="$ac_configure_extra_args --silent"
18968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18969 if \$ac_cs_recheck; then
18970 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18972 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18973 CONFIG_SHELL='$SHELL'
18974 export CONFIG_SHELL
18979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18983 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18984 ## Running $as_me. ##
18990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18996 # The HP-UX ksh and POSIX shell print the target directory to stdout
18997 # if CDPATH is set.
18998 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19000 sed_quote_subst='$sed_quote_subst'
19001 double_quote_subst='$double_quote_subst'
19002 delay_variable_subst='$delay_variable_subst'
19003 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19004 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19005 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19006 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19007 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19008 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19009 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19010 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19011 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19012 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19013 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19014 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19015 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19016 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19017 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19018 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19019 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19020 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19021 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19022 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19023 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19024 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19025 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19026 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19027 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19028 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19029 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19030 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19031 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19032 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19033 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19034 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19035 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19036 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19037 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19038 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19039 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19040 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19041 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19042 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19043 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19044 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19045 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19046 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19047 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19048 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19049 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19050 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19051 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19052 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19053 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19054 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19055 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19056 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19057 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19058 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19059 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"`'
19060 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19061 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19062 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19063 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19064 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19065 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19066 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19067 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19068 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19069 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19070 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19071 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19072 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19073 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19074 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19075 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19076 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19077 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19078 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19079 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19080 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19081 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19082 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19083 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19084 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19085 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19086 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19087 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19088 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19089 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19090 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19091 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19092 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19093 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19094 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19095 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19096 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19097 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19098 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19099 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19100 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19101 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19102 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19103 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19104 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19105 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19106 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19107 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19108 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19109 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19110 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19111 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19112 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19113 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19114 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19115 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19116 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19117 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19118 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19119 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19120 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19121 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19122 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19123 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19124 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19125 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19126 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19127 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19128 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19129 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19130 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19131 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19132 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19135 LTCFLAGS='$LTCFLAGS'
19136 compiler='$compiler_DEFAULT'
19138 # A function that is used when there is no print builtin or printf.
19139 func_fallback_echo ()
19141 eval 'cat <<_LTECHO_EOF
19146 # Quote evaled strings.
19161 deplibs_check_method \
19166 sharedlib_from_linklib_cmd \
19169 archiver_list_spec \
19175 lt_cv_sys_global_symbol_pipe \
19176 lt_cv_sys_global_symbol_to_cdecl \
19177 lt_cv_sys_global_symbol_to_c_name_address \
19178 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19179 nm_file_list_spec \
19180 lt_prog_compiler_no_builtin_flag \
19181 lt_prog_compiler_pic \
19182 lt_prog_compiler_wl \
19183 lt_prog_compiler_static \
19184 lt_cv_prog_compiler_c_o \
19193 export_dynamic_flag_spec \
19194 whole_archive_flag_spec \
19195 compiler_needs_object \
19197 allow_undefined_flag \
19198 no_undefined_flag \
19199 hardcode_libdir_flag_spec \
19200 hardcode_libdir_separator \
19204 variables_saved_for_relink \
19206 library_names_spec \
19208 install_override_mode \
19212 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19213 *[\\\\\\\`\\"\\\$]*)
19214 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19217 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19222 # Double-quote double-evaled strings.
19223 for var in reload_cmds \
19224 old_postinstall_cmds \
19225 old_postuninstall_cmds \
19227 extract_expsyms_cmds \
19228 old_archive_from_new_cmds \
19229 old_archive_from_expsyms_cmds \
19231 archive_expsym_cmds \
19233 module_expsym_cmds \
19234 export_symbols_cmds \
19238 postuninstall_cmds \
19240 sys_lib_search_path_spec \
19241 sys_lib_dlsearch_path_spec; do
19242 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19243 *[\\\\\\\`\\"\\\$]*)
19244 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19247 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19252 ac_aux_dir='$ac_aux_dir'
19253 xsi_shell='$xsi_shell'
19254 lt_shell_append='$lt_shell_append'
19256 # See if we are running on zsh, and set the options which allow our
19257 # commands through without removal of \ escapes INIT.
19258 if test -n "\${ZSH_VERSION+set}" ; then
19259 setopt NO_GLOB_SUBST
19265 TIMESTAMP='$TIMESTAMP'
19274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19276 # Handling of arguments.
19277 for ac_config_target in $ac_config_targets
19279 case $ac_config_target in
19280 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19281 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
19282 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19283 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
19284 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
19285 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
19286 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
19287 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
19288 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
19289 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
19290 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
19291 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19293 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19298 # If the user did not use the arguments to specify the items to instantiate,
19299 # then the envvar interface is used. Set only those that are not.
19300 # We use the long form for the default assignment because of an extremely
19301 # bizarre bug on SunOS 4.1.3.
19302 if $ac_need_defaults; then
19303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19305 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19308 # Have a temporary directory for convenience. Make it in the build tree
19309 # simply because there is no reason against having it here, and in addition,
19310 # creating and moving files from /tmp can sometimes cause problems.
19311 # Hook for its removal unless debugging.
19312 # Note that there is a small window in which the directory will not be cleaned:
19313 # after its creation but before its name has been assigned to `$tmp'.
19317 trap 'exit_status=$?
19318 : "${ac_tmp:=$tmp}"
19319 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19321 trap 'as_fn_exit 1' 1 2 13 15
19323 # Create a (secure) tmp directory for tmp files.
19326 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19330 tmp=./conf$$-$RANDOM
19331 (umask 077 && mkdir "$tmp")
19332 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19335 # Set up the scripts for CONFIG_FILES section.
19336 # No need to generate them if there are no CONFIG_FILES.
19337 # This happens for instance with `./config.status config.h'.
19338 if test -n "$CONFIG_FILES"; then
19341 ac_cr=`echo X | tr X '\015'`
19342 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19343 # But we know of no other shell where ac_cr would be empty at this
19344 # point, so we can use a bashism as a fallback.
19345 if test "x$ac_cr" = x; then
19346 eval ac_cr=\$\'\\r\'
19348 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19349 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19352 ac_cs_awk_cr=$ac_cr
19355 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19360 echo "cat >conf$$subs.awk <<_ACEOF" &&
19361 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19363 } >conf$$subs.sh ||
19364 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19365 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19367 for ac_last_try in false false false false false :; do
19368 . ./conf$$subs.sh ||
19369 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19371 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19372 if test $ac_delim_n = $ac_delim_num; then
19374 elif $ac_last_try; then
19375 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19380 rm -f conf$$subs.sh
19382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19383 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19387 s/^/S["/; s/!.*/"]=/
19397 s/\(.\{148\}\)..*/\1/
19399 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19404 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19411 s/\(.\{148\}\)..*/\1/
19413 s/["\\]/\\&/g; s/^/"/; s/$/"/
19417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19422 ' <conf$$subs.awk | sed '
19427 ' >>$CONFIG_STATUS || ac_write_fail=1
19428 rm -f conf$$subs.awk
19429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19431 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19432 for (key in S) S_is_set[key] = 1
19438 nfields = split(line, field, "@")
19440 len = length(field[1])
19441 for (i = 2; i < nfields; i++) {
19443 keylen = length(key)
19444 if (S_is_set[key]) {
19446 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19447 len += length(value) + length(field[++i])
19458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19459 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19460 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19463 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19464 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19467 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19468 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19469 # trailing colons and then remove the whole line if VPATH becomes empty
19470 # (actually we leave an empty line to preserve line numbers).
19471 if test "x$srcdir" = x.; then
19472 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19491 fi # test -n "$CONFIG_FILES"
19493 # Set up the scripts for CONFIG_HEADERS section.
19494 # No need to generate them if there are no CONFIG_HEADERS.
19495 # This happens for instance with `./config.status Makefile'.
19496 if test -n "$CONFIG_HEADERS"; then
19497 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19501 # Transform confdefs.h into an awk script `defines.awk', embedded as
19502 # here-document in config.status, that substitutes the proper values into
19503 # config.h.in to produce config.h.
19505 # Create a delimiter string that does not exist in confdefs.h, to ease
19506 # handling of long lines.
19508 for ac_last_try in false false :; do
19509 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19510 if test -z "$ac_tt"; then
19512 elif $ac_last_try; then
19513 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19515 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19519 # For the awk script, D is an array of macro values keyed by name,
19520 # likewise P contains macro parameters if any. Preserve backslash
19521 # newline sequences.
19523 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19525 s/.\{148\}/&'"$ac_delim"'/g
19528 s/^[ ]*#[ ]*define[ ][ ]*/ /
19535 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19537 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19541 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19542 D["\1"]=" \3\\\\\\n"\\/p
19544 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19549 s/.\{148\}/&'"$ac_delim"'/g
19554 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19557 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19559 ' <confdefs.h | sed '
19560 s/'"$ac_delim"'/"\\\
19561 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19564 for (key in D) D_is_set[key] = 1
19567 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19569 split(line, arg, " ")
19570 if (arg[1] == "#") {
19574 defundef = substr(arg[1], 2)
19577 split(mac1, mac2, "(") #)
19579 prefix = substr(line, 1, index(line, defundef) - 1)
19580 if (D_is_set[macro]) {
19581 # Preserve the white space surrounding the "#".
19582 print prefix "define", macro P[macro] D[macro]
19585 # Replace #undef with comments. This is necessary, for example,
19586 # in the case of _POSIX_SOURCE, which is predefined and required
19587 # on some systems where configure will not decide to define it.
19588 if (defundef == "undef") {
19589 print "/*", prefix defundef, macro, "*/"
19597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19598 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19599 fi # test -n "$CONFIG_HEADERS"
19602 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19607 :[FHLC]) ac_mode=$ac_tag; continue;;
19609 case $ac_mode$ac_tag in
19611 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19612 :[FH]-) ac_tag=-:-;;
19613 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19630 -) ac_f="$ac_tmp/stdin";;
19631 *) # Look for the file first in the build tree, then in the source tree
19632 # (if the path is not absolute). The absolute path cannot be DOS-style,
19633 # because $ac_f cannot contain `:'.
19637 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19639 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19641 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19642 as_fn_append ac_file_inputs " '$ac_f'"
19645 # Let's still pretend it is `configure' which instantiates (i.e., don't
19646 # use $as_me), people would be surprised to read:
19647 # /* config.h. Generated by config.status. */
19648 configure_input='Generated from '`
19649 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19651 if test x"$ac_file" != x-; then
19652 configure_input="$ac_file. $configure_input"
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19654 $as_echo "$as_me: creating $ac_file" >&6;}
19656 # Neutralize special characters interpreted by sed in replacement strings.
19657 case $configure_input in #(
19658 *\&* | *\|* | *\\* )
19659 ac_sed_conf_input=`$as_echo "$configure_input" |
19660 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19661 *) ac_sed_conf_input=$configure_input;;
19665 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19671 ac_dir=`$as_dirname -- "$ac_file" ||
19672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19673 X"$ac_file" : 'X\(//\)[^/]' \| \
19674 X"$ac_file" : 'X\(//\)$' \| \
19675 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19676 $as_echo X"$ac_file" |
19677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19681 /^X\(\/\/\)[^/].*/{
19694 as_dir="$ac_dir"; as_fn_mkdir_p
19698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19700 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19701 # A ".." for each directory in $ac_dir_suffix.
19702 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19703 case $ac_top_builddir_sub in
19704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19708 ac_abs_top_builddir=$ac_pwd
19709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19710 # for backward compatibility:
19711 ac_top_builddir=$ac_top_build_prefix
19714 .) # We are building in place.
19716 ac_top_srcdir=$ac_top_builddir_sub
19717 ac_abs_top_srcdir=$ac_pwd ;;
19718 [\\/]* | ?:[\\/]* ) # Absolute name.
19719 ac_srcdir=$srcdir$ac_dir_suffix;
19720 ac_top_srcdir=$srcdir
19721 ac_abs_top_srcdir=$srcdir ;;
19722 *) # Relative name.
19723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19724 ac_top_srcdir=$ac_top_build_prefix$srcdir
19725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19739 # If the template does not know about datarootdir, expand it.
19740 # FIXME: This hack should be removed a few years after 2.60.
19741 ac_datarootdir_hack=; ac_datarootdir_seen=
19752 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19753 *datarootdir*) ac_datarootdir_seen=yes;;
19754 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19756 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19759 ac_datarootdir_hack='
19760 s&@datadir@&$datadir&g
19761 s&@docdir@&$docdir&g
19762 s&@infodir@&$infodir&g
19763 s&@localedir@&$localedir&g
19764 s&@mandir@&$mandir&g
19765 s&\\\${datarootdir}&$datarootdir&g' ;;
19769 # Neutralize VPATH when `$srcdir' = `.'.
19770 # Shell code in configure.ac might set extrasub.
19771 # FIXME: do we really want to maintain this feature?
19772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19773 ac_sed_extra="$ac_vpsub
19776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19779 s|@configure_input@|$ac_sed_conf_input|;t t
19780 s&@top_builddir@&$ac_top_builddir_sub&;t t
19781 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19782 s&@srcdir@&$ac_srcdir&;t t
19783 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19784 s&@top_srcdir@&$ac_top_srcdir&;t t
19785 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19786 s&@builddir@&$ac_builddir&;t t
19787 s&@abs_builddir@&$ac_abs_builddir&;t t
19788 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19789 $ac_datarootdir_hack
19791 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19792 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19794 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19795 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19796 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19797 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19799 which seems to be undefined. Please make sure it is defined" >&5
19800 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19801 which seems to be undefined. Please make sure it is defined" >&2;}
19803 rm -f "$ac_tmp/stdin"
19805 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19806 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19808 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19814 if test x"$ac_file" != x-; then
19816 $as_echo "/* $configure_input */" \
19817 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19818 } >"$ac_tmp/config.h" \
19819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19820 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19822 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19825 mv "$ac_tmp/config.h" "$ac_file" \
19826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19829 $as_echo "/* $configure_input */" \
19830 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19831 || as_fn_error $? "could not create -" "$LINENO" 5
19835 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19836 $as_echo "$as_me: executing $ac_file commands" >&6;}
19841 case $ac_file$ac_mode in
19844 # See if we are running on zsh, and set the options which allow our
19845 # commands through without removal of \ escapes.
19846 if test -n "${ZSH_VERSION+set}" ; then
19847 setopt NO_GLOB_SUBST
19850 cfgfile="${ofile}T"
19851 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19854 cat <<_LT_EOF >> "$cfgfile"
19857 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19858 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19859 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19860 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19862 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19863 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19865 # Written by Gordon Matzigkeit, 1996
19867 # This file is part of GNU Libtool.
19869 # GNU Libtool is free software; you can redistribute it and/or
19870 # modify it under the terms of the GNU General Public License as
19871 # published by the Free Software Foundation; either version 2 of
19872 # the License, or (at your option) any later version.
19874 # As a special exception to the GNU General Public License,
19875 # if you distribute this file as part of a program or library that
19876 # is built using GNU Libtool, you may include this file under the
19877 # same distribution terms that you use for the rest of that program.
19879 # GNU Libtool is distributed in the hope that it will be useful,
19880 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19881 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19882 # GNU General Public License for more details.
19884 # You should have received a copy of the GNU General Public License
19885 # along with GNU Libtool; see the file COPYING. If not, a copy
19886 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19887 # obtained by writing to the Free Software Foundation, Inc.,
19888 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19891 # The names of the tagged configurations supported by this script.
19894 # ### BEGIN LIBTOOL CONFIG
19896 # Which release of libtool.m4 was used?
19897 macro_version=$macro_version
19898 macro_revision=$macro_revision
19900 # Whether or not to build shared libraries.
19901 build_libtool_libs=$enable_shared
19903 # Whether or not to build static libraries.
19904 build_old_libs=$enable_static
19906 # What type of objects to build.
19909 # Whether or not to optimize for fast installation.
19910 fast_install=$enable_fast_install
19912 # Shell to use when invoking shell scripts.
19915 # An echo program that protects backslashes.
19918 # The PATH separator for the build system.
19919 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19922 host_alias=$host_alias
19926 # The build system.
19927 build_alias=$build_alias
19931 # A sed program that does not truncate output.
19934 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19935 Xsed="\$SED -e 1s/^X//"
19937 # A grep program that handles long lines.
19943 # A literal string matcher.
19946 # A BSD- or MS-compatible name lister.
19949 # Whether we need soft or hard links.
19952 # What is the maximum length of a command?
19953 max_cmd_len=$max_cmd_len
19955 # Object file suffix (normally "o").
19958 # Executable file suffix (normally "").
19961 # whether the shell understands "unset".
19964 # turn spaces into newlines.
19967 # turn newlines into spaces.
19970 # convert \$build file names to \$host format.
19971 to_host_file_cmd=$lt_cv_to_host_file_cmd
19973 # convert \$build files to toolchain format.
19974 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19976 # An object symbol dumper.
19977 OBJDUMP=$lt_OBJDUMP
19979 # Method to check whether dependent libraries are shared objects.
19980 deplibs_check_method=$lt_deplibs_check_method
19982 # Command to use when deplibs_check_method = "file_magic".
19983 file_magic_cmd=$lt_file_magic_cmd
19985 # How to find potential files when deplibs_check_method = "file_magic".
19986 file_magic_glob=$lt_file_magic_glob
19988 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19989 want_nocaseglob=$lt_want_nocaseglob
19991 # DLL creation program.
19992 DLLTOOL=$lt_DLLTOOL
19994 # Command to associate shared and link libraries.
19995 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20000 # Flags to create an archive.
20001 AR_FLAGS=$lt_AR_FLAGS
20003 # How to feed a file listing to the archiver.
20004 archiver_list_spec=$lt_archiver_list_spec
20006 # A symbol stripping program.
20009 # Commands used to install an old-style archive.
20011 old_postinstall_cmds=$lt_old_postinstall_cmds
20012 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20014 # Whether to use a lock for old archive extraction.
20015 lock_old_archive_extraction=$lock_old_archive_extraction
20020 # LTCC compiler flags.
20021 LTCFLAGS=$lt_CFLAGS
20023 # Take the output of nm and produce a listing of raw symbols and C names.
20024 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20026 # Transform the output of nm in a proper C declaration.
20027 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20029 # Transform the output of nm in a C name address pair.
20030 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20032 # Transform the output of nm in a C name address pair when lib prefix is needed.
20033 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20035 # Specify filename containing input files for \$NM.
20036 nm_file_list_spec=$lt_nm_file_list_spec
20038 # The root where to search for dependent libraries,and in which our libraries should be installed.
20039 lt_sysroot=$lt_sysroot
20041 # The name of the directory that contains temporary libtool files.
20044 # Used to examine libraries when file_magic_cmd begins with "file".
20045 MAGIC_CMD=$MAGIC_CMD
20047 # Must we lock files when doing compilation?
20048 need_locks=$lt_need_locks
20051 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20053 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20054 DSYMUTIL=$lt_DSYMUTIL
20056 # Tool to change global to local symbols on Mac OS X.
20059 # Tool to manipulate fat objects and archives on Mac OS X.
20062 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20065 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20066 OTOOL64=$lt_OTOOL64
20068 # Old archive suffix (normally "a").
20071 # Shared library suffix (normally ".so").
20072 shrext_cmds=$lt_shrext_cmds
20074 # The commands to extract the exported symbol list from a shared archive.
20075 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20077 # Variables whose values should be saved in libtool wrapper scripts and
20078 # restored at link time.
20079 variables_saved_for_relink=$lt_variables_saved_for_relink
20081 # Do we need the "lib" prefix for modules?
20082 need_lib_prefix=$need_lib_prefix
20084 # Do we need a version for libraries?
20085 need_version=$need_version
20087 # Library versioning type.
20088 version_type=$version_type
20090 # Shared library runtime path variable.
20091 runpath_var=$runpath_var
20093 # Shared library path variable.
20094 shlibpath_var=$shlibpath_var
20096 # Is shlibpath searched before the hard-coded library search path?
20097 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20099 # Format of library name prefix.
20100 libname_spec=$lt_libname_spec
20102 # List of archive names. First name is the real one, the rest are links.
20103 # The last name is the one that the linker finds with -lNAME
20104 library_names_spec=$lt_library_names_spec
20106 # The coded name of the library, if different from the real name.
20107 soname_spec=$lt_soname_spec
20109 # Permission mode override for installation of shared libraries.
20110 install_override_mode=$lt_install_override_mode
20112 # Command to use after installation of a shared archive.
20113 postinstall_cmds=$lt_postinstall_cmds
20115 # Command to use after uninstallation of a shared archive.
20116 postuninstall_cmds=$lt_postuninstall_cmds
20118 # Commands used to finish a libtool library installation in a directory.
20119 finish_cmds=$lt_finish_cmds
20121 # As "finish_cmds", except a single script fragment to be evaled but
20123 finish_eval=$lt_finish_eval
20125 # Whether we should hardcode library paths into libraries.
20126 hardcode_into_libs=$hardcode_into_libs
20128 # Compile-time system search path for libraries.
20129 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20131 # Run-time system search path for libraries.
20132 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20134 # Whether dlopen is supported.
20135 dlopen_support=$enable_dlopen
20137 # Whether dlopen of programs is supported.
20138 dlopen_self=$enable_dlopen_self
20140 # Whether dlopen of statically linked programs is supported.
20141 dlopen_self_static=$enable_dlopen_self_static
20143 # Commands to strip libraries.
20144 old_striplib=$lt_old_striplib
20145 striplib=$lt_striplib
20148 # The linker used to build libraries.
20151 # How to create reloadable object files.
20152 reload_flag=$lt_reload_flag
20153 reload_cmds=$lt_reload_cmds
20155 # Commands used to build an old-style archive.
20156 old_archive_cmds=$lt_old_archive_cmds
20158 # A language specific compiler.
20161 # Is the compiler the GNU compiler?
20164 # Compiler flag to turn off builtin functions.
20165 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20167 # Additional compiler flags for building library objects.
20168 pic_flag=$lt_lt_prog_compiler_pic
20170 # How to pass a linker flag through the compiler.
20171 wl=$lt_lt_prog_compiler_wl
20173 # Compiler flag to prevent dynamic linking.
20174 link_static_flag=$lt_lt_prog_compiler_static
20176 # Does compiler simultaneously support -c and -o options?
20177 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20179 # Whether or not to add -lc for building shared libraries.
20180 build_libtool_need_lc=$archive_cmds_need_lc
20182 # Whether or not to disallow shared libs when runtime libs are static.
20183 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20185 # Compiler flag to allow reflexive dlopens.
20186 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20188 # Compiler flag to generate shared objects directly from archives.
20189 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20191 # Whether the compiler copes with passing no objects directly.
20192 compiler_needs_object=$lt_compiler_needs_object
20194 # Create an old-style archive from a shared archive.
20195 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20197 # Create a temporary old-style archive to link instead of a shared archive.
20198 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20200 # Commands used to build a shared archive.
20201 archive_cmds=$lt_archive_cmds
20202 archive_expsym_cmds=$lt_archive_expsym_cmds
20204 # Commands used to build a loadable module if different from building
20205 # a shared archive.
20206 module_cmds=$lt_module_cmds
20207 module_expsym_cmds=$lt_module_expsym_cmds
20209 # Whether we are building with GNU ld or not.
20210 with_gnu_ld=$lt_with_gnu_ld
20212 # Flag that allows shared libraries with undefined symbols to be built.
20213 allow_undefined_flag=$lt_allow_undefined_flag
20215 # Flag that enforces no undefined symbols.
20216 no_undefined_flag=$lt_no_undefined_flag
20218 # Flag to hardcode \$libdir into a binary during linking.
20219 # This must work even if \$libdir does not exist
20220 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20222 # Whether we need a single "-rpath" flag with a separated argument.
20223 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20225 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20226 # DIR into the resulting binary.
20227 hardcode_direct=$hardcode_direct
20229 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20230 # DIR into the resulting binary and the resulting library dependency is
20231 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20232 # library is relocated.
20233 hardcode_direct_absolute=$hardcode_direct_absolute
20235 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20236 # into the resulting binary.
20237 hardcode_minus_L=$hardcode_minus_L
20239 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20240 # into the resulting binary.
20241 hardcode_shlibpath_var=$hardcode_shlibpath_var
20243 # Set to "yes" if building a shared library automatically hardcodes DIR
20244 # into the library and all subsequent libraries and executables linked
20246 hardcode_automatic=$hardcode_automatic
20248 # Set to yes if linker adds runtime paths of dependent libraries
20249 # to runtime path list.
20250 inherit_rpath=$inherit_rpath
20252 # Whether libtool must link a program against all its dependency libraries.
20253 link_all_deplibs=$link_all_deplibs
20255 # Set to "yes" if exported symbols are required.
20256 always_export_symbols=$always_export_symbols
20258 # The commands to list exported symbols.
20259 export_symbols_cmds=$lt_export_symbols_cmds
20261 # Symbols that should not be listed in the preloaded symbols.
20262 exclude_expsyms=$lt_exclude_expsyms
20264 # Symbols that must always be exported.
20265 include_expsyms=$lt_include_expsyms
20267 # Commands necessary for linking programs (against libraries) with templates.
20268 prelink_cmds=$lt_prelink_cmds
20270 # Commands necessary for finishing linking programs.
20271 postlink_cmds=$lt_postlink_cmds
20273 # Specify filename containing input files.
20274 file_list_spec=$lt_file_list_spec
20276 # How to hardcode a shared library path into an executable.
20277 hardcode_action=$hardcode_action
20279 # ### END LIBTOOL CONFIG
20285 cat <<\_LT_EOF >> "$cfgfile"
20286 # AIX sometimes has problems with the GCC collect2 program. For some
20287 # reason, if we set the COLLECT_NAMES environment variable, the problems
20288 # vanish in a puff of smoke.
20289 if test "X${COLLECT_NAMES+set}" != Xset; then
20291 export COLLECT_NAMES
20298 ltmain="$ac_aux_dir/ltmain.sh"
20301 # We use sed instead of cat because bash on DJGPP gets confused if
20302 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20303 # text mode, it properly converts lines to CR/LF. This bash problem
20304 # is reportedly fixed, but why not run on old versions too?
20305 sed '$q' "$ltmain" >> "$cfgfile" \
20306 || (rm -f "$cfgfile"; exit 1)
20308 if test x"$xsi_shell" = xyes; then
20309 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20313 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20314 \ * ) func_dirname_result="${3}" ;;\
20316 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20317 && mv -f "$cfgfile.tmp" "$cfgfile" \
20318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20319 test 0 -eq $? || _lt_function_replace_fail=:
20322 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20325 \ func_basename_result="${1##*/}"\
20326 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20327 && mv -f "$cfgfile.tmp" "$cfgfile" \
20328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20329 test 0 -eq $? || _lt_function_replace_fail=:
20332 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20333 func_dirname_and_basename ()\
20336 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20337 \ * ) func_dirname_result="${3}" ;;\
20339 \ func_basename_result="${1##*/}"\
20340 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20341 && mv -f "$cfgfile.tmp" "$cfgfile" \
20342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20343 test 0 -eq $? || _lt_function_replace_fail=:
20346 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20349 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20350 \ # positional parameters, so assign one to ordinary parameter first.\
20351 \ func_stripname_result=${3}\
20352 \ func_stripname_result=${func_stripname_result#"${1}"}\
20353 \ func_stripname_result=${func_stripname_result%"${2}"}\
20354 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20355 && mv -f "$cfgfile.tmp" "$cfgfile" \
20356 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20357 test 0 -eq $? || _lt_function_replace_fail=:
20360 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20361 func_split_long_opt ()\
20363 \ func_split_long_opt_name=${1%%=*}\
20364 \ func_split_long_opt_arg=${1#*=}\
20365 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20366 && mv -f "$cfgfile.tmp" "$cfgfile" \
20367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20368 test 0 -eq $? || _lt_function_replace_fail=:
20371 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20372 func_split_short_opt ()\
20374 \ func_split_short_opt_arg=${1#??}\
20375 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20376 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20377 && mv -f "$cfgfile.tmp" "$cfgfile" \
20378 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20379 test 0 -eq $? || _lt_function_replace_fail=:
20382 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20386 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20387 \ *) func_lo2o_result=${1} ;;\
20389 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20390 && mv -f "$cfgfile.tmp" "$cfgfile" \
20391 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20392 test 0 -eq $? || _lt_function_replace_fail=:
20395 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20398 func_xform_result=${1%.*}.lo\
20399 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20400 && mv -f "$cfgfile.tmp" "$cfgfile" \
20401 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20402 test 0 -eq $? || _lt_function_replace_fail=:
20405 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20408 func_arith_result=$(( $* ))\
20409 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20410 && mv -f "$cfgfile.tmp" "$cfgfile" \
20411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20412 test 0 -eq $? || _lt_function_replace_fail=:
20415 sed -e '/^func_len ()$/,/^} # func_len /c\
20418 func_len_result=${#1}\
20419 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20420 && mv -f "$cfgfile.tmp" "$cfgfile" \
20421 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20422 test 0 -eq $? || _lt_function_replace_fail=:
20426 if test x"$lt_shell_append" = xyes; then
20427 sed -e '/^func_append ()$/,/^} # func_append /c\
20430 eval "${1}+=\\${2}"\
20431 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20432 && mv -f "$cfgfile.tmp" "$cfgfile" \
20433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20434 test 0 -eq $? || _lt_function_replace_fail=:
20437 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20438 func_append_quoted ()\
20440 \ func_quote_for_eval "${2}"\
20441 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20442 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20443 && mv -f "$cfgfile.tmp" "$cfgfile" \
20444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20445 test 0 -eq $? || _lt_function_replace_fail=:
20448 # Save a `func_append' function call where possible by direct use of '+='
20449 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20450 && mv -f "$cfgfile.tmp" "$cfgfile" \
20451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20452 test 0 -eq $? || _lt_function_replace_fail=:
20454 # Save a `func_append' function call even when '+=' is not available
20455 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20456 && mv -f "$cfgfile.tmp" "$cfgfile" \
20457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20458 test 0 -eq $? || _lt_function_replace_fail=:
20461 if test x"$_lt_function_replace_fail" = x":"; then
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20463 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20467 mv -f "$cfgfile" "$ofile" ||
20468 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20473 sed < libtool > libtool-2 \
20474 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
20475 mv libtool-2 libtool
20477 libtool="./libtool"
20486 ac_clean_files=$ac_clean_files_save
20488 test $ac_write_fail = 0 ||
20489 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20492 # configure is writing to config.log, and then calls config.status.
20493 # config.status does its own redirection, appending to config.log.
20494 # Unfortunately, on DOS this fails, as config.log is still kept open
20495 # by configure, so config.status won't be able to write to it; its
20496 # output is simply discarded. So we exec the FD to /dev/null,
20497 # effectively closing config.log, so it can be properly (re)opened and
20498 # appended to by config.status. When coming back to configure, we
20499 # need to make the FD available again.
20500 if test "$no_create" != yes; then
20502 ac_config_status_args=
20503 test "$silent" = yes &&
20504 ac_config_status_args="$ac_config_status_args --quiet"
20506 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20508 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20509 # would make configure fail if this is the last instruction.
20510 $ac_cs_success || as_fn_exit 1
20512 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20514 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}