2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.4.20.
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.20'
594 PACKAGE_STRING='unbound 1.4.20'
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
714 UNBOUND_ROOTCERT_FILE
773 program_transform_name
786 enable_option_checking
808 enable_alloc_nonregional
826 ac_precious_vars='build_alias
840 # Initialize some variables set by options.
842 ac_init_version=false
843 ac_unrecognized_opts=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
854 program_transform_name=s,x,x,
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
929 cache_file=config.cache ;;
931 -datadir | --datadir | --datadi | --datad)
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
957 eval enable_$ac_useropt=no ;;
959 -docdir | --docdir | --docdi | --doc | --do)
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
983 eval enable_$ac_useropt=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
998 -help | --help | --hel | --he | -h)
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1147 -site=* | --site=* | --sit=*)
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1187 eval with_$ac_useropt=\$ac_optarg ;;
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1203 eval with_$ac_useropt=no ;;
1206 # Obsolete; use --with-x.
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1223 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $? "missing argument to $ac_option"
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1274 # Be sure to have absolute directory names.
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1287 target=$target_alias
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 elif test "x$build_alias" != "x$host_alias"; then
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301 test "$silent" = yes && exec 6>/dev/null
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1344 ac_srcdir_defaulted=no
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures unbound 1.4.20 to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 --target=TARGET configure for building compilers for TARGET [HOST]
1442 if test -n "$ac_init_help"; then
1443 case $ac_init_help in
1444 short | recursive ) echo "Configuration of unbound 1.4.20:";;
1449 --disable-option-checking ignore unrecognized --enable/--with options
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1452 --enable-checking Enable warnings, asserts, makefile-dependencies
1453 --enable-debug same as enable-checking
1454 --enable-shared[=PKGS] build shared libraries [default=yes]
1455 --enable-static[=PKGS] build static libraries [default=yes]
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
1458 --disable-libtool-lock avoid locking (might break parallel builds)
1459 --disable-rpath disable hardcoded rpath (default=enabled)
1460 --disable-largefile omit support for large files
1461 --enable-alloc-checks enable to memory allocation statistics, for debug
1463 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1465 --enable-alloc-nonregional
1466 enable nonregional allocs, slow but exposes regional
1467 allocations to other memory purifiers, for debug
1469 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1470 --disable-gost Disable GOST support
1471 --disable-ecdsa Disable ECDSA support
1472 --enable-static-exe enable to compile executables statically against
1473 event, ldns libs, for debug purposes
1474 --enable-lock-checks enable to check lock and unlock calls, for debug
1476 --enable-allsymbols export all symbols from libunbound and link binaries
1477 to it, smaller install size but libunbound export
1478 table is polluted by internal symbols
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-conf-file=path Pathname to the Unbound configuration file
1484 --with-run-dir=path set default directory to chdir to (by default dir
1486 --with-chroot-dir=path set default directory to chroot to (by default same
1488 --with-share-dir=path set default directory with shared data (by default
1489 same as share/unbound)
1490 --with-pidfile=filename set default pathname to unbound pidfile (default
1491 run-dir/unbound.pid)
1492 --with-rootkey-file=filename
1493 set default pathname to root key file (default
1494 run-dir/root.key). This file is read and written.
1495 --with-rootcert-file=filename
1496 set default pathname to root update certificate file
1497 (default run-dir/icannbundle.pem). This file need
1498 not exist if you are content with the builtin.
1499 --with-username=user set default user that unbound changes to (default
1501 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-sysroot=DIR Search for dependent libraries within DIR
1505 (or the compiler's sysroot if not specified).
1506 --with-pthreads use pthreads library, or --without-pthreads to
1507 disable threading support.
1508 --with-solaris-threads use solaris native thread library.
1509 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1511 --with-pythonmodule build Python module, or --without-pythonmodule to
1512 disable script engine. (default=no)
1513 --with-nss=path use libnss instead of openssl, installed at path.
1514 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1515 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1517 --with-libevent=pathname
1518 use libevent (will check /usr/local /opt/local
1519 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1520 an explicit path). Slower, but allows use of large
1521 outgoing port ranges.
1522 --with-libexpat=path specify explicit path for libexpat.
1523 --with-libunbound-only do not build daemon and tool programs
1524 --with-ldns=PATH specify prefix of path of ldns library to use
1526 Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
1531 LIBS libraries to pass to the linker, e.g. -l<library>
1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
1535 YACC The `Yet Another Compiler Compiler' implementation to use.
1536 Defaults to the first program found out of: `bison -y', `byacc',
1538 YFLAGS The list of arguments that will be passed by default to $YACC.
1539 This script will default YFLAGS to the empty string to avoid a
1540 default value of `-d' given by some make applications.
1542 The installed Python version to use, for example '2.3'. This
1543 string will be appended to the Python interpreter canonical
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1549 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1579 .) # We are building in place.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1612 unbound configure 1.4.20
1613 generated by GNU Autoconf 2.69
1615 Copyright (C) 2012 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1662 } # ac_fn_c_try_compile
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } > conftest.i && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1701 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1704 # the include files in INCLUDES and setting the cache variable VAR
1706 ac_fn_c_check_header_mongrel ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if eval \${$3+:} false; then :
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1719 # Is the header compilable?
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1721 $as_echo_n "checking $2 usability... " >&6; }
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 ac_header_compiler=yes
1730 ac_header_compiler=no
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1734 $as_echo "$ac_header_compiler" >&6; }
1736 # Is the header present?
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1738 $as_echo_n "checking $2 presence... " >&6; }
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1743 if ac_fn_c_try_cpp "$LINENO"; then :
1744 ac_header_preproc=yes
1746 ac_header_preproc=no
1748 rm -f conftest.err conftest.i conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1750 $as_echo "$ac_header_preproc" >&6; }
1752 # So? What about this header?
1753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1756 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1762 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1764 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1766 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1768 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1770 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771 ( $as_echo "## ---------------------------------------- ##
1772 ## Report this to unbound-bugs@nlnetlabs.nl ##
1773 ## ---------------------------------------- ##"
1774 ) | sed "s/^/$as_me: WARNING: /" >&2
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1782 eval "$3=\$ac_header_compiler"
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 } # ac_fn_c_check_header_mongrel
1792 # ac_fn_c_try_run LINENO
1793 # ----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795 # that executables *can* be run.
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_link"
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>&5
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810 { { case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_try") 2>&5
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; }; }; then :
1822 $as_echo "$as_me: program exited with status $ac_status" >&5
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=$ac_status
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1834 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1835 # -------------------------------------------------------
1836 # Tests whether HEADER exists and can be compiled using the include files in
1837 # INCLUDES, setting the cache variable VAR accordingly.
1838 ac_fn_c_check_header_compile ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1851 if ac_fn_c_try_compile "$LINENO"; then :
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 } # ac_fn_c_check_header_compile
1865 # ac_fn_c_try_link LINENO
1866 # -----------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 rm -f conftest.$ac_objext conftest$ac_exeext
1872 if { { ac_try="$ac_link"
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>conftest.err
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && {
1888 test -z "$ac_c_werror_flag" ||
1889 test ! -s conftest.err
1890 } && test -s conftest$ac_exeext && {
1891 test "$cross_compiling" = yes ||
1892 test -x conftest$ac_exeext
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1901 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1902 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1903 # interfere with the next link command; also delete a directory that is
1904 # left behind by Apple's compiler. We do this before executing the actions.
1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1909 } # ac_fn_c_try_link
1911 # ac_fn_c_check_func LINENO FUNC VAR
1912 # ----------------------------------
1913 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1914 ac_fn_c_check_func ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920 $as_echo_n "(cached) " >&6
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1926 #define $2 innocuous_$2
1928 /* System header to define __stub macros and hopefully few prototypes,
1929 which can conflict with char $2 (); below.
1930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1931 <limits.h> exists even on freestanding compilers. */
1934 # include <limits.h>
1936 # include <assert.h>
1941 /* Override any GCC internal prototype to avoid an error.
1942 Use char because int might match the return type of a GCC
1943 builtin and then its argument prototype would still apply. */
1948 /* The GNU C library defines this for functions which it implements
1949 to always fail with ENOSYS. Some functions are actually named
1950 something starting with __ and the normal name is an alias. */
1951 #if defined __stub_$2 || defined __stub___$2
1963 if ac_fn_c_try_link "$LINENO"; then :
1968 rm -f core conftest.err conftest.$ac_objext \
1969 conftest$ac_exeext conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 } # ac_fn_c_check_func
1978 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1979 # -------------------------------------------
1980 # Tests whether TYPE exists after having included INCLUDES, setting cache
1981 # variable VAR accordingly.
1982 ac_fn_c_check_type ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2016 if ac_fn_c_try_compile "$LINENO"; then :
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 } # ac_fn_c_check_type
2032 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2033 # ---------------------------------------------
2034 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2036 ac_fn_c_check_decl ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 as_decl_name=`echo $2|sed 's/ *(.*//'`
2040 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2042 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2043 if eval \${$3+:} false; then :
2044 $as_echo_n "(cached) " >&6
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2052 #ifndef $as_decl_name
2054 (void) $as_decl_use;
2056 (void) $as_decl_name;
2064 if ac_fn_c_try_compile "$LINENO"; then :
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_decl
2078 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2079 # ----------------------------------------------------
2080 # Tries to find if the field MEMBER exists in type AGGR, after including
2081 # INCLUDES, setting cache variable VAR accordingly.
2082 ac_fn_c_check_member ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2086 $as_echo_n "checking for $2.$3... " >&6; }
2087 if eval \${$4+:} false; then :
2088 $as_echo_n "(cached) " >&6
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2103 if ac_fn_c_try_compile "$LINENO"; then :
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2113 if (sizeof ac_aggr.$3)
2119 if ac_fn_c_try_compile "$LINENO"; then :
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_member
2134 cat >config.log <<_ACEOF
2135 This file contains any messages produced by compilers while
2136 running configure, to aid debugging if configure makes a mistake.
2138 It was created by unbound $as_me 1.4.20, which was
2139 generated by GNU Autoconf 2.69. Invocation command line was
2151 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2152 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2153 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2154 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2155 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2157 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2158 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2160 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2161 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2162 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2163 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2164 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2165 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2166 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir=.
2175 $as_echo "PATH: $as_dir"
2191 # Keep a trace of the command line.
2192 # Strip out --no-create and --no-recursion so they do not pile up.
2193 # Strip out --silent because we don't want to record it for future runs.
2194 # Also quote any args containing shell meta-characters.
2195 # Make two passes to allow for proper duplicate-argument suppression.
2199 ac_must_keep_next=false
2205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2207 | -silent | --silent | --silen | --sile | --sil)
2210 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2213 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2215 as_fn_append ac_configure_args1 " '$ac_arg'"
2216 if test $ac_must_keep_next = true; then
2217 ac_must_keep_next=false # Got value, back to normal.
2220 *=* | --config-cache | -C | -disable-* | --disable-* \
2221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2223 | -with-* | --with-* | -without-* | --without-* | --x)
2224 case "$ac_configure_args0 " in
2225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2228 -* ) ac_must_keep_next=true ;;
2231 as_fn_append ac_configure_args " '$ac_arg'"
2236 { ac_configure_args0=; unset ac_configure_args0;}
2237 { ac_configure_args1=; unset ac_configure_args1;}
2239 # When interrupted or exit'd, cleanup temporary files, and complete
2240 # config.log. We remove comments because anyway the quotes in there
2241 # would cause problems or look ugly.
2242 # WARNING: Use '\'' to represent an apostrophe within the trap.
2243 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2244 trap 'exit_status=$?
2245 # Save into config.log some information that might help in debugging.
2249 $as_echo "## ---------------- ##
2250 ## Cache variables. ##
2251 ## ---------------- ##"
2253 # The following way of writing the cache mishandles newlines in values,
2255 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256 eval ac_val=\$$ac_var
2260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2264 _ | IFS | as_nl) ;; #(
2265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266 *) { eval $ac_var=; unset $ac_var;} ;;
2271 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272 *${as_nl}ac_space=\ *)
2274 "s/'\''/'\''\\\\'\'''\''/g;
2275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2285 $as_echo "## ----------------- ##
2286 ## Output variables. ##
2287 ## ----------------- ##"
2289 for ac_var in $ac_subst_vars
2291 eval ac_val=\$$ac_var
2293 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295 $as_echo "$ac_var='\''$ac_val'\''"
2299 if test -n "$ac_subst_files"; then
2300 $as_echo "## ------------------- ##
2301 ## File substitutions. ##
2302 ## ------------------- ##"
2304 for ac_var in $ac_subst_files
2306 eval ac_val=\$$ac_var
2308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2310 $as_echo "$ac_var='\''$ac_val'\''"
2315 if test -s confdefs.h; then
2316 $as_echo "## ----------- ##
2323 test "$ac_signal" != 0 &&
2324 $as_echo "$as_me: caught signal $ac_signal"
2325 $as_echo "$as_me: exit $exit_status"
2327 rm -f core *.core core.conftest.* &&
2328 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2331 for ac_signal in 1 2 13 15; do
2332 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2337 rm -f -r conftest* confdefs.h
2339 $as_echo "/* confdefs.h */" > confdefs.h
2341 # Predefined preprocessor variables.
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_NAME "$PACKAGE_NAME"
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_STRING "$PACKAGE_STRING"
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_URL "$PACKAGE_URL"
2368 # Let the site file select an alternate cache file if it wants to.
2369 # Prefer an explicitly selected file to automatically selected ones.
2372 if test -n "$CONFIG_SITE"; then
2373 # We do not want a PATH search for config.site.
2374 case $CONFIG_SITE in #((
2375 -*) ac_site_file1=./$CONFIG_SITE;;
2376 */*) ac_site_file1=$CONFIG_SITE;;
2377 *) ac_site_file1=./$CONFIG_SITE;;
2379 elif test "x$prefix" != xNONE; then
2380 ac_site_file1=$prefix/share/config.site
2381 ac_site_file2=$prefix/etc/config.site
2383 ac_site_file1=$ac_default_prefix/share/config.site
2384 ac_site_file2=$ac_default_prefix/etc/config.site
2386 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2388 test "x$ac_site_file" = xNONE && continue
2389 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2391 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2392 sed 's/^/| /' "$ac_site_file" >&5
2394 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 as_fn_error $? "failed to load site script $ac_site_file
2397 See \`config.log' for more details" "$LINENO" 5; }
2401 if test -r "$cache_file"; then
2402 # Some versions of bash will fail to source /dev/null (special files
2403 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2404 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2406 $as_echo "$as_me: loading cache $cache_file" >&6;}
2408 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2409 *) . "./$cache_file";;
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2414 $as_echo "$as_me: creating cache $cache_file" >&6;}
2418 # Check that the precious variables saved in the cache have kept the same
2420 ac_cache_corrupted=false
2421 for ac_var in $ac_precious_vars; do
2422 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2423 eval ac_new_set=\$ac_env_${ac_var}_set
2424 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2425 eval ac_new_val=\$ac_env_${ac_var}_value
2426 case $ac_old_set,$ac_new_set in
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2429 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2430 ac_cache_corrupted=: ;;
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2433 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2434 ac_cache_corrupted=: ;;
2437 if test "x$ac_old_val" != "x$ac_new_val"; then
2438 # differences in whitespace do not lead to failure.
2439 ac_old_val_w=`echo x $ac_old_val`
2440 ac_new_val_w=`echo x $ac_new_val`
2441 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2443 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2444 ac_cache_corrupted=:
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2447 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2448 eval $ac_var=\$ac_old_val
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2451 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2453 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2456 # Pass precious variables to config.status.
2457 if test "$ac_new_set" = set; then
2459 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2460 *) ac_arg=$ac_var=$ac_new_val ;;
2462 case " $ac_configure_args " in
2463 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2464 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2468 if $ac_cache_corrupted; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2472 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2473 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2475 ## -------------------- ##
2476 ## Main body of script. ##
2477 ## -------------------- ##
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487 LIBUNBOUND_CURRENT=3
2488 LIBUNBOUND_REVISION=5
2497 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2502 # 1.4.0-snapshots had 1:5:0
2503 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2517 # and 1.4.13p1 and 1.4.13.p2
2519 # 1.4.15 had 3:0:1 # adds ub_version()
2524 # 1.4.20 had 4:0:2 # adds libunbound.ttl
2526 # Current -- the number of the binary API that we're implementing
2527 # Revision -- which iteration of the implementation of the binary
2528 # API are we supplying?
2529 # Age -- How many previous binary API versions do we also
2532 # If we release a new version that does not change the binary API,
2533 # increment Revision.
2535 # If we release a new version that changes the binary API, but does
2536 # not break programs compiled against the old binary API, increment
2537 # Current and Age. Set Revision to 0, since this is the first
2538 # implementation of the new API.
2540 # Otherwise, we're changing the binary API and breaking bakward
2541 # compatibility with old binaries. Increment Current. Set Age to 0,
2542 # since we're backward compatible with no previous APIs. Set Revision
2550 while test -n "$1"; do
2551 cmdline="$cmdline '"`echo $1 | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/g' `"'"
2557 cat >>confdefs.h <<_ACEOF
2558 #define CONFIGURE_BUILD_WITH "$cmdline"
2562 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2563 if test -f "$ac_dir/install-sh"; then
2565 ac_install_sh="$ac_aux_dir/install-sh -c"
2567 elif test -f "$ac_dir/install.sh"; then
2569 ac_install_sh="$ac_aux_dir/install.sh -c"
2571 elif test -f "$ac_dir/shtool"; then
2573 ac_install_sh="$ac_aux_dir/shtool install -c"
2577 if test -z "$ac_aux_dir"; then
2578 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2581 # These three variables are undocumented and unsupported,
2582 # and are intended to be withdrawn in a future Autoconf release.
2583 # They can cause serious problems if a builder's source tree is in a directory
2584 # whose full name contains unusual characters.
2585 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2586 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2587 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2590 # Make sure we can run config.sub.
2591 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2592 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2595 $as_echo_n "checking build system type... " >&6; }
2596 if ${ac_cv_build+:} false; then :
2597 $as_echo_n "(cached) " >&6
2599 ac_build_alias=$build_alias
2600 test "x$ac_build_alias" = x &&
2601 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2602 test "x$ac_build_alias" = x &&
2603 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2604 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2609 $as_echo "$ac_cv_build" >&6; }
2610 case $ac_cv_build in
2612 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2615 ac_save_IFS=$IFS; IFS='-'
2621 # Remember, the first character of IFS is used to create $*,
2622 # except with old shells:
2625 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2629 $as_echo_n "checking host system type... " >&6; }
2630 if ${ac_cv_host+:} false; then :
2631 $as_echo_n "(cached) " >&6
2633 if test "x$host_alias" = x; then
2634 ac_cv_host=$ac_cv_build
2636 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2637 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2642 $as_echo "$ac_cv_host" >&6; }
2645 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2648 ac_save_IFS=$IFS; IFS='-'
2654 # Remember, the first character of IFS is used to create $*,
2655 # except with old shells:
2658 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2662 $as_echo_n "checking target system type... " >&6; }
2663 if ${ac_cv_target+:} false; then :
2664 $as_echo_n "(cached) " >&6
2666 if test "x$target_alias" = x; then
2667 ac_cv_target=$ac_cv_host
2669 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2675 $as_echo "$ac_cv_target" >&6; }
2676 case $ac_cv_target in
2678 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2680 target=$ac_cv_target
2681 ac_save_IFS=$IFS; IFS='-'
2687 # Remember, the first character of IFS is used to create $*,
2688 # except with old shells:
2691 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2694 # The aliases save the names the user supplied, while $host etc.
2695 # will get canonicalized.
2696 test -n "$target_alias" &&
2697 test "$program_prefix$program_suffix$program_transform_name" = \
2699 program_prefix=${target_alias}-
2701 cat >>confdefs.h <<_ACEOF
2702 #define CONFIGURE_TARGET "$target"
2706 cat >>confdefs.h <<_ACEOF
2707 #define CONFIGURE_DATE "`date`"
2713 ac_cpp='$CPP $CPPFLAGS'
2714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717 if test -n "$ac_tool_prefix"; then
2718 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2719 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if ${ac_cv_prog_CC+:} false; then :
2723 $as_echo_n "(cached) " >&6
2725 if test -n "$CC"; then
2726 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 if test -n "$CC"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2748 $as_echo "$CC" >&6; }
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2756 if test -z "$ac_cv_prog_CC"; then
2758 # Extract the first word of "gcc", so it can be a program name with args.
2759 set dummy gcc; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2763 $as_echo_n "(cached) " >&6
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_ac_ct_CC="gcc"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2786 if test -n "$ac_ct_CC"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2788 $as_echo "$ac_ct_CC" >&6; }
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2794 if test "x$ac_ct_CC" = x; then
2797 case $cross_compiling:$ac_tool_warned in
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2801 ac_tool_warned=yes ;;
2809 if test -z "$CC"; then
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}cc; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_CC+:} false; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_CC="${ac_tool_prefix}cc"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test -n "$CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841 $as_echo "$CC" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_CC+:} false; then :
2856 $as_echo_n "(cached) " >&6
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected=yes
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 if test $ac_prog_rejected = yes; then
2882 # We found a bogon in the path, so make sure we never use it.
2883 set dummy $ac_cv_prog_CC
2885 if test $# != 0; then
2886 # We chose a different compiler from the bogus one.
2887 # However, it has the same basename, so the bogon will be chosen
2888 # first if we set CC to just the basename; use the full file name.
2890 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2896 if test -n "$CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2906 if test -z "$CC"; then
2907 if test -n "$ac_tool_prefix"; then
2908 for ac_prog in cl.exe
2910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_CC+:} false; then :
2915 $as_echo_n "(cached) " >&6
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 if test -n "$CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940 $as_echo "$CC" >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2947 test -n "$CC" && break
2950 if test -z "$CC"; then
2952 for ac_prog in cl.exe
2954 # Extract the first word of "$ac_prog", so it can be a program name with args.
2955 set dummy $ac_prog; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2959 $as_echo_n "(cached) " >&6
2961 if test -n "$ac_ct_CC"; then
2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971 ac_cv_prog_ac_ct_CC="$ac_prog"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982 if test -n "$ac_ct_CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2984 $as_echo "$ac_ct_CC" >&6; }
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2991 test -n "$ac_ct_CC" && break
2994 if test "x$ac_ct_CC" = x; then
2997 case $cross_compiling:$ac_tool_warned in
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001 ac_tool_warned=yes ;;
3010 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012 as_fn_error $? "no acceptable C compiler found in \$PATH
3013 See \`config.log' for more details" "$LINENO" 5; }
3015 # Provide some information about the compiler.
3016 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3019 for ac_option in --version -v -V -qversion; do
3020 { { ac_try="$ac_compiler $ac_option >&5"
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3029 if test -s conftest.err; then
3031 ... rest of stderr output deleted ...
3032 10q' conftest.err >conftest.er1
3033 cat conftest.er1 >&5
3035 rm -f conftest.er1 conftest.err
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h. */
3051 ac_clean_files_save=$ac_clean_files
3052 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3053 # Try to create an executable without -o first, disregard a.out.
3054 # It will help us diagnose broken compilers, and finding out an intuition
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3057 $as_echo_n "checking whether the C compiler works... " >&6; }
3058 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3060 # The possible output files:
3061 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3064 for ac_file in $ac_files
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3068 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3073 if { { ac_try="$ac_link_default"
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079 $as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_link_default") 2>&5
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }; then :
3084 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3085 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3086 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3087 # so that the user can short-circuit this test for compilers unknown to
3089 for ac_file in $ac_files ''
3091 test -f "$ac_file" || continue
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3096 # We found the default executable, but exeext='' is most
3100 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3102 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 # We set ac_cv_exeext here because the later test for it is not
3105 # safe: cross compilers may not add the suffix if given an `-o'
3106 # argument, so we may need to know it at that point already.
3107 # Even if this section looks crufty: it has the advantage of
3114 test "$ac_cv_exeext" = no && ac_cv_exeext=
3119 if test -z "$ac_file"; then :
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 $as_echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 as_fn_error 77 "C compiler cannot create executables
3128 See \`config.log' for more details" "$LINENO" 5; }
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3131 $as_echo "yes" >&6; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3134 $as_echo_n "checking for C compiler default output file name... " >&6; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3136 $as_echo "$ac_file" >&6; }
3137 ac_exeext=$ac_cv_exeext
3139 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3140 ac_clean_files=$ac_clean_files_save
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3142 $as_echo_n "checking for suffix of executables... " >&6; }
3143 if { { ac_try="$ac_link"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_link") 2>&5
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; then :
3154 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3155 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3156 # work properly (i.e., refer to `conftest.exe'), while it won't with
3158 for ac_file in conftest.exe conftest conftest.*; do
3159 test -f "$ac_file" || continue
3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3171 See \`config.log' for more details" "$LINENO" 5; }
3173 rm -f conftest conftest$ac_cv_exeext
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3175 $as_echo "$ac_cv_exeext" >&6; }
3177 rm -f conftest.$ac_ext
3178 EXEEXT=$ac_cv_exeext
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h. */
3186 FILE *f = fopen ("conftest.out", "w");
3187 return ferror (f) || fclose (f) != 0;
3193 ac_clean_files="$ac_clean_files conftest.out"
3194 # Check that the compiler produces executables we can run. If not, either
3195 # the compiler is broken, or we cross compile.
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3197 $as_echo_n "checking whether we are cross compiling... " >&6; }
3198 if test "$cross_compiling" != yes; then
3199 { { ac_try="$ac_link"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205 $as_echo "$ac_try_echo"; } >&5
3206 (eval "$ac_link") 2>&5
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }
3210 if { ac_try='./conftest$ac_cv_exeext'
3211 { { case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_try") 2>&5
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; }; then
3223 if test "$cross_compiling" = maybe; then
3226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228 as_fn_error $? "cannot run C compiled programs.
3229 If you meant to cross compile, use \`--host'.
3230 See \`config.log' for more details" "$LINENO" 5; }
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3235 $as_echo "$cross_compiling" >&6; }
3237 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3238 ac_clean_files=$ac_clean_files_save
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3240 $as_echo_n "checking for suffix of object files... " >&6; }
3241 if ${ac_cv_objext+:} false; then :
3242 $as_echo_n "(cached) " >&6
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3255 rm -f conftest.o conftest.obj
3256 if { { ac_try="$ac_compile"
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_compile") 2>&5
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
3267 for ac_file in conftest.o conftest.obj conftest.*; do
3268 test -f "$ac_file" || continue;
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3276 $as_echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 as_fn_error $? "cannot compute suffix of object files: cannot compile
3282 See \`config.log' for more details" "$LINENO" 5; }
3284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3287 $as_echo "$ac_cv_objext" >&6; }
3288 OBJEXT=$ac_cv_objext
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3291 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3292 if ${ac_cv_c_compiler_gnu+:} false; then :
3293 $as_echo_n "(cached) " >&6
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3309 if ac_fn_c_try_compile "$LINENO"; then :
3314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3319 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3320 if test $ac_compiler_gnu = yes; then
3325 ac_test_CFLAGS=${CFLAGS+set}
3326 ac_save_CFLAGS=$CFLAGS
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3328 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3329 if ${ac_cv_prog_cc_g+:} false; then :
3330 $as_echo_n "(cached) " >&6
3332 ac_save_c_werror_flag=$ac_c_werror_flag
3333 ac_c_werror_flag=yes
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3347 if ac_fn_c_try_compile "$LINENO"; then :
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3362 if ac_fn_c_try_compile "$LINENO"; then :
3365 ac_c_werror_flag=$ac_save_c_werror_flag
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3378 if ac_fn_c_try_compile "$LINENO"; then :
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 ac_c_werror_flag=$ac_save_c_werror_flag
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3389 $as_echo "$ac_cv_prog_cc_g" >&6; }
3390 if test "$ac_test_CFLAGS" = set; then
3391 CFLAGS=$ac_save_CFLAGS
3392 elif test $ac_cv_prog_cc_g = yes; then
3393 if test "$GCC" = yes; then
3399 if test "$GCC" = yes; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3406 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3407 if ${ac_cv_prog_cc_c89+:} false; then :
3408 $as_echo_n "(cached) " >&6
3410 ac_cv_prog_cc_c89=no
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3417 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3418 struct buf { int x; };
3419 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3420 static char *e (p, i)
3426 static char *f (char * (*g) (char **, int), char **p, ...)
3431 s = g (p, va_arg (v,int));
3436 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3437 function prototypes and stuff, but not '\xHH' hex character constants.
3438 These don't provoke an error unfortunately, instead are silently treated
3439 as 'x'. The following induces an error, until -std is added to get
3440 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3441 array size at least. It's necessary to write '\x00'==0 to get something
3442 that's true only with -std. */
3443 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3445 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3446 inside strings and character constants. */
3448 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3450 int test (int i, double x);
3451 struct s1 {int (*f) (int a);};
3452 struct s2 {int (*f) (double a);};
3453 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3459 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3464 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3465 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3467 CC="$ac_save_CC $ac_arg"
3468 if ac_fn_c_try_compile "$LINENO"; then :
3469 ac_cv_prog_cc_c89=$ac_arg
3471 rm -f core conftest.err conftest.$ac_objext
3472 test "x$ac_cv_prog_cc_c89" != "xno" && break
3474 rm -f conftest.$ac_ext
3479 case "x$ac_cv_prog_cc_c89" in
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3482 $as_echo "none needed" >&6; } ;;
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3485 $as_echo "unsupported" >&6; } ;;
3487 CC="$CC $ac_cv_prog_cc_c89"
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3489 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3491 if test "x$ac_cv_prog_cc_c89" != xno; then :
3496 ac_cpp='$CPP $CPPFLAGS'
3497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3508 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3509 # On Suns, sometimes $CPP names a directory.
3510 if test -n "$CPP" && test -d "$CPP"; then
3513 if test -z "$CPP"; then
3514 if ${ac_cv_prog_CPP+:} false; then :
3515 $as_echo_n "(cached) " >&6
3517 # Double quotes because CPP needs to be expanded
3518 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3521 for ac_c_preproc_warn_flag in '' yes
3523 # Use a header file that comes with gcc, so configuring glibc
3524 # with a fresh cross-compiler works.
3525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3526 # <limits.h> exists even on freestanding compilers.
3527 # On the NeXT, cc -E runs the code through the compiler's parser,
3528 # not just through cpp. "Syntax error" is here to catch this case.
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3532 # include <limits.h>
3534 # include <assert.h>
3538 if ac_fn_c_try_cpp "$LINENO"; then :
3541 # Broken: fails on valid input.
3544 rm -f conftest.err conftest.i conftest.$ac_ext
3546 # OK, works on sane cases. Now check whether nonexistent headers
3547 # can be detected and how.
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550 #include <ac_nonexistent.h>
3552 if ac_fn_c_try_cpp "$LINENO"; then :
3553 # Broken: success on invalid input.
3556 # Passes both tests.
3560 rm -f conftest.err conftest.i conftest.$ac_ext
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.i conftest.err conftest.$ac_ext
3565 if $ac_preproc_ok; then :
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3578 $as_echo "$CPP" >&6; }
3580 for ac_c_preproc_warn_flag in '' yes
3582 # Use a header file that comes with gcc, so configuring glibc
3583 # with a fresh cross-compiler works.
3584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3585 # <limits.h> exists even on freestanding compilers.
3586 # On the NeXT, cc -E runs the code through the compiler's parser,
3587 # not just through cpp. "Syntax error" is here to catch this case.
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3591 # include <limits.h>
3593 # include <assert.h>
3597 if ac_fn_c_try_cpp "$LINENO"; then :
3600 # Broken: fails on valid input.
3603 rm -f conftest.err conftest.i conftest.$ac_ext
3605 # OK, works on sane cases. Now check whether nonexistent headers
3606 # can be detected and how.
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3609 #include <ac_nonexistent.h>
3611 if ac_fn_c_try_cpp "$LINENO"; then :
3612 # Broken: success on invalid input.
3615 # Passes both tests.
3619 rm -f conftest.err conftest.i conftest.$ac_ext
3622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623 rm -f conftest.i conftest.err conftest.$ac_ext
3624 if $ac_preproc_ok; then :
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3630 See \`config.log' for more details" "$LINENO" 5; }
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3641 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3642 if ${ac_cv_path_GREP+:} false; then :
3643 $as_echo_n "(cached) " >&6
3645 if test -z "$GREP"; then
3646 ac_path_GREP_found=false
3647 # Loop through the user's path and test for each of PROGNAME-LIST
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3652 test -z "$as_dir" && as_dir=.
3653 for ac_prog in grep ggrep; do
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3656 as_fn_executable_p "$ac_path_GREP" || continue
3657 # Check for GNU ac_path_GREP and select it if it is found.
3658 # Check for GNU $ac_path_GREP
3659 case `"$ac_path_GREP" --version 2>&1` in
3661 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3664 $as_echo_n 0123456789 >"conftest.in"
3667 cat "conftest.in" "conftest.in" >"conftest.tmp"
3668 mv "conftest.tmp" "conftest.in"
3669 cp "conftest.in" "conftest.nl"
3670 $as_echo 'GREP' >> "conftest.nl"
3671 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3673 as_fn_arith $ac_count + 1 && ac_count=$as_val
3674 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3675 # Best one so far, save it but keep looking for a better one
3676 ac_cv_path_GREP="$ac_path_GREP"
3677 ac_path_GREP_max=$ac_count
3679 # 10*(2^10) chars as input seems more than enough
3680 test $ac_count -gt 10 && break
3682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3685 $ac_path_GREP_found && break 3
3690 if test -z "$ac_cv_path_GREP"; then
3691 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3694 ac_cv_path_GREP=$GREP
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3699 $as_echo "$ac_cv_path_GREP" >&6; }
3700 GREP="$ac_cv_path_GREP"
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3704 $as_echo_n "checking for egrep... " >&6; }
3705 if ${ac_cv_path_EGREP+:} false; then :
3706 $as_echo_n "(cached) " >&6
3708 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3709 then ac_cv_path_EGREP="$GREP -E"
3711 if test -z "$EGREP"; then
3712 ac_path_EGREP_found=false
3713 # Loop through the user's path and test for each of PROGNAME-LIST
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3718 test -z "$as_dir" && as_dir=.
3719 for ac_prog in egrep; do
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3722 as_fn_executable_p "$ac_path_EGREP" || continue
3723 # Check for GNU ac_path_EGREP and select it if it is found.
3724 # Check for GNU $ac_path_EGREP
3725 case `"$ac_path_EGREP" --version 2>&1` in
3727 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3730 $as_echo_n 0123456789 >"conftest.in"
3733 cat "conftest.in" "conftest.in" >"conftest.tmp"
3734 mv "conftest.tmp" "conftest.in"
3735 cp "conftest.in" "conftest.nl"
3736 $as_echo 'EGREP' >> "conftest.nl"
3737 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3739 as_fn_arith $ac_count + 1 && ac_count=$as_val
3740 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3741 # Best one so far, save it but keep looking for a better one
3742 ac_cv_path_EGREP="$ac_path_EGREP"
3743 ac_path_EGREP_max=$ac_count
3745 # 10*(2^10) chars as input seems more than enough
3746 test $ac_count -gt 10 && break
3748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3751 $ac_path_EGREP_found && break 3
3756 if test -z "$ac_cv_path_EGREP"; then
3757 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3760 ac_cv_path_EGREP=$EGREP
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3766 $as_echo "$ac_cv_path_EGREP" >&6; }
3767 EGREP="$ac_cv_path_EGREP"
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3771 $as_echo_n "checking for ANSI C header files... " >&6; }
3772 if ${ac_cv_header_stdc+:} false; then :
3773 $as_echo_n "(cached) " >&6
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3790 if ac_fn_c_try_compile "$LINENO"; then :
3791 ac_cv_header_stdc=yes
3793 ac_cv_header_stdc=no
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797 if test $ac_cv_header_stdc = yes; then
3798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805 $EGREP "memchr" >/dev/null 2>&1; then :
3808 ac_cv_header_stdc=no
3814 if test $ac_cv_header_stdc = yes; then
3815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3822 $EGREP "free" >/dev/null 2>&1; then :
3825 ac_cv_header_stdc=no
3831 if test $ac_cv_header_stdc = yes; then
3832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3833 if test "$cross_compiling" = yes; then :
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3840 #if ((' ' & 0x0FF) == 0x020)
3841 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3842 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3844 # define ISLOWER(c) \
3845 (('a' <= (c) && (c) <= 'i') \
3846 || ('j' <= (c) && (c) <= 'r') \
3847 || ('s' <= (c) && (c) <= 'z'))
3848 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3856 for (i = 0; i < 256; i++)
3857 if (XOR (islower (i), ISLOWER (i))
3858 || toupper (i) != TOUPPER (i))
3863 if ac_fn_c_try_run "$LINENO"; then :
3866 ac_cv_header_stdc=no
3868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3869 conftest.$ac_objext conftest.beam conftest.$ac_ext
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3875 $as_echo "$ac_cv_header_stdc" >&6; }
3876 if test $ac_cv_header_stdc = yes; then
3878 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3882 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3883 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3884 inttypes.h stdint.h unistd.h
3886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3887 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3889 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3890 cat >>confdefs.h <<_ACEOF
3891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3900 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3901 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3908 if test "$MINIX" = yes; then
3910 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3913 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3916 $as_echo "#define _MINIX 1" >>confdefs.h
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3922 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3923 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3924 $as_echo_n "(cached) " >&6
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3929 # define __EXTENSIONS__ 1
3930 $ac_includes_default
3939 if ac_fn_c_try_compile "$LINENO"; then :
3940 ac_cv_safe_to_define___extensions__=yes
3942 ac_cv_safe_to_define___extensions__=no
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3947 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3948 test $ac_cv_safe_to_define___extensions__ = yes &&
3949 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3951 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3953 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3955 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3957 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3969 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
3971 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
3972 else on_mingw="no"; fi
3976 # Determine configuration file
3977 # the eval is to evaluate shell expansion twice
3978 if test $on_mingw = "no"; then
3979 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
3981 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
3984 # Check whether --with-conf_file was given.
3985 if test "${with_conf_file+set}" = set; then :
3986 withval=$with_conf_file; ub_conf_file="$withval"
3990 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
3993 cat >>confdefs.h <<_ACEOF
3994 #define CONFIGFILE "$hdr_config"
3998 # Determine run, chroot directory and pidfile locations
4000 # Check whether --with-run-dir was given.
4001 if test "${with_run_dir+set}" = set; then :
4002 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4004 if test $on_mingw = no; then
4005 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4013 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4016 cat >>confdefs.h <<_ACEOF
4017 #define RUN_DIR "$hdr_run"
4022 # Check whether --with-chroot-dir was given.
4023 if test "${with_chroot_dir+set}" = set; then :
4024 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4026 if test $on_mingw = no; then
4027 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4029 UNBOUND_CHROOT_DIR=""
4035 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4038 cat >>confdefs.h <<_ACEOF
4039 #define CHROOT_DIR "$hdr_chroot"
4044 # Check whether --with-share-dir was given.
4045 if test "${with_share_dir+set}" = set; then :
4046 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4048 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4053 cat >>confdefs.h <<_ACEOF
4054 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4059 # Check whether --with-pidfile was given.
4060 if test "${with_pidfile+set}" = set; then :
4061 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4063 if test $on_mingw = no; then
4064 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4072 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4075 cat >>confdefs.h <<_ACEOF
4076 #define PIDFILE "$hdr_pid"
4081 # Check whether --with-rootkey-file was given.
4082 if test "${with_rootkey_file+set}" = set; then :
4083 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4085 if test $on_mingw = no; then
4086 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4088 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4094 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4097 cat >>confdefs.h <<_ACEOF
4098 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4103 # Check whether --with-rootcert-file was given.
4104 if test "${with_rootcert_file+set}" = set; then :
4105 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4107 if test $on_mingw = no; then
4108 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4110 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4116 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4119 cat >>confdefs.h <<_ACEOF
4120 #define ROOT_CERT_FILE "$hdr_rpem"
4125 # Check whether --with-username was given.
4126 if test "${with_username+set}" = set; then :
4127 withval=$with_username; UNBOUND_USERNAME="$withval"
4129 UNBOUND_USERNAME="unbound"
4134 cat >>confdefs.h <<_ACEOF
4135 #define UB_USERNAME "$UNBOUND_USERNAME"
4140 $as_echo "#define WINVER 0x0502" >>confdefs.h
4142 wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^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]*$/\1,\2,\3,0/' `
4145 cat >>confdefs.h <<_ACEOF
4146 #define RSRC_PACKAGE_VERSION $wnvs
4150 # Checks for typedefs, structures, and compiler characteristics.
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4152 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4153 if ${ac_cv_c_const+:} false; then :
4154 $as_echo_n "(cached) " >&6
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4164 /* Ultrix mips cc rejects this sort of thing. */
4165 typedef int charset[2];
4166 const charset cs = { 0, 0 };
4167 /* SunOS 4.1.1 cc rejects this. */
4168 char const *const *pcpcc;
4170 /* NEC SVR4.0.2 mips cc rejects this. */
4171 struct point {int x, y;};
4172 static struct point const zero = {0,0};
4173 /* AIX XL C 1.02.0.0 rejects this.
4174 It does not let you subtract one const X* pointer from another in
4175 an arm of an if-expression whose if-part is not a constant
4177 const char *g = "string";
4178 pcpcc = &g + (g ? g-g : 0);
4179 /* HPUX 7.0 cc rejects these. */
4181 ppc = (char**) pcpcc;
4182 pcpcc = (char const *const *) ppc;
4183 { /* SCO 3.2v4 cc rejects this sort of thing. */
4186 char const *s = 0 ? (char *) 0 : (char const *) 0;
4191 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4193 const int *foo = &x[0];
4196 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4197 typedef const int *iptr;
4201 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4202 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4203 struct s { int j; const int *ap[3]; } bx;
4204 struct s *b = &bx; b->j = 5;
4206 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4210 return !cs[0] && !zero.x;
4217 if ac_fn_c_try_compile "$LINENO"; then :
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4225 $as_echo "$ac_cv_c_const" >&6; }
4226 if test $ac_cv_c_const = no; then
4228 $as_echo "#define const /**/" >>confdefs.h
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238 # allow user to override the -g -O2 flags.
4239 if test "x$CFLAGS" = "x" ; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4243 $as_echo_n "checking whether $CC supports -g... " >&6; }
4244 cache=`echo g | sed 'y%.=/+-%___p_%'`
4245 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4246 $as_echo_n "(cached) " >&6
4249 echo 'void f(){}' >conftest.c
4250 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4251 eval "cv_prog_cc_flag_$cache=yes"
4253 eval "cv_prog_cc_flag_$cache=no"
4255 rm -f conftest conftest.o conftest.c
4259 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4261 $as_echo "yes" >&6; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4274 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4275 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4276 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4277 $as_echo_n "(cached) " >&6
4280 echo 'void f(){}' >conftest.c
4281 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4282 eval "cv_prog_cc_flag_$cache=yes"
4284 eval "cv_prog_cc_flag_$cache=no"
4286 rm -f conftest conftest.o conftest.c
4290 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4292 $as_echo "yes" >&6; }
4294 CFLAGS="$CFLAGS -O2"
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308 if test -n "$ac_tool_prefix"; then
4309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_prog_CC+:} false; then :
4314 $as_echo_n "(cached) " >&6
4316 if test -n "$CC"; then
4317 ac_cv_prog_CC="$CC" # Let the user override the test.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 if test -n "$CC"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4339 $as_echo "$CC" >&6; }
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4347 if test -z "$ac_cv_prog_CC"; then
4349 # Extract the first word of "gcc", so it can be a program name with args.
4350 set dummy gcc; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4354 $as_echo_n "(cached) " >&6
4356 if test -n "$ac_ct_CC"; then
4357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_ac_ct_CC="gcc"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4377 if test -n "$ac_ct_CC"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4379 $as_echo "$ac_ct_CC" >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4385 if test "x$ac_ct_CC" = x; then
4388 case $cross_compiling:$ac_tool_warned in
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4392 ac_tool_warned=yes ;;
4400 if test -z "$CC"; then
4401 if test -n "$ac_tool_prefix"; then
4402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4403 set dummy ${ac_tool_prefix}cc; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_prog_CC+:} false; then :
4407 $as_echo_n "(cached) " >&6
4409 if test -n "$CC"; then
4410 ac_cv_prog_CC="$CC" # Let the user override the test.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419 ac_cv_prog_CC="${ac_tool_prefix}cc"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 if test -n "$CC"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4432 $as_echo "$CC" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4441 if test -z "$CC"; then
4442 # Extract the first word of "cc", so it can be a program name with args.
4443 set dummy cc; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_prog_CC+:} false; then :
4447 $as_echo_n "(cached) " >&6
4449 if test -n "$CC"; then
4450 ac_cv_prog_CC="$CC" # Let the user override the test.
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4461 ac_prog_rejected=yes
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 if test $ac_prog_rejected = yes; then
4473 # We found a bogon in the path, so make sure we never use it.
4474 set dummy $ac_cv_prog_CC
4476 if test $# != 0; then
4477 # We chose a different compiler from the bogus one.
4478 # However, it has the same basename, so the bogon will be chosen
4479 # first if we set CC to just the basename; use the full file name.
4481 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4487 if test -n "$CC"; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4489 $as_echo "$CC" >&6; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4497 if test -z "$CC"; then
4498 if test -n "$ac_tool_prefix"; then
4499 for ac_prog in cl.exe
4501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if ${ac_cv_prog_CC+:} false; then :
4506 $as_echo_n "(cached) " >&6
4508 if test -n "$CC"; then
4509 ac_cv_prog_CC="$CC" # Let the user override the test.
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 if test -n "$CC"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4531 $as_echo "$CC" >&6; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4538 test -n "$CC" && break
4541 if test -z "$CC"; then
4543 for ac_prog in cl.exe
4545 # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4550 $as_echo_n "(cached) " >&6
4552 if test -n "$ac_ct_CC"; then
4553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_prog_ac_ct_CC="$ac_prog"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4573 if test -n "$ac_ct_CC"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4575 $as_echo "$ac_ct_CC" >&6; }
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4582 test -n "$ac_ct_CC" && break
4585 if test "x$ac_ct_CC" = x; then
4588 case $cross_compiling:$ac_tool_warned in
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4592 ac_tool_warned=yes ;;
4601 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error $? "no acceptable C compiler found in \$PATH
4604 See \`config.log' for more details" "$LINENO" 5; }
4606 # Provide some information about the compiler.
4607 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4610 for ac_option in --version -v -V -qversion; do
4611 { { ac_try="$ac_compiler $ac_option >&5"
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617 $as_echo "$ac_try_echo"; } >&5
4618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4620 if test -s conftest.err; then
4622 ... rest of stderr output deleted ...
4623 10q' conftest.err >conftest.er1
4624 cat conftest.er1 >&5
4626 rm -f conftest.er1 conftest.err
4627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4632 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4633 if ${ac_cv_c_compiler_gnu+:} false; then :
4634 $as_echo_n "(cached) " >&6
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4650 if ac_fn_c_try_compile "$LINENO"; then :
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4660 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4661 if test $ac_compiler_gnu = yes; then
4666 ac_test_CFLAGS=${CFLAGS+set}
4667 ac_save_CFLAGS=$CFLAGS
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4669 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4670 if ${ac_cv_prog_cc_g+:} false; then :
4671 $as_echo_n "(cached) " >&6
4673 ac_save_c_werror_flag=$ac_c_werror_flag
4674 ac_c_werror_flag=yes
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4688 if ac_fn_c_try_compile "$LINENO"; then :
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4703 if ac_fn_c_try_compile "$LINENO"; then :
4706 ac_c_werror_flag=$ac_save_c_werror_flag
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4719 if ac_fn_c_try_compile "$LINENO"; then :
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 ac_c_werror_flag=$ac_save_c_werror_flag
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4730 $as_echo "$ac_cv_prog_cc_g" >&6; }
4731 if test "$ac_test_CFLAGS" = set; then
4732 CFLAGS=$ac_save_CFLAGS
4733 elif test $ac_cv_prog_cc_g = yes; then
4734 if test "$GCC" = yes; then
4740 if test "$GCC" = yes; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4747 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4748 if ${ac_cv_prog_cc_c89+:} false; then :
4749 $as_echo_n "(cached) " >&6
4751 ac_cv_prog_cc_c89=no
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4759 struct buf { int x; };
4760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4761 static char *e (p, i)
4767 static char *f (char * (*g) (char **, int), char **p, ...)
4772 s = g (p, va_arg (v,int));
4777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4778 function prototypes and stuff, but not '\xHH' hex character constants.
4779 These don't provoke an error unfortunately, instead are silently treated
4780 as 'x'. The following induces an error, until -std is added to get
4781 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4782 array size at least. It's necessary to write '\x00'==0 to get something
4783 that's true only with -std. */
4784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4787 inside strings and character constants. */
4789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4791 int test (int i, double x);
4792 struct s1 {int (*f) (int a);};
4793 struct s2 {int (*f) (double a);};
4794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4808 CC="$ac_save_CC $ac_arg"
4809 if ac_fn_c_try_compile "$LINENO"; then :
4810 ac_cv_prog_cc_c89=$ac_arg
4812 rm -f core conftest.err conftest.$ac_objext
4813 test "x$ac_cv_prog_cc_c89" != "xno" && break
4815 rm -f conftest.$ac_ext
4820 case "x$ac_cv_prog_cc_c89" in
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4823 $as_echo "none needed" >&6; } ;;
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4826 $as_echo "unsupported" >&6; } ;;
4828 CC="$CC $ac_cv_prog_cc_c89"
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4830 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4832 if test "x$ac_cv_prog_cc_c89" != xno; then :
4837 ac_cpp='$CPP $CPPFLAGS'
4838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4844 $as_echo_n "checking $CC dependency flag... " >&6; }
4845 echo 'void f(){}' >conftest.c
4846 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4849 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4852 DEPFLAG="-MM" # dunno do something
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4856 $as_echo "$DEPFLAG" >&6; }
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4864 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4865 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4866 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4867 $as_echo_n "(cached) " >&6
4870 echo 'void f(){}' >conftest.c
4871 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4872 eval "cv_prog_cc_flag_$cache=yes"
4874 eval "cv_prog_cc_flag_$cache=no"
4876 rm -f conftest conftest.o conftest.c
4880 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4882 $as_echo "yes" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4895 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4896 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4897 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4898 $as_echo_n "(cached) " >&6
4901 echo 'void f(){}' >conftest.c
4902 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4903 eval "cv_prog_cc_flag_$cache=yes"
4905 eval "cv_prog_cc_flag_$cache=no"
4907 rm -f conftest conftest.o conftest.c
4911 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4913 $as_echo "yes" >&6; }
4915 ERRFLAG="$ERRFLAG -Wall"
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4920 ERRFLAG="$ERRFLAG -errfmt"
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4928 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4929 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4930 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4931 $as_echo_n "(cached) " >&6
4934 echo 'void f(){}' >conftest.c
4935 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4936 eval "cv_prog_cc_flag_$cache=yes"
4938 eval "cv_prog_cc_flag_$cache=no"
4940 rm -f conftest conftest.o conftest.c
4944 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4946 $as_echo "yes" >&6; }
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4959 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
4960 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4961 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4962 $as_echo_n "(cached) " >&6
4965 echo 'void f(){}' >conftest.c
4966 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
4967 eval "cv_prog_cc_flag_$cache=yes"
4969 eval "cv_prog_cc_flag_$cache=no"
4971 rm -f conftest conftest.o conftest.c
4975 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4977 $as_echo "yes" >&6; }
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4988 for ac_header in getopt.h time.h
4990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4991 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4993 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4994 cat >>confdefs.h <<_ACEOF
4995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5006 { $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
5007 $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; }
5008 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`
5009 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5010 $as_echo_n "(cached) " >&6
5014 #include "confdefs.h"
5017 #include <sys/time.h>
5023 #ifdef HAVE_GETOPT_H
5034 const char* str = NULL;
5036 msg.msg_control = 0;
5037 t = ctime_r(&time, buf);
5040 a = getopt(2, opts, "a");
5042 str = gai_strerror(0);
5043 if(str && t && tv.tv_usec && msg.msg_control)
5048 echo 'void f(){}' >>conftest.c
5049 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5050 eval "cv_prog_cc_flag_needed_$cache=no"
5053 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
5054 eval "cv_prog_cc_flag_needed_$cache=yes"
5056 eval "cv_prog_cc_flag_needed_$cache=fail"
5057 #echo 'Test with flag fails too!'
5059 #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"
5060 #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`
5065 rm -f conftest conftest.c conftest.o
5069 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071 $as_echo "yes" >&6; }
5073 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"
5075 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 #echo 'Test with flag is no!'
5080 #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"
5081 #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`
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5087 $as_echo "failed" >&6; }
5097 { $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
5098 $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; }
5099 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5100 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5101 $as_echo_n "(cached) " >&6
5105 #include "confdefs.h"
5108 #include <sys/time.h>
5114 #ifdef HAVE_GETOPT_H
5125 const char* str = NULL;
5127 msg.msg_control = 0;
5128 t = ctime_r(&time, buf);
5131 a = getopt(2, opts, "a");
5133 str = gai_strerror(0);
5134 if(str && t && tv.tv_usec && msg.msg_control)
5139 echo 'void f(){}' >>conftest.c
5140 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5141 eval "cv_prog_cc_flag_needed_$cache=no"
5144 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
5145 eval "cv_prog_cc_flag_needed_$cache=yes"
5147 eval "cv_prog_cc_flag_needed_$cache=fail"
5148 #echo 'Test with flag fails too!'
5150 #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"
5151 #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`
5156 rm -f conftest conftest.c conftest.o
5160 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5162 $as_echo "yes" >&6; }
5164 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5166 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 #echo 'Test with flag is no!'
5171 #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"
5172 #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`
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5178 $as_echo "failed" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5189 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5190 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5191 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5192 $as_echo_n "(cached) " >&6
5196 #include <stdbool.h>
5203 echo 'void f(){}' >>conftest.c
5204 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5205 eval "cv_prog_cc_flag_needed_$cache=no"
5208 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5209 eval "cv_prog_cc_flag_needed_$cache=yes"
5211 eval "cv_prog_cc_flag_needed_$cache=fail"
5212 #echo 'Test with flag fails too!'
5214 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5215 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5220 rm -f conftest conftest.c conftest.o
5224 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5226 $as_echo "yes" >&6; }
5228 CFLAGS="$CFLAGS $C99FLAG"
5230 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 #echo 'Test with flag is no!'
5235 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5236 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5242 $as_echo "failed" >&6; }
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5253 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5255 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5256 $as_echo_n "(cached) " >&6
5268 echo 'void f(){}' >>conftest.c
5269 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5270 eval "cv_prog_cc_flag_needed_$cache=no"
5273 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5274 eval "cv_prog_cc_flag_needed_$cache=yes"
5276 eval "cv_prog_cc_flag_needed_$cache=fail"
5277 #echo 'Test with flag fails too!'
5279 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5280 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5285 rm -f conftest conftest.c conftest.o
5289 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5291 $as_echo "yes" >&6; }
5293 CFLAGS="$CFLAGS -D_BSD_SOURCE"
5295 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298 #echo 'Test with flag is no!'
5300 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5301 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5307 $as_echo "failed" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5318 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5320 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5321 $as_echo_n "(cached) " >&6
5325 #include <netinet/in.h>
5328 struct in6_pktinfo inf;
5329 int a = (int)sizeof(inf);
5333 echo 'void f(){}' >>conftest.c
5334 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5335 eval "cv_prog_cc_flag_needed_$cache=no"
5338 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5339 eval "cv_prog_cc_flag_needed_$cache=yes"
5341 eval "cv_prog_cc_flag_needed_$cache=fail"
5342 #echo 'Test with flag fails too!'
5344 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5345 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5350 rm -f conftest conftest.c conftest.o
5354 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356 $as_echo "yes" >&6; }
5358 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5360 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5363 #echo 'Test with flag is no!'
5365 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5366 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5372 $as_echo "failed" >&6; }
5379 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5380 # is not available at all. -D_FRSRESGID is to make this check unique.
5381 # otherwise we would get the previous cached result.
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5386 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5387 cache=_D_GNU_SOURCE__D_FRSRESGID
5388 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5389 $as_echo_n "(cached) " >&6
5396 int a = setresgid(0,0,0);
5397 a = setresuid(0,0,0);
5401 echo 'void f(){}' >>conftest.c
5402 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5403 eval "cv_prog_cc_flag_needed_$cache=no"
5406 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5407 eval "cv_prog_cc_flag_needed_$cache=yes"
5409 eval "cv_prog_cc_flag_needed_$cache=fail"
5410 #echo 'Test with flag fails too!'
5412 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5413 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5418 rm -f conftest conftest.c conftest.o
5422 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5424 $as_echo "yes" >&6; }
5426 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5428 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5431 #echo 'Test with flag is no!'
5433 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5434 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5440 $as_echo "failed" >&6; }
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5451 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5452 cache=_D_POSIX_C_SOURCE_200112
5453 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5454 $as_echo_n "(cached) " >&6
5458 #include "confdefs.h"
5469 const char* str = NULL;
5470 t = ctime_r(&time, buf);
5471 str = gai_strerror(0);
5477 echo 'void f(){}' >>conftest.c
5478 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5479 eval "cv_prog_cc_flag_needed_$cache=no"
5482 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5483 eval "cv_prog_cc_flag_needed_$cache=yes"
5485 eval "cv_prog_cc_flag_needed_$cache=fail"
5486 #echo 'Test with flag fails too!'
5488 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5489 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5494 rm -f conftest conftest.c conftest.o
5498 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5500 $as_echo "yes" >&6; }
5502 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5504 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 #echo 'Test with flag is no!'
5509 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5510 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5516 $as_echo "failed" >&6; }
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5527 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5528 cache=_D__EXTENSIONS__
5529 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5530 $as_echo_n "(cached) " >&6
5534 #include "confdefs.h"
5537 #include <sys/time.h>
5542 #ifdef HAVE_GETOPT_H
5552 a = getopt(2, opts, "a");
5559 echo 'void f(){}' >>conftest.c
5560 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5561 eval "cv_prog_cc_flag_needed_$cache=no"
5564 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5565 eval "cv_prog_cc_flag_needed_$cache=yes"
5567 eval "cv_prog_cc_flag_needed_$cache=fail"
5568 #echo 'Test with flag fails too!'
5570 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5571 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5576 rm -f conftest conftest.c conftest.o
5580 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5582 $as_echo "yes" >&6; }
5584 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5586 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5589 #echo 'Test with flag is no!'
5591 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5592 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5598 $as_echo "failed" >&6; }
5607 # debug mode flags warnings
5608 # Check whether --enable-checking was given.
5609 if test "${enable_checking+set}" = set; then :
5610 enableval=$enable_checking;
5613 # Check whether --enable-debug was given.
5614 if test "${enable_debug+set}" = set; then :
5615 enableval=$enable_debug;
5618 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5619 else debug_enabled="$enable_checking"; fi
5621 case "$debug_enabled" in
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5626 $as_echo_n "checking whether $CC supports -W... " >&6; }
5627 cache=`echo W | sed 'y%.=/+-%___p_%'`
5628 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5629 $as_echo_n "(cached) " >&6
5632 echo 'void f(){}' >conftest.c
5633 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5634 eval "cv_prog_cc_flag_$cache=yes"
5636 eval "cv_prog_cc_flag_$cache=no"
5638 rm -f conftest conftest.o conftest.c
5642 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5644 $as_echo "yes" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5657 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5658 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5659 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5660 $as_echo_n "(cached) " >&6
5663 echo 'void f(){}' >conftest.c
5664 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5665 eval "cv_prog_cc_flag_$cache=yes"
5667 eval "cv_prog_cc_flag_$cache=no"
5669 rm -f conftest conftest.o conftest.c
5673 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5675 $as_echo "yes" >&6; }
5677 CFLAGS="$CFLAGS -Wall"
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5688 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5689 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5690 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5691 $as_echo_n "(cached) " >&6
5694 echo 'void f(){}' >conftest.c
5695 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5696 eval "cv_prog_cc_flag_$cache=yes"
5698 eval "cv_prog_cc_flag_$cache=no"
5700 rm -f conftest conftest.o conftest.c
5704 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5706 $as_echo "yes" >&6; }
5708 CFLAGS="$CFLAGS -Wextra"
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5719 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5720 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5721 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5722 $as_echo_n "(cached) " >&6
5725 echo 'void f(){}' >conftest.c
5726 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5727 eval "cv_prog_cc_flag_$cache=yes"
5729 eval "cv_prog_cc_flag_$cache=no"
5731 rm -f conftest conftest.o conftest.c
5735 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5737 $as_echo "yes" >&6; }
5739 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5748 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5756 $as_echo_n "checking if $CC supports -flto... " >&6; }
5758 CFLAGS="$CFLAGS -flto"
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5770 if ac_fn_c_try_link "$LINENO"; then :
5772 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5778 $as_echo "yes" >&6; }
5780 rm -f conftest conftest.c conftest.o
5783 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5786 rm -f core conftest.err conftest.$ac_objext \
5787 conftest$ac_exeext conftest.$ac_ext
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5791 $as_echo_n "checking for inline... " >&6; }
5792 if ${ac_cv_c_inline+:} false; then :
5793 $as_echo_n "(cached) " >&6
5796 for ac_kw in inline __inline__ __inline; do
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5801 static $ac_kw foo_t static_foo () {return 0; }
5802 $ac_kw foo_t foo () {return 0; }
5806 if ac_fn_c_try_compile "$LINENO"; then :
5807 ac_cv_c_inline=$ac_kw
5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810 test "$ac_cv_c_inline" != no && break
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5815 $as_echo "$ac_cv_c_inline" >&6; }
5817 case $ac_cv_c_inline in
5820 case $ac_cv_c_inline in
5822 *) ac_val=$ac_cv_c_inline;;
5824 cat >>confdefs.h <<_ACEOF
5826 #define inline $ac_val
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5834 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5835 if ${ac_cv_c_format_attribute+:} false; then :
5836 $as_echo_n "(cached) " >&6
5838 ac_cv_c_format_attribute=no
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5842 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5843 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856 ac_cv_c_format_attribute="yes"
5858 ac_cv_c_format_attribute="no"
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5866 $as_echo "$ac_cv_c_format_attribute" >&6; }
5867 if test $ac_cv_c_format_attribute = yes; then
5869 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5875 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5876 if ${ac_cv_c_unused_attribute+:} false; then :
5877 $as_echo_n "(cached) " >&6
5879 ac_cv_c_unused_attribute=no
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5883 void f (char *u __attribute__((unused)));
5895 if ac_fn_c_try_compile "$LINENO"; then :
5896 ac_cv_c_unused_attribute="yes"
5898 ac_cv_c_unused_attribute="no"
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
5908 $as_echo "$ac_cv_c_unused_attribute" >&6; }
5909 if test $ac_cv_c_unused_attribute = yes; then
5911 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
5916 if test "$srcdir" != "."; then
5917 CPPFLAGS="$CPPFLAGS -I$srcdir"
5922 for ac_prog in flex lex
5924 # Extract the first word of "$ac_prog", so it can be a program name with args.
5925 set dummy $ac_prog; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if ${ac_cv_prog_LEX+:} false; then :
5929 $as_echo_n "(cached) " >&6
5931 if test -n "$LEX"; then
5932 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_LEX="$ac_prog"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 if test -n "$LEX"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5954 $as_echo "$LEX" >&6; }
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5961 test -n "$LEX" && break
5963 test -n "$LEX" || LEX=":"
5965 if test "x$LEX" != "x:"; then
5966 cat >conftest.l <<_ACEOF
5972 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5973 yyless ((input () != 0)); }
5974 f { unput (yytext[0]); }
5975 . { BEGIN INITIAL; }
5977 #ifdef YYTEXT_POINTER
5978 extern char *yytext;
5983 return ! yylex () + ! yywrap ();
5986 { { ac_try="$LEX conftest.l"
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5992 $as_echo "$ac_try_echo"; } >&5
5993 (eval "$LEX conftest.l") 2>&5
5995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5996 test $ac_status = 0; }
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5998 $as_echo_n "checking lex output file root... " >&6; }
5999 if ${ac_cv_prog_lex_root+:} false; then :
6000 $as_echo_n "(cached) " >&6
6003 if test -f lex.yy.c; then
6004 ac_cv_prog_lex_root=lex.yy
6005 elif test -f lexyy.c; then
6006 ac_cv_prog_lex_root=lexyy
6008 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6012 $as_echo "$ac_cv_prog_lex_root" >&6; }
6013 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6015 if test -z "${LEXLIB+set}"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6017 $as_echo_n "checking lex library... " >&6; }
6018 if ${ac_cv_lib_lex+:} false; then :
6019 $as_echo_n "(cached) " >&6
6023 ac_cv_lib_lex='none needed'
6024 for ac_lib in '' -lfl -ll; do
6025 LIBS="$ac_lib $ac_save_LIBS"
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6028 `cat $LEX_OUTPUT_ROOT.c`
6030 if ac_fn_c_try_link "$LINENO"; then :
6031 ac_cv_lib_lex=$ac_lib
6033 rm -f core conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6035 test "$ac_cv_lib_lex" != 'none needed' && break
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6041 $as_echo "$ac_cv_lib_lex" >&6; }
6042 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6047 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6048 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6049 $as_echo_n "(cached) " >&6
6051 # POSIX says lex can declare yytext either as a pointer or an array; the
6052 # default is implementation-dependent. Figure out which it is, since
6053 # not all implementations provide the %pointer and %array declarations.
6054 ac_cv_prog_lex_yytext_pointer=no
6056 LIBS="$LEXLIB $ac_save_LIBS"
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6060 #define YYTEXT_POINTER 1
6061 `cat $LEX_OUTPUT_ROOT.c`
6063 if ac_fn_c_try_link "$LINENO"; then :
6064 ac_cv_prog_lex_yytext_pointer=yes
6066 rm -f core conftest.err conftest.$ac_objext \
6067 conftest$ac_exeext conftest.$ac_ext
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6072 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6073 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6075 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6078 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6083 $as_echo_n "checking for yylex_destroy... " >&6; }
6084 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6086 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6089 $as_echo "yes" >&6; }
6090 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }; fi
6093 for ac_prog in 'bison -y' byacc
6095 # Extract the first word of "$ac_prog", so it can be a program name with args.
6096 set dummy $ac_prog; ac_word=$2
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if ${ac_cv_prog_YACC+:} false; then :
6100 $as_echo_n "(cached) " >&6
6102 if test -n "$YACC"; then
6103 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112 ac_cv_prog_YACC="$ac_prog"
6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 YACC=$ac_cv_prog_YACC
6123 if test -n "$YACC"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6125 $as_echo "$YACC" >&6; }
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6132 test -n "$YACC" && break
6134 test -n "$YACC" || YACC="yacc"
6136 # Extract the first word of "doxygen", so it can be a program name with args.
6137 set dummy doxygen; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if ${ac_cv_prog_doxygen+:} false; then :
6141 $as_echo_n "(cached) " >&6
6143 if test -n "$doxygen"; then
6144 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153 ac_cv_prog_doxygen="doxygen"
6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 doxygen=$ac_cv_prog_doxygen
6164 if test -n "$doxygen"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6166 $as_echo "$doxygen" >&6; }
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6173 if test -n "$ac_tool_prefix"; then
6174 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6175 set dummy ${ac_tool_prefix}strip; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 $as_echo_n "checking for $ac_word... " >&6; }
6178 if ${ac_cv_prog_STRIP+:} false; then :
6179 $as_echo_n "(cached) " >&6
6181 if test -n "$STRIP"; then
6182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 STRIP=$ac_cv_prog_STRIP
6202 if test -n "$STRIP"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6204 $as_echo "$STRIP" >&6; }
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 $as_echo "no" >&6; }
6212 if test -z "$ac_cv_prog_STRIP"; then
6214 # Extract the first word of "strip", so it can be a program name with args.
6215 set dummy strip; ac_word=$2
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217 $as_echo_n "checking for $ac_word... " >&6; }
6218 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6219 $as_echo_n "(cached) " >&6
6221 if test -n "$ac_ct_STRIP"; then
6222 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231 ac_cv_prog_ac_ct_STRIP="strip"
6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6242 if test -n "$ac_ct_STRIP"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6244 $as_echo "$ac_ct_STRIP" >&6; }
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 $as_echo "no" >&6; }
6250 if test "x$ac_ct_STRIP" = x; then
6253 case $cross_compiling:$ac_tool_warned in
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6257 ac_tool_warned=yes ;;
6262 STRIP="$ac_cv_prog_STRIP"
6266 # skip these tests, we do not need them.
6275 # always use ./libtool unless override from commandline (libtool=mylibtool)
6276 if test -z "$libtool"; then
6280 # avoid libtool max commandline length test on systems that fork slowly.
6282 if echo "$host_os" | grep "sunos4" >/dev/null; then
6283 lt_cv_sys_max_cmd_len=32750;
6285 if test -n "$ac_tool_prefix"; then
6286 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6287 set dummy ${ac_tool_prefix}ar; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if ${ac_cv_path_AR+:} false; then :
6291 $as_echo_n "(cached) " >&6
6295 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 if test -n "$AR"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6319 $as_echo "$AR" >&6; }
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6327 if test -z "$ac_cv_path_AR"; then
6329 # Extract the first word of "ar", so it can be a program name with args.
6330 set dummy ar; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_path_ac_pt_AR+:} false; then :
6334 $as_echo_n "(cached) " >&6
6338 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 ac_pt_AR=$ac_cv_path_ac_pt_AR
6360 if test -n "$ac_pt_AR"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6362 $as_echo "$ac_pt_AR" >&6; }
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6368 if test "x$ac_pt_AR" = x; then
6371 case $cross_compiling:$ac_tool_warned in
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375 ac_tool_warned=yes ;;
6383 if test $AR = false; then
6384 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6390 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6395 macro_version='2.4.2'
6396 macro_revision='1.3337'
6410 ltmain="$ac_aux_dir/ltmain.sh"
6412 # Backslashify metacharacters that are still active within
6413 # double-quoted strings.
6414 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6416 # Same as above, but do not quote variable references.
6417 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6419 # Sed substitution to delay expansion of an escaped shell variable in a
6420 # double_quote_subst'ed string.
6421 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6423 # Sed substitution to delay expansion of an escaped single quote.
6424 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6426 # Sed substitution to avoid accidental globbing in evaled expressions
6427 no_glob_subst='s/\*/\\\*/g'
6429 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6430 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6431 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6434 $as_echo_n "checking how to print strings... " >&6; }
6435 # Test print first, because it will be a builtin if present.
6436 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6437 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6439 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6442 # Use this function as a fallback that always works.
6443 func_fallback_echo ()
6445 eval 'cat <<_LTECHO_EOF
6449 ECHO='func_fallback_echo'
6452 # func_echo_all arg...
6453 # Invoke $ECHO with all args, space-separated.
6460 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6461 $as_echo "printf" >&6; } ;;
6462 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6463 $as_echo "print -r" >&6; } ;;
6464 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6465 $as_echo "cat" >&6; } ;;
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6482 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6483 if ${ac_cv_path_SED+:} false; then :
6484 $as_echo_n "(cached) " >&6
6486 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6487 for ac_i in 1 2 3 4 5 6 7; do
6488 ac_script="$ac_script$as_nl$ac_script"
6490 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6491 { ac_script=; unset ac_script;}
6492 if test -z "$SED"; then
6493 ac_path_SED_found=false
6494 # Loop through the user's path and test for each of PROGNAME-LIST
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 test -z "$as_dir" && as_dir=.
6500 for ac_prog in sed gsed; do
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6503 as_fn_executable_p "$ac_path_SED" || continue
6504 # Check for GNU ac_path_SED and select it if it is found.
6505 # Check for GNU $ac_path_SED
6506 case `"$ac_path_SED" --version 2>&1` in
6508 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6511 $as_echo_n 0123456789 >"conftest.in"
6514 cat "conftest.in" "conftest.in" >"conftest.tmp"
6515 mv "conftest.tmp" "conftest.in"
6516 cp "conftest.in" "conftest.nl"
6517 $as_echo '' >> "conftest.nl"
6518 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6520 as_fn_arith $ac_count + 1 && ac_count=$as_val
6521 if test $ac_count -gt ${ac_path_SED_max-0}; then
6522 # Best one so far, save it but keep looking for a better one
6523 ac_cv_path_SED="$ac_path_SED"
6524 ac_path_SED_max=$ac_count
6526 # 10*(2^10) chars as input seems more than enough
6527 test $ac_count -gt 10 && break
6529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6532 $ac_path_SED_found && break 3
6537 if test -z "$ac_cv_path_SED"; then
6538 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6546 $as_echo "$ac_cv_path_SED" >&6; }
6547 SED="$ac_cv_path_SED"
6550 test -z "$SED" && SED=sed
6551 Xsed="$SED -e 1s/^X//"
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6564 $as_echo_n "checking for fgrep... " >&6; }
6565 if ${ac_cv_path_FGREP+:} false; then :
6566 $as_echo_n "(cached) " >&6
6568 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6569 then ac_cv_path_FGREP="$GREP -F"
6571 if test -z "$FGREP"; then
6572 ac_path_FGREP_found=false
6573 # Loop through the user's path and test for each of PROGNAME-LIST
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6578 test -z "$as_dir" && as_dir=.
6579 for ac_prog in fgrep; do
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6582 as_fn_executable_p "$ac_path_FGREP" || continue
6583 # Check for GNU ac_path_FGREP and select it if it is found.
6584 # Check for GNU $ac_path_FGREP
6585 case `"$ac_path_FGREP" --version 2>&1` in
6587 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6590 $as_echo_n 0123456789 >"conftest.in"
6593 cat "conftest.in" "conftest.in" >"conftest.tmp"
6594 mv "conftest.tmp" "conftest.in"
6595 cp "conftest.in" "conftest.nl"
6596 $as_echo 'FGREP' >> "conftest.nl"
6597 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6599 as_fn_arith $ac_count + 1 && ac_count=$as_val
6600 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6601 # Best one so far, save it but keep looking for a better one
6602 ac_cv_path_FGREP="$ac_path_FGREP"
6603 ac_path_FGREP_max=$ac_count
6605 # 10*(2^10) chars as input seems more than enough
6606 test $ac_count -gt 10 && break
6608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6611 $ac_path_FGREP_found && break 3
6616 if test -z "$ac_cv_path_FGREP"; then
6617 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6620 ac_cv_path_FGREP=$FGREP
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6626 $as_echo "$ac_cv_path_FGREP" >&6; }
6627 FGREP="$ac_cv_path_FGREP"
6630 test -z "$GREP" && GREP=grep
6650 # Check whether --with-gnu-ld was given.
6651 if test "${with_gnu_ld+set}" = set; then :
6652 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6658 if test "$GCC" = yes; then
6659 # Check if gcc -print-prog-name=ld gives a path.
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6661 $as_echo_n "checking for ld used by $CC... " >&6; }
6664 # gcc leaves a trailing carriage return which upsets mingw
6665 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6667 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6670 # Accept absolute paths.
6672 re_direlt='/[^/][^/]*/\.\./'
6673 # Canonicalize the pathname of ld
6674 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6675 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6676 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6678 test -z "$LD" && LD="$ac_prog"
6681 # If it fails, then pretend we aren't using GCC.
6685 # If it is relative, then search for the first ld in PATH.
6689 elif test "$with_gnu_ld" = yes; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6691 $as_echo_n "checking for GNU ld... " >&6; }
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6694 $as_echo_n "checking for non-GNU ld... " >&6; }
6696 if ${lt_cv_path_LD+:} false; then :
6697 $as_echo_n "(cached) " >&6
6699 if test -z "$LD"; then
6700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6701 for ac_dir in $PATH; do
6703 test -z "$ac_dir" && ac_dir=.
6704 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6705 lt_cv_path_LD="$ac_dir/$ac_prog"
6706 # Check to see if the program is GNU ld. I'd rather use --version,
6707 # but apparently some variants of GNU ld only accept -v.
6708 # Break only if it was the GNU/non-GNU ld that we prefer.
6709 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6710 *GNU* | *'with BFD'*)
6711 test "$with_gnu_ld" != no && break
6714 test "$with_gnu_ld" != yes && break
6721 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6726 if test -n "$LD"; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6728 $as_echo "$LD" >&6; }
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6733 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6735 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6736 if ${lt_cv_prog_gnu_ld+:} false; then :
6737 $as_echo_n "(cached) " >&6
6739 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6740 case `$LD -v 2>&1 </dev/null` in
6741 *GNU* | *'with BFD'*)
6742 lt_cv_prog_gnu_ld=yes
6745 lt_cv_prog_gnu_ld=no
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6750 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6751 with_gnu_ld=$lt_cv_prog_gnu_ld
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6762 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6763 if ${lt_cv_path_NM+:} false; then :
6764 $as_echo_n "(cached) " >&6
6766 if test -n "$NM"; then
6767 # Let the user override the test.
6770 lt_nm_to_check="${ac_tool_prefix}nm"
6771 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6772 lt_nm_to_check="$lt_nm_to_check nm"
6774 for lt_tmp_nm in $lt_nm_to_check; do
6775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6776 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6778 test -z "$ac_dir" && ac_dir=.
6779 tmp_nm="$ac_dir/$lt_tmp_nm"
6780 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6781 # Check to see if the nm accepts a BSD-compat flag.
6782 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6783 # nm: unknown option "B" ignored
6784 # Tru64's nm complains that /dev/null is an invalid object file
6785 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6786 */dev/null* | *'Invalid file or object type'*)
6787 lt_cv_path_NM="$tmp_nm -B"
6791 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6793 lt_cv_path_NM="$tmp_nm -p"
6797 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6798 continue # so that we can try to find one that supports BSD flags
6807 : ${lt_cv_path_NM=no}
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6811 $as_echo "$lt_cv_path_NM" >&6; }
6812 if test "$lt_cv_path_NM" != "no"; then
6815 # Didn't find any BSD compatible name lister, look for dumpbin.
6816 if test -n "$DUMPBIN"; then :
6817 # Let the user override the test.
6819 if test -n "$ac_tool_prefix"; then
6820 for ac_prog in dumpbin "link -dump"
6822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_DUMPBIN+:} false; then :
6827 $as_echo_n "(cached) " >&6
6829 if test -n "$DUMPBIN"; then
6830 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 DUMPBIN=$ac_cv_prog_DUMPBIN
6850 if test -n "$DUMPBIN"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6852 $as_echo "$DUMPBIN" >&6; }
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6859 test -n "$DUMPBIN" && break
6862 if test -z "$DUMPBIN"; then
6863 ac_ct_DUMPBIN=$DUMPBIN
6864 for ac_prog in dumpbin "link -dump"
6866 # Extract the first word of "$ac_prog", so it can be a program name with args.
6867 set dummy $ac_prog; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6871 $as_echo_n "(cached) " >&6
6873 if test -n "$ac_ct_DUMPBIN"; then
6874 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6894 if test -n "$ac_ct_DUMPBIN"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6896 $as_echo "$ac_ct_DUMPBIN" >&6; }
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6903 test -n "$ac_ct_DUMPBIN" && break
6906 if test "x$ac_ct_DUMPBIN" = x; then
6909 case $cross_compiling:$ac_tool_warned in
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6915 DUMPBIN=$ac_ct_DUMPBIN
6919 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6921 DUMPBIN="$DUMPBIN -symbols"
6929 if test "$DUMPBIN" != ":"; then
6933 test -z "$NM" && NM=nm
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6941 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6942 if ${lt_cv_nm_interface+:} false; then :
6943 $as_echo_n "(cached) " >&6
6945 lt_cv_nm_interface="BSD nm"
6946 echo "int some_variable = 0;" > conftest.$ac_ext
6947 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6948 (eval "$ac_compile" 2>conftest.err)
6949 cat conftest.err >&5
6950 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6951 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6952 cat conftest.err >&5
6953 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6954 cat conftest.out >&5
6955 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6956 lt_cv_nm_interface="MS dumpbin"
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6961 $as_echo "$lt_cv_nm_interface" >&6; }
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6964 $as_echo_n "checking whether ln -s works... " >&6; }
6966 if test "$LN_S" = "ln -s"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6968 $as_echo "yes" >&6; }
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6971 $as_echo "no, using $LN_S" >&6; }
6974 # find the maximum length of command line arguments
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6976 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6977 if ${lt_cv_sys_max_cmd_len+:} false; then :
6978 $as_echo_n "(cached) " >&6
6985 # On DJGPP, this test can blow up pretty badly due to problems in libc
6986 # (any single argument exceeding 2000 bytes causes a buffer overrun
6987 # during glob expansion). Even if it were fixed, the result of this
6988 # check would be larger than it should be.
6989 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6993 # Under GNU Hurd, this test is not required because there is
6994 # no limit to the length of command line arguments.
6995 # Libtool will interpret -1 as no limit whatsoever
6996 lt_cv_sys_max_cmd_len=-1;
6999 cygwin* | mingw* | cegcc*)
7000 # On Win9x/ME, this test blows up -- it succeeds, but takes
7001 # about 5 minutes as the teststring grows exponentially.
7002 # Worse, since 9x/ME are not pre-emptively multitasking,
7003 # you end up with a "frozen" computer, even though with patience
7004 # the test eventually succeeds (with a max line length of 256k).
7005 # Instead, let's just punt: use the minimum linelength reported by
7006 # all of the supported platforms: 8192 (on NT/2K/XP).
7007 lt_cv_sys_max_cmd_len=8192;
7011 # On MiNT this can take a long time and run out of memory.
7012 lt_cv_sys_max_cmd_len=8192;
7016 # On AmigaOS with pdksh, this test takes hours, literally.
7017 # So we just punt and use a minimum line length of 8192.
7018 lt_cv_sys_max_cmd_len=8192;
7021 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7022 # This has been around since 386BSD, at least. Likely further.
7023 if test -x /sbin/sysctl; then
7024 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7025 elif test -x /usr/sbin/sysctl; then
7026 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7028 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7030 # And add a safety zone
7031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7032 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7036 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7037 lt_cv_sys_max_cmd_len=196608
7041 # The test takes a long time on OS/2.
7042 lt_cv_sys_max_cmd_len=8192
7046 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7047 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7048 # nice to cause kernel panics so lets avoid the loop below.
7049 # First set a reasonable default.
7050 lt_cv_sys_max_cmd_len=16384
7052 if test -x /sbin/sysconfig; then
7053 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7054 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7059 lt_cv_sys_max_cmd_len=102400
7061 sysv5* | sco5v6* | sysv4.2uw2*)
7062 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7063 if test -n "$kargmax"; then
7064 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7066 lt_cv_sys_max_cmd_len=32768
7070 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7071 if test -n "$lt_cv_sys_max_cmd_len"; then
7072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7075 # Make teststring a little bigger before we do anything with it.
7076 # a 1K string should be a reasonable start.
7077 for i in 1 2 3 4 5 6 7 8 ; do
7078 teststring=$teststring$teststring
7080 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7081 # If test is not a shell built-in, we'll probably end up computing a
7082 # maximum length that is only half of the actual maximum length, but
7084 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7085 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7086 test $i != 17 # 1/2 MB should be enough
7089 teststring=$teststring$teststring
7091 # Only check the string length outside the loop.
7092 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7094 # Add a significant safety factor because C++ compilers can tack on
7095 # massive amounts of additional arguments before passing them to the
7096 # linker. It appears as though 1/2 is a usable value.
7097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7104 if test -n $lt_cv_sys_max_cmd_len ; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7106 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7109 $as_echo "none" >&6; }
7111 max_cmd_len=$lt_cv_sys_max_cmd_len
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7123 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7124 # Try some XSI features
7127 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7129 && eval 'test $(( 1 + 1 )) -eq 2 \
7130 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7133 $as_echo "$xsi_shell" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7137 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7139 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7141 && lt_shell_append=yes
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7143 $as_echo "$lt_shell_append" >&6; }
7146 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7156 # test EBCDIC or ASCII
7157 case `echo X|tr X '\101'` in
7158 A) # ASCII based system
7159 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7160 lt_SP2NL='tr \040 \012'
7161 lt_NL2SP='tr \015\012 \040\040'
7163 *) # EBCDIC based system
7164 lt_SP2NL='tr \100 \n'
7165 lt_NL2SP='tr \r\n \100\100'
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7178 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7179 if ${lt_cv_to_host_file_cmd+:} false; then :
7180 $as_echo_n "(cached) " >&6
7185 *-*-mingw* ) # actually msys
7186 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7189 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7191 * ) # otherwise, assume *nix
7192 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7198 *-*-mingw* ) # actually msys
7199 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7202 lt_cv_to_host_file_cmd=func_convert_file_noop
7204 * ) # otherwise, assume *nix
7205 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7209 * ) # unhandled hosts (and "normal" native builds)
7210 lt_cv_to_host_file_cmd=func_convert_file_noop
7216 to_host_file_cmd=$lt_cv_to_host_file_cmd
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7218 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7225 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7226 if ${lt_cv_to_tool_file_cmd+:} false; then :
7227 $as_echo_n "(cached) " >&6
7229 #assume ordinary cross tools, or native build.
7230 lt_cv_to_tool_file_cmd=func_convert_file_noop
7234 *-*-mingw* ) # actually msys
7235 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7243 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7245 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7252 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7253 if ${lt_cv_ld_reload_flag+:} false; then :
7254 $as_echo_n "(cached) " >&6
7256 lt_cv_ld_reload_flag='-r'
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7259 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7260 reload_flag=$lt_cv_ld_reload_flag
7261 case $reload_flag in
7263 *) reload_flag=" $reload_flag" ;;
7265 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7267 cygwin* | mingw* | pw32* | cegcc*)
7268 if test "$GCC" != yes; then
7273 if test "$GCC" = yes; then
7274 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7276 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7289 if test -n "$ac_tool_prefix"; then
7290 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7291 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_OBJDUMP+:} false; then :
7295 $as_echo_n "(cached) " >&6
7297 if test -n "$OBJDUMP"; then
7298 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 OBJDUMP=$ac_cv_prog_OBJDUMP
7318 if test -n "$OBJDUMP"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7320 $as_echo "$OBJDUMP" >&6; }
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7328 if test -z "$ac_cv_prog_OBJDUMP"; then
7329 ac_ct_OBJDUMP=$OBJDUMP
7330 # Extract the first word of "objdump", so it can be a program name with args.
7331 set dummy objdump; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7335 $as_echo_n "(cached) " >&6
7337 if test -n "$ac_ct_OBJDUMP"; then
7338 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7358 if test -n "$ac_ct_OBJDUMP"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7360 $as_echo "$ac_ct_OBJDUMP" >&6; }
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7366 if test "x$ac_ct_OBJDUMP" = x; then
7369 case $cross_compiling:$ac_tool_warned in
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373 ac_tool_warned=yes ;;
7375 OBJDUMP=$ac_ct_OBJDUMP
7378 OBJDUMP="$ac_cv_prog_OBJDUMP"
7381 test -z "$OBJDUMP" && OBJDUMP=objdump
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7392 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7393 if ${lt_cv_deplibs_check_method+:} false; then :
7394 $as_echo_n "(cached) " >&6
7396 lt_cv_file_magic_cmd='$MAGIC_CMD'
7397 lt_cv_file_magic_test_file=
7398 lt_cv_deplibs_check_method='unknown'
7399 # Need to set the preceding variable on all platforms that support
7400 # interlibrary dependencies.
7401 # 'none' -- dependencies not supported.
7402 # `unknown' -- same as none, but documents that we really don't know.
7403 # 'pass_all' -- all dependencies passed with no checks.
7404 # 'test_compile' -- check by making test program.
7405 # 'file_magic [[regex]]' -- check by looking for files in library path
7406 # which responds to the $file_magic_cmd with a given extended regex.
7407 # If you have `file' or equivalent on your system and you're not sure
7408 # whether `pass_all' will *always* work, you probably want this one.
7412 lt_cv_deplibs_check_method=pass_all
7416 lt_cv_deplibs_check_method=pass_all
7420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7421 lt_cv_file_magic_cmd='/usr/bin/file -L'
7422 lt_cv_file_magic_test_file=/shlib/libc.so
7426 # func_win32_libid is a shell function defined in ltmain.sh
7427 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7428 lt_cv_file_magic_cmd='func_win32_libid'
7432 # Base MSYS/MinGW do not provide the 'file' command needed by
7433 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7434 # unless we find 'file', for example because we are cross-compiling.
7435 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7436 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7438 lt_cv_file_magic_cmd='func_win32_libid'
7440 # Keep this pattern in sync with the one in func_win32_libid.
7441 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7442 lt_cv_file_magic_cmd='$OBJDUMP -f'
7447 # use the weaker test based on 'objdump'. See mingw*.
7448 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7449 lt_cv_file_magic_cmd='$OBJDUMP -f'
7452 darwin* | rhapsody*)
7453 lt_cv_deplibs_check_method=pass_all
7456 freebsd* | dragonfly*)
7457 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7460 # Not sure whether the presence of OpenBSD here was a mistake.
7461 # Let's accept both of them until this is cleared up.
7462 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7463 lt_cv_file_magic_cmd=/usr/bin/file
7464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7468 lt_cv_deplibs_check_method=pass_all
7473 lt_cv_deplibs_check_method=pass_all
7477 lt_cv_deplibs_check_method=pass_all
7480 hpux10.20* | hpux11*)
7481 lt_cv_file_magic_cmd=/usr/bin/file
7484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7485 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7488 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]'
7489 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7493 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7499 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7503 irix5* | irix6* | nonstopux*)
7505 *-32|*"-32 ") libmagic=32-bit;;
7506 *-n32|*"-n32 ") libmagic=N32;;
7507 *-64|*"-64 ") libmagic=64-bit;;
7508 *) libmagic=never-match;;
7510 lt_cv_deplibs_check_method=pass_all
7513 # This must be glibc/ELF.
7514 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7515 lt_cv_deplibs_check_method=pass_all
7519 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7528 lt_cv_file_magic_cmd=/usr/bin/file
7529 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7533 lt_cv_deplibs_check_method=pass_all
7537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7544 osf3* | osf4* | osf5*)
7545 lt_cv_deplibs_check_method=pass_all
7549 lt_cv_deplibs_check_method=pass_all
7553 lt_cv_deplibs_check_method=pass_all
7556 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7557 lt_cv_deplibs_check_method=pass_all
7561 case $host_vendor in
7563 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]'
7564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7567 lt_cv_deplibs_check_method=pass_all
7570 lt_cv_file_magic_cmd='/bin/file'
7571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7574 lt_cv_file_magic_cmd='/bin/file'
7575 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7576 lt_cv_file_magic_test_file=/lib/libc.so
7579 lt_cv_deplibs_check_method=pass_all
7582 lt_cv_deplibs_check_method=pass_all
7588 lt_cv_deplibs_check_method=pass_all
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7594 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7598 if test "$build" = "$host"; then
7601 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7604 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7610 file_magic_cmd=$lt_cv_file_magic_cmd
7611 deplibs_check_method=$lt_cv_deplibs_check_method
7612 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7635 if test -n "$ac_tool_prefix"; then
7636 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7637 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_prog_DLLTOOL+:} false; then :
7641 $as_echo_n "(cached) " >&6
7643 if test -n "$DLLTOOL"; then
7644 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 DLLTOOL=$ac_cv_prog_DLLTOOL
7664 if test -n "$DLLTOOL"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7666 $as_echo "$DLLTOOL" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7674 if test -z "$ac_cv_prog_DLLTOOL"; then
7675 ac_ct_DLLTOOL=$DLLTOOL
7676 # Extract the first word of "dlltool", so it can be a program name with args.
7677 set dummy dlltool; ac_word=$2
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679 $as_echo_n "checking for $ac_word... " >&6; }
7680 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7681 $as_echo_n "(cached) " >&6
7683 if test -n "$ac_ct_DLLTOOL"; then
7684 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7704 if test -n "$ac_ct_DLLTOOL"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7706 $as_echo "$ac_ct_DLLTOOL" >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7712 if test "x$ac_ct_DLLTOOL" = x; then
7715 case $cross_compiling:$ac_tool_warned in
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719 ac_tool_warned=yes ;;
7721 DLLTOOL=$ac_ct_DLLTOOL
7724 DLLTOOL="$ac_cv_prog_DLLTOOL"
7727 test -z "$DLLTOOL" && DLLTOOL=dlltool
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7739 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7740 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7741 $as_echo_n "(cached) " >&6
7743 lt_cv_sharedlib_from_linklib_cmd='unknown'
7746 cygwin* | mingw* | pw32* | cegcc*)
7747 # two different shell functions defined in ltmain.sh
7748 # decide which to use based on capabilities of $DLLTOOL
7749 case `$DLLTOOL --help 2>&1` in
7750 *--identify-strict*)
7751 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7754 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7759 # fallback: assume linklib IS sharedlib
7760 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7766 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7767 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7768 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7776 if test -n "$ac_tool_prefix"; then
7779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if ${ac_cv_prog_AR+:} false; then :
7784 $as_echo_n "(cached) " >&6
7786 if test -n "$AR"; then
7787 ac_cv_prog_AR="$AR" # Let the user override the test.
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 if test -n "$AR"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7809 $as_echo "$AR" >&6; }
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7816 test -n "$AR" && break
7819 if test -z "$AR"; then
7823 # Extract the first word of "$ac_prog", so it can be a program name with args.
7824 set dummy $ac_prog; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7828 $as_echo_n "(cached) " >&6
7830 if test -n "$ac_ct_AR"; then
7831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7840 ac_cv_prog_ac_ct_AR="$ac_prog"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7851 if test -n "$ac_ct_AR"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7853 $as_echo "$ac_ct_AR" >&6; }
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7860 test -n "$ac_ct_AR" && break
7863 if test "x$ac_ct_AR" = x; then
7866 case $cross_compiling:$ac_tool_warned in
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7870 ac_tool_warned=yes ;;
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7890 $as_echo_n "checking for archiver @FILE support... " >&6; }
7891 if ${lt_cv_ar_at_file+:} false; then :
7892 $as_echo_n "(cached) " >&6
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7906 if ac_fn_c_try_compile "$LINENO"; then :
7907 echo conftest.$ac_objext > conftest.lst
7908 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7910 (eval $lt_ar_try) 2>&5
7912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7913 test $ac_status = 0; }
7914 if test "$ac_status" -eq 0; then
7915 # Ensure the archiver fails upon bogus file names.
7916 rm -f conftest.$ac_objext libconftest.a
7917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7918 (eval $lt_ar_try) 2>&5
7920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7921 test $ac_status = 0; }
7922 if test "$ac_status" -ne 0; then
7926 rm -f conftest.* libconftest.a
7929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7933 $as_echo "$lt_cv_ar_at_file" >&6; }
7935 if test "x$lt_cv_ar_at_file" = xno; then
7938 archiver_list_spec=$lt_cv_ar_at_file
7947 if test -n "$ac_tool_prefix"; then
7948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7949 set dummy ${ac_tool_prefix}strip; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if ${ac_cv_prog_STRIP+:} false; then :
7953 $as_echo_n "(cached) " >&6
7955 if test -n "$STRIP"; then
7956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 STRIP=$ac_cv_prog_STRIP
7976 if test -n "$STRIP"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7978 $as_echo "$STRIP" >&6; }
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7986 if test -z "$ac_cv_prog_STRIP"; then
7988 # Extract the first word of "strip", so it can be a program name with args.
7989 set dummy strip; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7993 $as_echo_n "(cached) " >&6
7995 if test -n "$ac_ct_STRIP"; then
7996 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005 ac_cv_prog_ac_ct_STRIP="strip"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8016 if test -n "$ac_ct_STRIP"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8018 $as_echo "$ac_ct_STRIP" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8024 if test "x$ac_ct_STRIP" = x; then
8027 case $cross_compiling:$ac_tool_warned in
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8031 ac_tool_warned=yes ;;
8036 STRIP="$ac_cv_prog_STRIP"
8039 test -z "$STRIP" && STRIP=:
8046 if test -n "$ac_tool_prefix"; then
8047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8048 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if ${ac_cv_prog_RANLIB+:} false; then :
8052 $as_echo_n "(cached) " >&6
8054 if test -n "$RANLIB"; then
8055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 RANLIB=$ac_cv_prog_RANLIB
8075 if test -n "$RANLIB"; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8077 $as_echo "$RANLIB" >&6; }
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080 $as_echo "no" >&6; }
8085 if test -z "$ac_cv_prog_RANLIB"; then
8086 ac_ct_RANLIB=$RANLIB
8087 # Extract the first word of "ranlib", so it can be a program name with args.
8088 set dummy ranlib; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8092 $as_echo_n "(cached) " >&6
8094 if test -n "$ac_ct_RANLIB"; then
8095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 test -z "$as_dir" && as_dir=.
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8104 ac_cv_prog_ac_ct_RANLIB="ranlib"
8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8115 if test -n "$ac_ct_RANLIB"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8117 $as_echo "$ac_ct_RANLIB" >&6; }
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8123 if test "x$ac_ct_RANLIB" = x; then
8126 case $cross_compiling:$ac_tool_warned in
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8130 ac_tool_warned=yes ;;
8132 RANLIB=$ac_ct_RANLIB
8135 RANLIB="$ac_cv_prog_RANLIB"
8138 test -z "$RANLIB" && RANLIB=:
8145 # Determine commands to create old-style static archives.
8146 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8147 old_postinstall_cmds='chmod 644 $oldlib'
8148 old_postuninstall_cmds=
8150 if test -n "$RANLIB"; then
8153 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8156 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8159 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8164 lock_old_archive_extraction=yes ;;
8166 lock_old_archive_extraction=no ;;
8189 for ac_prog in gawk mawk nawk awk
8191 # Extract the first word of "$ac_prog", so it can be a program name with args.
8192 set dummy $ac_prog; ac_word=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if ${ac_cv_prog_AWK+:} false; then :
8196 $as_echo_n "(cached) " >&6
8198 if test -n "$AWK"; then
8199 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208 ac_cv_prog_AWK="$ac_prog"
8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 if test -n "$AWK"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8221 $as_echo "$AWK" >&6; }
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8228 test -n "$AWK" && break
8249 # If no C compiler was specified, use CC.
8252 # If no C compiler flags were specified, use CFLAGS.
8253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8255 # Allow CC to be a program name with arguments.
8259 # Check for command to grab the raw symbol name followed by C symbol from nm.
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8261 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8262 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8263 $as_echo_n "(cached) " >&6
8266 # These are sane defaults that work on at least a few old systems.
8267 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8269 # Character class describing NM global symbol codes.
8270 symcode='[BCDEGRST]'
8272 # Regexp to match symbols that can be accessed directly from C.
8273 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8275 # Define system-specific variables.
8280 cygwin* | mingw* | pw32* | cegcc*)
8281 symcode='[ABCDGISTW]'
8284 if test "$host_cpu" = ia64; then
8285 symcode='[ABCDEGRST]'
8289 symcode='[BCDEGRST]'
8292 symcode='[BCDEGQRST]'
8303 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8311 # If we're using GNU nm, then use its standard symbol codes.
8312 case `$NM -V 2>&1` in
8313 *GNU* | *'with BFD'*)
8314 symcode='[ABCDGIRSTW]' ;;
8317 # Transform an extracted symbol line into a proper C declaration.
8318 # Some systems (esp. on ia64) link data and code symbols differently,
8319 # so use this general approach.
8320 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8322 # Transform an extracted symbol line into symbol name and symbol address
8323 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8324 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'"
8326 # Handle CRLF in mingw tool chain
8330 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8334 # Try without a prefix underscore, then with it.
8335 for ac_symprfx in "" "_"; do
8337 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8338 symxfrm="\\1 $ac_symprfx\\2 \\2"
8340 # Write the raw and C identifiers.
8341 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8342 # Fake it for dumpbin and say T for any non-static function
8343 # and D for any global variable.
8344 # Also find C++ and __fastcall symbols from MSVC++,
8345 # which start with @ or ?.
8346 lt_cv_sys_global_symbol_pipe="$AWK '"\
8347 " {last_section=section; section=\$ 3};"\
8348 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8349 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8350 " \$ 0!~/External *\|/{next};"\
8351 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8352 " {if(hide[section]) next};"\
8353 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8354 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8355 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8356 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8357 " ' prfx=^$ac_symprfx"
8359 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8361 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8363 # Check to see that the pipe works correctly.
8367 cat > conftest.$ac_ext <<_LT_EOF
8372 void nm_test_func(void);
8373 void nm_test_func(void){}
8377 int main(){nm_test_var='a';nm_test_func();return(0);}
8380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8381 (eval $ac_compile) 2>&5
8383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8384 test $ac_status = 0; }; then
8385 # Now try to grab the symbols.
8387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8388 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8391 test $ac_status = 0; } && test -s "$nlist"; then
8392 # Try sorting and uniquifying the output.
8393 if sort "$nlist" | uniq > "$nlist"T; then
8394 mv -f "$nlist"T "$nlist"
8399 # Make sure that we snagged all the symbols we need.
8400 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8401 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8402 cat <<_LT_EOF > conftest.$ac_ext
8403 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8404 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8405 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8406 relocations are performed -- see ld's documentation on pseudo-relocs. */
8407 # define LT_DLSYM_CONST
8408 #elif defined(__osf__)
8409 /* This system does not cope well with relocations in const data. */
8410 # define LT_DLSYM_CONST
8412 # define LT_DLSYM_CONST const
8420 # Now generate the symbol file.
8421 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8423 cat <<_LT_EOF >> conftest.$ac_ext
8425 /* The mapping between symbol names and symbols. */
8426 LT_DLSYM_CONST struct {
8430 lt__PROGRAM__LTX_preloaded_symbols[] =
8432 { "@PROGRAM@", (void *) 0 },
8434 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8435 cat <<\_LT_EOF >> conftest.$ac_ext
8439 /* This works around a problem in FreeBSD linker */
8440 #ifdef FREEBSD_WORKAROUND
8441 static const void *lt_preloaded_setup() {
8442 return lt__PROGRAM__LTX_preloaded_symbols;
8450 # Now try linking the two files.
8451 mv conftest.$ac_objext conftstm.$ac_objext
8452 lt_globsym_save_LIBS=$LIBS
8453 lt_globsym_save_CFLAGS=$CFLAGS
8454 LIBS="conftstm.$ac_objext"
8455 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8457 (eval $ac_link) 2>&5
8459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8460 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8463 LIBS=$lt_globsym_save_LIBS
8464 CFLAGS=$lt_globsym_save_CFLAGS
8466 echo "cannot find nm_test_func in $nlist" >&5
8469 echo "cannot find nm_test_var in $nlist" >&5
8472 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8475 echo "$progname: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8478 rm -rf conftest* conftst*
8480 # Do not use the global_symbol_pipe unless it works.
8481 if test "$pipe_works" = yes; then
8484 lt_cv_sys_global_symbol_pipe=
8490 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8491 lt_cv_sys_global_symbol_to_cdecl=
8493 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8495 $as_echo "failed" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8498 $as_echo "ok" >&6; }
8501 # Response file support.
8502 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8503 nm_file_list_spec='@'
8504 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8505 nm_file_list_spec='@'
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8535 $as_echo_n "checking for sysroot... " >&6; }
8537 # Check whether --with-sysroot was given.
8538 if test "${with_sysroot+set}" = set; then :
8539 withval=$with_sysroot;
8546 case ${with_sysroot} in #(
8548 if test "$GCC" = yes; then
8549 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8553 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8559 $as_echo "${with_sysroot}" >&6; }
8560 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8565 $as_echo "${lt_sysroot:-no}" >&6; }
8571 # Check whether --enable-libtool-lock was given.
8572 if test "${enable_libtool_lock+set}" = set; then :
8573 enableval=$enable_libtool_lock;
8576 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8578 # Some flags need to be propagated to the compiler or linker for good
8582 # Find out which ABI we are using.
8583 echo 'int i;' > conftest.$ac_ext
8584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8585 (eval $ac_compile) 2>&5
8587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8588 test $ac_status = 0; }; then
8589 case `/usr/bin/file conftest.$ac_objext` in
8601 # Find out which ABI we are using.
8602 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8604 (eval $ac_compile) 2>&5
8606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8607 test $ac_status = 0; }; then
8608 if test "$lt_cv_prog_gnu_ld" = yes; then
8609 case `/usr/bin/file conftest.$ac_objext` in
8611 LD="${LD-ld} -melf32bsmip"
8614 LD="${LD-ld} -melf32bmipn32"
8617 LD="${LD-ld} -melf64bmip"
8621 case `/usr/bin/file conftest.$ac_objext` in
8637 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8638 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8639 # Find out which ABI we are using.
8640 echo 'int i;' > conftest.$ac_ext
8641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8642 (eval $ac_compile) 2>&5
8644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8645 test $ac_status = 0; }; then
8646 case `/usr/bin/file conftest.o` in
8649 x86_64-*kfreebsd*-gnu)
8650 LD="${LD-ld} -m elf_i386_fbsd"
8653 LD="${LD-ld} -m elf_i386"
8655 ppc64-*linux*|powerpc64-*linux*)
8656 LD="${LD-ld} -m elf32ppclinux"
8659 LD="${LD-ld} -m elf_s390"
8662 LD="${LD-ld} -m elf32_sparc"
8668 x86_64-*kfreebsd*-gnu)
8669 LD="${LD-ld} -m elf_x86_64_fbsd"
8672 LD="${LD-ld} -m elf_x86_64"
8674 ppc*-*linux*|powerpc*-*linux*)
8675 LD="${LD-ld} -m elf64ppc"
8677 s390*-*linux*|s390*-*tpf*)
8678 LD="${LD-ld} -m elf64_s390"
8681 LD="${LD-ld} -m elf64_sparc"
8691 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8692 SAVE_CFLAGS="$CFLAGS"
8693 CFLAGS="$CFLAGS -belf"
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8695 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8696 if ${lt_cv_cc_needs_belf+:} false; then :
8697 $as_echo_n "(cached) " >&6
8700 ac_cpp='$CPP $CPPFLAGS'
8701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8716 if ac_fn_c_try_link "$LINENO"; then :
8717 lt_cv_cc_needs_belf=yes
8719 lt_cv_cc_needs_belf=no
8721 rm -f core conftest.err conftest.$ac_objext \
8722 conftest$ac_exeext conftest.$ac_ext
8724 ac_cpp='$CPP $CPPFLAGS'
8725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8731 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8732 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8733 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8734 CFLAGS="$SAVE_CFLAGS"
8738 # Find out which ABI we are using.
8739 echo 'int i;' > conftest.$ac_ext
8740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8741 (eval $ac_compile) 2>&5
8743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8744 test $ac_status = 0; }; then
8745 case `/usr/bin/file conftest.o` in
8747 case $lt_cv_prog_gnu_ld in
8751 LD="${LD-ld} -m elf_x86_64"
8754 LD="${LD-ld} -m elf64_sparc"
8757 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8758 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8763 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8775 need_locks="$enable_libtool_lock"
8777 if test -n "$ac_tool_prefix"; then
8778 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8779 set dummy ${ac_tool_prefix}mt; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8783 $as_echo_n "(cached) " >&6
8785 if test -n "$MANIFEST_TOOL"; then
8786 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8806 if test -n "$MANIFEST_TOOL"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8808 $as_echo "$MANIFEST_TOOL" >&6; }
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8816 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8817 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8818 # Extract the first word of "mt", so it can be a program name with args.
8819 set dummy mt; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8823 $as_echo_n "(cached) " >&6
8825 if test -n "$ac_ct_MANIFEST_TOOL"; then
8826 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8846 if test -n "$ac_ct_MANIFEST_TOOL"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8848 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8854 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8857 case $cross_compiling:$ac_tool_warned in
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8861 ac_tool_warned=yes ;;
8863 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8866 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8869 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8871 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8872 if ${lt_cv_path_mainfest_tool+:} false; then :
8873 $as_echo_n "(cached) " >&6
8875 lt_cv_path_mainfest_tool=no
8876 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8877 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8878 cat conftest.err >&5
8879 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8880 lt_cv_path_mainfest_tool=yes
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8885 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8886 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8896 rhapsody* | darwin*)
8897 if test -n "$ac_tool_prefix"; then
8898 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8899 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901 $as_echo_n "checking for $ac_word... " >&6; }
8902 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8903 $as_echo_n "(cached) " >&6
8905 if test -n "$DSYMUTIL"; then
8906 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8915 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8925 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8926 if test -n "$DSYMUTIL"; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8928 $as_echo "$DSYMUTIL" >&6; }
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 $as_echo "no" >&6; }
8936 if test -z "$ac_cv_prog_DSYMUTIL"; then
8937 ac_ct_DSYMUTIL=$DSYMUTIL
8938 # Extract the first word of "dsymutil", so it can be a program name with args.
8939 set dummy dsymutil; ac_word=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8943 $as_echo_n "(cached) " >&6
8945 if test -n "$ac_ct_DSYMUTIL"; then
8946 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8955 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8966 if test -n "$ac_ct_DSYMUTIL"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8968 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8974 if test "x$ac_ct_DSYMUTIL" = x; then
8977 case $cross_compiling:$ac_tool_warned in
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8981 ac_tool_warned=yes ;;
8983 DSYMUTIL=$ac_ct_DSYMUTIL
8986 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8989 if test -n "$ac_tool_prefix"; then
8990 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8991 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if ${ac_cv_prog_NMEDIT+:} false; then :
8995 $as_echo_n "(cached) " >&6
8997 if test -n "$NMEDIT"; then
8998 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9007 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9017 NMEDIT=$ac_cv_prog_NMEDIT
9018 if test -n "$NMEDIT"; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9020 $as_echo "$NMEDIT" >&6; }
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 $as_echo "no" >&6; }
9028 if test -z "$ac_cv_prog_NMEDIT"; then
9029 ac_ct_NMEDIT=$NMEDIT
9030 # Extract the first word of "nmedit", so it can be a program name with args.
9031 set dummy nmedit; ac_word=$2
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9033 $as_echo_n "checking for $ac_word... " >&6; }
9034 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9035 $as_echo_n "(cached) " >&6
9037 if test -n "$ac_ct_NMEDIT"; then
9038 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9044 test -z "$as_dir" && as_dir=.
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9047 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9058 if test -n "$ac_ct_NMEDIT"; then
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9060 $as_echo "$ac_ct_NMEDIT" >&6; }
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 $as_echo "no" >&6; }
9066 if test "x$ac_ct_NMEDIT" = x; then
9069 case $cross_compiling:$ac_tool_warned in
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9073 ac_tool_warned=yes ;;
9075 NMEDIT=$ac_ct_NMEDIT
9078 NMEDIT="$ac_cv_prog_NMEDIT"
9081 if test -n "$ac_tool_prefix"; then
9082 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9083 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if ${ac_cv_prog_LIPO+:} false; then :
9087 $as_echo_n "(cached) " >&6
9089 if test -n "$LIPO"; then
9090 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9109 LIPO=$ac_cv_prog_LIPO
9110 if test -n "$LIPO"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9112 $as_echo "$LIPO" >&6; }
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9120 if test -z "$ac_cv_prog_LIPO"; then
9122 # Extract the first word of "lipo", so it can be a program name with args.
9123 set dummy lipo; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9127 $as_echo_n "(cached) " >&6
9129 if test -n "$ac_ct_LIPO"; then
9130 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136 test -z "$as_dir" && as_dir=.
9137 for ac_exec_ext in '' $ac_executable_extensions; do
9138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9139 ac_cv_prog_ac_ct_LIPO="lipo"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9150 if test -n "$ac_ct_LIPO"; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9152 $as_echo "$ac_ct_LIPO" >&6; }
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9158 if test "x$ac_ct_LIPO" = x; then
9161 case $cross_compiling:$ac_tool_warned in
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9165 ac_tool_warned=yes ;;
9170 LIPO="$ac_cv_prog_LIPO"
9173 if test -n "$ac_tool_prefix"; then
9174 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9175 set dummy ${ac_tool_prefix}otool; ac_word=$2
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177 $as_echo_n "checking for $ac_word... " >&6; }
9178 if ${ac_cv_prog_OTOOL+:} false; then :
9179 $as_echo_n "(cached) " >&6
9181 if test -n "$OTOOL"; then
9182 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 test -z "$as_dir" && as_dir=.
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9191 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 OTOOL=$ac_cv_prog_OTOOL
9202 if test -n "$OTOOL"; then
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9204 $as_echo "$OTOOL" >&6; }
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 $as_echo "no" >&6; }
9212 if test -z "$ac_cv_prog_OTOOL"; then
9214 # Extract the first word of "otool", so it can be a program name with args.
9215 set dummy otool; ac_word=$2
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217 $as_echo_n "checking for $ac_word... " >&6; }
9218 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9219 $as_echo_n "(cached) " >&6
9221 if test -n "$ac_ct_OTOOL"; then
9222 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228 test -z "$as_dir" && as_dir=.
9229 for ac_exec_ext in '' $ac_executable_extensions; do
9230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9231 ac_cv_prog_ac_ct_OTOOL="otool"
9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9241 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9242 if test -n "$ac_ct_OTOOL"; then
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9244 $as_echo "$ac_ct_OTOOL" >&6; }
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247 $as_echo "no" >&6; }
9250 if test "x$ac_ct_OTOOL" = x; then
9253 case $cross_compiling:$ac_tool_warned in
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9257 ac_tool_warned=yes ;;
9262 OTOOL="$ac_cv_prog_OTOOL"
9265 if test -n "$ac_tool_prefix"; then
9266 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9267 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269 $as_echo_n "checking for $ac_word... " >&6; }
9270 if ${ac_cv_prog_OTOOL64+:} false; then :
9271 $as_echo_n "(cached) " >&6
9273 if test -n "$OTOOL64"; then
9274 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 OTOOL64=$ac_cv_prog_OTOOL64
9294 if test -n "$OTOOL64"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9296 $as_echo "$OTOOL64" >&6; }
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9304 if test -z "$ac_cv_prog_OTOOL64"; then
9305 ac_ct_OTOOL64=$OTOOL64
9306 # Extract the first word of "otool64", so it can be a program name with args.
9307 set dummy otool64; ac_word=$2
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9309 $as_echo_n "checking for $ac_word... " >&6; }
9310 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9311 $as_echo_n "(cached) " >&6
9313 if test -n "$ac_ct_OTOOL64"; then
9314 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320 test -z "$as_dir" && as_dir=.
9321 for ac_exec_ext in '' $ac_executable_extensions; do
9322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9323 ac_cv_prog_ac_ct_OTOOL64="otool64"
9324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9334 if test -n "$ac_ct_OTOOL64"; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9336 $as_echo "$ac_ct_OTOOL64" >&6; }
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339 $as_echo "no" >&6; }
9342 if test "x$ac_ct_OTOOL64" = x; then
9345 case $cross_compiling:$ac_tool_warned in
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9349 ac_tool_warned=yes ;;
9351 OTOOL64=$ac_ct_OTOOL64
9354 OTOOL64="$ac_cv_prog_OTOOL64"
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9384 $as_echo_n "checking for -single_module linker flag... " >&6; }
9385 if ${lt_cv_apple_cc_single_mod+:} false; then :
9386 $as_echo_n "(cached) " >&6
9388 lt_cv_apple_cc_single_mod=no
9389 if test -z "${LT_MULTI_MODULE}"; then
9390 # By default we will add the -single_module flag. You can override
9391 # by either setting the environment variable LT_MULTI_MODULE
9392 # non-empty at configure time, or by adding -multi_module to the
9394 rm -rf libconftest.dylib*
9395 echo "int foo(void){return 1;}" > conftest.c
9396 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9397 -dynamiclib -Wl,-single_module conftest.c" >&5
9398 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9399 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9401 # If there is a non-empty error log, and "single_module"
9402 # appears in it, assume the flag caused a linker warning
9403 if test -s conftest.err && $GREP single_module conftest.err; then
9404 cat conftest.err >&5
9405 # Otherwise, if the output was created with a 0 exit code from
9406 # the compiler, it worked.
9407 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9408 lt_cv_apple_cc_single_mod=yes
9410 cat conftest.err >&5
9412 rm -rf libconftest.dylib*
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9417 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9420 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9421 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9422 $as_echo_n "(cached) " >&6
9424 lt_cv_ld_exported_symbols_list=no
9425 save_LDFLAGS=$LDFLAGS
9426 echo "_main" > conftest.sym
9427 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9439 if ac_fn_c_try_link "$LINENO"; then :
9440 lt_cv_ld_exported_symbols_list=yes
9442 lt_cv_ld_exported_symbols_list=no
9444 rm -f core conftest.err conftest.$ac_objext \
9445 conftest$ac_exeext conftest.$ac_ext
9446 LDFLAGS="$save_LDFLAGS"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9450 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9453 $as_echo_n "checking for -force_load linker flag... " >&6; }
9454 if ${lt_cv_ld_force_load+:} false; then :
9455 $as_echo_n "(cached) " >&6
9457 lt_cv_ld_force_load=no
9458 cat > conftest.c << _LT_EOF
9459 int forced_loaded() { return 2;}
9461 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9462 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9463 echo "$AR cru libconftest.a conftest.o" >&5
9464 $AR cru libconftest.a conftest.o 2>&5
9465 echo "$RANLIB libconftest.a" >&5
9466 $RANLIB libconftest.a 2>&5
9467 cat > conftest.c << _LT_EOF
9468 int main() { return 0;}
9470 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9471 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9473 if test -s conftest.err && $GREP force_load conftest.err; then
9474 cat conftest.err >&5
9475 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9476 lt_cv_ld_force_load=yes
9478 cat conftest.err >&5
9480 rm -f conftest.err libconftest.a conftest conftest.c
9481 rm -rf conftest.dSYM
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9485 $as_echo "$lt_cv_ld_force_load" >&6; }
9487 rhapsody* | darwin1.[012])
9488 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9490 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9491 darwin*) # darwin 5.x on
9492 # if running on 10.5 or later, the deployment target defaults
9493 # to the OS version, if on x86, and 10.4, the deployment
9494 # target defaults to 10.4. Don't you love it?
9495 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9496 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9497 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9499 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9501 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9505 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9506 _lt_dar_single_mod='$single_module'
9508 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9509 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9511 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9513 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9514 _lt_dsymutil='~$DSYMUTIL $lib || :'
9521 for ac_header in dlfcn.h
9523 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9525 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9526 cat >>confdefs.h <<_ACEOF
9527 #define HAVE_DLFCN_H 1
9550 # Check whether --enable-shared was given.
9551 if test "${enable_shared+set}" = set; then :
9552 enableval=$enable_shared; p=${PACKAGE-default}
9554 yes) enable_shared=yes ;;
9555 no) enable_shared=no ;;
9558 # Look at the argument we got. We use all the common list separators.
9559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9560 for pkg in $enableval; do
9562 if test "X$pkg" = "X$p"; then
9581 # Check whether --enable-static was given.
9582 if test "${enable_static+set}" = set; then :
9583 enableval=$enable_static; p=${PACKAGE-default}
9585 yes) enable_static=yes ;;
9586 no) enable_static=no ;;
9589 # Look at the argument we got. We use all the common list separators.
9590 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9591 for pkg in $enableval; do
9593 if test "X$pkg" = "X$p"; then
9613 # Check whether --with-pic was given.
9614 if test "${with_pic+set}" = set; then :
9615 withval=$with_pic; lt_p=${PACKAGE-default}
9617 yes|no) pic_mode=$withval ;;
9620 # Look at the argument we got. We use all the common list separators.
9621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9622 for lt_pkg in $withval; do
9624 if test "X$lt_pkg" = "X$lt_p"; then
9636 test -z "$pic_mode" && pic_mode=default
9644 # Check whether --enable-fast-install was given.
9645 if test "${enable_fast_install+set}" = set; then :
9646 enableval=$enable_fast_install; p=${PACKAGE-default}
9648 yes) enable_fast_install=yes ;;
9649 no) enable_fast_install=no ;;
9651 enable_fast_install=no
9652 # Look at the argument we got. We use all the common list separators.
9653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9654 for pkg in $enableval; do
9656 if test "X$pkg" = "X$p"; then
9657 enable_fast_install=yes
9664 enable_fast_install=yes
9677 # This can be used to rebuild libtool when needed
9678 LIBTOOL_DEPS="$ltmain"
9680 # Always use our own libtool.
9681 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9712 test -z "$LN_S" && LN_S="ln -s"
9727 if test -n "${ZSH_VERSION+set}" ; then
9728 setopt NO_GLOB_SUBST
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9732 $as_echo_n "checking for objdir... " >&6; }
9733 if ${lt_cv_objdir+:} false; then :
9734 $as_echo_n "(cached) " >&6
9736 rm -f .libs 2>/dev/null
9737 mkdir .libs 2>/dev/null
9738 if test -d .libs; then
9741 # MS-DOS does not allow filenames that begin with a dot.
9744 rmdir .libs 2>/dev/null
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9747 $as_echo "$lt_cv_objdir" >&6; }
9748 objdir=$lt_cv_objdir
9754 cat >>confdefs.h <<_ACEOF
9755 #define LT_OBJDIR "$lt_cv_objdir/"
9763 # AIX sometimes has problems with the GCC collect2 program. For some
9764 # reason, if we set the COLLECT_NAMES environment variable, the problems
9765 # vanish in a puff of smoke.
9766 if test "X${COLLECT_NAMES+set}" != Xset; then
9768 export COLLECT_NAMES
9775 can_build_shared=yes
9777 # All known linkers require a `.a' archive for static linking (except MSVC,
9778 # which needs '.lib').
9781 with_gnu_ld="$lt_cv_prog_gnu_ld"
9784 old_CFLAGS="$CFLAGS"
9786 # Set sane defaults for various variables
9787 test -z "$CC" && CC=cc
9788 test -z "$LTCC" && LTCC=$CC
9789 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9790 test -z "$LD" && LD=ld
9791 test -z "$ac_objext" && ac_objext=o
9793 for cc_temp in $compiler""; do
9795 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9796 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9801 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9804 # Only perform the check for file, if the check method requires it
9805 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9806 case $deplibs_check_method in
9808 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9810 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9811 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9812 $as_echo_n "(cached) " >&6
9816 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9819 lt_save_MAGIC_CMD="$MAGIC_CMD"
9820 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9821 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9822 for ac_dir in $ac_dummy; do
9824 test -z "$ac_dir" && ac_dir=.
9825 if test -f $ac_dir/${ac_tool_prefix}file; then
9826 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9827 if test -n "$file_magic_test_file"; then
9828 case $deplibs_check_method in
9830 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9831 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9832 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9833 $EGREP "$file_magic_regex" > /dev/null; then
9838 *** Warning: the command libtool uses to detect shared libraries,
9839 *** $file_magic_cmd, produces output that libtool cannot recognize.
9840 *** The result is that libtool may fail to recognize shared libraries
9841 *** as such. This will affect the creation of libtool libraries that
9842 *** depend on shared libraries, but programs linked with such libtool
9843 *** libraries will work regardless of this problem. Nevertheless, you
9844 *** may want to report the problem to your system manager and/or to
9845 *** bug-libtool@gnu.org
9855 MAGIC_CMD="$lt_save_MAGIC_CMD"
9860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9861 if test -n "$MAGIC_CMD"; then
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9863 $as_echo "$MAGIC_CMD" >&6; }
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9873 if test -z "$lt_cv_path_MAGIC_CMD"; then
9874 if test -n "$ac_tool_prefix"; then
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9876 $as_echo_n "checking for file... " >&6; }
9877 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9878 $as_echo_n "(cached) " >&6
9882 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9885 lt_save_MAGIC_CMD="$MAGIC_CMD"
9886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9887 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9888 for ac_dir in $ac_dummy; do
9890 test -z "$ac_dir" && ac_dir=.
9891 if test -f $ac_dir/file; then
9892 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9893 if test -n "$file_magic_test_file"; then
9894 case $deplibs_check_method in
9896 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9898 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9899 $EGREP "$file_magic_regex" > /dev/null; then
9904 *** Warning: the command libtool uses to detect shared libraries,
9905 *** $file_magic_cmd, produces output that libtool cannot recognize.
9906 *** The result is that libtool may fail to recognize shared libraries
9907 *** as such. This will affect the creation of libtool libraries that
9908 *** depend on shared libraries, but programs linked with such libtool
9909 *** libraries will work regardless of this problem. Nevertheless, you
9910 *** may want to report the problem to your system manager and/or to
9911 *** bug-libtool@gnu.org
9921 MAGIC_CMD="$lt_save_MAGIC_CMD"
9926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9927 if test -n "$MAGIC_CMD"; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9929 $as_echo "$MAGIC_CMD" >&6; }
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9945 # Use C for the default configuration in the libtool script
9949 ac_cpp='$CPP $CPPFLAGS'
9950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9955 # Source file extension for C test sources.
9958 # Object file extension for compiled C test sources.
9962 # Code to be used in simple compile tests
9963 lt_simple_compile_test_code="int some_variable = 0;"
9965 # Code to be used in simple link tests
9966 lt_simple_link_test_code='int main(){return(0);}'
9974 # If no C compiler was specified, use CC.
9977 # If no C compiler flags were specified, use CFLAGS.
9978 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9980 # Allow CC to be a program name with arguments.
9983 # Save the default compiler, since it gets overwritten when the other
9984 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9985 compiler_DEFAULT=$CC
9987 # save warnings/boilerplate of simple test code
9988 ac_outfile=conftest.$ac_objext
9989 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9990 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9991 _lt_compiler_boilerplate=`cat conftest.err`
9994 ac_outfile=conftest.$ac_objext
9995 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9996 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9997 _lt_linker_boilerplate=`cat conftest.err`
10001 if test -n "$compiler"; then
10003 lt_prog_compiler_no_builtin_flag=
10005 if test "$GCC" = yes; then
10006 case $cc_basename in
10008 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10010 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10014 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10015 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10016 $as_echo_n "(cached) " >&6
10018 lt_cv_prog_compiler_rtti_exceptions=no
10019 ac_outfile=conftest.$ac_objext
10020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10021 lt_compiler_flag="-fno-rtti -fno-exceptions"
10022 # Insert the option either (1) after the last *FLAGS variable, or
10023 # (2) before a word containing "conftest.", or (3) at the end.
10024 # Note that $ac_compile itself does not contain backslashes and begins
10025 # with a dollar sign (not a hyphen), so the echo should work correctly.
10026 # The option is referenced via a variable to avoid confusing sed.
10027 lt_compile=`echo "$ac_compile" | $SED \
10028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10030 -e 's:$: $lt_compiler_flag:'`
10031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10032 (eval "$lt_compile" 2>conftest.err)
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 if (exit $ac_status) && test -s "$ac_outfile"; then
10037 # The compiler can only warn and ignore the option if not recognized
10038 # So say no if there are warnings other than the usual output.
10039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10041 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10042 lt_cv_prog_compiler_rtti_exceptions=yes
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10049 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10051 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10052 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10064 lt_prog_compiler_wl=
10065 lt_prog_compiler_pic=
10066 lt_prog_compiler_static=
10069 if test "$GCC" = yes; then
10070 lt_prog_compiler_wl='-Wl,'
10071 lt_prog_compiler_static='-static'
10075 # All AIX code is PIC.
10076 if test "$host_cpu" = ia64; then
10077 # AIX 5 now supports IA64 processor
10078 lt_prog_compiler_static='-Bstatic'
10085 # see comment about AmigaOS4 .so support
10086 lt_prog_compiler_pic='-fPIC'
10089 # FIXME: we need at least 68020 code to build shared libraries, but
10090 # adding the `-m68020' flag to GCC prevents building anything better,
10092 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10097 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10098 # PIC is the default for these OSes.
10101 mingw* | cygwin* | pw32* | os2* | cegcc*)
10102 # This hack is so that the source file can tell whether it is being
10103 # built for inclusion in a dll (and should export symbols for example).
10104 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10105 # (--disable-auto-import) libraries
10106 lt_prog_compiler_pic='-DDLL_EXPORT'
10109 darwin* | rhapsody*)
10110 # PIC is the default on this platform
10111 # Common symbols not allowed in MH_DYLIB files
10112 lt_prog_compiler_pic='-fno-common'
10116 # PIC is the default for Haiku.
10117 # The "-static" flag exists, but is broken.
10118 lt_prog_compiler_static=
10122 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10123 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10124 # sets the default TLS model and affects inlining.
10130 lt_prog_compiler_pic='-fPIC'
10136 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10137 # Instead, we relocate shared libraries at runtime.
10141 # Just because we use GCC doesn't mean we suddenly get shared libraries
10142 # on systems that don't support them.
10143 lt_prog_compiler_can_build_shared=no
10148 # QNX uses GNU C++, but need to define -shared option too, otherwise
10149 # it will coredump.
10150 lt_prog_compiler_pic='-fPIC -shared'
10154 if test -d /usr/nec; then
10155 lt_prog_compiler_pic=-Kconform_pic
10160 lt_prog_compiler_pic='-fPIC'
10164 case $cc_basename in
10165 nvcc*) # Cuda Compiler Driver 2.2
10166 lt_prog_compiler_wl='-Xlinker '
10167 if test -n "$lt_prog_compiler_pic"; then
10168 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10173 # PORTME Check for flag to pass linker flags through the system compiler.
10176 lt_prog_compiler_wl='-Wl,'
10177 if test "$host_cpu" = ia64; then
10178 # AIX 5 now supports IA64 processor
10179 lt_prog_compiler_static='-Bstatic'
10181 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10185 mingw* | cygwin* | pw32* | os2* | cegcc*)
10186 # This hack is so that the source file can tell whether it is being
10187 # built for inclusion in a dll (and should export symbols for example).
10188 lt_prog_compiler_pic='-DDLL_EXPORT'
10191 hpux9* | hpux10* | hpux11*)
10192 lt_prog_compiler_wl='-Wl,'
10193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10194 # not for PA HP-UX.
10200 lt_prog_compiler_pic='+Z'
10203 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10204 lt_prog_compiler_static='${wl}-a ${wl}archive'
10207 irix5* | irix6* | nonstopux*)
10208 lt_prog_compiler_wl='-Wl,'
10209 # PIC (with -KPIC) is the default.
10210 lt_prog_compiler_static='-non_shared'
10213 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10214 case $cc_basename in
10215 # old Intel for x86_64 which still supported -KPIC.
10217 lt_prog_compiler_wl='-Wl,'
10218 lt_prog_compiler_pic='-KPIC'
10219 lt_prog_compiler_static='-static'
10221 # icc used to be incompatible with GCC.
10222 # ICC 10 doesn't accept -KPIC any more.
10224 lt_prog_compiler_wl='-Wl,'
10225 lt_prog_compiler_pic='-fPIC'
10226 lt_prog_compiler_static='-static'
10228 # Lahey Fortran 8.1.
10230 lt_prog_compiler_wl='-Wl,'
10231 lt_prog_compiler_pic='--shared'
10232 lt_prog_compiler_static='--static'
10235 # NAG Fortran compiler
10236 lt_prog_compiler_wl='-Wl,-Wl,,'
10237 lt_prog_compiler_pic='-PIC'
10238 lt_prog_compiler_static='-Bstatic'
10240 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10241 # Portland Group compilers (*not* the Pentium gcc compiler,
10242 # which looks to be a dead project)
10243 lt_prog_compiler_wl='-Wl,'
10244 lt_prog_compiler_pic='-fpic'
10245 lt_prog_compiler_static='-Bstatic'
10248 lt_prog_compiler_wl='-Wl,'
10249 # All Alpha code is PIC.
10250 lt_prog_compiler_static='-non_shared'
10252 xl* | bgxl* | bgf* | mpixl*)
10253 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10254 lt_prog_compiler_wl='-Wl,'
10255 lt_prog_compiler_pic='-qpic'
10256 lt_prog_compiler_static='-qstaticlink'
10259 case `$CC -V 2>&1 | sed 5q` in
10260 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10261 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10262 lt_prog_compiler_pic='-KPIC'
10263 lt_prog_compiler_static='-Bstatic'
10264 lt_prog_compiler_wl=''
10266 *Sun\ F* | *Sun*Fortran*)
10267 lt_prog_compiler_pic='-KPIC'
10268 lt_prog_compiler_static='-Bstatic'
10269 lt_prog_compiler_wl='-Qoption ld '
10273 lt_prog_compiler_pic='-KPIC'
10274 lt_prog_compiler_static='-Bstatic'
10275 lt_prog_compiler_wl='-Wl,'
10277 *Intel*\ [CF]*Compiler*)
10278 lt_prog_compiler_wl='-Wl,'
10279 lt_prog_compiler_pic='-fPIC'
10280 lt_prog_compiler_static='-static'
10283 lt_prog_compiler_wl='-Wl,'
10284 lt_prog_compiler_pic='-fpic'
10285 lt_prog_compiler_static='-Bstatic'
10293 lt_prog_compiler_pic='-KPIC'
10294 lt_prog_compiler_static='-Bstatic'
10298 # QNX uses GNU C++, but need to define -shared option too, otherwise
10299 # it will coredump.
10300 lt_prog_compiler_pic='-fPIC -shared'
10303 osf3* | osf4* | osf5*)
10304 lt_prog_compiler_wl='-Wl,'
10305 # All OSF/1 code is PIC.
10306 lt_prog_compiler_static='-non_shared'
10310 lt_prog_compiler_static='-non_shared'
10314 lt_prog_compiler_pic='-KPIC'
10315 lt_prog_compiler_static='-Bstatic'
10316 case $cc_basename in
10317 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10318 lt_prog_compiler_wl='-Qoption ld ';;
10320 lt_prog_compiler_wl='-Wl,';;
10325 lt_prog_compiler_wl='-Qoption ld '
10326 lt_prog_compiler_pic='-PIC'
10327 lt_prog_compiler_static='-Bstatic'
10330 sysv4 | sysv4.2uw2* | sysv4.3*)
10331 lt_prog_compiler_wl='-Wl,'
10332 lt_prog_compiler_pic='-KPIC'
10333 lt_prog_compiler_static='-Bstatic'
10337 if test -d /usr/nec ;then
10338 lt_prog_compiler_pic='-Kconform_pic'
10339 lt_prog_compiler_static='-Bstatic'
10343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10344 lt_prog_compiler_wl='-Wl,'
10345 lt_prog_compiler_pic='-KPIC'
10346 lt_prog_compiler_static='-Bstatic'
10350 lt_prog_compiler_wl='-Wl,'
10351 lt_prog_compiler_can_build_shared=no
10355 lt_prog_compiler_pic='-pic'
10356 lt_prog_compiler_static='-Bstatic'
10360 lt_prog_compiler_can_build_shared=no
10366 # For platforms which do not support PIC, -DPIC is meaningless:
10368 lt_prog_compiler_pic=
10371 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10376 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10377 if ${lt_cv_prog_compiler_pic+:} false; then :
10378 $as_echo_n "(cached) " >&6
10380 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10383 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10384 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10387 # Check to make sure the PIC flag actually works.
10389 if test -n "$lt_prog_compiler_pic"; then
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10391 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10392 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10393 $as_echo_n "(cached) " >&6
10395 lt_cv_prog_compiler_pic_works=no
10396 ac_outfile=conftest.$ac_objext
10397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10398 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10399 # Insert the option either (1) after the last *FLAGS variable, or
10400 # (2) before a word containing "conftest.", or (3) at the end.
10401 # Note that $ac_compile itself does not contain backslashes and begins
10402 # with a dollar sign (not a hyphen), so the echo should work correctly.
10403 # The option is referenced via a variable to avoid confusing sed.
10404 lt_compile=`echo "$ac_compile" | $SED \
10405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10407 -e 's:$: $lt_compiler_flag:'`
10408 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10409 (eval "$lt_compile" 2>conftest.err)
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 if (exit $ac_status) && test -s "$ac_outfile"; then
10414 # The compiler can only warn and ignore the option if not recognized
10415 # So say no if there are warnings other than the usual output.
10416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10419 lt_cv_prog_compiler_pic_works=yes
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10426 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10428 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10429 case $lt_prog_compiler_pic in
10431 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10434 lt_prog_compiler_pic=
10435 lt_prog_compiler_can_build_shared=no
10451 # Check to make sure the static flag actually works.
10453 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10455 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10456 if ${lt_cv_prog_compiler_static_works+:} false; then :
10457 $as_echo_n "(cached) " >&6
10459 lt_cv_prog_compiler_static_works=no
10460 save_LDFLAGS="$LDFLAGS"
10461 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10462 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10463 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10464 # The linker can only warn and ignore the option if not recognized
10465 # So say no if there are warnings
10466 if test -s conftest.err; then
10467 # Append any errors to the config.log.
10468 cat conftest.err 1>&5
10469 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10471 if diff conftest.exp conftest.er2 >/dev/null; then
10472 lt_cv_prog_compiler_static_works=yes
10475 lt_cv_prog_compiler_static_works=yes
10479 LDFLAGS="$save_LDFLAGS"
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10483 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10485 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10488 lt_prog_compiler_static=
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10498 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10499 if ${lt_cv_prog_compiler_c_o+:} false; then :
10500 $as_echo_n "(cached) " >&6
10502 lt_cv_prog_compiler_c_o=no
10503 $RM -r conftest 2>/dev/null
10507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10509 lt_compiler_flag="-o out/conftest2.$ac_objext"
10510 # Insert the option either (1) after the last *FLAGS variable, or
10511 # (2) before a word containing "conftest.", or (3) at the end.
10512 # Note that $ac_compile itself does not contain backslashes and begins
10513 # with a dollar sign (not a hyphen), so the echo should work correctly.
10514 lt_compile=`echo "$ac_compile" | $SED \
10515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10517 -e 's:$: $lt_compiler_flag:'`
10518 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10519 (eval "$lt_compile" 2>out/conftest.err)
10521 cat out/conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10525 # The compiler can only warn and ignore the option if not recognized
10526 # So say no if there are warnings
10527 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10528 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10529 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10530 lt_cv_prog_compiler_c_o=yes
10535 # SGI C++ compiler will create directory out/ii_files/ for
10536 # template instantiation
10537 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10538 $RM out/* && rmdir out
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10545 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10553 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10554 if ${lt_cv_prog_compiler_c_o+:} false; then :
10555 $as_echo_n "(cached) " >&6
10557 lt_cv_prog_compiler_c_o=no
10558 $RM -r conftest 2>/dev/null
10562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10564 lt_compiler_flag="-o out/conftest2.$ac_objext"
10565 # Insert the option either (1) after the last *FLAGS variable, or
10566 # (2) before a word containing "conftest.", or (3) at the end.
10567 # Note that $ac_compile itself does not contain backslashes and begins
10568 # with a dollar sign (not a hyphen), so the echo should work correctly.
10569 lt_compile=`echo "$ac_compile" | $SED \
10570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10572 -e 's:$: $lt_compiler_flag:'`
10573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10574 (eval "$lt_compile" 2>out/conftest.err)
10576 cat out/conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10580 # The compiler can only warn and ignore the option if not recognized
10581 # So say no if there are warnings
10582 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10583 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10584 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10585 lt_cv_prog_compiler_c_o=yes
10590 # SGI C++ compiler will create directory out/ii_files/ for
10591 # template instantiation
10592 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10593 $RM out/* && rmdir out
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10600 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10605 hard_links="nottested"
10606 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10607 # do not overwrite the value of need_locks provided by the user
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10609 $as_echo_n "checking if we can lock with hard links... " >&6; }
10612 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10614 ln conftest.a conftest.b 2>&5 || hard_links=no
10615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10617 $as_echo "$hard_links" >&6; }
10618 if test "$hard_links" = no; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10620 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10633 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10636 allow_undefined_flag=
10637 always_export_symbols=no
10639 archive_expsym_cmds=
10640 compiler_needs_object=no
10641 enable_shared_with_static_runtimes=no
10642 export_dynamic_flag_spec=
10643 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10644 hardcode_automatic=no
10646 hardcode_direct_absolute=no
10647 hardcode_libdir_flag_spec=
10648 hardcode_libdir_separator=
10649 hardcode_minus_L=no
10650 hardcode_shlibpath_var=unsupported
10652 link_all_deplibs=unknown
10654 module_expsym_cmds=
10655 old_archive_from_new_cmds=
10656 old_archive_from_expsyms_cmds=
10657 thread_safe_flag_spec=
10658 whole_archive_flag_spec=
10659 # include_expsyms should be a list of space-separated symbols to be *always*
10660 # included in the symbol list
10662 # exclude_expsyms can be an extended regexp of symbols to exclude
10663 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10664 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10665 # as well as any symbol that contains `d'.
10666 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10667 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10668 # platforms (ab)use it in PIC code, but their linkers get confused if
10669 # the symbol is explicitly referenced. Since portable code cannot
10670 # rely on this symbol name, it's probably fine to never include it in
10671 # preloaded symbol tables.
10672 # Exclude shared library initialization/finalization symbols.
10673 extract_expsyms_cmds=
10676 cygwin* | mingw* | pw32* | cegcc*)
10677 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10678 # When not using gcc, we currently assume that we are using
10679 # Microsoft Visual C++.
10680 if test "$GCC" != yes; then
10685 # we just hope/assume this is gcc and not c89 (= MSVC++)
10695 # On some targets, GNU ld is compatible enough with the native linker
10696 # that we're better off using the native interface for both.
10697 lt_use_gnu_ld_interface=no
10698 if test "$with_gnu_ld" = yes; then
10701 # The AIX port of GNU ld has always aspired to compatibility
10702 # with the native linker. However, as the warning in the GNU ld
10703 # block says, versions before 2.19.5* couldn't really create working
10704 # shared libraries, regardless of the interface used.
10705 case `$LD -v 2>&1` in
10706 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10707 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10708 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10710 lt_use_gnu_ld_interface=yes
10715 lt_use_gnu_ld_interface=yes
10720 if test "$lt_use_gnu_ld_interface" = yes; then
10721 # If archive_cmds runs LD, not CC, wlarc should be empty
10724 # Set some defaults for GNU ld with shared library support. These
10725 # are reset later if shared libraries are not supported. Putting them
10726 # here allows them to be overridden if necessary.
10727 runpath_var=LD_RUN_PATH
10728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10729 export_dynamic_flag_spec='${wl}--export-dynamic'
10730 # ancient GNU ld didn't support --whole-archive et. al.
10731 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10732 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10734 whole_archive_flag_spec=
10736 supports_anon_versioning=no
10737 case `$LD -v 2>&1` in
10738 *GNU\ gold*) supports_anon_versioning=yes ;;
10739 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10740 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10741 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10742 *\ 2.11.*) ;; # other 2.11 versions
10743 *) supports_anon_versioning=yes ;;
10746 # See if GNU ld supports shared libraries.
10749 # On AIX/PPC, the GNU linker is very broken
10750 if test "$host_cpu" != ia64; then
10754 *** Warning: the GNU linker, at least up to release 2.19, is reported
10755 *** to be unable to reliably create shared libraries on AIX.
10756 *** Therefore, libtool is disabling shared libraries support. If you
10757 *** really care for shared libraries, you may want to install binutils
10758 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10759 *** You will then need to restart the configuration process.
10768 # see comment about AmigaOS4 .so support
10769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10770 archive_expsym_cmds=''
10773 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)'
10774 hardcode_libdir_flag_spec='-L$libdir'
10775 hardcode_minus_L=yes
10781 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10782 allow_undefined_flag=unsupported
10783 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10784 # support --undefined. This deserves some investigation. FIXME
10785 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10791 cygwin* | mingw* | pw32* | cegcc*)
10792 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10793 # as there is no search path for DLLs.
10794 hardcode_libdir_flag_spec='-L$libdir'
10795 export_dynamic_flag_spec='${wl}--export-all-symbols'
10796 allow_undefined_flag=unsupported
10797 always_export_symbols=no
10798 enable_shared_with_static_runtimes=yes
10799 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'
10800 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10802 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10804 # If the export-symbols file already is a .def file (1st line
10805 # is EXPORTS), use it as is; otherwise, prepend...
10806 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10807 cp $export_symbols $output_objdir/$soname.def;
10809 echo EXPORTS > $output_objdir/$soname.def;
10810 cat $export_symbols >> $output_objdir/$soname.def;
10812 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10820 link_all_deplibs=yes
10825 hardcode_shlibpath_var=no
10826 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10827 export_dynamic_flag_spec='${wl}-E'
10828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10829 # Instead, shared libraries are loaded at an image base (0x10000000 by
10830 # default) and relocated if they conflict, which is a slow very memory
10831 # consuming and fragmenting process. To avoid this, we pick a random,
10832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10833 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10834 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10835 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'
10838 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10840 if test "$host_os" = linux-dietlibc; then
10841 case $cc_basename in
10842 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10845 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10846 && test "$tmp_diet" = no
10848 tmp_addflag=' $pic_flag'
10849 tmp_sharedflag='-shared'
10850 case $cc_basename,$host_cpu in
10851 pgcc*) # Portland Group C compiler
10852 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'
10853 tmp_addflag=' $pic_flag'
10855 pgf77* | pgf90* | pgf95* | pgfortran*)
10856 # Portland Group f77 and f90 compilers
10857 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'
10858 tmp_addflag=' $pic_flag -Mnomain' ;;
10859 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10860 tmp_addflag=' -i_dynamic' ;;
10861 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10862 tmp_addflag=' -i_dynamic -nofor_main' ;;
10863 ifc* | ifort*) # Intel Fortran compiler
10864 tmp_addflag=' -nofor_main' ;;
10865 lf95*) # Lahey Fortran 8.1
10866 whole_archive_flag_spec=
10867 tmp_sharedflag='--shared' ;;
10868 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10869 tmp_sharedflag='-qmkshrobj'
10871 nvcc*) # Cuda Compiler Driver 2.2
10872 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'
10873 compiler_needs_object=yes
10876 case `$CC -V 2>&1 | sed 5q` in
10877 *Sun\ C*) # Sun C 5.9
10878 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'
10879 compiler_needs_object=yes
10880 tmp_sharedflag='-G' ;;
10881 *Sun\ F*) # Sun Fortran 8.3
10882 tmp_sharedflag='-G' ;;
10884 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10886 if test "x$supports_anon_versioning" = xyes; then
10887 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10888 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10889 echo "local: *; };" >> $output_objdir/$libname.ver~
10890 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10893 case $cc_basename in
10894 xlf* | bgf* | bgxlf* | mpixlf*)
10895 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10896 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10899 if test "x$supports_anon_versioning" = xyes; then
10900 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10901 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10902 echo "local: *; };" >> $output_objdir/$libname.ver~
10903 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10914 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10917 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10918 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10923 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10927 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10928 *** create shared libraries on Solaris systems. Therefore, libtool
10929 *** is disabling shared libraries support. We urge you to upgrade GNU
10930 *** binutils to release 2.9.1 or newer. Another option is to modify
10931 *** your PATH or compiler configuration so that the native linker is
10932 *** used, and then restart.
10935 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10936 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10937 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10943 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10944 case `$LD -v 2>&1` in
10945 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10949 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10950 *** reliably create shared libraries on SCO systems. Therefore, libtool
10951 *** is disabling shared libraries support. We urge you to upgrade GNU
10952 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10953 *** your PATH or compiler configuration so that the native linker is
10954 *** used, and then restart.
10959 # For security reasons, it is highly recommended that you always
10960 # use absolute paths for naming shared libraries, and exclude the
10961 # DT_RUNPATH tag from executables and libraries. But doing so
10962 # requires that you compile everything twice, which is a pain.
10963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10975 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10977 hardcode_direct=yes
10978 hardcode_shlibpath_var=no
10982 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10983 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10984 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10991 if test "$ld_shlibs" = no; then
10993 hardcode_libdir_flag_spec=
10994 export_dynamic_flag_spec=
10995 whole_archive_flag_spec=
10998 # PORTME fill in a description of your system's linker (not GNU ld)
11001 allow_undefined_flag=unsupported
11002 always_export_symbols=yes
11003 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'
11004 # Note: this linker hardcodes the directories in LIBPATH if there
11005 # are no directories specified by -L.
11006 hardcode_minus_L=yes
11007 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11008 # Neither direct hardcoding nor static linking is supported with a
11010 hardcode_direct=unsupported
11015 if test "$host_cpu" = ia64; then
11016 # On IA64, the linker does run time linking by default, so we don't
11017 # have to do anything special.
11018 aix_use_runtimelinking=no
11019 exp_sym_flag='-Bexport'
11022 # If we're using GNU nm, then we don't want the "-C" option.
11023 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11024 # Also, AIX nm treats weak defined symbols like other global
11025 # defined symbols, whereas GNU nm marks them as "W".
11026 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11027 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'
11029 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'
11031 aix_use_runtimelinking=no
11033 # Test if we are trying to use run time linking or normal
11034 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11035 # need to do runtime linking.
11036 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11037 for ld_flag in $LDFLAGS; do
11038 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11039 aix_use_runtimelinking=yes
11046 exp_sym_flag='-bexport'
11047 no_entry_flag='-bnoentry'
11050 # When large executables or shared objects are built, AIX ld can
11051 # have problems creating the table of contents. If linking a library
11052 # or program results in "error TOC overflow" add -mminimal-toc to
11053 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11054 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11057 hardcode_direct=yes
11058 hardcode_direct_absolute=yes
11059 hardcode_libdir_separator=':'
11060 link_all_deplibs=yes
11061 file_list_spec='${wl}-f,'
11063 if test "$GCC" = yes; then
11064 case $host_os in aix4.[012]|aix4.[012].*)
11065 # We only want to do this on AIX 4.2 and lower, the check
11066 # below for broken collect2 doesn't work under 4.3+
11067 collect2name=`${CC} -print-prog-name=collect2`
11068 if test -f "$collect2name" &&
11069 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11071 # We have reworked collect2
11074 # We have old collect2
11075 hardcode_direct=unsupported
11076 # It fails to find uninstalled libraries when the uninstalled
11077 # path is not listed in the libpath. Setting hardcode_minus_L
11078 # to unsupported forces relinking
11079 hardcode_minus_L=yes
11080 hardcode_libdir_flag_spec='-L$libdir'
11081 hardcode_libdir_separator=
11085 shared_flag='-shared'
11086 if test "$aix_use_runtimelinking" = yes; then
11087 shared_flag="$shared_flag "'${wl}-G'
11091 if test "$host_cpu" = ia64; then
11092 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11093 # chokes on -Wl,-G. The following line is correct:
11096 if test "$aix_use_runtimelinking" = yes; then
11097 shared_flag='${wl}-G'
11099 shared_flag='${wl}-bM:SRE'
11104 export_dynamic_flag_spec='${wl}-bexpall'
11105 # It seems that -bexpall does not export symbols beginning with
11106 # underscore (_), so it is better to generate a list of symbols to export.
11107 always_export_symbols=yes
11108 if test "$aix_use_runtimelinking" = yes; then
11109 # Warning - without using the other runtime loading flags (-brtl),
11110 # -berok will link without error, but may produce a broken library.
11111 allow_undefined_flag='-berok'
11112 # Determine the default libpath from the value encoded in an
11113 # empty executable.
11114 if test "${lt_cv_aix_libpath+set}" = set; then
11115 aix_libpath=$lt_cv_aix_libpath
11117 if ${lt_cv_aix_libpath_+:} false; then :
11118 $as_echo_n "(cached) " >&6
11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11131 if ac_fn_c_try_link "$LINENO"; then :
11133 lt_aix_libpath_sed='
11134 /Import File Strings/,/^$/ {
11136 s/^0 *\([^ ]*\) *$/\1/
11140 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11141 # Check for a 64-bit object if we didn't find anything.
11142 if test -z "$lt_cv_aix_libpath_"; then
11143 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11146 rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
11148 if test -z "$lt_cv_aix_libpath_"; then
11149 lt_cv_aix_libpath_="/usr/lib:/lib"
11154 aix_libpath=$lt_cv_aix_libpath_
11157 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11158 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"
11160 if test "$host_cpu" = ia64; then
11161 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11162 allow_undefined_flag="-z nodefs"
11163 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"
11165 # Determine the default libpath from the value encoded in an
11166 # empty executable.
11167 if test "${lt_cv_aix_libpath+set}" = set; then
11168 aix_libpath=$lt_cv_aix_libpath
11170 if ${lt_cv_aix_libpath_+:} false; then :
11171 $as_echo_n "(cached) " >&6
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11184 if ac_fn_c_try_link "$LINENO"; then :
11186 lt_aix_libpath_sed='
11187 /Import File Strings/,/^$/ {
11189 s/^0 *\([^ ]*\) *$/\1/
11193 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11194 # Check for a 64-bit object if we didn't find anything.
11195 if test -z "$lt_cv_aix_libpath_"; then
11196 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11199 rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201 if test -z "$lt_cv_aix_libpath_"; then
11202 lt_cv_aix_libpath_="/usr/lib:/lib"
11207 aix_libpath=$lt_cv_aix_libpath_
11210 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11211 # Warning - without using the other run time loading flags,
11212 # -berok will link without error, but may produce a broken library.
11213 no_undefined_flag=' ${wl}-bernotok'
11214 allow_undefined_flag=' ${wl}-berok'
11215 if test "$with_gnu_ld" = yes; then
11216 # We only use this code for GNU lds that support --whole-archive.
11217 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11219 # Exported symbols can be pulled into shared objects from archives
11220 whole_archive_flag_spec='$convenience'
11222 archive_cmds_need_lc=yes
11223 # This is similar to how AIX traditionally builds its shared libraries.
11224 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'
11232 # see comment about AmigaOS4 .so support
11233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11234 archive_expsym_cmds=''
11237 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)'
11238 hardcode_libdir_flag_spec='-L$libdir'
11239 hardcode_minus_L=yes
11245 export_dynamic_flag_spec=-rdynamic
11248 cygwin* | mingw* | pw32* | cegcc*)
11249 # When not using gcc, we currently assume that we are using
11250 # Microsoft Visual C++.
11251 # hardcode_libdir_flag_spec is actually meaningless, as there is
11252 # no search path for DLLs.
11253 case $cc_basename in
11256 hardcode_libdir_flag_spec=' '
11257 allow_undefined_flag=unsupported
11258 always_export_symbols=yes
11260 # Tell ltmain to make .lib files, not .a files.
11262 # Tell ltmain to make .dll files, not .so files.
11264 # FIXME: Setting linknames here is a bad hack.
11265 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11266 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11267 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11269 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11271 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11273 # The linker will not automatically build a static lib if we build a DLL.
11274 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11275 enable_shared_with_static_runtimes=yes
11276 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11277 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11279 old_postinstall_cmds='chmod 644 $oldlib'
11280 postlink_cmds='lt_outputfile="@OUTPUT@"~
11281 lt_tool_outputfile="@TOOL_OUTPUT@"~
11282 case $lt_outputfile in
11285 lt_outputfile="$lt_outputfile.exe"
11286 lt_tool_outputfile="$lt_tool_outputfile.exe"
11289 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11290 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11291 $RM "$lt_outputfile.manifest";
11295 # Assume MSVC wrapper
11296 hardcode_libdir_flag_spec=' '
11297 allow_undefined_flag=unsupported
11298 # Tell ltmain to make .lib files, not .a files.
11300 # Tell ltmain to make .dll files, not .so files.
11302 # FIXME: Setting linknames here is a bad hack.
11303 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11304 # The linker will automatically build a .lib file if we build a DLL.
11305 old_archive_from_new_cmds='true'
11306 # FIXME: Should let the user specify the lib program.
11307 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11308 enable_shared_with_static_runtimes=yes
11313 darwin* | rhapsody*)
11316 archive_cmds_need_lc=no
11318 hardcode_automatic=yes
11319 hardcode_shlibpath_var=unsupported
11320 if test "$lt_cv_ld_force_load" = "yes"; then
11321 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\"`'
11324 whole_archive_flag_spec=''
11326 link_all_deplibs=yes
11327 allow_undefined_flag="$_lt_dar_allow_undefined"
11328 case $cc_basename in
11329 ifort*) _lt_dar_can_shared=yes ;;
11330 *) _lt_dar_can_shared=$GCC ;;
11332 if test "$_lt_dar_can_shared" = "yes"; then
11333 output_verbose_link_cmd=func_echo_all
11334 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11335 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11336 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}"
11337 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}"
11346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11347 hardcode_libdir_flag_spec='-L$libdir'
11348 hardcode_shlibpath_var=no
11351 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11352 # support. Future versions do this automatically, but an explicit c++rt0.o
11353 # does not break anything, and helps significantly (at the cost of a little
11356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11357 hardcode_libdir_flag_spec='-R$libdir'
11358 hardcode_direct=yes
11359 hardcode_shlibpath_var=no
11362 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11364 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11365 hardcode_direct=yes
11366 hardcode_minus_L=yes
11367 hardcode_shlibpath_var=no
11370 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11371 freebsd* | dragonfly*)
11372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11373 hardcode_libdir_flag_spec='-R$libdir'
11374 hardcode_direct=yes
11375 hardcode_shlibpath_var=no
11379 if test "$GCC" = yes; then
11380 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'
11382 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'
11384 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11385 hardcode_libdir_separator=:
11386 hardcode_direct=yes
11388 # hardcode_minus_L: Not really in the search PATH,
11389 # but as the default location of the library.
11390 hardcode_minus_L=yes
11391 export_dynamic_flag_spec='${wl}-E'
11395 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11396 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11398 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11400 if test "$with_gnu_ld" = no; then
11401 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11402 hardcode_libdir_separator=:
11403 hardcode_direct=yes
11404 hardcode_direct_absolute=yes
11405 export_dynamic_flag_spec='${wl}-E'
11406 # hardcode_minus_L: Not really in the search PATH,
11407 # but as the default location of the library.
11408 hardcode_minus_L=yes
11413 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11416 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11419 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11422 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11428 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11431 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11435 # Older versions of the 11.00 compiler do not understand -b yet
11436 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11438 $as_echo_n "checking if $CC understands -b... " >&6; }
11439 if ${lt_cv_prog_compiler__b+:} false; then :
11440 $as_echo_n "(cached) " >&6
11442 lt_cv_prog_compiler__b=no
11443 save_LDFLAGS="$LDFLAGS"
11444 LDFLAGS="$LDFLAGS -b"
11445 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11446 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11447 # The linker can only warn and ignore the option if not recognized
11448 # So say no if there are warnings
11449 if test -s conftest.err; then
11450 # Append any errors to the config.log.
11451 cat conftest.err 1>&5
11452 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11454 if diff conftest.exp conftest.er2 >/dev/null; then
11455 lt_cv_prog_compiler__b=yes
11458 lt_cv_prog_compiler__b=yes
11462 LDFLAGS="$save_LDFLAGS"
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11466 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11468 if test x"$lt_cv_prog_compiler__b" = xyes; then
11469 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11471 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11477 if test "$with_gnu_ld" = no; then
11478 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11479 hardcode_libdir_separator=:
11484 hardcode_shlibpath_var=no
11487 hardcode_direct=yes
11488 hardcode_direct_absolute=yes
11489 export_dynamic_flag_spec='${wl}-E'
11491 # hardcode_minus_L: Not really in the search PATH,
11492 # but as the default location of the library.
11493 hardcode_minus_L=yes
11499 irix5* | irix6* | nonstopux*)
11500 if test "$GCC" = yes; then
11501 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'
11502 # Try to use the -exported_symbol ld option, if it does not
11503 # work, assume that -exports_file does not work either and
11504 # implicitly export all symbols.
11505 # This should be the same for all languages, so no per-tag cache variable.
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11507 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11508 if ${lt_cv_irix_exported_symbol+:} false; then :
11509 $as_echo_n "(cached) " >&6
11511 save_LDFLAGS="$LDFLAGS"
11512 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11515 int foo (void) { return 0; }
11517 if ac_fn_c_try_link "$LINENO"; then :
11518 lt_cv_irix_exported_symbol=yes
11520 lt_cv_irix_exported_symbol=no
11522 rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LDFLAGS="$save_LDFLAGS"
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11527 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11528 if test "$lt_cv_irix_exported_symbol" = yes; then
11529 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'
11532 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'
11533 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'
11535 archive_cmds_need_lc='no'
11536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11537 hardcode_libdir_separator=:
11539 link_all_deplibs=yes
11543 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11546 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11548 hardcode_libdir_flag_spec='-R$libdir'
11549 hardcode_direct=yes
11550 hardcode_shlibpath_var=no
11554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11555 hardcode_direct=yes
11556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11557 hardcode_libdir_separator=:
11558 hardcode_shlibpath_var=no
11565 if test -f /usr/libexec/ld.so; then
11566 hardcode_direct=yes
11567 hardcode_shlibpath_var=no
11568 hardcode_direct_absolute=yes
11569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11570 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11571 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11573 export_dynamic_flag_spec='${wl}-E'
11576 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11578 hardcode_libdir_flag_spec='-R$libdir'
11581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11592 hardcode_libdir_flag_spec='-L$libdir'
11593 hardcode_minus_L=yes
11594 allow_undefined_flag=unsupported
11595 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'
11596 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11600 if test "$GCC" = yes; then
11601 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11602 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'
11604 allow_undefined_flag=' -expect_unresolved \*'
11605 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'
11607 archive_cmds_need_lc='no'
11608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11609 hardcode_libdir_separator=:
11612 osf4* | osf5*) # as osf3* with the addition of -msym flag
11613 if test "$GCC" = yes; then
11614 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11615 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'
11616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11618 allow_undefined_flag=' -expect_unresolved \*'
11619 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'
11620 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~
11621 $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'
11623 # Both c and cxx compiler support -rpath directly
11624 hardcode_libdir_flag_spec='-rpath $libdir'
11626 archive_cmds_need_lc='no'
11627 hardcode_libdir_separator=:
11631 no_undefined_flag=' -z defs'
11632 if test "$GCC" = yes; then
11634 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11636 $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'
11638 case `$CC -V 2>&1` in
11641 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11642 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11643 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11647 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11648 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11649 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11653 hardcode_libdir_flag_spec='-R$libdir'
11654 hardcode_shlibpath_var=no
11656 solaris2.[0-5] | solaris2.[0-5].*) ;;
11658 # The compiler driver will combine and reorder linker options,
11659 # but understands `-z linker_flag'. GCC discards it without `$wl',
11660 # but is careful enough not to reorder.
11661 # Supported since Solaris 2.6 (maybe 2.5.1?)
11662 if test "$GCC" = yes; then
11663 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11665 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11669 link_all_deplibs=yes
11673 if test "x$host_vendor" = xsequent; then
11674 # Use $CC to link under sequent, because it throws in some extra .o
11675 # files that make .init and .fini sections work.
11676 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11678 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11680 hardcode_libdir_flag_spec='-L$libdir'
11681 hardcode_direct=yes
11682 hardcode_minus_L=yes
11683 hardcode_shlibpath_var=no
11687 case $host_vendor in
11689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11690 hardcode_direct=yes # is this really true???
11693 ## LD is ld it makes a PLAMLIB
11694 ## CC just makes a GrossModule.
11695 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11696 reload_cmds='$CC -r -o $output$reload_objs'
11700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11701 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11704 runpath_var='LD_RUN_PATH'
11705 hardcode_shlibpath_var=no
11709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11710 hardcode_shlibpath_var=no
11711 export_dynamic_flag_spec='-Bexport'
11715 if test -d /usr/nec; then
11716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11717 hardcode_shlibpath_var=no
11718 runpath_var=LD_RUN_PATH
11719 hardcode_runpath_var=yes
11724 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11725 no_undefined_flag='${wl}-z,text'
11726 archive_cmds_need_lc=no
11727 hardcode_shlibpath_var=no
11728 runpath_var='LD_RUN_PATH'
11730 if test "$GCC" = yes; then
11731 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11732 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11734 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11735 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11739 sysv5* | sco3.2v5* | sco5v6*)
11740 # Note: We can NOT use -z defs as we might desire, because we do not
11741 # link with -lc, and that would cause any symbols used from libc to
11742 # always be unresolved, which means just about no library would
11743 # ever link correctly. If we're not using GNU ld we use -z text
11744 # though, which does catch some bad symbols but isn't as heavy-handed
11746 no_undefined_flag='${wl}-z,text'
11747 allow_undefined_flag='${wl}-z,nodefs'
11748 archive_cmds_need_lc=no
11749 hardcode_shlibpath_var=no
11750 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11751 hardcode_libdir_separator=':'
11752 link_all_deplibs=yes
11753 export_dynamic_flag_spec='${wl}-Bexport'
11754 runpath_var='LD_RUN_PATH'
11756 if test "$GCC" = yes; then
11757 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11758 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11760 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11761 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11767 hardcode_libdir_flag_spec='-L$libdir'
11768 hardcode_shlibpath_var=no
11776 if test x$host_vendor = xsni; then
11778 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11779 export_dynamic_flag_spec='${wl}-Blargedynsym'
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11786 $as_echo "$ld_shlibs" >&6; }
11787 test "$ld_shlibs" = no && can_build_shared=no
11789 with_gnu_ld=$with_gnu_ld
11806 # Do we need to explicitly link libc?
11808 case "x$archive_cmds_need_lc" in
11810 # Assume -lc should be added
11811 archive_cmds_need_lc=yes
11813 if test "$enable_shared" = yes && test "$GCC" = yes; then
11814 case $archive_cmds in
11816 # FIXME: we may have to deal with multi-command sequences.
11819 # Test whether the compiler implicitly links with -lc since on some
11820 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11821 # to ld, don't add -lc before -lgcc.
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11823 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11824 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11825 $as_echo_n "(cached) " >&6
11828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11831 (eval $ac_compile) 2>&5
11833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11834 test $ac_status = 0; } 2>conftest.err; then
11837 libobjs=conftest.$ac_objext
11839 wl=$lt_prog_compiler_wl
11840 pic_flag=$lt_prog_compiler_pic
11846 lt_save_allow_undefined_flag=$allow_undefined_flag
11847 allow_undefined_flag=
11848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11849 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11852 test $ac_status = 0; }
11854 lt_cv_archive_cmds_need_lc=no
11856 lt_cv_archive_cmds_need_lc=yes
11858 allow_undefined_flag=$lt_save_allow_undefined_flag
11860 cat conftest.err 1>&5
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11866 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11867 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12026 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12028 if test "$GCC" = yes; then
12030 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12031 *) lt_awk_arg="/^libraries:/" ;;
12034 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12035 *) lt_sed_strip_eq="s,=/,/,g" ;;
12037 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12038 case $lt_search_path_spec in
12040 # if the path contains ";" then we assume it to be the separator
12041 # otherwise default to the standard path separator (i.e. ":") - it is
12042 # assumed that no part of a normal pathname contains ";" but that should
12043 # okay in the real world where ";" in dirpaths is itself problematic.
12044 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12047 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12050 # Ok, now we have the path, separated by spaces, we can step through it
12051 # and add multilib dir if necessary.
12052 lt_tmp_lt_search_path_spec=
12053 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12054 for lt_sys_path in $lt_search_path_spec; do
12055 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12058 test -d "$lt_sys_path" && \
12059 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12062 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12063 BEGIN {RS=" "; FS="/|\n";} {
12066 for (lt_i = NF; lt_i > 0; lt_i--) {
12067 if ($lt_i != "" && $lt_i != ".") {
12068 if ($lt_i == "..") {
12071 if (lt_count == 0) {
12072 lt_foo="/" $lt_i lt_foo;
12079 if (lt_foo != "") { lt_freq[lt_foo]++; }
12080 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12082 # AWK program above erroneously prepends '/' to C:/dos/paths
12085 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12086 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12088 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12090 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12092 library_names_spec=
12093 libname_spec='lib$name'
12097 postuninstall_cmds=
12101 shlibpath_overrides_runpath=unknown
12103 dynamic_linker="$host_os ld.so"
12104 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12105 need_lib_prefix=unknown
12106 hardcode_into_libs=no
12108 # when you set need_version to no, make sure it does not cause -set_version
12109 # flags to be left without arguments
12110 need_version=unknown
12114 version_type=linux # correct to gnu/linux during the next big refactor
12115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12116 shlibpath_var=LIBPATH
12118 # AIX 3 has no versioning support, so we append a major version to the name.
12119 soname_spec='${libname}${release}${shared_ext}$major'
12123 version_type=linux # correct to gnu/linux during the next big refactor
12126 hardcode_into_libs=yes
12127 if test "$host_cpu" = ia64; then
12128 # AIX 5 supports IA64
12129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12130 shlibpath_var=LD_LIBRARY_PATH
12132 # With GCC up to 2.95.x, collect2 would create an import file
12133 # for dependence libraries. The import file would start with
12134 # the line `#! .'. This would cause the generated library to
12135 # depend on `.', always an invalid library. This was fixed in
12136 # development snapshots of GCC prior to 3.0.
12138 aix4 | aix4.[01] | aix4.[01].*)
12139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12141 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12144 can_build_shared=no
12148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12149 # soname into executable. Probably we can add versioning support to
12150 # collect2, so additional links can be useful in future.
12151 if test "$aix_use_runtimelinking" = yes; then
12152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12153 # instead of lib<name>.a to let people know that these are not
12154 # typical AIX shared libraries.
12155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157 # We preserve .a as extension for shared libraries through AIX4.2
12158 # and later when we are not doing run time linking.
12159 library_names_spec='${libname}${release}.a $libname.a'
12160 soname_spec='${libname}${release}${shared_ext}$major'
12162 shlibpath_var=LIBPATH
12169 # Since July 2007 AmigaOS4 officially supports .so libraries.
12170 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12174 library_names_spec='$libname.ixlibrary $libname.a'
12175 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12176 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'
12182 library_names_spec='${libname}${shared_ext}'
12183 dynamic_linker="$host_os ld.so"
12184 shlibpath_var=LIBRARY_PATH
12188 version_type=linux # correct to gnu/linux during the next big refactor
12190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12191 soname_spec='${libname}${release}${shared_ext}$major'
12192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12193 shlibpath_var=LD_LIBRARY_PATH
12194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12196 # the default ld.so.conf also contains /usr/contrib/lib and
12197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12198 # libtool to hard-code these into programs
12201 cygwin* | mingw* | pw32* | cegcc*)
12202 version_type=windows
12207 case $GCC,$cc_basename in
12210 library_names_spec='$libname.dll.a'
12211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12212 postinstall_cmds='base_file=`basename \${file}`~
12213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12214 dldir=$destdir/`dirname \$dlpath`~
12215 test -d \$dldir || mkdir -p \$dldir~
12216 $install_prog $dir/$dlname \$dldir/$dlname~
12217 chmod a+x \$dldir/$dlname~
12218 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12219 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12222 dlpath=$dir/\$dldll~
12224 shlibpath_overrides_runpath=yes
12228 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12229 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12231 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12234 # MinGW DLLs use traditional 'lib' prefix
12235 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12238 # pw32 DLLs use 'pw' prefix rather than 'lib'
12239 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12242 dynamic_linker='Win32 ld.exe'
12247 libname_spec='$name'
12248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12249 library_names_spec='${libname}.dll.lib'
12253 sys_lib_search_path_spec=
12256 for lt_path in $LIB
12259 # Let DOS variable expansion print the short 8.3 style file name.
12260 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12261 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12264 # Convert to MSYS style.
12265 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12268 # Convert to unix form, then to dos form, then back to unix form
12269 # but this time dos style (no spaces!) so that the unix form looks
12270 # like /cygdrive/c/PROGRA~1:/cygdr...
12271 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12272 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12273 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12276 sys_lib_search_path_spec="$LIB"
12277 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12278 # It is most probably a Windows format PATH.
12279 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12281 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12283 # FIXME: find the short name or the path components, as spaces are
12284 # common. (e.g. "Program Files" -> "PROGRA~1")
12288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12289 postinstall_cmds='base_file=`basename \${file}`~
12290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12291 dldir=$destdir/`dirname \$dlpath`~
12292 test -d \$dldir || mkdir -p \$dldir~
12293 $install_prog $dir/$dlname \$dldir/$dlname'
12294 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12295 dlpath=$dir/\$dldll~
12297 shlibpath_overrides_runpath=yes
12298 dynamic_linker='Win32 link.exe'
12302 # Assume MSVC wrapper
12303 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12304 dynamic_linker='Win32 ld.exe'
12307 # FIXME: first we should search . and the directory the executable is in
12311 darwin* | rhapsody*)
12312 dynamic_linker="$host_os dyld"
12313 version_type=darwin
12316 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12317 soname_spec='${libname}${release}${major}$shared_ext'
12318 shlibpath_overrides_runpath=yes
12319 shlibpath_var=DYLD_LIBRARY_PATH
12320 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12322 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12323 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12327 version_type=linux # correct to gnu/linux during the next big refactor
12330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12331 soname_spec='${libname}${release}${shared_ext}$major'
12332 shlibpath_var=LD_LIBRARY_PATH
12335 freebsd* | dragonfly*)
12336 # DragonFly does not have aout. When/if they implement a new
12337 # versioning mechanism, adjust this.
12338 if test -x /usr/bin/objformat; then
12339 objformat=`/usr/bin/objformat`
12342 freebsd[23].*) objformat=aout ;;
12343 *) objformat=elf ;;
12346 version_type=freebsd-$objformat
12347 case $version_type in
12349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12358 shlibpath_var=LD_LIBRARY_PATH
12361 shlibpath_overrides_runpath=yes
12363 freebsd3.[01]* | freebsdelf3.[01]*)
12364 shlibpath_overrides_runpath=yes
12365 hardcode_into_libs=yes
12367 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12368 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12369 shlibpath_overrides_runpath=no
12370 hardcode_into_libs=yes
12372 *) # from 4.6 on, and DragonFly
12373 shlibpath_overrides_runpath=yes
12374 hardcode_into_libs=yes
12380 version_type=linux # correct to gnu/linux during the next big refactor
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12384 soname_spec='${libname}${release}${shared_ext}$major'
12385 shlibpath_var=LD_LIBRARY_PATH
12386 shlibpath_overrides_runpath=no
12387 hardcode_into_libs=yes
12391 version_type=linux # correct to gnu/linux during the next big refactor
12394 dynamic_linker="$host_os runtime_loader"
12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12396 soname_spec='${libname}${release}${shared_ext}$major'
12397 shlibpath_var=LIBRARY_PATH
12398 shlibpath_overrides_runpath=yes
12399 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12400 hardcode_into_libs=yes
12403 hpux9* | hpux10* | hpux11*)
12404 # Give a soname corresponding to the major version so that dld.sl refuses to
12405 # link against other versions.
12412 hardcode_into_libs=yes
12413 dynamic_linker="$host_os dld.so"
12414 shlibpath_var=LD_LIBRARY_PATH
12415 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12417 soname_spec='${libname}${release}${shared_ext}$major'
12418 if test "X$HPUX_IA64_MODE" = X32; then
12419 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12421 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12427 hardcode_into_libs=yes
12428 dynamic_linker="$host_os dld.sl"
12429 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12432 soname_spec='${libname}${release}${shared_ext}$major'
12433 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12438 dynamic_linker="$host_os dld.sl"
12439 shlibpath_var=SHLIB_PATH
12440 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12442 soname_spec='${libname}${release}${shared_ext}$major'
12445 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12446 postinstall_cmds='chmod 555 $lib'
12447 # or fails outright, so override atomically:
12448 install_override_mode=555
12452 version_type=linux # correct to gnu/linux during the next big refactor
12455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12456 soname_spec='${libname}${release}${shared_ext}$major'
12457 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12458 shlibpath_var=LD_LIBRARY_PATH
12459 shlibpath_overrides_runpath=no
12460 hardcode_into_libs=yes
12463 irix5* | irix6* | nonstopux*)
12465 nonstopux*) version_type=nonstopux ;;
12467 if test "$lt_cv_prog_gnu_ld" = yes; then
12468 version_type=linux # correct to gnu/linux during the next big refactor
12475 soname_spec='${libname}${release}${shared_ext}$major'
12476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12478 irix5* | nonstopux*)
12479 libsuff= shlibsuff=
12482 case $LD in # libtool.m4 will add one of these switches to LD
12483 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12484 libsuff= shlibsuff= libmagic=32-bit;;
12485 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12486 libsuff=32 shlibsuff=N32 libmagic=N32;;
12487 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12488 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12489 *) libsuff= shlibsuff= libmagic=never-match;;
12493 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12494 shlibpath_overrides_runpath=no
12495 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12496 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12497 hardcode_into_libs=yes
12500 # No shared lib support for Linux oldld, aout, or coff.
12501 linux*oldld* | linux*aout* | linux*coff*)
12505 # This must be glibc/ELF.
12506 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12507 version_type=linux # correct to gnu/linux during the next big refactor
12510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12511 soname_spec='${libname}${release}${shared_ext}$major'
12512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 shlibpath_overrides_runpath=no
12516 # Some binutils ld are patched to set DT_RUNPATH
12517 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12518 $as_echo_n "(cached) " >&6
12520 lt_cv_shlibpath_overrides_runpath=no
12521 save_LDFLAGS=$LDFLAGS
12522 save_libdir=$libdir
12523 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12524 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12536 if ac_fn_c_try_link "$LINENO"; then :
12537 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12538 lt_cv_shlibpath_overrides_runpath=yes
12541 rm -f core conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 LDFLAGS=$save_LDFLAGS
12544 libdir=$save_libdir
12548 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12550 # This implies no fast_install, which is unacceptable.
12551 # Some rework will be needed to allow for fast_install
12552 # before this can be enabled.
12553 hardcode_into_libs=yes
12555 # Add ABI-specific directories to the system library path.
12556 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12558 # Append ld.so.conf contents to the search path
12559 if test -f /etc/ld.so.conf; then
12560 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' ' '`
12561 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12565 # We used to test for /lib/ld.so.1 and disable shared libraries on
12566 # powerpc, because MkLinux only supported shared libraries with the
12567 # GNU dynamic linker. Since this was broken with cross compilers,
12568 # most powerpc-linux boxes support dynamic linking these days and
12569 # people can always --disable-shared, the test was removed, and we
12570 # assume the GNU/Linux dynamic linker is in use.
12571 dynamic_linker='GNU/Linux ld.so'
12578 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12581 dynamic_linker='NetBSD (a.out) ld.so'
12583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12584 soname_spec='${libname}${release}${shared_ext}$major'
12585 dynamic_linker='NetBSD ld.elf_so'
12587 shlibpath_var=LD_LIBRARY_PATH
12588 shlibpath_overrides_runpath=yes
12589 hardcode_into_libs=yes
12593 version_type=linux # correct to gnu/linux during the next big refactor
12594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12595 shlibpath_var=LD_LIBRARY_PATH
12596 shlibpath_overrides_runpath=yes
12603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604 soname_spec='${libname}${release}${shared_ext}$major'
12605 shlibpath_var=LD_LIBRARY_PATH
12606 shlibpath_overrides_runpath=no
12607 hardcode_into_libs=yes
12608 dynamic_linker='ldqnx.so'
12613 sys_lib_dlsearch_path_spec="/usr/lib"
12615 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12617 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12618 *) need_version=no ;;
12620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12622 shlibpath_var=LD_LIBRARY_PATH
12623 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12625 openbsd2.[89] | openbsd2.[89].*)
12626 shlibpath_overrides_runpath=no
12629 shlibpath_overrides_runpath=yes
12633 shlibpath_overrides_runpath=yes
12638 libname_spec='$name'
12641 library_names_spec='$libname${shared_ext} $libname.a'
12642 dynamic_linker='OS/2 ld.exe'
12643 shlibpath_var=LIBPATH
12646 osf3* | osf4* | osf5*)
12650 soname_spec='${libname}${release}${shared_ext}$major'
12651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12652 shlibpath_var=LD_LIBRARY_PATH
12653 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12654 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12662 version_type=linux # correct to gnu/linux during the next big refactor
12665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12666 soname_spec='${libname}${release}${shared_ext}$major'
12667 shlibpath_var=LD_LIBRARY_PATH
12668 shlibpath_overrides_runpath=yes
12669 hardcode_into_libs=yes
12670 # ldd complains unless libraries are executable
12671 postinstall_cmds='chmod +x $lib'
12676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12677 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12678 shlibpath_var=LD_LIBRARY_PATH
12679 shlibpath_overrides_runpath=yes
12680 if test "$with_gnu_ld" = yes; then
12687 version_type=linux # correct to gnu/linux during the next big refactor
12688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12689 soname_spec='${libname}${release}${shared_ext}$major'
12690 shlibpath_var=LD_LIBRARY_PATH
12691 case $host_vendor in
12693 shlibpath_overrides_runpath=no
12695 runpath_var=LD_RUN_PATH
12703 shlibpath_overrides_runpath=no
12704 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12710 if test -d /usr/nec ;then
12711 version_type=linux # correct to gnu/linux during the next big refactor
12712 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12713 soname_spec='$libname${shared_ext}.$major'
12714 shlibpath_var=LD_LIBRARY_PATH
12718 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12719 version_type=freebsd-elf
12722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12723 soname_spec='${libname}${release}${shared_ext}$major'
12724 shlibpath_var=LD_LIBRARY_PATH
12725 shlibpath_overrides_runpath=yes
12726 hardcode_into_libs=yes
12727 if test "$with_gnu_ld" = yes; then
12728 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12730 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12733 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12737 sys_lib_dlsearch_path_spec='/usr/lib'
12741 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12742 version_type=linux # correct to gnu/linux during the next big refactor
12745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12746 shlibpath_var=LD_LIBRARY_PATH
12747 shlibpath_overrides_runpath=no
12748 hardcode_into_libs=yes
12752 version_type=linux # correct to gnu/linux during the next big refactor
12753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12754 soname_spec='${libname}${release}${shared_ext}$major'
12755 shlibpath_var=LD_LIBRARY_PATH
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12763 $as_echo "$dynamic_linker" >&6; }
12764 test "$dynamic_linker" = no && can_build_shared=no
12766 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12767 if test "$GCC" = yes; then
12768 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12771 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12772 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12774 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12775 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12870 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12872 if test -n "$hardcode_libdir_flag_spec" ||
12873 test -n "$runpath_var" ||
12874 test "X$hardcode_automatic" = "Xyes" ; then
12876 # We can hardcode non-existent directories.
12877 if test "$hardcode_direct" != no &&
12878 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12879 # have to relink, otherwise we might link with an installed library
12880 # when we should be linking with a yet-to-be-installed one
12881 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12882 test "$hardcode_minus_L" != no; then
12883 # Linking always hardcodes the temporary library directory.
12884 hardcode_action=relink
12886 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12887 hardcode_action=immediate
12890 # We cannot hardcode anything, or else we can only hardcode existing
12892 hardcode_action=unsupported
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12895 $as_echo "$hardcode_action" >&6; }
12897 if test "$hardcode_action" = relink ||
12898 test "$inherit_rpath" = yes; then
12899 # Fast installation is not supported
12900 enable_fast_install=no
12901 elif test "$shlibpath_overrides_runpath" = yes ||
12902 test "$enable_shared" = no; then
12903 # Fast installation is not necessary
12904 enable_fast_install=needless
12912 if test "x$enable_dlopen" != xyes; then
12913 enable_dlopen=unknown
12914 enable_dlopen_self=unknown
12915 enable_dlopen_self_static=unknown
12922 lt_cv_dlopen="load_add_on"
12924 lt_cv_dlopen_self=yes
12927 mingw* | pw32* | cegcc*)
12928 lt_cv_dlopen="LoadLibrary"
12933 lt_cv_dlopen="dlopen"
12938 # if libdl is installed we need to link against it
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12940 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12941 if ${ac_cv_lib_dl_dlopen+:} false; then :
12942 $as_echo_n "(cached) " >&6
12944 ac_check_lib_save_LIBS=$LIBS
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12949 /* Override any GCC internal prototype to avoid an error.
12950 Use char because int might match the return type of a GCC
12951 builtin and then its argument prototype would still apply. */
12964 if ac_fn_c_try_link "$LINENO"; then :
12965 ac_cv_lib_dl_dlopen=yes
12967 ac_cv_lib_dl_dlopen=no
12969 rm -f core conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
12971 LIBS=$ac_check_lib_save_LIBS
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12974 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12975 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12979 lt_cv_dlopen="dyld"
12981 lt_cv_dlopen_self=yes
12988 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12989 if test "x$ac_cv_func_shl_load" = xyes; then :
12990 lt_cv_dlopen="shl_load"
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12993 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12994 if ${ac_cv_lib_dld_shl_load+:} false; then :
12995 $as_echo_n "(cached) " >&6
12997 ac_check_lib_save_LIBS=$LIBS
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13002 /* Override any GCC internal prototype to avoid an error.
13003 Use char because int might match the return type of a GCC
13004 builtin and then its argument prototype would still apply. */
13012 return shl_load ();
13017 if ac_fn_c_try_link "$LINENO"; then :
13018 ac_cv_lib_dld_shl_load=yes
13020 ac_cv_lib_dld_shl_load=no
13022 rm -f core conftest.err conftest.$ac_objext \
13023 conftest$ac_exeext conftest.$ac_ext
13024 LIBS=$ac_check_lib_save_LIBS
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13027 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13028 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13029 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13031 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13032 if test "x$ac_cv_func_dlopen" = xyes; then :
13033 lt_cv_dlopen="dlopen"
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13036 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13037 if ${ac_cv_lib_dl_dlopen+:} false; then :
13038 $as_echo_n "(cached) " >&6
13040 ac_check_lib_save_LIBS=$LIBS
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13045 /* Override any GCC internal prototype to avoid an error.
13046 Use char because int might match the return type of a GCC
13047 builtin and then its argument prototype would still apply. */
13060 if ac_fn_c_try_link "$LINENO"; then :
13061 ac_cv_lib_dl_dlopen=yes
13063 ac_cv_lib_dl_dlopen=no
13065 rm -f core conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13067 LIBS=$ac_check_lib_save_LIBS
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13070 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13071 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13075 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13076 if ${ac_cv_lib_svld_dlopen+:} false; then :
13077 $as_echo_n "(cached) " >&6
13079 ac_check_lib_save_LIBS=$LIBS
13080 LIBS="-lsvld $LIBS"
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13084 /* Override any GCC internal prototype to avoid an error.
13085 Use char because int might match the return type of a GCC
13086 builtin and then its argument prototype would still apply. */
13099 if ac_fn_c_try_link "$LINENO"; then :
13100 ac_cv_lib_svld_dlopen=yes
13102 ac_cv_lib_svld_dlopen=no
13104 rm -f core conftest.err conftest.$ac_objext \
13105 conftest$ac_exeext conftest.$ac_ext
13106 LIBS=$ac_check_lib_save_LIBS
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13109 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13110 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13111 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13114 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13115 if ${ac_cv_lib_dld_dld_link+:} false; then :
13116 $as_echo_n "(cached) " >&6
13118 ac_check_lib_save_LIBS=$LIBS
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13123 /* Override any GCC internal prototype to avoid an error.
13124 Use char because int might match the return type of a GCC
13125 builtin and then its argument prototype would still apply. */
13133 return dld_link ();
13138 if ac_fn_c_try_link "$LINENO"; then :
13139 ac_cv_lib_dld_dld_link=yes
13141 ac_cv_lib_dld_dld_link=no
13143 rm -f core conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
13145 LIBS=$ac_check_lib_save_LIBS
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13148 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13149 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13150 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13171 if test "x$lt_cv_dlopen" != xno; then
13177 case $lt_cv_dlopen in
13179 save_CPPFLAGS="$CPPFLAGS"
13180 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13182 save_LDFLAGS="$LDFLAGS"
13183 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13186 LIBS="$lt_cv_dlopen_libs $LIBS"
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13189 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13190 if ${lt_cv_dlopen_self+:} false; then :
13191 $as_echo_n "(cached) " >&6
13193 if test "$cross_compiling" = yes; then :
13194 lt_cv_dlopen_self=cross
13196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13197 lt_status=$lt_dlunknown
13198 cat > conftest.$ac_ext <<_LT_EOF
13199 #line $LINENO "configure"
13200 #include "confdefs.h"
13209 # define LT_DLGLOBAL RTLD_GLOBAL
13212 # define LT_DLGLOBAL DL_GLOBAL
13214 # define LT_DLGLOBAL 0
13218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13219 find out it does not work in some platform. */
13220 #ifndef LT_DLLAZY_OR_NOW
13222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13225 # define LT_DLLAZY_OR_NOW DL_LAZY
13228 # define LT_DLLAZY_OR_NOW RTLD_NOW
13231 # define LT_DLLAZY_OR_NOW DL_NOW
13233 # define LT_DLLAZY_OR_NOW 0
13240 /* When -fvisbility=hidden is used, assume the code has been annotated
13241 correspondingly for the symbols needed. */
13242 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13243 int fnord () __attribute__((visibility("default")));
13246 int fnord () { return 42; }
13249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13250 int status = $lt_dlunknown;
13254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13257 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13258 else puts (dlerror ());
13260 /* dlclose (self); */
13268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13269 (eval $ac_link) 2>&5
13271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13272 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13273 (./conftest; exit; ) >&5 2>/dev/null
13275 case x$lt_status in
13276 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13277 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13278 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13281 # compilation failed
13282 lt_cv_dlopen_self=no
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13290 $as_echo "$lt_cv_dlopen_self" >&6; }
13292 if test "x$lt_cv_dlopen_self" = xyes; then
13293 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13295 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13296 if ${lt_cv_dlopen_self_static+:} false; then :
13297 $as_echo_n "(cached) " >&6
13299 if test "$cross_compiling" = yes; then :
13300 lt_cv_dlopen_self_static=cross
13302 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13303 lt_status=$lt_dlunknown
13304 cat > conftest.$ac_ext <<_LT_EOF
13305 #line $LINENO "configure"
13306 #include "confdefs.h"
13315 # define LT_DLGLOBAL RTLD_GLOBAL
13318 # define LT_DLGLOBAL DL_GLOBAL
13320 # define LT_DLGLOBAL 0
13324 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13325 find out it does not work in some platform. */
13326 #ifndef LT_DLLAZY_OR_NOW
13328 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13331 # define LT_DLLAZY_OR_NOW DL_LAZY
13334 # define LT_DLLAZY_OR_NOW RTLD_NOW
13337 # define LT_DLLAZY_OR_NOW DL_NOW
13339 # define LT_DLLAZY_OR_NOW 0
13346 /* When -fvisbility=hidden is used, assume the code has been annotated
13347 correspondingly for the symbols needed. */
13348 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13349 int fnord () __attribute__((visibility("default")));
13352 int fnord () { return 42; }
13355 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13356 int status = $lt_dlunknown;
13360 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13363 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13364 else puts (dlerror ());
13366 /* dlclose (self); */
13374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13375 (eval $ac_link) 2>&5
13377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13378 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13379 (./conftest; exit; ) >&5 2>/dev/null
13381 case x$lt_status in
13382 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13383 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13384 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13387 # compilation failed
13388 lt_cv_dlopen_self_static=no
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13396 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13399 CPPFLAGS="$save_CPPFLAGS"
13400 LDFLAGS="$save_LDFLAGS"
13405 case $lt_cv_dlopen_self in
13406 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13407 *) enable_dlopen_self=unknown ;;
13410 case $lt_cv_dlopen_self_static in
13411 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13412 *) enable_dlopen_self_static=unknown ;;
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13435 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13436 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13437 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13438 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13440 $as_echo "yes" >&6; }
13442 # FIXME - insert some real tests, host_os isn't really good enough
13445 if test -n "$STRIP" ; then
13446 striplib="$STRIP -x"
13447 old_striplib="$STRIP -S"
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13449 $as_echo "yes" >&6; }
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452 $as_echo "no" >&6; }
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13473 # Report which library types will actually be built
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13475 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13477 $as_echo "$can_build_shared" >&6; }
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13480 $as_echo_n "checking whether to build shared libraries... " >&6; }
13481 test "$can_build_shared" = "no" && enable_shared=no
13483 # On AIX, shared libraries and static libraries use the same namespace, and
13484 # are all built from PIC.
13487 test "$enable_shared" = yes && enable_static=no
13488 if test -n "$RANLIB"; then
13489 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13490 postinstall_cmds='$RANLIB $lib'
13495 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13496 test "$enable_shared" = yes && enable_static=no
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13501 $as_echo "$enable_shared" >&6; }
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13504 $as_echo_n "checking whether to build static libraries... " >&6; }
13505 # Make sure either enable_shared or enable_static is yes.
13506 test "$enable_shared" = yes || enable_static=yes
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13508 $as_echo "$enable_static" >&6; }
13515 ac_cpp='$CPP $CPPFLAGS'
13516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13536 ac_config_commands="$ac_config_commands libtool"
13541 # Only expand once:
13546 # Checks for header files.
13547 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
13549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13550 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13552 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13553 cat >>confdefs.h <<_ACEOF
13554 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13563 # Using own tests for int64* because autoconf builtin only give 32bit.
13564 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13565 if test "x$ac_cv_type_int8_t" = xyes; then :
13569 cat >>confdefs.h <<_ACEOF
13570 #define int8_t signed char
13575 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13576 if test "x$ac_cv_type_int16_t" = xyes; then :
13580 cat >>confdefs.h <<_ACEOF
13581 #define int16_t short
13586 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13587 if test "x$ac_cv_type_int32_t" = xyes; then :
13591 cat >>confdefs.h <<_ACEOF
13592 #define int32_t int
13597 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13598 if test "x$ac_cv_type_int64_t" = xyes; then :
13602 cat >>confdefs.h <<_ACEOF
13603 #define int64_t long long
13608 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13609 if test "x$ac_cv_type_uint8_t" = xyes; then :
13613 cat >>confdefs.h <<_ACEOF
13614 #define uint8_t unsigned char
13619 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13620 if test "x$ac_cv_type_uint16_t" = xyes; then :
13624 cat >>confdefs.h <<_ACEOF
13625 #define uint16_t unsigned short
13630 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13631 if test "x$ac_cv_type_uint32_t" = xyes; then :
13635 cat >>confdefs.h <<_ACEOF
13636 #define uint32_t unsigned int
13641 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13642 if test "x$ac_cv_type_uint64_t" = xyes; then :
13646 cat >>confdefs.h <<_ACEOF
13647 #define uint64_t unsigned long long
13652 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13653 if test "x$ac_cv_type_size_t" = xyes; then :
13657 cat >>confdefs.h <<_ACEOF
13658 #define size_t unsigned int
13663 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13664 if test "x$ac_cv_type_ssize_t" = xyes; then :
13668 cat >>confdefs.h <<_ACEOF
13669 #define ssize_t int
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13675 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13676 if ${ac_cv_type_uid_t+:} false; then :
13677 $as_echo_n "(cached) " >&6
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681 #include <sys/types.h>
13684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13685 $EGREP "uid_t" >/dev/null 2>&1; then :
13686 ac_cv_type_uid_t=yes
13688 ac_cv_type_uid_t=no
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13694 $as_echo "$ac_cv_type_uid_t" >&6; }
13695 if test $ac_cv_type_uid_t = no; then
13697 $as_echo "#define uid_t int" >>confdefs.h
13700 $as_echo "#define gid_t int" >>confdefs.h
13704 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13705 if test "x$ac_cv_type_pid_t" = xyes; then :
13709 cat >>confdefs.h <<_ACEOF
13715 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13716 if test "x$ac_cv_type_off_t" = xyes; then :
13720 cat >>confdefs.h <<_ACEOF
13721 #define off_t long int
13726 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
13727 $ac_includes_default
13728 #ifdef HAVE_WINSOCK2_H
13729 # include <winsock2.h>
13733 if test "x$ac_cv_type_u_char" = xyes; then :
13737 $as_echo "#define u_char unsigned char" >>confdefs.h
13741 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
13742 $ac_includes_default
13743 #ifdef HAVE_SYS_RESOURCE_H
13744 # include <sys/resource.h>
13748 if test "x$ac_cv_type_rlim_t" = xyes; then :
13752 $as_echo "#define rlim_t unsigned long" >>confdefs.h
13757 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13758 $ac_includes_default
13759 #ifdef HAVE_SYS_SOCKET_H
13760 # include <sys/socket.h>
13762 #ifdef HAVE_WS2TCPIP_H
13763 # include <ws2tcpip.h>
13767 if test "x$ac_cv_type_socklen_t" = xyes; then :
13771 $as_echo "#define socklen_t int" >>confdefs.h
13775 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
13776 $ac_includes_default
13777 #ifdef HAVE_SYS_TYPES_H
13778 # include <sys/types.h>
13780 #ifdef HAVE_NETINET_IN_H
13781 # include <netinet/in.h>
13785 if test "x$ac_cv_type_in_addr_t" = xyes; then :
13789 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
13793 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
13794 $ac_includes_default
13795 #ifdef HAVE_SYS_TYPES_H
13796 # include <sys/types.h>
13798 #ifdef HAVE_NETINET_IN_H
13799 # include <netinet/in.h>
13803 if test "x$ac_cv_type_in_port_t" = xyes; then :
13807 $as_echo "#define in_port_t uint16_t" >>confdefs.h
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
13812 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
13813 if test "$cross_compiling" = yes; then :
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
13815 $as_echo "cross-compile no" >&6; }
13817 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13819 case " $LIBOBJS " in
13820 *" memcmp.$ac_objext "* ) ;;
13821 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13831 #include <stdlib.h>
13832 #include <string.h>
13835 char a = 255, b = 0;
13836 if(memcmp(&a, &b, 1) < 0)
13842 if ac_fn_c_try_run "$LINENO"; then :
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13844 $as_echo "yes" >&6; }
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13849 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13851 case " $LIBOBJS " in
13852 *" memcmp.$ac_objext "* ) ;;
13853 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13860 conftest.$ac_objext conftest.beam conftest.$ac_ext
13864 # add option to disable the evil rpath
13866 # Check whether --enable-rpath was given.
13867 if test "${enable_rpath+set}" = set; then :
13868 enableval=$enable_rpath; enable_rpath=$enableval
13873 if test "x$enable_rpath" = xno; then
13874 ac_config_commands="$ac_config_commands disable-rpath"
13880 # check to see if libraries are needed for these functions.
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
13882 $as_echo_n "checking for library containing inet_pton... " >&6; }
13883 if ${ac_cv_search_inet_pton+:} false; then :
13884 $as_echo_n "(cached) " >&6
13886 ac_func_search_save_LIBS=$LIBS
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13900 return inet_pton ();
13905 for ac_lib in '' nsl; do
13906 if test -z "$ac_lib"; then
13907 ac_res="none required"
13910 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13912 if ac_fn_c_try_link "$LINENO"; then :
13913 ac_cv_search_inet_pton=$ac_res
13915 rm -f core conftest.err conftest.$ac_objext \
13917 if ${ac_cv_search_inet_pton+:} false; then :
13921 if ${ac_cv_search_inet_pton+:} false; then :
13924 ac_cv_search_inet_pton=no
13926 rm conftest.$ac_ext
13927 LIBS=$ac_func_search_save_LIBS
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
13930 $as_echo "$ac_cv_search_inet_pton" >&6; }
13931 ac_res=$ac_cv_search_inet_pton
13932 if test "$ac_res" != no; then :
13933 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13938 $as_echo_n "checking for library containing socket... " >&6; }
13939 if ${ac_cv_search_socket+:} false; then :
13940 $as_echo_n "(cached) " >&6
13942 ac_func_search_save_LIBS=$LIBS
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13946 /* Override any GCC internal prototype to avoid an error.
13947 Use char because int might match the return type of a GCC
13948 builtin and then its argument prototype would still apply. */
13961 for ac_lib in '' socket; do
13962 if test -z "$ac_lib"; then
13963 ac_res="none required"
13966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13968 if ac_fn_c_try_link "$LINENO"; then :
13969 ac_cv_search_socket=$ac_res
13971 rm -f core conftest.err conftest.$ac_objext \
13973 if ${ac_cv_search_socket+:} false; then :
13977 if ${ac_cv_search_socket+:} false; then :
13980 ac_cv_search_socket=no
13982 rm conftest.$ac_ext
13983 LIBS=$ac_func_search_save_LIBS
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13986 $as_echo "$ac_cv_search_socket" >&6; }
13987 ac_res=$ac_cv_search_socket
13988 if test "$ac_res" != no; then :
13989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13994 # check wether strptime also works
13996 # check some functions of the OS before linking libs (while still runnable).
13997 for ac_header in unistd.h
13999 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14000 if test "x$ac_cv_header_unistd_h" = xyes; then :
14001 cat >>confdefs.h <<_ACEOF
14002 #define HAVE_UNISTD_H 1
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14010 $as_echo_n "checking for working chown... " >&6; }
14011 if ${ac_cv_func_chown_works+:} false; then :
14012 $as_echo_n "(cached) " >&6
14014 if test "$cross_compiling" = yes; then :
14015 ac_cv_func_chown_works=no
14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h. */
14019 $ac_includes_default
14025 char *f = "conftest.chown";
14026 struct stat before, after;
14028 if (creat (f, 0600) < 0)
14030 if (stat (f, &before) < 0)
14032 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14034 if (stat (f, &after) < 0)
14036 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14042 if ac_fn_c_try_run "$LINENO"; then :
14043 ac_cv_func_chown_works=yes
14045 ac_cv_func_chown_works=no
14047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14048 conftest.$ac_objext conftest.beam conftest.$ac_ext
14051 rm -f conftest.chown
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14055 $as_echo "$ac_cv_func_chown_works" >&6; }
14056 if test $ac_cv_func_chown_works = yes; then
14058 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14062 for ac_header in vfork.h
14064 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14065 if test "x$ac_cv_header_vfork_h" = xyes; then :
14066 cat >>confdefs.h <<_ACEOF
14067 #define HAVE_VFORK_H 1
14074 for ac_func in fork vfork
14076 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14077 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14078 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14079 cat >>confdefs.h <<_ACEOF
14080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14086 if test "x$ac_cv_func_fork" = xyes; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14088 $as_echo_n "checking for working fork... " >&6; }
14089 if ${ac_cv_func_fork_works+:} false; then :
14090 $as_echo_n "(cached) " >&6
14092 if test "$cross_compiling" = yes; then :
14093 ac_cv_func_fork_works=cross
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14097 $ac_includes_default
14102 /* By Ruediger Kuhlmann. */
14103 return fork () < 0;
14109 if ac_fn_c_try_run "$LINENO"; then :
14110 ac_cv_func_fork_works=yes
14112 ac_cv_func_fork_works=no
14114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14115 conftest.$ac_objext conftest.beam conftest.$ac_ext
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14120 $as_echo "$ac_cv_func_fork_works" >&6; }
14123 ac_cv_func_fork_works=$ac_cv_func_fork
14125 if test "x$ac_cv_func_fork_works" = xcross; then
14127 *-*-amigaos* | *-*-msdosdjgpp*)
14128 # Override, as these systems have only a dummy fork() stub
14129 ac_cv_func_fork_works=no
14132 ac_cv_func_fork_works=yes
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14136 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14138 ac_cv_func_vfork_works=$ac_cv_func_vfork
14139 if test "x$ac_cv_func_vfork" = xyes; then
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14141 $as_echo_n "checking for working vfork... " >&6; }
14142 if ${ac_cv_func_vfork_works+:} false; then :
14143 $as_echo_n "(cached) " >&6
14145 if test "$cross_compiling" = yes; then :
14146 ac_cv_func_vfork_works=cross
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150 /* Thanks to Paul Eggert for this test. */
14151 $ac_includes_default
14152 #include <sys/wait.h>
14153 #ifdef HAVE_VFORK_H
14154 # include <vfork.h>
14156 /* On some sparc systems, changes by the child to local and incoming
14157 argument registers are propagated back to the parent. The compiler
14158 is told about this with #include <vfork.h>, but some compilers
14159 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14160 static variable whose address is put into a register that is
14161 clobbered by the vfork. */
14164 sparc_address_test (int arg)
14166 sparc_address_test (arg) int arg;
14169 static pid_t child;
14187 pid_t parent = getpid ();
14190 sparc_address_test (0);
14195 /* Here is another test for sparc vfork register problems. This
14196 test uses lots of local variables, at least as many local
14197 variables as main has allocated so far including compiler
14198 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14199 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14200 reuse the register of parent for one of the local variables,
14201 since it will think that parent can't possibly be used any more
14202 in this routine. Assigning to the local variable will thus
14203 munge parent in the parent process. */
14205 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14206 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14207 /* Convince the compiler that p..p7 are live; otherwise, it might
14208 use the same hardware register for all 8 local variables. */
14209 if (p != p1 || p != p2 || p != p3 || p != p4
14210 || p != p5 || p != p6 || p != p7)
14213 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14214 from child file descriptors. If the child closes a descriptor
14215 before it execs or exits, this munges the parent's descriptor
14216 as well. Test for this by closing stdout in the child. */
14217 _exit(close(fileno(stdout)) != 0);
14222 while (wait(&status) != child)
14225 /* Was there some problem with vforking? */
14228 /* Did the child fail? (This shouldn't happen.) */
14231 /* Did the vfork/compiler bug occur? */
14232 || parent != getpid()
14234 /* Did the file descriptor bug occur? */
14235 || fstat(fileno(stdout), &st) != 0
14240 if ac_fn_c_try_run "$LINENO"; then :
14241 ac_cv_func_vfork_works=yes
14243 ac_cv_func_vfork_works=no
14245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14246 conftest.$ac_objext conftest.beam conftest.$ac_ext
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14251 $as_echo "$ac_cv_func_vfork_works" >&6; }
14254 if test "x$ac_cv_func_fork_works" = xcross; then
14255 ac_cv_func_vfork_works=$ac_cv_func_vfork
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14257 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14260 if test "x$ac_cv_func_vfork_works" = xyes; then
14262 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14266 $as_echo "#define vfork fork" >>confdefs.h
14269 if test "x$ac_cv_func_fork_works" = xyes; then
14271 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14276 $as_echo_n "checking return type of signal handlers... " >&6; }
14277 if ${ac_cv_type_signal+:} false; then :
14278 $as_echo_n "(cached) " >&6
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282 #include <sys/types.h>
14283 #include <signal.h>
14288 return *(signal (0, 0)) (0) == 1;
14293 if ac_fn_c_try_compile "$LINENO"; then :
14294 ac_cv_type_signal=int
14296 ac_cv_type_signal=void
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14301 $as_echo "$ac_cv_type_signal" >&6; }
14303 cat >>confdefs.h <<_ACEOF
14304 #define RETSIGTYPE $ac_cv_type_signal
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14309 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14310 if ${ac_cv_sys_largefile_source+:} false; then :
14311 $as_echo_n "(cached) " >&6
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316 #include <sys/types.h> /* for off_t */
14321 int (*fp) (FILE *, off_t, int) = fseeko;
14322 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14327 if ac_fn_c_try_link "$LINENO"; then :
14328 ac_cv_sys_largefile_source=no; break
14330 rm -f core conftest.err conftest.$ac_objext \
14331 conftest$ac_exeext conftest.$ac_ext
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334 #define _LARGEFILE_SOURCE 1
14335 #include <sys/types.h> /* for off_t */
14340 int (*fp) (FILE *, off_t, int) = fseeko;
14341 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14346 if ac_fn_c_try_link "$LINENO"; then :
14347 ac_cv_sys_largefile_source=1; break
14349 rm -f core conftest.err conftest.$ac_objext \
14350 conftest$ac_exeext conftest.$ac_ext
14351 ac_cv_sys_largefile_source=unknown
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14356 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14357 case $ac_cv_sys_largefile_source in #(
14360 cat >>confdefs.h <<_ACEOF
14361 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14367 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14368 # in glibc 2.1.3, but that breaks too many other things.
14369 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14370 if test $ac_cv_sys_largefile_source != unknown; then
14372 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14377 # Check whether --enable-largefile was given.
14378 if test "${enable_largefile+set}" = set; then :
14379 enableval=$enable_largefile;
14382 if test "$enable_largefile" != no; then
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14385 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14386 if ${ac_cv_sys_largefile_CC+:} false; then :
14387 $as_echo_n "(cached) " >&6
14389 ac_cv_sys_largefile_CC=no
14390 if test "$GCC" != yes; then
14393 # IRIX 6.2 and later do not support large files by default,
14394 # so use the C compiler's -n32 option if that helps.
14395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14396 /* end confdefs.h. */
14397 #include <sys/types.h>
14398 /* Check that off_t can represent 2**63 - 1 correctly.
14399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14400 since some C++ compilers masquerading as C compilers
14401 incorrectly reject 9223372036854775807. */
14402 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14404 && LARGE_OFF_T % 2147483647 == 1)
14414 if ac_fn_c_try_compile "$LINENO"; then :
14417 rm -f core conftest.err conftest.$ac_objext
14419 if ac_fn_c_try_compile "$LINENO"; then :
14420 ac_cv_sys_largefile_CC=' -n32'; break
14422 rm -f core conftest.err conftest.$ac_objext
14426 rm -f conftest.$ac_ext
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14430 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14431 if test "$ac_cv_sys_largefile_CC" != no; then
14432 CC=$CC$ac_cv_sys_largefile_CC
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14436 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14437 if ${ac_cv_sys_file_offset_bits+:} false; then :
14438 $as_echo_n "(cached) " >&6
14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h. */
14443 #include <sys/types.h>
14444 /* Check that off_t can represent 2**63 - 1 correctly.
14445 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14446 since some C++ compilers masquerading as C compilers
14447 incorrectly reject 9223372036854775807. */
14448 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14449 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14450 && LARGE_OFF_T % 2147483647 == 1)
14460 if ac_fn_c_try_compile "$LINENO"; then :
14461 ac_cv_sys_file_offset_bits=no; break
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14466 #define _FILE_OFFSET_BITS 64
14467 #include <sys/types.h>
14468 /* Check that off_t can represent 2**63 - 1 correctly.
14469 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14470 since some C++ compilers masquerading as C compilers
14471 incorrectly reject 9223372036854775807. */
14472 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14474 && LARGE_OFF_T % 2147483647 == 1)
14484 if ac_fn_c_try_compile "$LINENO"; then :
14485 ac_cv_sys_file_offset_bits=64; break
14487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14488 ac_cv_sys_file_offset_bits=unknown
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14493 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14494 case $ac_cv_sys_file_offset_bits in #(
14497 cat >>confdefs.h <<_ACEOF
14498 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14503 if test $ac_cv_sys_file_offset_bits = unknown; then
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14505 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14506 if ${ac_cv_sys_large_files+:} false; then :
14507 $as_echo_n "(cached) " >&6
14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511 /* end confdefs.h. */
14512 #include <sys/types.h>
14513 /* Check that off_t can represent 2**63 - 1 correctly.
14514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14515 since some C++ compilers masquerading as C compilers
14516 incorrectly reject 9223372036854775807. */
14517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14519 && LARGE_OFF_T % 2147483647 == 1)
14529 if ac_fn_c_try_compile "$LINENO"; then :
14530 ac_cv_sys_large_files=no; break
14532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h. */
14535 #define _LARGE_FILES 1
14536 #include <sys/types.h>
14537 /* Check that off_t can represent 2**63 - 1 correctly.
14538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14539 since some C++ compilers masquerading as C compilers
14540 incorrectly reject 9223372036854775807. */
14541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14543 && LARGE_OFF_T % 2147483647 == 1)
14553 if ac_fn_c_try_compile "$LINENO"; then :
14554 ac_cv_sys_large_files=1; break
14556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14557 ac_cv_sys_large_files=unknown
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14562 $as_echo "$ac_cv_sys_large_files" >&6; }
14563 case $ac_cv_sys_large_files in #(
14566 cat >>confdefs.h <<_ACEOF
14567 #define _LARGE_FILES $ac_cv_sys_large_files
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14581 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14582 cache=_D_LARGEFILE_SOURCE_1
14583 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
14584 $as_echo_n "(cached) " >&6
14590 int a = fseeko(stdin, 0, 0);
14594 echo 'void f(){}' >>conftest.c
14595 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14596 eval "cv_prog_cc_flag_needed_$cache=no"
14599 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14600 eval "cv_prog_cc_flag_needed_$cache=yes"
14602 eval "cv_prog_cc_flag_needed_$cache=fail"
14603 #echo 'Test with flag fails too!'
14605 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14606 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14611 rm -f conftest conftest.c conftest.o
14615 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14617 $as_echo "yes" >&6; }
14619 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
14621 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14623 $as_echo "no" >&6; }
14624 #echo 'Test with flag is no!'
14626 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14627 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14633 $as_echo "failed" >&6; }
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14642 $as_echo_n "checking if nonblocking sockets work... " >&6; }
14643 if echo $target | grep mingw32 >/dev/null; then
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14645 $as_echo "no (windows)" >&6; }
14647 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14650 if test "$cross_compiling" = yes; then :
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
14653 $as_echo "crosscompile(yes)" >&6; }
14656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657 /* end confdefs.h. */
14661 #include <string.h>
14662 #include <stdlib.h>
14665 #ifdef HAVE_SYS_TYPES_H
14666 #include <sys/types.h>
14668 #ifdef HAVE_SYS_SOCKET_H
14669 #include <sys/socket.h>
14671 #ifdef HAVE_NETINET_IN_H
14672 #include <netinet/in.h>
14674 #ifdef HAVE_ARPA_INET_H
14675 #include <arpa/inet.h>
14677 #ifdef HAVE_UNISTD_H
14678 #include <unistd.h>
14690 struct sockaddr_in a;
14691 /* test if select and nonblocking reads work well together */
14693 fork child to send 10 messages.
14695 then try to nonblocking read the 10 messages
14696 then, nonblocking read must give EAGAIN
14699 port = 12345 + (time(0)%32);
14700 sfd = socket(PF_INET, SOCK_DGRAM, 0);
14705 memset(&a, 0, sizeof(a));
14706 a.sin_family = AF_INET;
14707 a.sin_port = htons(port);
14708 a.sin_addr.s_addr = inet_addr("127.0.0.1");
14709 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14713 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
14718 cfd = socket(PF_INET, SOCK_DGRAM, 0);
14720 perror("client socket");
14724 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14725 perror("client bind");
14728 a.sin_port = htons(port);
14730 /* no handler, causes exit in 10 seconds */
14733 /* send and receive on the socket */
14734 if((p=fork()) == 0) {
14735 for(i=0; i<num; i++) {
14736 if(sendto(cfd, &i, sizeof(i), 0,
14737 (struct sockaddr*)&a, sizeof(a)) < 0) {
14751 FD_SET(sfd, &rset);
14752 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
14758 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
14759 if(errno == EAGAIN)
14766 /* now we want to get EAGAIN: nonblocking goodness */
14768 recv(sfd, &x, sizeof(x), 0);
14769 if(errno != EAGAIN) {
14770 perror("trying to recv again");
14773 /* EAGAIN encountered */
14782 if ac_fn_c_try_run "$LINENO"; then :
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14785 $as_echo "yes" >&6; }
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14790 $as_echo "no" >&6; }
14792 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14797 conftest.$ac_objext conftest.beam conftest.$ac_ext
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
14804 $as_echo_n "checking whether mkdir has one arg... " >&6; }
14805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806 /* end confdefs.h. */
14809 #include <unistd.h>
14810 #ifdef HAVE_WINSOCK2_H
14811 #include <winsock2.h>
14813 #ifdef HAVE_SYS_STAT_H
14814 #include <sys/stat.h>
14821 (void)mkdir("directory");
14827 if ac_fn_c_try_compile "$LINENO"; then :
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14829 $as_echo "yes" >&6; }
14831 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14836 $as_echo "no" >&6; }
14839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14841 for ac_func in strptime
14843 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
14844 if test "x$ac_cv_func_strptime" = xyes; then :
14845 cat >>confdefs.h <<_ACEOF
14846 #define HAVE_STRPTIME 1
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
14850 $as_echo_n "checking whether strptime works... " >&6; }
14851 if test c${cross_compiling} = cno; then
14852 if test "$cross_compiling" = yes; then :
14853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14855 as_fn_error $? "cannot run test program while cross compiling
14856 See \`config.log' for more details" "$LINENO" 5; }
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14861 #define _XOPEN_SOURCE
14863 int main(void) { struct tm tm; char *res;
14864 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);
14865 if (!res) return 2;
14866 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
14867 if (!res) return 1; return 0; }
14870 if ac_fn_c_try_run "$LINENO"; then :
14871 eval "ac_cv_c_strptime_works=yes"
14873 eval "ac_cv_c_strptime_works=no"
14875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14876 conftest.$ac_objext conftest.beam conftest.$ac_ext
14880 eval "ac_cv_c_strptime_works=maybe"
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
14883 $as_echo "$ac_cv_c_strptime_works" >&6; }
14884 if test $ac_cv_c_strptime_works = no; then
14885 case " $LIBOBJS " in
14886 *" strptime.$ac_objext "* ) ;;
14887 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
14893 cat >>confdefs.h <<_ACEOF
14894 #define STRPTIME_WORKS 1
14900 case " $LIBOBJS " in
14901 *" strptime.$ac_objext "* ) ;;
14902 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
14910 # set memory allocation checking if requested
14911 # Check whether --enable-alloc-checks was given.
14912 if test "${enable_alloc_checks+set}" = set; then :
14913 enableval=$enable_alloc_checks;
14916 # Check whether --enable-alloc-lite was given.
14917 if test "${enable_alloc_lite+set}" = set; then :
14918 enableval=$enable_alloc_lite;
14921 # Check whether --enable-alloc-nonregional was given.
14922 if test "${enable_alloc_nonregional+set}" = set; then :
14923 enableval=$enable_alloc_nonregional;
14926 if test x_$enable_alloc_nonregional = x_yes; then
14928 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
14931 if test x_$enable_alloc_checks = x_yes; then
14933 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
14936 if test x_$enable_alloc_lite = x_yes; then
14938 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14943 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14944 if test "$cross_compiling" = yes; then :
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
14946 $as_echo "no (crosscompile)" >&6; }
14947 case " $LIBOBJS " in
14948 *" malloc.$ac_objext "* ) ;;
14949 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14954 cat >>confdefs.h <<_ACEOF
14955 #define malloc rpl_malloc_unbound
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14961 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14962 #include <stdlib.h>
14970 if(malloc(0) != 0) return 1;
14976 if ac_fn_c_try_run "$LINENO"; then :
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14978 $as_echo "no" >&6; }
14979 case " $LIBOBJS " in
14980 *" malloc.$ac_objext "* ) ;;
14981 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14986 cat >>confdefs.h <<_ACEOF
14987 #define malloc rpl_malloc_unbound
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14992 $as_echo "yes" >&6; }
14994 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
14997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14998 conftest.$ac_objext conftest.beam conftest.$ac_ext
15005 # check windows threads (we use them, not pthreads, on windows).
15006 if test "$on_mingw" = "yes"; then
15007 # check windows threads
15008 for ac_header in windows.h
15010 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15012 if test "x$ac_cv_header_windows_h" = xyes; then :
15013 cat >>confdefs.h <<_ACEOF
15014 #define HAVE_WINDOWS_H 1
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15022 $as_echo_n "checking for CreateThread... " >&6; }
15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15026 #ifdef HAVE_WINDOWS_H
15027 #include <windows.h>
15034 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15040 if ac_fn_c_try_compile "$LINENO"; then :
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15042 $as_echo "yes" >&6; }
15044 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15049 $as_echo "no" >&6; }
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055 # not on mingw, check thread libraries.
15057 # check for thread library.
15058 # check this first, so that the pthread lib does not get linked in via
15059 # libssl or libpython, and thus distorts the tests, and we end up using
15060 # the non-threadsafe C libraries.
15062 # Check whether --with-pthreads was given.
15063 if test "${with_pthreads+set}" = set; then :
15064 withval=$with_pthreads;
15069 ub_have_pthreads=no
15070 if test x_$withval != x_no; then
15075 ac_cpp='$CPP $CPPFLAGS'
15076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15082 # We used to check for pthread.h first, but this fails if pthread.h
15083 # requires special compiler flags (e.g. on True64 or Sequent).
15084 # It gets checked for in the link test anyway.
15086 # First of all, check if the user has set any of the PTHREAD_LIBS,
15087 # etcetera environment variables, and if threads linking works using
15089 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15090 save_CFLAGS="$CFLAGS"
15091 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15093 LIBS="$PTHREAD_LIBS $LIBS"
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15095 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097 /* end confdefs.h. */
15099 /* Override any GCC internal prototype to avoid an error.
15100 Use char because int might match the return type of a GCC
15101 builtin and then its argument prototype would still apply. */
15105 char pthread_join ();
15109 return pthread_join ();
15114 if ac_fn_c_try_link "$LINENO"; then :
15117 rm -f core conftest.err conftest.$ac_objext \
15118 conftest$ac_exeext conftest.$ac_ext
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15120 $as_echo "$acx_pthread_ok" >&6; }
15121 if test x"$acx_pthread_ok" = xno; then
15126 CFLAGS="$save_CFLAGS"
15129 # We must check for the threads library under a number of different
15130 # names; the ordering is very important because some systems
15131 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15132 # libraries is broken (non-POSIX).
15134 # Create a list of thread flags to try. Items starting with a "-" are
15135 # C compiler flags, and other items are library names, except for "none"
15136 # which indicates that we try without any flags at all, and "pthread-config"
15137 # which is a program returning the flags for the Pth emulation library.
15139 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15141 # The ordering *is* (sometimes) important. Some notes on the
15142 # individual items follow:
15144 # pthreads: AIX (must check this before -lpthread)
15145 # none: in case threads are in libc; should be tried before -Kthread and
15146 # other compiler flags to prevent continual compiler warnings
15147 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15148 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15149 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15150 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15151 # -pthreads: Solaris/gcc
15152 # -mthreads: Mingw32/gcc, Lynx/gcc
15153 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15154 # doesn't hurt to check since this sometimes defines pthreads too;
15155 # also defines -D_REENTRANT)
15156 # ... -mt is also the pthreads flag for HP/aCC
15157 # pthread: Linux, etcetera
15158 # --thread-safe: KAI C++
15159 # pthread-config: use pthread-config program (for GNU Pth library)
15161 case "${host_cpu}-${host_os}" in
15164 # On Solaris (at least, for some versions), libc contains stubbed
15165 # (non-functional) versions of the pthreads routines, so link-based
15166 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15167 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15168 # a function called by this macro, so we could check for that, but
15169 # who knows whether they'll stub that too in a future libc.) So,
15170 # we'll just look for -pthreads and -lpthread first:
15172 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15176 if test x"$acx_pthread_ok" = xno; then
15177 for flag in $acx_pthread_flags; do
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15182 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15187 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15188 PTHREAD_CFLAGS="$flag"
15192 # Extract the first word of "pthread-config", so it can be a program name with args.
15193 set dummy pthread-config; ac_word=$2
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15195 $as_echo_n "checking for $ac_word... " >&6; }
15196 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15197 $as_echo_n "(cached) " >&6
15199 if test -n "$acx_pthread_config"; then
15200 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15203 for as_dir in $PATH
15206 test -z "$as_dir" && as_dir=.
15207 for ac_exec_ext in '' $ac_executable_extensions; do
15208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15209 ac_cv_prog_acx_pthread_config="yes"
15210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15217 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15220 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15221 if test -n "$acx_pthread_config"; then
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15223 $as_echo "$acx_pthread_config" >&6; }
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226 $as_echo "no" >&6; }
15230 if test x"$acx_pthread_config" = xno; then continue; fi
15231 PTHREAD_CFLAGS="`pthread-config --cflags`"
15232 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15237 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15238 PTHREAD_LIBS="-l$flag"
15243 save_CFLAGS="$CFLAGS"
15244 LIBS="$PTHREAD_LIBS $LIBS"
15245 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15247 # Check for various functions. We must include pthread.h,
15248 # since some functions may be macros. (On the Sequent, we
15249 # need a special flag -Kthread to make this header compile.)
15250 # We check for pthread_join because it is in -lpthread on IRIX
15251 # while pthread_create is in libc. We check for pthread_attr_init
15252 # due to DEC craziness with -lpthreads. We check for
15253 # pthread_cleanup_push because it is one of the few pthread
15254 # functions on Solaris that doesn't have a non-functional libc stub.
15255 # We try pthread_create on general principles.
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15258 #include <pthread.h>
15262 pthread_t th; pthread_join(th, 0);
15263 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15264 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15269 if ac_fn_c_try_link "$LINENO"; then :
15272 rm -f core conftest.err conftest.$ac_objext \
15273 conftest$ac_exeext conftest.$ac_ext
15276 CFLAGS="$save_CFLAGS"
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15279 $as_echo "$acx_pthread_ok" >&6; }
15280 if test "x$acx_pthread_ok" = xyes; then
15289 # Various other checks:
15290 if test "x$acx_pthread_ok" = xyes; then
15292 LIBS="$PTHREAD_LIBS $LIBS"
15293 save_CFLAGS="$CFLAGS"
15294 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15296 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15298 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15300 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h. */
15303 #include <pthread.h>
15307 int attr=$attr; return attr;
15312 if ac_fn_c_try_link "$LINENO"; then :
15313 attr_name=$attr; break
15315 rm -f core conftest.err conftest.$ac_objext \
15316 conftest$ac_exeext conftest.$ac_ext
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15319 $as_echo "$attr_name" >&6; }
15320 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15322 cat >>confdefs.h <<_ACEOF
15323 #define PTHREAD_CREATE_JOINABLE $attr_name
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15329 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15331 case "${host_cpu}-${host_os}" in
15332 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15333 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15336 $as_echo "${flag}" >&6; }
15337 if test "x$flag" != xno; then
15338 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15342 CFLAGS="$save_CFLAGS"
15344 # More AIX lossage: must compile with xlc_r or cc_r
15345 if test x"$GCC" != xyes; then
15346 for ac_prog in xlc_r cc_r
15348 # Extract the first word of "$ac_prog", so it can be a program name with args.
15349 set dummy $ac_prog; ac_word=$2
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15351 $as_echo_n "checking for $ac_word... " >&6; }
15352 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15353 $as_echo_n "(cached) " >&6
15355 if test -n "$PTHREAD_CC"; then
15356 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15359 for as_dir in $PATH
15362 test -z "$as_dir" && as_dir=.
15363 for ac_exec_ext in '' $ac_executable_extensions; do
15364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15365 ac_cv_prog_PTHREAD_CC="$ac_prog"
15366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15375 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15376 if test -n "$PTHREAD_CC"; then
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15378 $as_echo "$PTHREAD_CC" >&6; }
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15381 $as_echo "no" >&6; }
15385 test -n "$PTHREAD_CC" && break
15387 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15400 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15401 if test x"$acx_pthread_ok" = xyes; then
15404 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15406 LIBS="$PTHREAD_LIBS $LIBS"
15407 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15409 ub_have_pthreads=yes
15410 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15412 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
15414 cat >>confdefs.h <<_ACEOF
15415 #define HAVE_PTHREAD_SPINLOCK_T 1
15420 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15422 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15424 cat >>confdefs.h <<_ACEOF
15425 #define HAVE_PTHREAD_RWLOCK_T 1
15438 ac_cpp='$CPP $CPPFLAGS'
15439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15446 # check solaris thread library
15448 # Check whether --with-solaris-threads was given.
15449 if test "${with_solaris_threads+set}" = set; then :
15450 withval=$with_solaris_threads;
15455 ub_have_sol_threads=no
15456 if test x_$withval != x_no; then
15457 if test x_$ub_have_pthreads != x_no; then
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15459 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15462 $as_echo_n "checking for library containing thr_create... " >&6; }
15463 if ${ac_cv_search_thr_create+:} false; then :
15464 $as_echo_n "(cached) " >&6
15466 ac_func_search_save_LIBS=$LIBS
15467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15468 /* end confdefs.h. */
15470 /* Override any GCC internal prototype to avoid an error.
15471 Use char because int might match the return type of a GCC
15472 builtin and then its argument prototype would still apply. */
15476 char thr_create ();
15480 return thr_create ();
15485 for ac_lib in '' thread; do
15486 if test -z "$ac_lib"; then
15487 ac_res="none required"
15490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15492 if ac_fn_c_try_link "$LINENO"; then :
15493 ac_cv_search_thr_create=$ac_res
15495 rm -f core conftest.err conftest.$ac_objext \
15497 if ${ac_cv_search_thr_create+:} false; then :
15501 if ${ac_cv_search_thr_create+:} false; then :
15504 ac_cv_search_thr_create=no
15506 rm conftest.$ac_ext
15507 LIBS=$ac_func_search_save_LIBS
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15510 $as_echo "$ac_cv_search_thr_create" >&6; }
15511 ac_res=$ac_cv_search_thr_create
15512 if test "$ac_res" != no; then :
15513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15516 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15522 $as_echo_n "checking whether $CC supports -mt... " >&6; }
15523 cache=`echo mt | sed 'y%.=/+-%___p_%'`
15524 if eval \${cv_prog_cc_flag_$cache+:} false; then :
15525 $as_echo_n "(cached) " >&6
15528 echo 'void f(){}' >conftest.c
15529 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15530 eval "cv_prog_cc_flag_$cache=yes"
15532 eval "cv_prog_cc_flag_$cache=no"
15534 rm -f conftest conftest.o conftest.c
15538 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15540 $as_echo "yes" >&6; }
15542 CFLAGS="$CFLAGS -mt"
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15545 $as_echo "no" >&6; }
15547 CFLAGS="$CFLAGS -D_REENTRANT"
15550 ub_have_sol_threads=yes
15554 as_fn_error $? "no solaris threads found." "$LINENO" 5
15561 fi # end of non-mingw check of thread libraries
15563 # Check for PyUnbound
15565 # Check whether --with-pyunbound was given.
15566 if test "${with_pyunbound+set}" = set; then :
15567 withval=$with_pyunbound;
15574 ub_with_pyunbound=no
15575 if test x_$withval != x_no; then
15576 ub_with_pyunbound=yes
15580 # Check for Python module
15582 # Check whether --with-pythonmodule was given.
15583 if test "${with_pythonmodule+set}" = set; then :
15584 withval=$with_pythonmodule;
15590 ub_with_pythonmod=no
15591 if test x_$withval != x_no; then
15592 ub_with_pythonmod=yes
15596 # Check for Python & SWIG only on PyUnbound or PyModule
15597 if test x_$ub_test_python != x_no; then
15601 ac_save_LIBS="$LIBS"
15603 # Allow the use of a (user set) custom python version
15607 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15608 set dummy python$PYTHON_VERSION; ac_word=$2
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15610 $as_echo_n "checking for $ac_word... " >&6; }
15611 if ${ac_cv_path_PYTHON+:} false; then :
15612 $as_echo_n "(cached) " >&6
15616 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15620 for as_dir in $PATH
15623 test -z "$as_dir" && as_dir=.
15624 for ac_exec_ext in '' $ac_executable_extensions; do
15625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15626 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15637 PYTHON=$ac_cv_path_PYTHON
15638 if test -n "$PYTHON"; then
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15640 $as_echo "$PYTHON" >&6; }
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15643 $as_echo "no" >&6; }
15647 if test -z "$PYTHON"; then
15648 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15652 if test -z "$PYTHON_VERSION"; then
15653 PYTHON_VERSION=`$PYTHON -c "import sys, string; \
15654 print string.split(sys.version)[0]"`
15658 # Check for a version of Python >= 2.1.0
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
15661 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
15662 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15663 ver = string.split(sys.version)[0]; \
15664 print ver >= '2.1.0'"`
15665 if test "$ac_supports_python_ver" != "True"; then
15666 if test -z "$PYTHON_NOVERSIONCHECK"; then
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15668 $as_echo "no" >&6; }
15669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15672 This version of the AC_PYTHON_DEVEL macro
15673 doesn't work properly with versions of Python before
15674 2.1.0. You may need to re-run configure, setting the
15675 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
15676 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
15677 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
15678 to something else than an empty string.
15680 See \`config.log' for more details" "$LINENO" 5; }
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
15683 $as_echo "skip at user request" >&6; }
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15687 $as_echo "yes" >&6; }
15691 # if the macro parameter ``version'' is set, honour it
15693 if test -n ""; then
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
15695 $as_echo_n "checking for a version of Python ... " >&6; }
15696 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15697 ver = string.split(sys.version)[0]; \
15699 if test "$ac_supports_python_ver" = "True"; then
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15701 $as_echo "yes" >&6; }
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15704 $as_echo "no" >&6; }
15705 as_fn_error $? "this package requires Python .
15706 If you have it installed, but it isn't the default Python
15707 interpreter in your system path, please pass the PYTHON_VERSION
15708 variable to configure. See \`\`configure --help'' for reference.
15715 # Check if you have distutils, else fail
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15718 $as_echo_n "checking for the distutils Python package... " >&6; }
15719 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15720 if test -z "$ac_distutils_result"; then
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15722 $as_echo "yes" >&6; }
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15725 $as_echo "no" >&6; }
15726 as_fn_error $? "cannot import Python module \"distutils\".
15727 Please check your Python installation. The error was:
15728 $ac_distutils_result" "$LINENO" 5
15733 # Check for Python include path
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15736 $as_echo_n "checking for Python include path... " >&6; }
15737 if test -z "$PYTHON_CPPFLAGS"; then
15738 python_path=`$PYTHON -c "import distutils.sysconfig; \
15739 print distutils.sysconfig.get_python_inc();"`
15740 if test -n "${python_path}"; then
15741 python_path="-I$python_path"
15743 PYTHON_CPPFLAGS=$python_path
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15746 $as_echo "$PYTHON_CPPFLAGS" >&6; }
15750 # Check for Python library path
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15753 $as_echo_n "checking for Python library path... " >&6; }
15754 if test -z "$PYTHON_LDFLAGS"; then
15755 # (makes two attempts to ensure we've got a version number
15756 # from the interpreter)
15757 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
15758 from string import join; \
15759 print join(get_config_vars('VERSION'))"`
15760 if test "$py_version" = "None"; then
15761 if test -n "$PYTHON_VERSION"; then
15762 py_version=$PYTHON_VERSION
15764 py_version=`$PYTHON -c "import sys; \
15765 print sys.version[:3]"`
15769 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
15770 from string import join; \
15771 print '-L' + get_python_lib(0,1), \
15772 '-L' + os.path.dirname(get_python_lib(0,1)), \
15773 '-lpython';"`$py_version
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
15776 $as_echo "$PYTHON_LDFLAGS" >&6; }
15780 # Check for site packages
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15783 $as_echo_n "checking for Python site-packages path... " >&6; }
15784 if test -z "$PYTHON_SITE_PKG"; then
15785 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15786 print distutils.sysconfig.get_python_lib(1,0);"`
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15789 $as_echo "$PYTHON_SITE_PKG" >&6; }
15793 # libraries which must be linked in when embedding
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
15796 $as_echo_n "checking python extra libraries... " >&6; }
15797 if test -z "$PYTHON_EXTRA_LIBS"; then
15798 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
15799 conf = distutils.sysconfig.get_config_var; \
15800 print conf('LOCALMODLIBS'), conf('LIBS')"`
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
15803 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
15807 # linking flags needed when embedding
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
15810 $as_echo_n "checking python extra linking flags... " >&6; }
15811 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
15812 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
15813 conf = distutils.sysconfig.get_config_var; \
15814 print conf('LINKFORSHARED')"`
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
15817 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
15821 # final check to see if everything compiles alright
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
15824 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
15826 ac_cpp='$CPP $CPPFLAGS'
15827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15831 # save current global flags
15832 ac_save_LIBS="$LIBS"
15833 ac_save_CPPFLAGS="$CPPFLAGS"
15835 LIBS="$LIBS $PYTHON_LDFLAGS"
15836 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15840 #include <Python.h>
15852 if ac_fn_c_try_link "$LINENO"; then :
15857 rm -f core conftest.err conftest.$ac_objext \
15858 conftest$ac_exeext conftest.$ac_ext
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
15861 $as_echo "$pythonexists" >&6; }
15863 if test ! "$pythonexists" = "yes"; then
15865 Could not link test program to Python. Maybe the main Python library has been
15866 installed in some non-standard library path. If so, pass it to configure,
15867 via the LDFLAGS environment variable.
15868 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
15869 ============================================================================
15871 You probably have to install the development version of the Python package
15872 for your distribution. The exact name of this package varies among them.
15873 ============================================================================
15878 ac_cpp='$CPP $CPPFLAGS'
15879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15883 # turn back to default flags
15884 CPPFLAGS="$ac_save_CPPFLAGS"
15885 LIBS="$ac_save_LIBS"
15891 if test ! -z "$PYTHON_VERSION"; then
15892 if test `$PYTHON -c "print '$PYTHON_VERSION' >= '2.4.0'"` = "False"; then
15893 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
15898 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
15900 LIBS="$PYTHON_LDFLAGS $LIBS"
15901 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15907 # Extract the first word of "swig", so it can be a program name with args.
15908 set dummy swig; ac_word=$2
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15910 $as_echo_n "checking for $ac_word... " >&6; }
15911 if ${ac_cv_path_SWIG+:} false; then :
15912 $as_echo_n "(cached) " >&6
15916 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
15919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15920 for as_dir in $PATH
15923 test -z "$as_dir" && as_dir=.
15924 for ac_exec_ext in '' $ac_executable_extensions; do
15925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15926 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
15927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15937 SWIG=$ac_cv_path_SWIG
15938 if test -n "$SWIG"; then
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
15940 $as_echo "$SWIG" >&6; }
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15943 $as_echo "no" >&6; }
15947 if test -z "$SWIG" ; then
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
15949 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
15950 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
15951 elif test -n "" ; then
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
15953 $as_echo_n "checking for SWIG version... " >&6; }
15954 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'`
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
15956 $as_echo "$swig_version" >&6; }
15957 if test -n "$swig_version" ; then
15958 # Calculate the required version number components
15960 required_major=`echo $required | sed 's/[^0-9].*//'`
15961 if test -z "$required_major" ; then
15964 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15965 required_minor=`echo $required | sed 's/[^0-9].*//'`
15966 if test -z "$required_minor" ; then
15969 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15970 required_patch=`echo $required | sed 's/[^0-9].*//'`
15971 if test -z "$required_patch" ; then
15974 # Calculate the available version number components
15975 available=$swig_version
15976 available_major=`echo $available | sed 's/[^0-9].*//'`
15977 if test -z "$available_major" ; then
15980 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15981 available_minor=`echo $available | sed 's/[^0-9].*//'`
15982 if test -z "$available_minor" ; then
15985 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15986 available_patch=`echo $available | sed 's/[^0-9].*//'`
15987 if test -z "$available_patch" ; then
15990 if test $available_major -ne $required_major \
15991 -o $available_minor -ne $required_minor \
15992 -o $available_patch -lt $required_patch ; then
15993 { $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
15994 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
15995 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
15998 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
15999 SWIG_LIB=`$SWIG -swiglib`
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
16001 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16005 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16006 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16012 $as_echo_n "checking SWIG... " >&6; }
16013 if test ! -x "$SWIG"; then
16014 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16017 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16022 $as_echo "present" >&6; }
16024 # If have Python & SWIG
16025 # Declare PythonMod
16026 if test x_$ub_with_pythonmod != x_no; then
16028 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16030 WITH_PYTHONMODULE=yes
16032 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
16034 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
16036 PYTHONMOD_INSTALL=pythonmod-install
16038 PYTHONMOD_UNINSTALL=pythonmod-uninstall
16042 # Declare PyUnbound
16043 if test x_$ub_with_pyunbound != x_no; then
16045 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16049 PYUNBOUND_OBJ="libunbound_wrap.lo"
16051 PYUNBOUND_TARGET="_unbound.la"
16053 PYUNBOUND_INSTALL=pyunbound-install
16055 PYUNBOUND_UNINSTALL=pyunbound-uninstall
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16061 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16062 ub_with_pyunbound=no
16063 ub_with_pythonmod=no
16067 if test "`uname`" = "NetBSD"; then
16068 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16071 CONFIG_DATE=`date +%Y%m%d`
16074 # Checks for libraries.
16079 # Check whether --with-nss was given.
16080 if test "${with_nss+set}" = set; then :
16084 $as_echo "#define HAVE_NSS 1" >>confdefs.h
16086 if test "$withval" != "" -a "$withval" != "yes"; then
16087 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
16088 LDFLAGS="$LDFLAGS -L$withval/lib"
16090 if test "x$enable_rpath" = xyes; then
16091 if echo "$withval/lib" | grep "^/" >/dev/null; then
16092 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16096 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16098 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
16099 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16101 LIBS="$LIBS -lnss3 -lnspr4"
16108 if test $USE_NSS = "no"; then
16111 # Check whether --with-ssl was given.
16112 if test "${with_ssl+set}" = set; then :
16121 if test x_$withval = x_no; then
16122 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
16126 if test x_$withval != x_no; then
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16128 $as_echo_n "checking for SSL... " >&6; }
16129 if test x_$withval = x_ -o x_$withval = x_yes; then
16130 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16132 for dir in $withval; do
16134 if test -f "$dir/include/openssl/ssl.h"; then
16137 cat >>confdefs.h <<_ACEOF
16138 #define HAVE_SSL /**/
16141 if test "$ssldir" != "/usr"; then
16142 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16143 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16148 if test x_$found_ssl != x_yes; then
16149 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16152 $as_echo "found in $ssldir" >&6; }
16154 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16155 LDFLAGS="$LDFLAGS -L$ssldir/lib"
16156 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16158 if test "x$enable_rpath" = xyes; then
16159 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16160 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16167 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16168 LIBS="$LIBS -lcrypto"
16169 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16171 /* end confdefs.h. */
16177 int HMAC_CTX_init(void);
16178 (void)HMAC_CTX_init();
16184 if ac_fn_c_try_link "$LINENO"; then :
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16187 $as_echo "yes" >&6; }
16189 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16195 $as_echo "no" >&6; }
16196 # check if -lwsock32 or -lgdi32 are needed.
16198 BAKSSLLIBS="$LIBSSL_LIBS"
16199 LIBS="$LIBS -lgdi32"
16200 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16202 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16210 int HMAC_CTX_init(void);
16211 (void)HMAC_CTX_init();
16217 if ac_fn_c_try_link "$LINENO"; then :
16220 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16223 $as_echo "yes" >&6; }
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16228 $as_echo "no" >&6; }
16230 LIBSSL_LIBS="$BAKSSLLIBS"
16232 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16234 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16236 /* end confdefs.h. */
16242 int HMAC_CTX_init(void);
16243 (void)HMAC_CTX_init();
16249 if ac_fn_c_try_link "$LINENO"; then :
16252 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16255 $as_echo "yes" >&6; }
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16260 $as_echo "no" >&6; }
16261 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16264 rm -f core conftest.err conftest.$ac_objext \
16265 conftest$ac_exeext conftest.$ac_ext
16268 rm -f core conftest.err conftest.$ac_objext \
16269 conftest$ac_exeext conftest.$ac_ext
16272 rm -f core conftest.err conftest.$ac_objext \
16273 conftest$ac_exeext conftest.$ac_ext
16277 # openssl engine functionality needs dlopen().
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16280 $as_echo_n "checking for library containing dlopen... " >&6; }
16281 if ${ac_cv_search_dlopen+:} false; then :
16282 $as_echo_n "(cached) " >&6
16284 ac_func_search_save_LIBS=$LIBS
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16288 /* Override any GCC internal prototype to avoid an error.
16289 Use char because int might match the return type of a GCC
16290 builtin and then its argument prototype would still apply. */
16303 for ac_lib in '' dl; do
16304 if test -z "$ac_lib"; then
16305 ac_res="none required"
16308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16310 if ac_fn_c_try_link "$LINENO"; then :
16311 ac_cv_search_dlopen=$ac_res
16313 rm -f core conftest.err conftest.$ac_objext \
16315 if ${ac_cv_search_dlopen+:} false; then :
16319 if ${ac_cv_search_dlopen+:} false; then :
16322 ac_cv_search_dlopen=no
16324 rm conftest.$ac_ext
16325 LIBS=$ac_func_search_save_LIBS
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16328 $as_echo "$ac_cv_search_dlopen" >&6; }
16329 ac_res=$ac_cv_search_dlopen
16330 if test "$ac_res" != no; then :
16331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16335 if test "$LIBS" != "$BAKLIBS"; then
16336 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16339 for ac_header in openssl/ssl.h
16341 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16343 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
16344 cat >>confdefs.h <<_ACEOF
16345 #define HAVE_OPENSSL_SSL_H 1
16352 for ac_header in openssl/err.h
16354 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16356 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
16357 cat >>confdefs.h <<_ACEOF
16358 #define HAVE_OPENSSL_ERR_H 1
16365 for ac_header in openssl/rand.h
16367 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16369 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
16370 cat >>confdefs.h <<_ACEOF
16371 #define HAVE_OPENSSL_RAND_H 1
16381 # check if libssl needs libdl
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16385 $as_echo_n "checking if libssl needs libdl... " >&6; }
16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387 /* end confdefs.h. */
16389 /* Override any GCC internal prototype to avoid an error.
16390 Use char because int might match the return type of a GCC
16391 builtin and then its argument prototype would still apply. */
16395 char SSL_CTX_new ();
16399 return SSL_CTX_new ();
16404 if ac_fn_c_try_link "$LINENO"; then :
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16407 $as_echo "no" >&6; }
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16413 $as_echo "yes" >&6; }
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16416 $as_echo_n "checking for library containing dlopen... " >&6; }
16417 if ${ac_cv_search_dlopen+:} false; then :
16418 $as_echo_n "(cached) " >&6
16420 ac_func_search_save_LIBS=$LIBS
16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422 /* end confdefs.h. */
16424 /* Override any GCC internal prototype to avoid an error.
16425 Use char because int might match the return type of a GCC
16426 builtin and then its argument prototype would still apply. */
16439 for ac_lib in '' dl; do
16440 if test -z "$ac_lib"; then
16441 ac_res="none required"
16444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16446 if ac_fn_c_try_link "$LINENO"; then :
16447 ac_cv_search_dlopen=$ac_res
16449 rm -f core conftest.err conftest.$ac_objext \
16451 if ${ac_cv_search_dlopen+:} false; then :
16455 if ${ac_cv_search_dlopen+:} false; then :
16458 ac_cv_search_dlopen=no
16460 rm conftest.$ac_ext
16461 LIBS=$ac_func_search_save_LIBS
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16464 $as_echo "$ac_cv_search_dlopen" >&6; }
16465 ac_res=$ac_cv_search_dlopen
16466 if test "$ac_res" != no; then :
16467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16473 rm -f core conftest.err conftest.$ac_objext \
16474 conftest$ac_exeext conftest.$ac_ext
16475 for ac_header in openssl/conf.h
16477 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16479 if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
16480 cat >>confdefs.h <<_ACEOF
16481 #define HAVE_OPENSSL_CONF_H 1
16488 for ac_header in openssl/engine.h
16490 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16492 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
16493 cat >>confdefs.h <<_ACEOF
16494 #define HAVE_OPENSSL_ENGINE_H 1
16501 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16503 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16504 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16505 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16506 cat >>confdefs.h <<_ACEOF
16507 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16513 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16514 $ac_includes_default
16515 #ifdef HAVE_OPENSSL_ERR_H
16516 #include <openssl/err.h>
16519 #ifdef HAVE_OPENSSL_RAND_H
16520 #include <openssl/rand.h>
16523 #ifdef HAVE_OPENSSL_CONF_H
16524 #include <openssl/conf.h>
16527 #ifdef HAVE_OPENSSL_ENGINE_H
16528 #include <openssl/engine.h>
16530 #include <openssl/ssl.h>
16531 #include <openssl/evp.h>
16534 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
16540 cat >>confdefs.h <<_ACEOF
16541 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16543 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16544 $ac_includes_default
16545 #ifdef HAVE_OPENSSL_ERR_H
16546 #include <openssl/err.h>
16549 #ifdef HAVE_OPENSSL_RAND_H
16550 #include <openssl/rand.h>
16553 #ifdef HAVE_OPENSSL_CONF_H
16554 #include <openssl/conf.h>
16557 #ifdef HAVE_OPENSSL_ENGINE_H
16558 #include <openssl/engine.h>
16560 #include <openssl/ssl.h>
16561 #include <openssl/evp.h>
16564 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
16570 cat >>confdefs.h <<_ACEOF
16571 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16577 # Check whether --enable-sha2 was given.
16578 if test "${enable_sha2+set}" = set; then :
16579 enableval=$enable_sha2;
16582 case "$enable_sha2" in
16587 $as_echo "#define USE_SHA2 1" >>confdefs.h
16592 # check wether gost also works
16594 # Check whether --enable-gost was given.
16595 if test "${enable_gost+set}" = set; then :
16596 enableval=$enable_gost;
16600 if test $USE_NSS = "no"; then
16601 case "$enable_gost" in
16605 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16606 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
16609 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
16612 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16613 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
16616 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16621 $as_echo_n "checking if GOST works... " >&6; }
16622 if test c${cross_compiling} = cno; then
16623 BAKCFLAGS="$CFLAGS"
16624 if test -n "$ssldir"; then
16625 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
16627 if test "$cross_compiling" = yes; then :
16628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16630 as_fn_error $? "cannot run test program while cross compiling
16631 See \`config.log' for more details" "$LINENO" 5; }
16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h. */
16636 #include <string.h>
16637 #include <openssl/ssl.h>
16638 #include <openssl/evp.h>
16639 #include <openssl/engine.h>
16640 #include <openssl/conf.h>
16641 /* routine to load gost from ldns */
16642 int load_gost_id(void)
16644 static int gost_id = 0;
16645 const EVP_PKEY_ASN1_METHOD* meth;
16648 if(gost_id) return gost_id;
16650 /* see if configuration loaded gost implementation from other engine*/
16651 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16653 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16657 /* see if engine can be loaded already */
16658 e = ENGINE_by_id("gost");
16660 /* load it ourself, in case statically linked */
16661 ENGINE_load_builtin_engines();
16662 ENGINE_load_dynamic();
16663 e = ENGINE_by_id("gost");
16666 /* no gost engine in openssl */
16669 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16675 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16677 /* algo not found */
16682 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16688 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16689 const char* str = "Hello world";
16690 const unsigned char check[] = {
16691 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16692 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16693 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16694 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16696 OPENSSL_config(NULL);
16697 (void)load_gost_id();
16698 md = EVP_get_digestbyname("md_gost94");
16700 memset(digest, 0, sizeof(digest));
16701 ctx = EVP_MD_CTX_create();
16703 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16704 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16705 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16706 /* uncomment to see the hash calculated.
16708 for(i=0; i<32; i++)
16709 printf(" %2.2x", (int)digest[i]);
16712 if(memcmp(digest, check, sizeof(check)) != 0)
16718 if ac_fn_c_try_run "$LINENO"; then :
16719 eval "ac_cv_c_gost_works=yes"
16721 eval "ac_cv_c_gost_works=no"
16723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16724 conftest.$ac_objext conftest.beam conftest.$ac_ext
16727 CFLAGS="$BAKCFLAGS"
16729 eval "ac_cv_c_gost_works=maybe"
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
16732 $as_echo "$ac_cv_c_gost_works" >&6; }
16734 if test "$ac_cv_c_gost_works" != no; then
16737 $as_echo "#define USE_GOST 1" >>confdefs.h
16743 # Check whether --enable-ecdsa was given.
16744 if test "${enable_ecdsa+set}" = set; then :
16745 enableval=$enable_ecdsa;
16749 case "$enable_ecdsa" in
16753 if test $USE_NSS = "no"; then
16754 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
16755 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
16758 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16761 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
16762 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
16765 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16768 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
16769 #include <openssl/evp.h>
16772 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
16778 cat >>confdefs.h <<_ACEOF
16779 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
16781 if test $ac_have_decl = 1; then :
16784 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16786 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
16787 #include <openssl/evp.h>
16790 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
16796 cat >>confdefs.h <<_ACEOF
16797 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
16799 if test $ac_have_decl = 1; then :
16802 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16805 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
16807 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
16808 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16810 $as_echo "no" >&6; }
16812 cat >>confdefs.h <<_ACEOF
16813 #define USE_ECDSA_EVP_WORKAROUND 1
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16818 $as_echo "yes" >&6; }
16821 # we now know we have ECDSA and the required curves.
16823 cat >>confdefs.h <<_ACEOF
16824 #define USE_ECDSA 1
16831 # check for libevent
16833 # Check whether --with-libevent was given.
16834 if test "${with_libevent+set}" = set; then :
16835 withval=$with_libevent;
16840 if test x_$withval = x_yes -o x_$withval != x_no; then
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
16842 $as_echo_n "checking for libevent... " >&6; }
16843 if test x_$withval = x_ -o x_$withval = x_yes; then
16844 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
16846 for dir in $withval; do
16848 if test -f "$dir/include/event.h"; then
16849 found_libevent="yes"
16850 if test "$thedir" != "/usr"; then
16851 CPPFLAGS="$CPPFLAGS -I$thedir/include"
16856 if test x_$found_libevent != x_yes; then
16857 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
16858 # libevent source directory
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
16860 $as_echo "found in $thedir" >&6; }
16861 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
16862 BAK_LDFLAGS_SET="1"
16863 BAK_LDFLAGS="$LDFLAGS"
16864 # remove evdns from linking
16865 mkdir build >/dev/null 2>&1
16866 mkdir build/libevent >/dev/null 2>&1
16867 mkdir build/libevent/.libs >/dev/null 2>&1
16868 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
16869 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
16870 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
16871 cp $ev_files_o build/libevent
16872 cp $ev_files_lo build/libevent
16873 cp $ev_files_libso build/libevent/.libs
16874 LATE_LDFLAGS="build/libevent/*.lo -lm"
16875 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
16877 as_fn_error $? "Cannot find the libevent library in $withval
16878 You can restart ./configure --with-libevent=no to use a builtin alternative.
16879 Please note that this alternative is not as capable as libevent when using
16880 large outgoing port ranges. " "$LINENO" 5
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
16884 $as_echo "found in $thedir" >&6; }
16885 if test "$thedir" != "/usr" -a "$thedir" != ""; then
16886 LDFLAGS="$LDFLAGS -L$thedir/lib"
16888 if test "x$enable_rpath" = xyes; then
16889 if echo "$thedir/lib" | grep "^/" >/dev/null; then
16890 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
16896 # check for library used by libevent after 1.3c
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16898 $as_echo_n "checking for library containing clock_gettime... " >&6; }
16899 if ${ac_cv_search_clock_gettime+:} false; then :
16900 $as_echo_n "(cached) " >&6
16902 ac_func_search_save_LIBS=$LIBS
16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h. */
16906 /* Override any GCC internal prototype to avoid an error.
16907 Use char because int might match the return type of a GCC
16908 builtin and then its argument prototype would still apply. */
16912 char clock_gettime ();
16916 return clock_gettime ();
16921 for ac_lib in '' rt; do
16922 if test -z "$ac_lib"; then
16923 ac_res="none required"
16926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16928 if ac_fn_c_try_link "$LINENO"; then :
16929 ac_cv_search_clock_gettime=$ac_res
16931 rm -f core conftest.err conftest.$ac_objext \
16933 if ${ac_cv_search_clock_gettime+:} false; then :
16937 if ${ac_cv_search_clock_gettime+:} false; then :
16940 ac_cv_search_clock_gettime=no
16942 rm conftest.$ac_ext
16943 LIBS=$ac_func_search_save_LIBS
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16946 $as_echo "$ac_cv_search_clock_gettime" >&6; }
16947 ac_res=$ac_cv_search_clock_gettime
16948 if test "$ac_res" != no; then :
16949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16954 # is the event.h header libev or libevent?
16955 for ac_header in event.h
16957 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
16959 if test "x$ac_cv_header_event_h" = xyes; then :
16960 cat >>confdefs.h <<_ACEOF
16961 #define HAVE_EVENT_H 1
16968 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
16972 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
16975 $as_echo_n "checking for library containing event_set... " >&6; }
16976 if ${ac_cv_search_event_set+:} false; then :
16977 $as_echo_n "(cached) " >&6
16979 ac_func_search_save_LIBS=$LIBS
16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h. */
16983 /* Override any GCC internal prototype to avoid an error.
16984 Use char because int might match the return type of a GCC
16985 builtin and then its argument prototype would still apply. */
16993 return event_set ();
16998 for ac_lib in '' ev; do
16999 if test -z "$ac_lib"; then
17000 ac_res="none required"
17003 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17005 if ac_fn_c_try_link "$LINENO"; then :
17006 ac_cv_search_event_set=$ac_res
17008 rm -f core conftest.err conftest.$ac_objext \
17010 if ${ac_cv_search_event_set+:} false; then :
17014 if ${ac_cv_search_event_set+:} false; then :
17017 ac_cv_search_event_set=no
17019 rm conftest.$ac_ext
17020 LIBS=$ac_func_search_save_LIBS
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17023 $as_echo "$ac_cv_search_event_set" >&6; }
17024 ac_res=$ac_cv_search_event_set
17025 if test "$ac_res" != no; then :
17026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17034 $as_echo_n "checking for library containing event_set... " >&6; }
17035 if ${ac_cv_search_event_set+:} false; then :
17036 $as_echo_n "(cached) " >&6
17038 ac_func_search_save_LIBS=$LIBS
17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h. */
17042 /* Override any GCC internal prototype to avoid an error.
17043 Use char because int might match the return type of a GCC
17044 builtin and then its argument prototype would still apply. */
17052 return event_set ();
17057 for ac_lib in '' event; do
17058 if test -z "$ac_lib"; then
17059 ac_res="none required"
17062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17064 if ac_fn_c_try_link "$LINENO"; then :
17065 ac_cv_search_event_set=$ac_res
17067 rm -f core conftest.err conftest.$ac_objext \
17069 if ${ac_cv_search_event_set+:} false; then :
17073 if ${ac_cv_search_event_set+:} false; then :
17076 ac_cv_search_event_set=no
17078 rm conftest.$ac_ext
17079 LIBS=$ac_func_search_save_LIBS
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17082 $as_echo "$ac_cv_search_event_set" >&6; }
17083 ac_res=$ac_cv_search_event_set
17084 if test "$ac_res" != no; then :
17085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17092 for ac_func in event_base_free
17094 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17095 if test "x$ac_cv_func_event_base_free" = xyes; then :
17096 cat >>confdefs.h <<_ACEOF
17097 #define HAVE_EVENT_BASE_FREE 1
17102 # only in libevent 1.2 and later
17103 for ac_func in event_base_once
17105 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17106 if test "x$ac_cv_func_event_base_once" = xyes; then :
17107 cat >>confdefs.h <<_ACEOF
17108 #define HAVE_EVENT_BASE_ONCE 1
17113 # only in libevent 1.4.1 and later
17114 for ac_func in event_base_new
17116 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17117 if test "x$ac_cv_func_event_base_new" = xyes; then :
17118 cat >>confdefs.h <<_ACEOF
17119 #define HAVE_EVENT_BASE_NEW 1
17124 # only in libevent 1.4.1 and later
17125 for ac_func in event_base_get_method
17127 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17128 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
17129 cat >>confdefs.h <<_ACEOF
17130 #define HAVE_EVENT_BASE_GET_METHOD 1
17135 # only in libevent 1.4.3 and later
17136 for ac_func in ev_loop
17138 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17139 if test "x$ac_cv_func_ev_loop" = xyes; then :
17140 cat >>confdefs.h <<_ACEOF
17141 #define HAVE_EV_LOOP 1
17146 # only in libev. (tested on 3.51)
17147 for ac_func in ev_default_loop
17149 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17150 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
17151 cat >>confdefs.h <<_ACEOF
17152 #define HAVE_EV_DEFAULT_LOOP 1
17157 # only in libev. (tested on 4.00)
17158 if test -n "$BAK_LDFLAGS_SET"; then
17159 LDFLAGS="$BAK_LDFLAGS"
17163 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17167 # check for libexpat
17169 # Check whether --with-libexpat was given.
17170 if test "${with_libexpat+set}" = set; then :
17171 withval=$with_libexpat;
17173 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17177 $as_echo_n "checking for libexpat... " >&6; }
17178 found_libexpat="no"
17179 for dir in $withval ; do
17180 if test -f "$dir/include/expat.h"; then
17181 found_libexpat="yes"
17182 if test "$dir" != "/usr"; then
17183 CPPFLAGS="$CPPFLAGS -I$dir/include"
17184 LDFLAGS="$LDFLAGS -L$dir/lib"
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17187 $as_echo "found in $dir" >&6; }
17191 if test x_$found_libexpat != x_yes; then
17192 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
17194 for ac_header in expat.h
17196 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17198 if test "x$ac_cv_header_expat_h" = xyes; then :
17199 cat >>confdefs.h <<_ACEOF
17200 #define HAVE_EXPAT_H 1
17208 # set static linking if requested
17211 # Check whether --enable-static-exe was given.
17212 if test "${enable_static_exe+set}" = set; then :
17213 enableval=$enable_static_exe;
17216 if test x_$enable_static_exe = x_yes; then
17217 staticexe="-static"
17218 if test "$on_mingw" = yes; then
17219 staticexe="-all-static"
17220 # for static crosscompile, include gdi32 and zlib here.
17221 if test "`uname`" = "Linux"; then
17222 LIBS="$LIBS -lgdi32 -lz"
17227 # set lock checking if requested
17228 # Check whether --enable-lock_checks was given.
17229 if test "${enable_lock_checks+set}" = set; then :
17230 enableval=$enable_lock_checks;
17233 if test x_$enable_lock_checks = x_yes; then
17235 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17237 CHECKLOCK_OBJ="checklocks.lo"
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17243 $as_echo_n "checking for getaddrinfo... " >&6; }
17244 ac_cv_func_getaddrinfo=no
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17252 char* getaddrinfo();
17253 char* (*f) () = getaddrinfo;
17263 if ac_fn_c_try_link "$LINENO"; then :
17264 ac_cv_func_getaddrinfo="yes"
17265 if test "$ac_cv_header_windows_h" = "yes"; then
17267 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17270 LIBS="$LIBS -lws2_32"
17275 LIBS="$LIBS -lws2_32"
17276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17277 /* end confdefs.h. */
17279 #ifdef HAVE_WS2TCPIP_H
17280 #include <ws2tcpip.h>
17287 (void)getaddrinfo(NULL, NULL, NULL, NULL);
17294 if ac_fn_c_try_link "$LINENO"; then :
17296 ac_cv_func_getaddrinfo="yes"
17298 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17304 ac_cv_func_getaddrinfo="no"
17308 rm -f core conftest.err conftest.$ac_objext \
17309 conftest$ac_exeext conftest.$ac_ext
17312 rm -f core conftest.err conftest.$ac_objext \
17313 conftest$ac_exeext conftest.$ac_ext
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17316 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
17317 if test $ac_cv_func_getaddrinfo = yes; then
17319 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17323 if test "$USE_WINSOCK" = 1; then
17325 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17327 for ac_header in iphlpapi.h
17329 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17330 #include <windows.h>
17333 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
17334 cat >>confdefs.h <<_ACEOF
17335 #define HAVE_IPHLPAPI_H 1
17342 if test -n "$ac_tool_prefix"; then
17343 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17344 set dummy ${ac_tool_prefix}windres; ac_word=$2
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17346 $as_echo_n "checking for $ac_word... " >&6; }
17347 if ${ac_cv_prog_WINDRES+:} false; then :
17348 $as_echo_n "(cached) " >&6
17350 if test -n "$WINDRES"; then
17351 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17354 for as_dir in $PATH
17357 test -z "$as_dir" && as_dir=.
17358 for ac_exec_ext in '' $ac_executable_extensions; do
17359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17360 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17370 WINDRES=$ac_cv_prog_WINDRES
17371 if test -n "$WINDRES"; then
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17373 $as_echo "$WINDRES" >&6; }
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17376 $as_echo "no" >&6; }
17381 if test -z "$ac_cv_prog_WINDRES"; then
17382 ac_ct_WINDRES=$WINDRES
17383 # Extract the first word of "windres", so it can be a program name with args.
17384 set dummy windres; ac_word=$2
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17386 $as_echo_n "checking for $ac_word... " >&6; }
17387 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17388 $as_echo_n "(cached) " >&6
17390 if test -n "$ac_ct_WINDRES"; then
17391 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17394 for as_dir in $PATH
17397 test -z "$as_dir" && as_dir=.
17398 for ac_exec_ext in '' $ac_executable_extensions; do
17399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17400 ac_cv_prog_ac_ct_WINDRES="windres"
17401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17410 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17411 if test -n "$ac_ct_WINDRES"; then
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17413 $as_echo "$ac_ct_WINDRES" >&6; }
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17416 $as_echo "no" >&6; }
17419 if test "x$ac_ct_WINDRES" = x; then
17422 case $cross_compiling:$ac_tool_warned in
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17426 ac_tool_warned=yes ;;
17428 WINDRES=$ac_ct_WINDRES
17431 WINDRES="$ac_cv_prog_WINDRES"
17434 LIBS="$LIBS -liphlpapi"
17435 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17437 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
17439 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
17441 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
17443 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
17445 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
17447 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
17449 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
17452 if test $ac_cv_func_getaddrinfo = no; then
17453 case " $LIBOBJS " in
17454 *" fake-rfc2553.$ac_objext "* ) ;;
17455 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17460 # check after getaddrinfo for its libraries
17462 # check ioctlsocket
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17464 $as_echo_n "checking for ioctlsocket... " >&6; }
17465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466 /* end confdefs.h. */
17468 #ifdef HAVE_WINSOCK2_H
17469 #include <winsock2.h>
17476 (void)ioctlsocket(0, 0, NULL);
17482 if ac_fn_c_try_link "$LINENO"; then :
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17485 $as_echo "yes" >&6; }
17487 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17492 $as_echo "no" >&6; }
17494 rm -f core conftest.err conftest.$ac_objext \
17495 conftest$ac_exeext conftest.$ac_ext
17498 # see if daemon(3) exists, and if it is deprecated.
17499 for ac_func in daemon
17501 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17502 if test "x$ac_cv_func_daemon" = xyes; then :
17503 cat >>confdefs.h <<_ACEOF
17504 #define HAVE_DAEMON 1
17510 if test $ac_cv_func_daemon = yes; then
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17514 $as_echo_n "checking if daemon is deprecated... " >&6; }
17515 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
17516 if eval \${cv_cc_deprecated_$cache+:} false; then :
17517 $as_echo_n "(cached) " >&6
17521 #include <stdlib.h>
17523 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17524 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17525 eval "cv_cc_deprecated_$cache=no"
17527 eval "cv_cc_deprecated_$cache=yes"
17529 rm -f conftest conftest.o conftest.c
17533 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17535 $as_echo "yes" >&6; }
17537 cat >>confdefs.h <<_ACEOF
17538 #define DEPRECATED_DAEMON 1
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17545 $as_echo "no" >&6; }
17552 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
17553 $ac_includes_default
17554 #if HAVE_SYS_PARAM_H
17555 #include <sys/param.h>
17558 #ifdef HAVE_SYS_SOCKET_H
17559 #include <sys/socket.h>
17562 #ifdef HAVE_SYS_UIO_H
17563 #include <sys/uio.h>
17566 #ifdef HAVE_NETINET_IN_H
17567 #include <netinet/in.h>
17570 #ifdef HAVE_ARPA_INET_H
17571 #include <arpa/inet.h>
17574 #ifdef HAVE_WINSOCK2_H
17575 #include <winsock2.h>
17578 #ifdef HAVE_WS2TCPIP_H
17579 #include <ws2tcpip.h>
17583 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
17585 cat >>confdefs.h <<_ACEOF
17586 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17593 $as_echo_n "checking for library containing setusercontext... " >&6; }
17594 if ${ac_cv_search_setusercontext+:} false; then :
17595 $as_echo_n "(cached) " >&6
17597 ac_func_search_save_LIBS=$LIBS
17598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17599 /* end confdefs.h. */
17601 /* Override any GCC internal prototype to avoid an error.
17602 Use char because int might match the return type of a GCC
17603 builtin and then its argument prototype would still apply. */
17607 char setusercontext ();
17611 return setusercontext ();
17616 for ac_lib in '' util; do
17617 if test -z "$ac_lib"; then
17618 ac_res="none required"
17621 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17623 if ac_fn_c_try_link "$LINENO"; then :
17624 ac_cv_search_setusercontext=$ac_res
17626 rm -f core conftest.err conftest.$ac_objext \
17628 if ${ac_cv_search_setusercontext+:} false; then :
17632 if ${ac_cv_search_setusercontext+:} false; then :
17635 ac_cv_search_setusercontext=no
17637 rm conftest.$ac_ext
17638 LIBS=$ac_func_search_save_LIBS
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
17641 $as_echo "$ac_cv_search_setusercontext" >&6; }
17642 ac_res=$ac_cv_search_setusercontext
17643 if test "$ac_res" != no; then :
17644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17648 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
17650 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17651 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17652 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17653 cat >>confdefs.h <<_ACEOF
17654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17660 for ac_func in setresuid
17662 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17663 if test "x$ac_cv_func_setresuid" = xyes; then :
17664 cat >>confdefs.h <<_ACEOF
17665 #define HAVE_SETRESUID 1
17669 for ac_func in setreuid
17671 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17672 if test "x$ac_cv_func_setreuid" = xyes; then :
17673 cat >>confdefs.h <<_ACEOF
17674 #define HAVE_SETREUID 1
17683 for ac_func in setresgid
17685 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
17686 if test "x$ac_cv_func_setresgid" = xyes; then :
17687 cat >>confdefs.h <<_ACEOF
17688 #define HAVE_SETRESGID 1
17692 for ac_func in setregid
17694 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
17695 if test "x$ac_cv_func_setregid" = xyes; then :
17696 cat >>confdefs.h <<_ACEOF
17697 #define HAVE_SETREGID 1
17707 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
17708 if echo $build_os | grep darwin8 > /dev/null; then
17710 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
17713 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
17714 if test "x$ac_cv_func_inet_aton" = xyes; then :
17715 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17718 case " $LIBOBJS " in
17719 *" inet_aton.$ac_objext "* ) ;;
17720 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
17727 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
17728 if test "x$ac_cv_func_inet_pton" = xyes; then :
17729 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
17732 case " $LIBOBJS " in
17733 *" inet_pton.$ac_objext "* ) ;;
17734 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
17741 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
17742 if test "x$ac_cv_func_inet_ntop" = xyes; then :
17743 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
17746 case " $LIBOBJS " in
17747 *" inet_ntop.$ac_objext "* ) ;;
17748 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
17755 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17756 if test "x$ac_cv_func_snprintf" = xyes; then :
17757 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17760 case " $LIBOBJS " in
17761 *" snprintf.$ac_objext "* ) ;;
17762 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17769 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17770 if test "x$ac_cv_func_strlcpy" = xyes; then :
17771 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17774 case " $LIBOBJS " in
17775 *" strlcpy.$ac_objext "* ) ;;
17776 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17783 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
17784 if test "x$ac_cv_func_memmove" = xyes; then :
17785 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
17788 case " $LIBOBJS " in
17789 *" memmove.$ac_objext "* ) ;;
17790 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
17797 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
17798 if test "x$ac_cv_func_gmtime_r" = xyes; then :
17799 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17802 case " $LIBOBJS " in
17803 *" gmtime_r.$ac_objext "* ) ;;
17804 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
17811 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
17813 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
17814 if test "x$ac_cv_func_ctime_r" = xyes; then :
17815 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
17818 case " $LIBOBJS " in
17819 *" ctime_r.$ac_objext "* ) ;;
17820 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
17828 # Check whether --enable-allsymbols was given.
17829 if test "${enable_allsymbols+set}" = set; then :
17830 enableval=$enable_allsymbols;
17833 case "$enable_allsymbols" in
17835 COMMON_OBJ_ALL_SYMBOLS=""
17837 EXTRALINK="-L. -L.libs -lunbound"
17839 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
17843 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
17844 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
17851 if test x_$enable_lock_checks = x_yes; then
17852 UBSYMS="-export-symbols clubsyms.def"
17853 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
17854 echo lock_protect >> clubsyms.def
17855 echo lock_unprotect >> clubsyms.def
17856 echo lock_get_mem >> clubsyms.def
17857 echo checklock_start >> clubsyms.def
17858 echo checklock_stop >> clubsyms.def
17859 echo checklock_lock >> clubsyms.def
17860 echo checklock_unlock >> clubsyms.def
17861 echo checklock_init >> clubsyms.def
17862 echo checklock_thrcreate >> clubsyms.def
17863 echo checklock_thrjoin >> clubsyms.def
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
17867 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
17868 # on openBSD, the implicit rule make $< work.
17869 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
17871 cat >conftest.make <<EOF
17874 conftest.lo foo.lo bla.lo:
17875 if test -f "\$<"; then touch \$@; fi
17879 if test -f "\$<"; then touch \$@; fi
17881 conftest.lo: conftest.dir/conftest.c
17884 touch conftest.dir/conftest.c
17885 rm -f conftest.lo conftest.c
17886 ${MAKE:-make} -f conftest.make >/dev/null
17887 rm -f conftest.make conftest.c conftest.dir/conftest.c
17888 rm -rf conftest.dir
17889 if test ! -f conftest.lo; then
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17891 $as_echo "no" >&6; }
17892 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
17893 SOURCEFILE='`cat .source`'
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17896 $as_echo "yes" >&6; }
17897 SOURCEDETERMINE=':'
17904 # see if we want to build the library or everything
17905 ALLTARGET="alltargets"
17907 # Check whether --with-libunbound-only was given.
17908 if test "${with_libunbound_only+set}" = set; then :
17909 withval=$with_libunbound_only;
17910 if test "$withval" = "yes"; then
17918 # check this after all other compilation checks, since the linking of the lib
17919 # may break checks after this.
17921 # Check whether --with-ldns was given.
17922 if test "${with_ldns+set}" = set; then :
17923 withval=$with_ldns;
17924 if test "$withval" != "yes"; then
17925 if test "$withval" != "/usr" -a "$withval" != ""; then
17926 CPPFLAGS="-I$withval/include $CPPFLAGS"
17927 LDFLAGS="-L$withval/lib $LDFLAGS"
17929 if test "x$enable_rpath" = xyes; then
17930 if echo "$withval/lib" | grep "^/" >/dev/null; then
17931 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17943 # check if ldns is good enough
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_rr_new in -lldns" >&5
17945 $as_echo_n "checking for ldns_rr_new in -lldns... " >&6; }
17946 if ${ac_cv_lib_ldns_ldns_rr_new+:} false; then :
17947 $as_echo_n "(cached) " >&6
17949 ac_check_lib_save_LIBS=$LIBS
17950 LIBS="-lldns $LIBS"
17951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17952 /* end confdefs.h. */
17954 /* Override any GCC internal prototype to avoid an error.
17955 Use char because int might match the return type of a GCC
17956 builtin and then its argument prototype would still apply. */
17960 char ldns_rr_new ();
17964 return ldns_rr_new ();
17969 if ac_fn_c_try_link "$LINENO"; then :
17970 ac_cv_lib_ldns_ldns_rr_new=yes
17972 ac_cv_lib_ldns_ldns_rr_new=no
17974 rm -f core conftest.err conftest.$ac_objext \
17975 conftest$ac_exeext conftest.$ac_ext
17976 LIBS=$ac_check_lib_save_LIBS
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_rr_new" >&5
17979 $as_echo "$ac_cv_lib_ldns_ldns_rr_new" >&6; }
17980 if test "x$ac_cv_lib_ldns_ldns_rr_new" = xyes; then :
17981 cat >>confdefs.h <<_ACEOF
17982 #define HAVE_LIBLDNS 1
17985 LIBS="-lldns $LIBS"
17989 as_fn_error $? "No ldns library found, install the ldns library into system lib dir or use --with-ldns=path to other location. The --with-ldns can point to the make-dir of ldns. Install the package ldns or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
17993 ac_fn_c_check_func "$LINENO" "ldns_buffer_copy" "ac_cv_func_ldns_buffer_copy"
17994 if test "x$ac_cv_func_ldns_buffer_copy" = xyes; then :
17998 if test $USE_NSS = "no"; then
17999 ac_fn_c_check_func "$LINENO" "ldns_key_buf2rsa_raw" "ac_cv_func_ldns_key_buf2rsa_raw"
18000 if test "x$ac_cv_func_ldns_key_buf2rsa_raw" = xyes; then :
18005 ac_cv_func_ldns_key_buf2rsa_raw="yes"
18007 ac_fn_c_check_func "$LINENO" "ldns_get_random" "ac_cv_func_ldns_get_random"
18008 if test "x$ac_cv_func_ldns_get_random" = xyes; then :
18012 ac_fn_c_check_func "$LINENO" "ldns_b32_ntop_extended_hex" "ac_cv_func_ldns_b32_ntop_extended_hex"
18013 if test "x$ac_cv_func_ldns_b32_ntop_extended_hex" = xyes; then :
18017 if test x$use_gost = xyes -a x$USE_NSS = xno; then
18018 ac_fn_c_check_func "$LINENO" "ldns_key_EVP_load_gost_id" "ac_cv_func_ldns_key_EVP_load_gost_id"
18019 if test "x$ac_cv_func_ldns_key_EVP_load_gost_id" = xyes; then :
18023 for ac_func in ldns_key_EVP_unload_gost
18025 ac_fn_c_check_func "$LINENO" "ldns_key_EVP_unload_gost" "ac_cv_func_ldns_key_EVP_unload_gost"
18026 if test "x$ac_cv_func_ldns_key_EVP_unload_gost" = xyes; then :
18027 cat >>confdefs.h <<_ACEOF
18028 #define HAVE_LDNS_KEY_EVP_UNLOAD_GOST 1
18035 ac_cv_func_ldns_key_EVP_load_gost_id="yes"
18037 if test x$use_ecdsa = xyes; then
18038 ac_fn_c_check_decl "$LINENO" "LDNS_ECDSAP384SHA384" "ac_cv_have_decl_LDNS_ECDSAP384SHA384" "
18039 $ac_includes_default
18040 #ifdef HAVE_SYS_SOCKET_H
18041 # include <sys/socket.h>
18043 #ifdef HAVE_WS2TCPIP_H
18044 # include <ws2tcpip.h>
18046 #include <ldns/ldns.h>
18049 if test "x$ac_cv_have_decl_LDNS_ECDSAP384SHA384" = xyes; then :
18054 ac_cv_have_decl_LDNS_ECDSAP384SHA384="yes"
18056 for ac_header in ldns/ldns.h
18058 ac_fn_c_check_header_compile "$LINENO" "ldns/ldns.h" "ac_cv_header_ldns_ldns_h" "$ac_includes_default
18059 #ifdef HAVE_SYS_SOCKET_H
18060 #include <sys/socket.h>
18063 #ifdef HAVE_NETINET_IN_H
18064 #include <netinet/in.h>
18067 #ifdef HAVE_ARPA_INET_H
18068 #include <arpa/inet.h>
18071 #ifdef HAVE_WINSOCK2_H
18072 #include <winsock2.h>
18075 #ifdef HAVE_WS2TCPIP_H
18076 #include <ws2tcpip.h>
18080 if test "x$ac_cv_header_ldns_ldns_h" = xyes; then :
18081 cat >>confdefs.h <<_ACEOF
18082 #define HAVE_LDNS_LDNS_H 1
18087 as_fn_error $? "No ldns include file found, install the ldns library development files. Install package ldns-dev or ldns-devel or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
18093 if test $ac_cv_func_ldns_buffer_copy = yes \
18094 -a $ac_cv_func_ldns_key_buf2rsa_raw = yes \
18095 -a $ac_cv_func_ldns_get_random = yes \
18096 -a $ac_cv_header_ldns_ldns_h = yes \
18097 -a $ac_cv_func_ldns_b32_ntop_extended_hex = yes \
18098 -a $ac_cv_func_ldns_key_EVP_load_gost_id = yes \
18099 -a $ac_cv_have_decl_LDNS_ECDSAP384SHA384 = yes; then
18102 as_fn_error $? "ldns library is not recent, update the ldns library, install it into system lib dir or use --with-ldns=path to other location. The --with-ldns can point to the make-dir of ldns. Package libldns or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18107 $as_echo "$as_me: Stripping extension flags..." >&6;}
18109 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
18110 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18112 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
18117 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
18118 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
18120 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
18125 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
18126 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
18128 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
18133 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
18134 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
18136 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
18141 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
18142 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
18144 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
18149 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
18150 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
18152 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
18157 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
18158 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
18160 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
18165 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
18166 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
18168 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
18173 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
18176 cat >>confdefs.h <<_ACEOF
18177 #define MAXSYSLOGMSGLEN 10240
18183 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"
18185 ac_config_headers="$ac_config_headers config.h"
18187 cat >confcache <<\_ACEOF
18188 # This file is a shell script that caches the results of configure
18189 # tests run on this system so they can be shared between configure
18190 # scripts and configure runs, see configure's option --config-cache.
18191 # It is not useful on other systems. If it contains results you don't
18192 # want to keep, you may remove or edit it.
18194 # config.status only pays attention to the cache file if you give it
18195 # the --recheck option to rerun configure.
18197 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18198 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18199 # following values.
18203 # The following way of writing the cache mishandles newlines in values,
18204 # but we know of no workaround that is simple, portable, and efficient.
18205 # So, we kill variables containing newlines.
18206 # Ultrix sh set writes to stderr and can't be redirected directly,
18207 # and sets the high bit in the cache file unless we assign to the vars.
18209 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18210 eval ac_val=\$$ac_var
18214 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18215 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18218 _ | IFS | as_nl) ;; #(
18219 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18220 *) { eval $ac_var=; unset $ac_var;} ;;
18226 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18227 *${as_nl}ac_space=\ *)
18228 # `set' does not quote correctly, so add quotes: double-quote
18229 # substitution turns \\\\ into \\, and sed turns \\ into \.
18232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18235 # `set' quotes correctly as required by POSIX, so do not add quotes.
18236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18245 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18247 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18249 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18250 if test -w "$cache_file"; then
18251 if test "x$cache_file" != "x/dev/null"; then
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18253 $as_echo "$as_me: updating cache $cache_file" >&6;}
18254 if test ! -f "$cache_file" || test -h "$cache_file"; then
18255 cat confcache >"$cache_file"
18257 case $cache_file in #(
18259 mv -f confcache "$cache_file"$$ &&
18260 mv -f "$cache_file"$$ "$cache_file" ;; #(
18262 mv -f confcache "$cache_file" ;;
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18268 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18273 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18274 # Let make expand exec_prefix.
18275 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18277 DEFS=-DHAVE_CONFIG_H
18282 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18283 # 1. Remove the extension, and $U if already installed.
18284 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18285 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18286 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18287 # will be set to the directory where LIBOBJS objects are built.
18288 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18289 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18291 LIBOBJS=$ac_libobjs
18293 LTLIBOBJS=$ac_ltlibobjs
18297 : "${CONFIG_STATUS=./config.status}"
18299 ac_clean_files_save=$ac_clean_files
18300 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18302 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18304 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18306 # Generated by $as_me.
18307 # Run this file to recreate the current configuration.
18308 # Compiler output produced by configure, useful for debugging
18309 # configure, is in config.log if it exists.
18312 ac_cs_recheck=false
18315 SHELL=\${CONFIG_SHELL-$SHELL}
18318 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18319 ## -------------------- ##
18320 ## M4sh Initialization. ##
18321 ## -------------------- ##
18323 # Be more Bourne compatible
18324 DUALCASE=1; export DUALCASE # for MKS sh
18325 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18328 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18329 # is contrary to our usage. Disable this feature.
18330 alias -g '${1+"$@"}'='"$@"'
18331 setopt NO_GLOB_SUBST
18333 case `(set -o) 2>/dev/null` in #(
18345 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18346 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18347 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18348 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18349 # Prefer a ksh shell builtin over an external printf program on Solaris,
18350 # but without wasting forks for bash or zsh.
18351 if test -z "$BASH_VERSION$ZSH_VERSION" \
18352 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18353 as_echo='print -r --'
18354 as_echo_n='print -rn --'
18355 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18356 as_echo='printf %s\n'
18357 as_echo_n='printf %s'
18359 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18360 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18361 as_echo_n='/usr/ucb/echo -n'
18363 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18364 as_echo_n_body='eval
18368 expr "X$arg" : "X\\(.*\\)$as_nl";
18369 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18371 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18373 export as_echo_n_body
18374 as_echo_n='sh -c $as_echo_n_body as_echo'
18376 export as_echo_body
18377 as_echo='sh -c $as_echo_body as_echo'
18380 # The user is always right.
18381 if test "${PATH_SEPARATOR+set}" != set; then
18383 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18384 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18391 # We need space, tab and new line, in precisely that order. Quoting is
18392 # there to prevent editors from complaining about space-tab.
18393 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18394 # splitting by setting IFS to empty value.)
18397 # Find who we are. Look in the path if we contain no directory separator.
18400 *[\\/]* ) as_myself=$0 ;;
18401 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18402 for as_dir in $PATH
18405 test -z "$as_dir" && as_dir=.
18406 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18412 # We did not find ourselves, most probably we were run as `sh COMMAND'
18413 # in which case we are not to be found in the path.
18414 if test "x$as_myself" = x; then
18417 if test ! -f "$as_myself"; then
18418 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18422 # Unset variables that we do not need and which cause bugs (e.g. in
18423 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18424 # suppresses any "Segmentation fault" message there. '((' could
18425 # trigger a bug in pdksh 5.2.14.
18426 for as_var in BASH_ENV ENV MAIL MAILPATH
18427 do eval test x\${$as_var+set} = xset \
18428 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18441 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18444 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18445 # ----------------------------------------
18446 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18447 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18448 # script with STATUS, using 1 if that was 0.
18451 as_status=$1; test $as_status -eq 0 && as_status=1
18453 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18454 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18456 $as_echo "$as_me: error: $2" >&2
18457 as_fn_exit $as_status
18461 # as_fn_set_status STATUS
18462 # -----------------------
18463 # Set $? to STATUS, without forking.
18464 as_fn_set_status ()
18467 } # as_fn_set_status
18469 # as_fn_exit STATUS
18470 # -----------------
18471 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18475 as_fn_set_status $1
18481 # Portably unset VAR.
18484 { eval $1=; unset $1;}
18486 as_unset=as_fn_unset
18487 # as_fn_append VAR VALUE
18488 # ----------------------
18489 # Append the text in VALUE to the end of the definition contained in VAR. Take
18490 # advantage of any shell optimizations that allow amortized linear growth over
18491 # repeated appends, instead of the typical quadratic growth present in naive
18493 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18494 eval 'as_fn_append ()
18505 # as_fn_arith ARG...
18506 # ------------------
18507 # Perform arithmetic evaluation on the ARGs, and store the result in the
18508 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18509 # must be portable across $(()) and expr.
18510 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18511 eval 'as_fn_arith ()
18518 as_val=`expr "$@" || test $? -eq 1`
18523 if expr a : '\(a\)' >/dev/null 2>&1 &&
18524 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18530 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18531 as_basename=basename
18536 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18542 as_me=`$as_basename -- "$0" ||
18543 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18544 X"$0" : 'X\(//\)$' \| \
18545 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18547 sed '/^.*\/\([^/][^/]*\)\/*$/{
18561 # Avoid depending upon Character Ranges.
18562 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18563 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18564 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18565 as_cr_digits='0123456789'
18566 as_cr_alnum=$as_cr_Letters$as_cr_digits
18568 ECHO_C= ECHO_N= ECHO_T=
18569 case `echo -n x` in #(((((
18571 case `echo 'xy\c'` in
18572 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18574 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18581 rm -f conf$$ conf$$.exe conf$$.file
18582 if test -d conf$$.dir; then
18583 rm -f conf$$.dir/conf$$.file
18586 mkdir conf$$.dir 2>/dev/null
18588 if (echo >conf$$.file) 2>/dev/null; then
18589 if ln -s conf$$.file conf$$ 2>/dev/null; then
18591 # ... but there are two gotchas:
18592 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18593 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18594 # In both cases, we have to default to `cp -pR'.
18595 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18597 elif ln conf$$.file conf$$ 2>/dev/null; then
18605 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18606 rmdir conf$$.dir 2>/dev/null
18611 # Create "$as_dir" as a directory, including parents if necessary.
18616 -*) as_dir=./$as_dir;;
18618 test -d "$as_dir" || eval $as_mkdir_p || {
18622 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18623 *) as_qdir=$as_dir;;
18625 as_dirs="'$as_qdir' $as_dirs"
18626 as_dir=`$as_dirname -- "$as_dir" ||
18627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18628 X"$as_dir" : 'X\(//\)[^/]' \| \
18629 X"$as_dir" : 'X\(//\)$' \| \
18630 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18631 $as_echo X"$as_dir" |
18632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18636 /^X\(\/\/\)[^/].*/{
18649 test -d "$as_dir" && break
18651 test -z "$as_dirs" || eval "mkdir $as_dirs"
18652 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18656 if mkdir -p . 2>/dev/null; then
18657 as_mkdir_p='mkdir -p "$as_dir"'
18659 test -d ./-p && rmdir ./-p
18664 # as_fn_executable_p FILE
18665 # -----------------------
18666 # Test if FILE is an executable regular file.
18667 as_fn_executable_p ()
18669 test -f "$1" && test -x "$1"
18670 } # as_fn_executable_p
18671 as_test_x='test -x'
18672 as_executable_p=as_fn_executable_p
18674 # Sed expression to map a string onto a valid CPP name.
18675 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18677 # Sed expression to map a string onto a valid variable name.
18678 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18682 ## ----------------------------------- ##
18683 ## Main body of $CONFIG_STATUS script. ##
18684 ## ----------------------------------- ##
18686 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18689 # Save the log message, to keep $0 and so on meaningful, and to
18690 # report actual input values of CONFIG_FILES etc. instead of their
18691 # values after options handling.
18693 This file was extended by unbound $as_me 1.4.20, which was
18694 generated by GNU Autoconf 2.69. Invocation command line was
18696 CONFIG_FILES = $CONFIG_FILES
18697 CONFIG_HEADERS = $CONFIG_HEADERS
18698 CONFIG_LINKS = $CONFIG_LINKS
18699 CONFIG_COMMANDS = $CONFIG_COMMANDS
18702 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18707 case $ac_config_files in *"
18708 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18711 case $ac_config_headers in *"
18712 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18717 # Files that config.status was made for.
18718 config_files="$ac_config_files"
18719 config_headers="$ac_config_headers"
18720 config_commands="$ac_config_commands"
18724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18726 \`$as_me' instantiates files and other configuration actions
18727 from templates according to the current configuration. Unless the files
18728 and actions are specified as TAGs, all are instantiated by default.
18730 Usage: $0 [OPTION]... [TAG]...
18732 -h, --help print this help, then exit
18733 -V, --version print version number and configuration settings, then exit
18734 --config print configuration, then exit
18735 -q, --quiet, --silent
18736 do not print progress messages
18737 -d, --debug don't remove temporary files
18738 --recheck update $as_me by reconfiguring in the same conditions
18739 --file=FILE[:TEMPLATE]
18740 instantiate the configuration file FILE
18741 --header=FILE[:TEMPLATE]
18742 instantiate the configuration header FILE
18744 Configuration files:
18747 Configuration headers:
18750 Configuration commands:
18753 Report bugs to <unbound-bugs@nlnetlabs.nl>."
18756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18757 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18759 unbound config.status 1.4.20
18760 configured by $0, generated by GNU Autoconf 2.69,
18761 with options \\"\$ac_cs_config\\"
18763 Copyright (C) 2012 Free Software Foundation, Inc.
18764 This config.status script is free software; the Free Software Foundation
18765 gives unlimited permission to copy, distribute and modify it."
18770 test -n "\$AWK" || AWK=awk
18773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18774 # The default lists apply if the user does not specify any file.
18780 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18781 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18785 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18797 # Handling of the options.
18798 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18800 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18801 $as_echo "$ac_cs_version"; exit ;;
18802 --config | --confi | --conf | --con | --co | --c )
18803 $as_echo "$ac_cs_config"; exit ;;
18804 --debug | --debu | --deb | --de | --d | -d )
18806 --file | --fil | --fi | --f )
18809 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18810 '') as_fn_error $? "missing file argument" ;;
18812 as_fn_append CONFIG_FILES " '$ac_optarg'"
18813 ac_need_defaults=false;;
18814 --header | --heade | --head | --hea )
18817 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18819 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18820 ac_need_defaults=false;;
18822 # Conflict between --help and --header
18823 as_fn_error $? "ambiguous option: \`$1'
18824 Try \`$0 --help' for more information.";;
18825 --help | --hel | -h )
18826 $as_echo "$ac_cs_usage"; exit ;;
18827 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18828 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18831 # This is an error.
18832 -*) as_fn_error $? "unrecognized option: \`$1'
18833 Try \`$0 --help' for more information." ;;
18835 *) as_fn_append ac_config_targets " $1"
18836 ac_need_defaults=false ;;
18842 ac_configure_extra_args=
18844 if $ac_cs_silent; then
18846 ac_configure_extra_args="$ac_configure_extra_args --silent"
18850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18851 if \$ac_cs_recheck; then
18852 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18854 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18855 CONFIG_SHELL='$SHELL'
18856 export CONFIG_SHELL
18861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18865 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18866 ## Running $as_me. ##
18872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18878 # The HP-UX ksh and POSIX shell print the target directory to stdout
18879 # if CDPATH is set.
18880 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18882 sed_quote_subst='$sed_quote_subst'
18883 double_quote_subst='$double_quote_subst'
18884 delay_variable_subst='$delay_variable_subst'
18885 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18886 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18887 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18888 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18889 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18890 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18891 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18892 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18893 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18894 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18895 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18896 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18897 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18898 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18899 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18900 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18901 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18902 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18903 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18904 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18905 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18906 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18907 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18908 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18909 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18910 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18911 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18912 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18913 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18914 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18915 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18916 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18917 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18918 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18919 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18920 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18921 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18922 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18923 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18924 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18925 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18926 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18927 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18928 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18929 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18930 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18931 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18932 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18933 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18934 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18935 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18936 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18937 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18938 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18939 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18940 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18941 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"`'
18942 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18943 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18944 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18945 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18946 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18947 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18948 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18949 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18950 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18951 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18952 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18953 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18954 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18955 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18956 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18957 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18958 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18959 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18960 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18961 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18962 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18963 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18964 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18965 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18966 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18967 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18968 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18969 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18970 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18971 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18972 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18973 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18974 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18975 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18976 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18977 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18978 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18979 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18980 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18981 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18982 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18983 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18984 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18985 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18986 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18987 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18988 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18989 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18990 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18991 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18992 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18993 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18994 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18995 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18996 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18997 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18998 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18999 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19000 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19001 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19002 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19003 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19004 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19005 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19006 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19007 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19008 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19009 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19010 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19011 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19012 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19013 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19014 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19017 LTCFLAGS='$LTCFLAGS'
19018 compiler='$compiler_DEFAULT'
19020 # A function that is used when there is no print builtin or printf.
19021 func_fallback_echo ()
19023 eval 'cat <<_LTECHO_EOF
19028 # Quote evaled strings.
19043 deplibs_check_method \
19048 sharedlib_from_linklib_cmd \
19051 archiver_list_spec \
19057 lt_cv_sys_global_symbol_pipe \
19058 lt_cv_sys_global_symbol_to_cdecl \
19059 lt_cv_sys_global_symbol_to_c_name_address \
19060 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19061 nm_file_list_spec \
19062 lt_prog_compiler_no_builtin_flag \
19063 lt_prog_compiler_pic \
19064 lt_prog_compiler_wl \
19065 lt_prog_compiler_static \
19066 lt_cv_prog_compiler_c_o \
19075 export_dynamic_flag_spec \
19076 whole_archive_flag_spec \
19077 compiler_needs_object \
19079 allow_undefined_flag \
19080 no_undefined_flag \
19081 hardcode_libdir_flag_spec \
19082 hardcode_libdir_separator \
19086 variables_saved_for_relink \
19088 library_names_spec \
19090 install_override_mode \
19094 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19095 *[\\\\\\\`\\"\\\$]*)
19096 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19099 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19104 # Double-quote double-evaled strings.
19105 for var in reload_cmds \
19106 old_postinstall_cmds \
19107 old_postuninstall_cmds \
19109 extract_expsyms_cmds \
19110 old_archive_from_new_cmds \
19111 old_archive_from_expsyms_cmds \
19113 archive_expsym_cmds \
19115 module_expsym_cmds \
19116 export_symbols_cmds \
19120 postuninstall_cmds \
19122 sys_lib_search_path_spec \
19123 sys_lib_dlsearch_path_spec; do
19124 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19125 *[\\\\\\\`\\"\\\$]*)
19126 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19129 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19134 ac_aux_dir='$ac_aux_dir'
19135 xsi_shell='$xsi_shell'
19136 lt_shell_append='$lt_shell_append'
19138 # See if we are running on zsh, and set the options which allow our
19139 # commands through without removal of \ escapes INIT.
19140 if test -n "\${ZSH_VERSION+set}" ; then
19141 setopt NO_GLOB_SUBST
19147 TIMESTAMP='$TIMESTAMP'
19156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19158 # Handling of arguments.
19159 for ac_config_target in $ac_config_targets
19161 case $ac_config_target in
19162 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19163 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
19164 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19165 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
19166 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
19167 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
19168 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
19169 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
19170 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
19171 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
19172 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19174 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19179 # If the user did not use the arguments to specify the items to instantiate,
19180 # then the envvar interface is used. Set only those that are not.
19181 # We use the long form for the default assignment because of an extremely
19182 # bizarre bug on SunOS 4.1.3.
19183 if $ac_need_defaults; then
19184 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19185 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19186 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19189 # Have a temporary directory for convenience. Make it in the build tree
19190 # simply because there is no reason against having it here, and in addition,
19191 # creating and moving files from /tmp can sometimes cause problems.
19192 # Hook for its removal unless debugging.
19193 # Note that there is a small window in which the directory will not be cleaned:
19194 # after its creation but before its name has been assigned to `$tmp'.
19198 trap 'exit_status=$?
19199 : "${ac_tmp:=$tmp}"
19200 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19202 trap 'as_fn_exit 1' 1 2 13 15
19204 # Create a (secure) tmp directory for tmp files.
19207 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19211 tmp=./conf$$-$RANDOM
19212 (umask 077 && mkdir "$tmp")
19213 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19216 # Set up the scripts for CONFIG_FILES section.
19217 # No need to generate them if there are no CONFIG_FILES.
19218 # This happens for instance with `./config.status config.h'.
19219 if test -n "$CONFIG_FILES"; then
19222 ac_cr=`echo X | tr X '\015'`
19223 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19224 # But we know of no other shell where ac_cr would be empty at this
19225 # point, so we can use a bashism as a fallback.
19226 if test "x$ac_cr" = x; then
19227 eval ac_cr=\$\'\\r\'
19229 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19230 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19233 ac_cs_awk_cr=$ac_cr
19236 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19241 echo "cat >conf$$subs.awk <<_ACEOF" &&
19242 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19244 } >conf$$subs.sh ||
19245 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19246 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19248 for ac_last_try in false false false false false :; do
19249 . ./conf$$subs.sh ||
19250 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19252 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19253 if test $ac_delim_n = $ac_delim_num; then
19255 elif $ac_last_try; then
19256 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19258 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19261 rm -f conf$$subs.sh
19263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19264 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19268 s/^/S["/; s/!.*/"]=/
19278 s/\(.\{148\}\)..*/\1/
19280 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19285 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19292 s/\(.\{148\}\)..*/\1/
19294 s/["\\]/\\&/g; s/^/"/; s/$/"/
19298 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19303 ' <conf$$subs.awk | sed '
19308 ' >>$CONFIG_STATUS || ac_write_fail=1
19309 rm -f conf$$subs.awk
19310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19312 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19313 for (key in S) S_is_set[key] = 1
19319 nfields = split(line, field, "@")
19321 len = length(field[1])
19322 for (i = 2; i < nfields; i++) {
19324 keylen = length(key)
19325 if (S_is_set[key]) {
19327 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19328 len += length(value) + length(field[++i])
19339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19340 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19341 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19344 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19345 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19348 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19349 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19350 # trailing colons and then remove the whole line if VPATH becomes empty
19351 # (actually we leave an empty line to preserve line numbers).
19352 if test "x$srcdir" = x.; then
19353 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19372 fi # test -n "$CONFIG_FILES"
19374 # Set up the scripts for CONFIG_HEADERS section.
19375 # No need to generate them if there are no CONFIG_HEADERS.
19376 # This happens for instance with `./config.status Makefile'.
19377 if test -n "$CONFIG_HEADERS"; then
19378 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19382 # Transform confdefs.h into an awk script `defines.awk', embedded as
19383 # here-document in config.status, that substitutes the proper values into
19384 # config.h.in to produce config.h.
19386 # Create a delimiter string that does not exist in confdefs.h, to ease
19387 # handling of long lines.
19389 for ac_last_try in false false :; do
19390 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19391 if test -z "$ac_tt"; then
19393 elif $ac_last_try; then
19394 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19400 # For the awk script, D is an array of macro values keyed by name,
19401 # likewise P contains macro parameters if any. Preserve backslash
19402 # newline sequences.
19404 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19406 s/.\{148\}/&'"$ac_delim"'/g
19409 s/^[ ]*#[ ]*define[ ][ ]*/ /
19416 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19418 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19422 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19423 D["\1"]=" \3\\\\\\n"\\/p
19425 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19430 s/.\{148\}/&'"$ac_delim"'/g
19435 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19438 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19440 ' <confdefs.h | sed '
19441 s/'"$ac_delim"'/"\\\
19442 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19445 for (key in D) D_is_set[key] = 1
19448 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19450 split(line, arg, " ")
19451 if (arg[1] == "#") {
19455 defundef = substr(arg[1], 2)
19458 split(mac1, mac2, "(") #)
19460 prefix = substr(line, 1, index(line, defundef) - 1)
19461 if (D_is_set[macro]) {
19462 # Preserve the white space surrounding the "#".
19463 print prefix "define", macro P[macro] D[macro]
19466 # Replace #undef with comments. This is necessary, for example,
19467 # in the case of _POSIX_SOURCE, which is predefined and required
19468 # on some systems where configure will not decide to define it.
19469 if (defundef == "undef") {
19470 print "/*", prefix defundef, macro, "*/"
19478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19479 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19480 fi # test -n "$CONFIG_HEADERS"
19483 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19488 :[FHLC]) ac_mode=$ac_tag; continue;;
19490 case $ac_mode$ac_tag in
19492 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19493 :[FH]-) ac_tag=-:-;;
19494 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19511 -) ac_f="$ac_tmp/stdin";;
19512 *) # Look for the file first in the build tree, then in the source tree
19513 # (if the path is not absolute). The absolute path cannot be DOS-style,
19514 # because $ac_f cannot contain `:'.
19518 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19520 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19522 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19523 as_fn_append ac_file_inputs " '$ac_f'"
19526 # Let's still pretend it is `configure' which instantiates (i.e., don't
19527 # use $as_me), people would be surprised to read:
19528 # /* config.h. Generated by config.status. */
19529 configure_input='Generated from '`
19530 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19532 if test x"$ac_file" != x-; then
19533 configure_input="$ac_file. $configure_input"
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19535 $as_echo "$as_me: creating $ac_file" >&6;}
19537 # Neutralize special characters interpreted by sed in replacement strings.
19538 case $configure_input in #(
19539 *\&* | *\|* | *\\* )
19540 ac_sed_conf_input=`$as_echo "$configure_input" |
19541 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19542 *) ac_sed_conf_input=$configure_input;;
19546 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19547 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19552 ac_dir=`$as_dirname -- "$ac_file" ||
19553 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19554 X"$ac_file" : 'X\(//\)[^/]' \| \
19555 X"$ac_file" : 'X\(//\)$' \| \
19556 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19557 $as_echo X"$ac_file" |
19558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19562 /^X\(\/\/\)[^/].*/{
19575 as_dir="$ac_dir"; as_fn_mkdir_p
19579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19582 # A ".." for each directory in $ac_dir_suffix.
19583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19584 case $ac_top_builddir_sub in
19585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19589 ac_abs_top_builddir=$ac_pwd
19590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19591 # for backward compatibility:
19592 ac_top_builddir=$ac_top_build_prefix
19595 .) # We are building in place.
19597 ac_top_srcdir=$ac_top_builddir_sub
19598 ac_abs_top_srcdir=$ac_pwd ;;
19599 [\\/]* | ?:[\\/]* ) # Absolute name.
19600 ac_srcdir=$srcdir$ac_dir_suffix;
19601 ac_top_srcdir=$srcdir
19602 ac_abs_top_srcdir=$srcdir ;;
19603 *) # Relative name.
19604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19605 ac_top_srcdir=$ac_top_build_prefix$srcdir
19606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19620 # If the template does not know about datarootdir, expand it.
19621 # FIXME: This hack should be removed a few years after 2.60.
19622 ac_datarootdir_hack=; ac_datarootdir_seen=
19633 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19634 *datarootdir*) ac_datarootdir_seen=yes;;
19635 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19637 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19640 ac_datarootdir_hack='
19641 s&@datadir@&$datadir&g
19642 s&@docdir@&$docdir&g
19643 s&@infodir@&$infodir&g
19644 s&@localedir@&$localedir&g
19645 s&@mandir@&$mandir&g
19646 s&\\\${datarootdir}&$datarootdir&g' ;;
19650 # Neutralize VPATH when `$srcdir' = `.'.
19651 # Shell code in configure.ac might set extrasub.
19652 # FIXME: do we really want to maintain this feature?
19653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19654 ac_sed_extra="$ac_vpsub
19657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19660 s|@configure_input@|$ac_sed_conf_input|;t t
19661 s&@top_builddir@&$ac_top_builddir_sub&;t t
19662 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19663 s&@srcdir@&$ac_srcdir&;t t
19664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19665 s&@top_srcdir@&$ac_top_srcdir&;t t
19666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19667 s&@builddir@&$ac_builddir&;t t
19668 s&@abs_builddir@&$ac_abs_builddir&;t t
19669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19670 $ac_datarootdir_hack
19672 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19673 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19675 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19676 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19677 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19678 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19680 which seems to be undefined. Please make sure it is defined" >&5
19681 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19682 which seems to be undefined. Please make sure it is defined" >&2;}
19684 rm -f "$ac_tmp/stdin"
19686 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19687 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19695 if test x"$ac_file" != x-; then
19697 $as_echo "/* $configure_input */" \
19698 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19699 } >"$ac_tmp/config.h" \
19700 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19701 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19703 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19706 mv "$ac_tmp/config.h" "$ac_file" \
19707 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19710 $as_echo "/* $configure_input */" \
19711 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19712 || as_fn_error $? "could not create -" "$LINENO" 5
19716 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19717 $as_echo "$as_me: executing $ac_file commands" >&6;}
19722 case $ac_file$ac_mode in
19725 # See if we are running on zsh, and set the options which allow our
19726 # commands through without removal of \ escapes.
19727 if test -n "${ZSH_VERSION+set}" ; then
19728 setopt NO_GLOB_SUBST
19731 cfgfile="${ofile}T"
19732 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19735 cat <<_LT_EOF >> "$cfgfile"
19738 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19739 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19740 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19741 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19743 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19744 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19746 # Written by Gordon Matzigkeit, 1996
19748 # This file is part of GNU Libtool.
19750 # GNU Libtool is free software; you can redistribute it and/or
19751 # modify it under the terms of the GNU General Public License as
19752 # published by the Free Software Foundation; either version 2 of
19753 # the License, or (at your option) any later version.
19755 # As a special exception to the GNU General Public License,
19756 # if you distribute this file as part of a program or library that
19757 # is built using GNU Libtool, you may include this file under the
19758 # same distribution terms that you use for the rest of that program.
19760 # GNU Libtool is distributed in the hope that it will be useful,
19761 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19762 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19763 # GNU General Public License for more details.
19765 # You should have received a copy of the GNU General Public License
19766 # along with GNU Libtool; see the file COPYING. If not, a copy
19767 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19768 # obtained by writing to the Free Software Foundation, Inc.,
19769 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19772 # The names of the tagged configurations supported by this script.
19775 # ### BEGIN LIBTOOL CONFIG
19777 # Which release of libtool.m4 was used?
19778 macro_version=$macro_version
19779 macro_revision=$macro_revision
19781 # Whether or not to build shared libraries.
19782 build_libtool_libs=$enable_shared
19784 # Whether or not to build static libraries.
19785 build_old_libs=$enable_static
19787 # What type of objects to build.
19790 # Whether or not to optimize for fast installation.
19791 fast_install=$enable_fast_install
19793 # Shell to use when invoking shell scripts.
19796 # An echo program that protects backslashes.
19799 # The PATH separator for the build system.
19800 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19803 host_alias=$host_alias
19807 # The build system.
19808 build_alias=$build_alias
19812 # A sed program that does not truncate output.
19815 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19816 Xsed="\$SED -e 1s/^X//"
19818 # A grep program that handles long lines.
19824 # A literal string matcher.
19827 # A BSD- or MS-compatible name lister.
19830 # Whether we need soft or hard links.
19833 # What is the maximum length of a command?
19834 max_cmd_len=$max_cmd_len
19836 # Object file suffix (normally "o").
19839 # Executable file suffix (normally "").
19842 # whether the shell understands "unset".
19845 # turn spaces into newlines.
19848 # turn newlines into spaces.
19851 # convert \$build file names to \$host format.
19852 to_host_file_cmd=$lt_cv_to_host_file_cmd
19854 # convert \$build files to toolchain format.
19855 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19857 # An object symbol dumper.
19858 OBJDUMP=$lt_OBJDUMP
19860 # Method to check whether dependent libraries are shared objects.
19861 deplibs_check_method=$lt_deplibs_check_method
19863 # Command to use when deplibs_check_method = "file_magic".
19864 file_magic_cmd=$lt_file_magic_cmd
19866 # How to find potential files when deplibs_check_method = "file_magic".
19867 file_magic_glob=$lt_file_magic_glob
19869 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19870 want_nocaseglob=$lt_want_nocaseglob
19872 # DLL creation program.
19873 DLLTOOL=$lt_DLLTOOL
19875 # Command to associate shared and link libraries.
19876 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19881 # Flags to create an archive.
19882 AR_FLAGS=$lt_AR_FLAGS
19884 # How to feed a file listing to the archiver.
19885 archiver_list_spec=$lt_archiver_list_spec
19887 # A symbol stripping program.
19890 # Commands used to install an old-style archive.
19892 old_postinstall_cmds=$lt_old_postinstall_cmds
19893 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19895 # Whether to use a lock for old archive extraction.
19896 lock_old_archive_extraction=$lock_old_archive_extraction
19901 # LTCC compiler flags.
19902 LTCFLAGS=$lt_CFLAGS
19904 # Take the output of nm and produce a listing of raw symbols and C names.
19905 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19907 # Transform the output of nm in a proper C declaration.
19908 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19910 # Transform the output of nm in a C name address pair.
19911 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19913 # Transform the output of nm in a C name address pair when lib prefix is needed.
19914 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19916 # Specify filename containing input files for \$NM.
19917 nm_file_list_spec=$lt_nm_file_list_spec
19919 # The root where to search for dependent libraries,and in which our libraries should be installed.
19920 lt_sysroot=$lt_sysroot
19922 # The name of the directory that contains temporary libtool files.
19925 # Used to examine libraries when file_magic_cmd begins with "file".
19926 MAGIC_CMD=$MAGIC_CMD
19928 # Must we lock files when doing compilation?
19929 need_locks=$lt_need_locks
19932 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19934 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19935 DSYMUTIL=$lt_DSYMUTIL
19937 # Tool to change global to local symbols on Mac OS X.
19940 # Tool to manipulate fat objects and archives on Mac OS X.
19943 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19946 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19947 OTOOL64=$lt_OTOOL64
19949 # Old archive suffix (normally "a").
19952 # Shared library suffix (normally ".so").
19953 shrext_cmds=$lt_shrext_cmds
19955 # The commands to extract the exported symbol list from a shared archive.
19956 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19958 # Variables whose values should be saved in libtool wrapper scripts and
19959 # restored at link time.
19960 variables_saved_for_relink=$lt_variables_saved_for_relink
19962 # Do we need the "lib" prefix for modules?
19963 need_lib_prefix=$need_lib_prefix
19965 # Do we need a version for libraries?
19966 need_version=$need_version
19968 # Library versioning type.
19969 version_type=$version_type
19971 # Shared library runtime path variable.
19972 runpath_var=$runpath_var
19974 # Shared library path variable.
19975 shlibpath_var=$shlibpath_var
19977 # Is shlibpath searched before the hard-coded library search path?
19978 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19980 # Format of library name prefix.
19981 libname_spec=$lt_libname_spec
19983 # List of archive names. First name is the real one, the rest are links.
19984 # The last name is the one that the linker finds with -lNAME
19985 library_names_spec=$lt_library_names_spec
19987 # The coded name of the library, if different from the real name.
19988 soname_spec=$lt_soname_spec
19990 # Permission mode override for installation of shared libraries.
19991 install_override_mode=$lt_install_override_mode
19993 # Command to use after installation of a shared archive.
19994 postinstall_cmds=$lt_postinstall_cmds
19996 # Command to use after uninstallation of a shared archive.
19997 postuninstall_cmds=$lt_postuninstall_cmds
19999 # Commands used to finish a libtool library installation in a directory.
20000 finish_cmds=$lt_finish_cmds
20002 # As "finish_cmds", except a single script fragment to be evaled but
20004 finish_eval=$lt_finish_eval
20006 # Whether we should hardcode library paths into libraries.
20007 hardcode_into_libs=$hardcode_into_libs
20009 # Compile-time system search path for libraries.
20010 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20012 # Run-time system search path for libraries.
20013 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20015 # Whether dlopen is supported.
20016 dlopen_support=$enable_dlopen
20018 # Whether dlopen of programs is supported.
20019 dlopen_self=$enable_dlopen_self
20021 # Whether dlopen of statically linked programs is supported.
20022 dlopen_self_static=$enable_dlopen_self_static
20024 # Commands to strip libraries.
20025 old_striplib=$lt_old_striplib
20026 striplib=$lt_striplib
20029 # The linker used to build libraries.
20032 # How to create reloadable object files.
20033 reload_flag=$lt_reload_flag
20034 reload_cmds=$lt_reload_cmds
20036 # Commands used to build an old-style archive.
20037 old_archive_cmds=$lt_old_archive_cmds
20039 # A language specific compiler.
20042 # Is the compiler the GNU compiler?
20045 # Compiler flag to turn off builtin functions.
20046 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20048 # Additional compiler flags for building library objects.
20049 pic_flag=$lt_lt_prog_compiler_pic
20051 # How to pass a linker flag through the compiler.
20052 wl=$lt_lt_prog_compiler_wl
20054 # Compiler flag to prevent dynamic linking.
20055 link_static_flag=$lt_lt_prog_compiler_static
20057 # Does compiler simultaneously support -c and -o options?
20058 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20060 # Whether or not to add -lc for building shared libraries.
20061 build_libtool_need_lc=$archive_cmds_need_lc
20063 # Whether or not to disallow shared libs when runtime libs are static.
20064 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20066 # Compiler flag to allow reflexive dlopens.
20067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20069 # Compiler flag to generate shared objects directly from archives.
20070 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20072 # Whether the compiler copes with passing no objects directly.
20073 compiler_needs_object=$lt_compiler_needs_object
20075 # Create an old-style archive from a shared archive.
20076 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20078 # Create a temporary old-style archive to link instead of a shared archive.
20079 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20081 # Commands used to build a shared archive.
20082 archive_cmds=$lt_archive_cmds
20083 archive_expsym_cmds=$lt_archive_expsym_cmds
20085 # Commands used to build a loadable module if different from building
20086 # a shared archive.
20087 module_cmds=$lt_module_cmds
20088 module_expsym_cmds=$lt_module_expsym_cmds
20090 # Whether we are building with GNU ld or not.
20091 with_gnu_ld=$lt_with_gnu_ld
20093 # Flag that allows shared libraries with undefined symbols to be built.
20094 allow_undefined_flag=$lt_allow_undefined_flag
20096 # Flag that enforces no undefined symbols.
20097 no_undefined_flag=$lt_no_undefined_flag
20099 # Flag to hardcode \$libdir into a binary during linking.
20100 # This must work even if \$libdir does not exist
20101 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20103 # Whether we need a single "-rpath" flag with a separated argument.
20104 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20106 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20107 # DIR into the resulting binary.
20108 hardcode_direct=$hardcode_direct
20110 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20111 # DIR into the resulting binary and the resulting library dependency is
20112 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20113 # library is relocated.
20114 hardcode_direct_absolute=$hardcode_direct_absolute
20116 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20117 # into the resulting binary.
20118 hardcode_minus_L=$hardcode_minus_L
20120 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20121 # into the resulting binary.
20122 hardcode_shlibpath_var=$hardcode_shlibpath_var
20124 # Set to "yes" if building a shared library automatically hardcodes DIR
20125 # into the library and all subsequent libraries and executables linked
20127 hardcode_automatic=$hardcode_automatic
20129 # Set to yes if linker adds runtime paths of dependent libraries
20130 # to runtime path list.
20131 inherit_rpath=$inherit_rpath
20133 # Whether libtool must link a program against all its dependency libraries.
20134 link_all_deplibs=$link_all_deplibs
20136 # Set to "yes" if exported symbols are required.
20137 always_export_symbols=$always_export_symbols
20139 # The commands to list exported symbols.
20140 export_symbols_cmds=$lt_export_symbols_cmds
20142 # Symbols that should not be listed in the preloaded symbols.
20143 exclude_expsyms=$lt_exclude_expsyms
20145 # Symbols that must always be exported.
20146 include_expsyms=$lt_include_expsyms
20148 # Commands necessary for linking programs (against libraries) with templates.
20149 prelink_cmds=$lt_prelink_cmds
20151 # Commands necessary for finishing linking programs.
20152 postlink_cmds=$lt_postlink_cmds
20154 # Specify filename containing input files.
20155 file_list_spec=$lt_file_list_spec
20157 # How to hardcode a shared library path into an executable.
20158 hardcode_action=$hardcode_action
20160 # ### END LIBTOOL CONFIG
20166 cat <<\_LT_EOF >> "$cfgfile"
20167 # AIX sometimes has problems with the GCC collect2 program. For some
20168 # reason, if we set the COLLECT_NAMES environment variable, the problems
20169 # vanish in a puff of smoke.
20170 if test "X${COLLECT_NAMES+set}" != Xset; then
20172 export COLLECT_NAMES
20179 ltmain="$ac_aux_dir/ltmain.sh"
20182 # We use sed instead of cat because bash on DJGPP gets confused if
20183 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20184 # text mode, it properly converts lines to CR/LF. This bash problem
20185 # is reportedly fixed, but why not run on old versions too?
20186 sed '$q' "$ltmain" >> "$cfgfile" \
20187 || (rm -f "$cfgfile"; exit 1)
20189 if test x"$xsi_shell" = xyes; then
20190 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20194 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20195 \ * ) func_dirname_result="${3}" ;;\
20197 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20198 && mv -f "$cfgfile.tmp" "$cfgfile" \
20199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20200 test 0 -eq $? || _lt_function_replace_fail=:
20203 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20206 \ func_basename_result="${1##*/}"\
20207 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20208 && mv -f "$cfgfile.tmp" "$cfgfile" \
20209 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20210 test 0 -eq $? || _lt_function_replace_fail=:
20213 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20214 func_dirname_and_basename ()\
20217 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20218 \ * ) func_dirname_result="${3}" ;;\
20220 \ func_basename_result="${1##*/}"\
20221 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20222 && mv -f "$cfgfile.tmp" "$cfgfile" \
20223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20224 test 0 -eq $? || _lt_function_replace_fail=:
20227 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20230 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20231 \ # positional parameters, so assign one to ordinary parameter first.\
20232 \ func_stripname_result=${3}\
20233 \ func_stripname_result=${func_stripname_result#"${1}"}\
20234 \ func_stripname_result=${func_stripname_result%"${2}"}\
20235 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20236 && mv -f "$cfgfile.tmp" "$cfgfile" \
20237 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20238 test 0 -eq $? || _lt_function_replace_fail=:
20241 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20242 func_split_long_opt ()\
20244 \ func_split_long_opt_name=${1%%=*}\
20245 \ func_split_long_opt_arg=${1#*=}\
20246 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20247 && mv -f "$cfgfile.tmp" "$cfgfile" \
20248 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20249 test 0 -eq $? || _lt_function_replace_fail=:
20252 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20253 func_split_short_opt ()\
20255 \ func_split_short_opt_arg=${1#??}\
20256 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20257 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20258 && mv -f "$cfgfile.tmp" "$cfgfile" \
20259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20260 test 0 -eq $? || _lt_function_replace_fail=:
20263 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20267 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20268 \ *) func_lo2o_result=${1} ;;\
20270 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20271 && mv -f "$cfgfile.tmp" "$cfgfile" \
20272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20273 test 0 -eq $? || _lt_function_replace_fail=:
20276 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20279 func_xform_result=${1%.*}.lo\
20280 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20281 && mv -f "$cfgfile.tmp" "$cfgfile" \
20282 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20283 test 0 -eq $? || _lt_function_replace_fail=:
20286 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20289 func_arith_result=$(( $* ))\
20290 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20291 && mv -f "$cfgfile.tmp" "$cfgfile" \
20292 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20293 test 0 -eq $? || _lt_function_replace_fail=:
20296 sed -e '/^func_len ()$/,/^} # func_len /c\
20299 func_len_result=${#1}\
20300 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20301 && mv -f "$cfgfile.tmp" "$cfgfile" \
20302 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20303 test 0 -eq $? || _lt_function_replace_fail=:
20307 if test x"$lt_shell_append" = xyes; then
20308 sed -e '/^func_append ()$/,/^} # func_append /c\
20311 eval "${1}+=\\${2}"\
20312 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20313 && mv -f "$cfgfile.tmp" "$cfgfile" \
20314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20315 test 0 -eq $? || _lt_function_replace_fail=:
20318 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20319 func_append_quoted ()\
20321 \ func_quote_for_eval "${2}"\
20322 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20323 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20324 && mv -f "$cfgfile.tmp" "$cfgfile" \
20325 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20326 test 0 -eq $? || _lt_function_replace_fail=:
20329 # Save a `func_append' function call where possible by direct use of '+='
20330 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20331 && mv -f "$cfgfile.tmp" "$cfgfile" \
20332 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20333 test 0 -eq $? || _lt_function_replace_fail=:
20335 # Save a `func_append' function call even when '+=' is not available
20336 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20337 && mv -f "$cfgfile.tmp" "$cfgfile" \
20338 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20339 test 0 -eq $? || _lt_function_replace_fail=:
20342 if test x"$_lt_function_replace_fail" = x":"; then
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20344 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20348 mv -f "$cfgfile" "$ofile" ||
20349 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20354 sed < libtool > libtool-2 \
20355 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
20356 mv libtool-2 libtool
20358 libtool="./libtool"
20367 ac_clean_files=$ac_clean_files_save
20369 test $ac_write_fail = 0 ||
20370 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20373 # configure is writing to config.log, and then calls config.status.
20374 # config.status does its own redirection, appending to config.log.
20375 # Unfortunately, on DOS this fails, as config.log is still kept open
20376 # by configure, so config.status won't be able to write to it; its
20377 # output is simply discarded. So we exec the FD to /dev/null,
20378 # effectively closing config.log, so it can be properly (re)opened and
20379 # appended to by config.status. When coming back to configure, we
20380 # need to make the FD available again.
20381 if test "$no_create" != yes; then
20383 ac_config_status_args=
20384 test "$silent" = yes &&
20385 ac_config_status_args="$ac_config_status_args --quiet"
20387 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20389 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20390 # would make configure fail if this is the last instruction.
20391 $ac_cs_success || as_fn_exit 1
20393 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20395 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}