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
722 UNBOUND_ROOTCERT_FILE
769 program_transform_name
782 enable_option_checking
804 enable_alloc_nonregional
822 ac_precious_vars='build_alias
836 # Initialize some variables set by options.
838 ac_init_version=false
839 ac_unrecognized_opts=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
850 program_transform_name=s,x,x,
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
925 cache_file=config.cache ;;
927 -datadir | --datadir | --datadi | --datad)
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
979 eval enable_$ac_useropt=\$ac_optarg ;;
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
994 -help | --help | --hel | --he | -h)
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 htmldir=$ac_optarg ;;
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1024 -libdir | --libdir | --libdi | --libd)
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1115 -psdir | --psdir | --psdi | --psd | --ps)
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 sbindir=$ac_optarg ;;
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 sharedstatedir=$ac_optarg ;;
1141 -site | --site | --sit)
1143 -site=* | --site=* | --sit=*)
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1183 eval with_$ac_useropt=\$ac_optarg ;;
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1199 eval with_$ac_useropt=no ;;
1202 # Obsolete; use --with-x.
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $? "missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1270 # Be sure to have absolute directory names.
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1283 target=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 elif test "x$build_alias" != "x$host_alias"; then
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error $? "pwd does not report name of working directory"
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1340 ac_srcdir_defaulted=no
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1374 \`configure' configures unbound 1.4.20 to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking ...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of unbound 1.4.20:";;
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-checking Enable warnings, asserts, makefile-dependencies
1448 --enable-debug same as enable-checking
1449 --enable-shared[=PKGS] build shared libraries [default=yes]
1450 --enable-static[=PKGS] build static libraries [default=yes]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --disable-libtool-lock avoid locking (might break parallel builds)
1454 --disable-rpath disable hardcoded rpath (default=enabled)
1455 --disable-largefile omit support for large files
1456 --enable-alloc-checks enable to memory allocation statistics, for debug
1458 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1460 --enable-alloc-nonregional
1461 enable nonregional allocs, slow but exposes regional
1462 allocations to other memory purifiers, for debug
1464 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1465 --disable-gost Disable GOST support
1466 --disable-ecdsa Disable ECDSA support
1467 --enable-static-exe enable to compile executables statically against
1468 event, ldns libs, for debug purposes
1469 --enable-lock-checks enable to check lock and unlock calls, for debug
1471 --enable-allsymbols export all symbols from libunbound and link binaries
1472 to it, smaller install size but libunbound export
1473 table is polluted by internal symbols
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-conf-file=path Pathname to the Unbound configuration file
1479 --with-run-dir=path set default directory to chdir to (by default dir
1481 --with-chroot-dir=path set default directory to chroot to (by default same
1483 --with-share-dir=path set default directory with shared data (by default
1484 same as share/unbound)
1485 --with-pidfile=filename set default pathname to unbound pidfile (default
1486 run-dir/unbound.pid)
1487 --with-rootkey-file=filename
1488 set default pathname to root key file (default
1489 run-dir/root.key). This file is read and written.
1490 --with-rootcert-file=filename
1491 set default pathname to root update certificate file
1492 (default run-dir/icannbundle.pem). This file need
1493 not exist if you are content with the builtin.
1494 --with-username=user set default user that unbound changes to (default
1496 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1499 --with-sysroot=DIR Search for dependent libraries within DIR
1500 (or the compiler's sysroot if not specified).
1501 --with-pthreads use pthreads library, or --without-pthreads to
1502 disable threading support.
1503 --with-solaris-threads use solaris native thread library.
1504 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1506 --with-pythonmodule build Python module, or --without-pythonmodule to
1507 disable script engine. (default=no)
1508 --with-nss=path use libnss instead of openssl, installed at path.
1509 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1510 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1512 --with-libevent=pathname
1513 use libevent (will check /usr/local /opt/local
1514 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1515 an explicit path). Slower, but allows use of large
1516 outgoing port ranges.
1517 --with-libexpat=path specify explicit path for libexpat.
1518 --with-libunbound-only do not build daemon and tool programs
1519 --with-ldns=PATH specify prefix of path of ldns library to use
1521 Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1530 YACC The `Yet Another Compiler Compiler' implementation to use.
1531 Defaults to the first program found out of: `bison -y', `byacc',
1533 YFLAGS The list of arguments that will be passed by default to $YACC.
1534 This script will default YFLAGS to the empty string to avoid a
1535 default value of `-d' given by some make applications.
1537 The installed Python version to use, for example '2.3'. This
1538 string will be appended to the Python interpreter canonical
1541 Use these variables to override the choices made by `configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1544 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1574 .) # We are building in place.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1607 unbound configure 1.4.20
1608 generated by GNU Autoconf 2.69
1610 Copyright (C) 2012 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_c_try_compile
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } > conftest.i && {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1696 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1697 # -------------------------------------------------------
1698 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1699 # the include files in INCLUDES and setting the cache variable VAR
1701 ac_fn_c_check_header_mongrel ()
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if eval \${$3+:} false; then :
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 $as_echo "$ac_res" >&6; }
1714 # Is the header compilable?
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1716 $as_echo_n "checking $2 usability... " >&6; }
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723 ac_header_compiler=yes
1725 ac_header_compiler=no
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1729 $as_echo "$ac_header_compiler" >&6; }
1731 # Is the header present?
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1733 $as_echo_n "checking $2 presence... " >&6; }
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1738 if ac_fn_c_try_cpp "$LINENO"; then :
1739 ac_header_preproc=yes
1741 ac_header_preproc=no
1743 rm -f conftest.err conftest.i conftest.$ac_ext
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1745 $as_echo "$ac_header_preproc" >&6; }
1747 # So? What about this header?
1748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1751 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1757 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1759 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1761 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1763 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1765 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766 ( $as_echo "## ---------------------------------------- ##
1767 ## Report this to unbound-bugs@nlnetlabs.nl ##
1768 ## ---------------------------------------- ##"
1769 ) | sed "s/^/$as_me: WARNING: /" >&2
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1777 eval "$3=\$ac_header_compiler"
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 } # ac_fn_c_check_header_mongrel
1787 # ac_fn_c_try_run LINENO
1788 # ----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790 # that executables *can* be run.
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if { { ac_try="$ac_link"
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>&5
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805 { { case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_try") 2>&5
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; }; }; then :
1817 $as_echo "$as_me: program exited with status $ac_status" >&5
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1821 ac_retval=$ac_status
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1829 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830 # -------------------------------------------------------
1831 # Tests whether HEADER exists and can be compiled using the include files in
1832 # INCLUDES, setting the cache variable VAR accordingly.
1833 ac_fn_c_check_header_compile ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1846 if ac_fn_c_try_compile "$LINENO"; then :
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 } # ac_fn_c_check_header_compile
1860 # ac_fn_c_try_link LINENO
1861 # -----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext conftest$ac_exeext
1867 if { { ac_try="$ac_link"
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_c_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 test -x conftest$ac_exeext
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_link
1906 # ac_fn_c_check_func LINENO FUNC VAR
1907 # ----------------------------------
1908 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909 ac_fn_c_check_func ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915 $as_echo_n "(cached) " >&6
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921 #define $2 innocuous_$2
1923 /* System header to define __stub macros and hopefully few prototypes,
1924 which can conflict with char $2 (); below.
1925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926 <limits.h> exists even on freestanding compilers. */
1929 # include <limits.h>
1931 # include <assert.h>
1936 /* Override any GCC internal prototype to avoid an error.
1937 Use char because int might match the return type of a GCC
1938 builtin and then its argument prototype would still apply. */
1943 /* The GNU C library defines this for functions which it implements
1944 to always fail with ENOSYS. Some functions are actually named
1945 something starting with __ and the normal name is an alias. */
1946 #if defined __stub_$2 || defined __stub___$2
1958 if ac_fn_c_try_link "$LINENO"; then :
1963 rm -f core conftest.err conftest.$ac_objext \
1964 conftest$ac_exeext conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 } # ac_fn_c_check_func
1973 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1974 # -------------------------------------------
1975 # Tests whether TYPE exists after having included INCLUDES, setting cache
1976 # variable VAR accordingly.
1977 ac_fn_c_check_type ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2011 if ac_fn_c_try_compile "$LINENO"; then :
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_type
2027 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2028 # ---------------------------------------------
2029 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2031 ac_fn_c_check_decl ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 as_decl_name=`echo $2|sed 's/ *(.*//'`
2035 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2037 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2038 if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2047 #ifndef $as_decl_name
2049 (void) $as_decl_use;
2051 (void) $as_decl_name;
2059 if ac_fn_c_try_compile "$LINENO"; then :
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_decl
2073 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2074 # ----------------------------------------------------
2075 # Tries to find if the field MEMBER exists in type AGGR, after including
2076 # INCLUDES, setting cache variable VAR accordingly.
2077 ac_fn_c_check_member ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2081 $as_echo_n "checking for $2.$3... " >&6; }
2082 if eval \${$4+:} false; then :
2083 $as_echo_n "(cached) " >&6
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2098 if ac_fn_c_try_compile "$LINENO"; then :
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2108 if (sizeof ac_aggr.$3)
2114 if ac_fn_c_try_compile "$LINENO"; then :
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 } # ac_fn_c_check_member
2129 cat >config.log <<_ACEOF
2130 This file contains any messages produced by compilers while
2131 running configure, to aid debugging if configure makes a mistake.
2133 It was created by unbound $as_me 1.4.20, which was
2134 generated by GNU Autoconf 2.69. Invocation command line was
2146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2147 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2148 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2149 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2150 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2153 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2155 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2156 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2158 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2159 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2160 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2161 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 test -z "$as_dir" && as_dir=.
2170 $as_echo "PATH: $as_dir"
2186 # Keep a trace of the command line.
2187 # Strip out --no-create and --no-recursion so they do not pile up.
2188 # Strip out --silent because we don't want to record it for future runs.
2189 # Also quote any args containing shell meta-characters.
2190 # Make two passes to allow for proper duplicate-argument suppression.
2194 ac_must_keep_next=false
2200 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2202 | -silent | --silent | --silen | --sile | --sil)
2205 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2208 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2210 as_fn_append ac_configure_args1 " '$ac_arg'"
2211 if test $ac_must_keep_next = true; then
2212 ac_must_keep_next=false # Got value, back to normal.
2215 *=* | --config-cache | -C | -disable-* | --disable-* \
2216 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2217 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2218 | -with-* | --with-* | -without-* | --without-* | --x)
2219 case "$ac_configure_args0 " in
2220 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2223 -* ) ac_must_keep_next=true ;;
2226 as_fn_append ac_configure_args " '$ac_arg'"
2231 { ac_configure_args0=; unset ac_configure_args0;}
2232 { ac_configure_args1=; unset ac_configure_args1;}
2234 # When interrupted or exit'd, cleanup temporary files, and complete
2235 # config.log. We remove comments because anyway the quotes in there
2236 # would cause problems or look ugly.
2237 # WARNING: Use '\'' to represent an apostrophe within the trap.
2238 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2239 trap 'exit_status=$?
2240 # Save into config.log some information that might help in debugging.
2244 $as_echo "## ---------------- ##
2245 ## Cache variables. ##
2246 ## ---------------- ##"
2248 # The following way of writing the cache mishandles newlines in values,
2250 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2251 eval ac_val=\$$ac_var
2255 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2256 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2259 _ | IFS | as_nl) ;; #(
2260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2261 *) { eval $ac_var=; unset $ac_var;} ;;
2266 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2267 *${as_nl}ac_space=\ *)
2269 "s/'\''/'\''\\\\'\'''\''/g;
2270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2280 $as_echo "## ----------------- ##
2281 ## Output variables. ##
2282 ## ----------------- ##"
2284 for ac_var in $ac_subst_vars
2286 eval ac_val=\$$ac_var
2288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290 $as_echo "$ac_var='\''$ac_val'\''"
2294 if test -n "$ac_subst_files"; then
2295 $as_echo "## ------------------- ##
2296 ## File substitutions. ##
2297 ## ------------------- ##"
2299 for ac_var in $ac_subst_files
2301 eval ac_val=\$$ac_var
2303 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2305 $as_echo "$ac_var='\''$ac_val'\''"
2310 if test -s confdefs.h; then
2311 $as_echo "## ----------- ##
2318 test "$ac_signal" != 0 &&
2319 $as_echo "$as_me: caught signal $ac_signal"
2320 $as_echo "$as_me: exit $exit_status"
2322 rm -f core *.core core.conftest.* &&
2323 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2326 for ac_signal in 1 2 13 15; do
2327 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2331 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2332 rm -f -r conftest* confdefs.h
2334 $as_echo "/* confdefs.h */" > confdefs.h
2336 # Predefined preprocessor variables.
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_NAME "$PACKAGE_NAME"
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_STRING "$PACKAGE_STRING"
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_URL "$PACKAGE_URL"
2363 # Let the site file select an alternate cache file if it wants to.
2364 # Prefer an explicitly selected file to automatically selected ones.
2367 if test -n "$CONFIG_SITE"; then
2368 # We do not want a PATH search for config.site.
2369 case $CONFIG_SITE in #((
2370 -*) ac_site_file1=./$CONFIG_SITE;;
2371 */*) ac_site_file1=$CONFIG_SITE;;
2372 *) ac_site_file1=./$CONFIG_SITE;;
2374 elif test "x$prefix" != xNONE; then
2375 ac_site_file1=$prefix/share/config.site
2376 ac_site_file2=$prefix/etc/config.site
2378 ac_site_file1=$ac_default_prefix/share/config.site
2379 ac_site_file2=$ac_default_prefix/etc/config.site
2381 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2383 test "x$ac_site_file" = xNONE && continue
2384 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2386 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2387 sed 's/^/| /' "$ac_site_file" >&5
2389 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391 as_fn_error $? "failed to load site script $ac_site_file
2392 See \`config.log' for more details" "$LINENO" 5; }
2396 if test -r "$cache_file"; then
2397 # Some versions of bash will fail to source /dev/null (special files
2398 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2399 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2401 $as_echo "$as_me: loading cache $cache_file" >&6;}
2403 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2404 *) . "./$cache_file";;
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2409 $as_echo "$as_me: creating cache $cache_file" >&6;}
2413 # Check that the precious variables saved in the cache have kept the same
2415 ac_cache_corrupted=false
2416 for ac_var in $ac_precious_vars; do
2417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2418 eval ac_new_set=\$ac_env_${ac_var}_set
2419 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2420 eval ac_new_val=\$ac_env_${ac_var}_value
2421 case $ac_old_set,$ac_new_set in
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2424 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2425 ac_cache_corrupted=: ;;
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2428 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2429 ac_cache_corrupted=: ;;
2432 if test "x$ac_old_val" != "x$ac_new_val"; then
2433 # differences in whitespace do not lead to failure.
2434 ac_old_val_w=`echo x $ac_old_val`
2435 ac_new_val_w=`echo x $ac_new_val`
2436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2438 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2439 ac_cache_corrupted=:
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2442 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2443 eval $ac_var=\$ac_old_val
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2446 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2448 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2451 # Pass precious variables to config.status.
2452 if test "$ac_new_set" = set; then
2454 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2455 *) ac_arg=$ac_var=$ac_new_val ;;
2457 case " $ac_configure_args " in
2458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2459 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2463 if $ac_cache_corrupted; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2467 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2468 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2470 ## -------------------- ##
2471 ## Main body of script. ##
2472 ## -------------------- ##
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482 LIBUNBOUND_CURRENT=3
2483 LIBUNBOUND_REVISION=5
2492 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2497 # 1.4.0-snapshots had 1:5:0
2498 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2512 # and 1.4.13p1 and 1.4.13.p2
2514 # 1.4.15 had 3:0:1 # adds ub_version()
2519 # 1.4.20 had 4:0:2 # adds libunbound.ttl
2521 # Current -- the number of the binary API that we're implementing
2522 # Revision -- which iteration of the implementation of the binary
2523 # API are we supplying?
2524 # Age -- How many previous binary API versions do we also
2527 # If we release a new version that does not change the binary API,
2528 # increment Revision.
2530 # If we release a new version that changes the binary API, but does
2531 # not break programs compiled against the old binary API, increment
2532 # Current and Age. Set Revision to 0, since this is the first
2533 # implementation of the new API.
2535 # Otherwise, we're changing the binary API and breaking bakward
2536 # compatibility with old binaries. Increment Current. Set Age to 0,
2537 # since we're backward compatible with no previous APIs. Set Revision
2545 ac_cpp='$CPP $CPPFLAGS'
2546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549 if test -n "$ac_tool_prefix"; then
2550 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2551 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553 $as_echo_n "checking for $ac_word... " >&6; }
2554 if ${ac_cv_prog_CC+:} false; then :
2555 $as_echo_n "(cached) " >&6
2557 if test -n "$CC"; then
2558 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2567 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 if test -n "$CC"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2580 $as_echo "$CC" >&6; }
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583 $as_echo "no" >&6; }
2588 if test -z "$ac_cv_prog_CC"; then
2590 # Extract the first word of "gcc", so it can be a program name with args.
2591 set dummy gcc; ac_word=$2
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593 $as_echo_n "checking for $ac_word... " >&6; }
2594 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2595 $as_echo_n "(cached) " >&6
2597 if test -n "$ac_ct_CC"; then
2598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2607 ac_cv_prog_ac_ct_CC="gcc"
2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2618 if test -n "$ac_ct_CC"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2620 $as_echo "$ac_ct_CC" >&6; }
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2626 if test "x$ac_ct_CC" = x; then
2629 case $cross_compiling:$ac_tool_warned in
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2633 ac_tool_warned=yes ;;
2641 if test -z "$CC"; then
2642 if test -n "$ac_tool_prefix"; then
2643 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2644 set dummy ${ac_tool_prefix}cc; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if ${ac_cv_prog_CC+:} false; then :
2648 $as_echo_n "(cached) " >&6
2650 if test -n "$CC"; then
2651 ac_cv_prog_CC="$CC" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 ac_cv_prog_CC="${ac_tool_prefix}cc"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 if test -n "$CC"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673 $as_echo "$CC" >&6; }
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2682 if test -z "$CC"; then
2683 # Extract the first word of "cc", so it can be a program name with args.
2684 set dummy cc; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if ${ac_cv_prog_CC+:} false; then :
2688 $as_echo_n "(cached) " >&6
2690 if test -n "$CC"; then
2691 ac_cv_prog_CC="$CC" # Let the user override the test.
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2702 ac_prog_rejected=yes
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 if test $ac_prog_rejected = yes; then
2714 # We found a bogon in the path, so make sure we never use it.
2715 set dummy $ac_cv_prog_CC
2717 if test $# != 0; then
2718 # We chose a different compiler from the bogus one.
2719 # However, it has the same basename, so the bogon will be chosen
2720 # first if we set CC to just the basename; use the full file name.
2722 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2728 if test -n "$CC"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2730 $as_echo "$CC" >&6; }
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2738 if test -z "$CC"; then
2739 if test -n "$ac_tool_prefix"; then
2740 for ac_prog in cl.exe
2742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if ${ac_cv_prog_CC+:} false; then :
2747 $as_echo_n "(cached) " >&6
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC="$CC" # Let the user override the test.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 if test -n "$CC"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772 $as_echo "$CC" >&6; }
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2779 test -n "$CC" && break
2782 if test -z "$CC"; then
2784 for ac_prog in cl.exe
2786 # Extract the first word of "$ac_prog", so it can be a program name with args.
2787 set dummy $ac_prog; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2791 $as_echo_n "(cached) " >&6
2793 if test -n "$ac_ct_CC"; then
2794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_ac_ct_CC="$ac_prog"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2814 if test -n "$ac_ct_CC"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2816 $as_echo "$ac_ct_CC" >&6; }
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2823 test -n "$ac_ct_CC" && break
2826 if test "x$ac_ct_CC" = x; then
2829 case $cross_compiling:$ac_tool_warned in
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2833 ac_tool_warned=yes ;;
2842 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2844 as_fn_error $? "no acceptable C compiler found in \$PATH
2845 See \`config.log' for more details" "$LINENO" 5; }
2847 # Provide some information about the compiler.
2848 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2851 for ac_option in --version -v -V -qversion; do
2852 { { ac_try="$ac_compiler $ac_option >&5"
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2858 $as_echo "$ac_try_echo"; } >&5
2859 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2861 if test -s conftest.err; then
2863 ... rest of stderr output deleted ...
2864 10q' conftest.err >conftest.er1
2865 cat conftest.er1 >&5
2867 rm -f conftest.er1 conftest.err
2868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2869 test $ac_status = 0; }
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873 /* end confdefs.h. */
2883 ac_clean_files_save=$ac_clean_files
2884 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2885 # Try to create an executable without -o first, disregard a.out.
2886 # It will help us diagnose broken compilers, and finding out an intuition
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2889 $as_echo_n "checking whether the C compiler works... " >&6; }
2890 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2892 # The possible output files:
2893 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2896 for ac_file in $ac_files
2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2900 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2905 if { { ac_try="$ac_link_default"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2911 $as_echo "$ac_try_echo"; } >&5
2912 (eval "$ac_link_default") 2>&5
2914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2915 test $ac_status = 0; }; then :
2916 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2917 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2918 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2919 # so that the user can short-circuit this test for compilers unknown to
2921 for ac_file in $ac_files ''
2923 test -f "$ac_file" || continue
2925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2928 # We found the default executable, but exeext='' is most
2932 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2934 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2936 # We set ac_cv_exeext here because the later test for it is not
2937 # safe: cross compilers may not add the suffix if given an `-o'
2938 # argument, so we may need to know it at that point already.
2939 # Even if this section looks crufty: it has the advantage of
2946 test "$ac_cv_exeext" = no && ac_cv_exeext=
2951 if test -z "$ac_file"; then :
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 $as_echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2959 as_fn_error 77 "C compiler cannot create executables
2960 See \`config.log' for more details" "$LINENO" 5; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2963 $as_echo "yes" >&6; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2966 $as_echo_n "checking for C compiler default output file name... " >&6; }
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2968 $as_echo "$ac_file" >&6; }
2969 ac_exeext=$ac_cv_exeext
2971 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2972 ac_clean_files=$ac_clean_files_save
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2974 $as_echo_n "checking for suffix of executables... " >&6; }
2975 if { { ac_try="$ac_link"
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981 $as_echo "$ac_try_echo"; } >&5
2982 (eval "$ac_link") 2>&5
2984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2985 test $ac_status = 0; }; then :
2986 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2987 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2988 # work properly (i.e., refer to `conftest.exe'), while it won't with
2990 for ac_file in conftest.exe conftest conftest.*; do
2991 test -f "$ac_file" || continue
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2994 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3003 See \`config.log' for more details" "$LINENO" 5; }
3005 rm -f conftest conftest$ac_cv_exeext
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3007 $as_echo "$ac_cv_exeext" >&6; }
3009 rm -f conftest.$ac_ext
3010 EXEEXT=$ac_cv_exeext
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013 /* end confdefs.h. */
3018 FILE *f = fopen ("conftest.out", "w");
3019 return ferror (f) || fclose (f) != 0;
3025 ac_clean_files="$ac_clean_files conftest.out"
3026 # Check that the compiler produces executables we can run. If not, either
3027 # the compiler is broken, or we cross compile.
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3029 $as_echo_n "checking whether we are cross compiling... " >&6; }
3030 if test "$cross_compiling" != yes; then
3031 { { ac_try="$ac_link"
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038 (eval "$ac_link") 2>&5
3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041 test $ac_status = 0; }
3042 if { ac_try='./conftest$ac_cv_exeext'
3043 { { case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 $as_echo "$ac_try_echo"; } >&5
3049 (eval "$ac_try") 2>&5
3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }; }; then
3055 if test "$cross_compiling" = maybe; then
3058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060 as_fn_error $? "cannot run C compiled programs.
3061 If you meant to cross compile, use \`--host'.
3062 See \`config.log' for more details" "$LINENO" 5; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3067 $as_echo "$cross_compiling" >&6; }
3069 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3070 ac_clean_files=$ac_clean_files_save
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3072 $as_echo_n "checking for suffix of object files... " >&6; }
3073 if ${ac_cv_objext+:} false; then :
3074 $as_echo_n "(cached) " >&6
3076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 /* end confdefs.h. */
3087 rm -f conftest.o conftest.obj
3088 if { { ac_try="$ac_compile"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_compile") 2>&5
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }; then :
3099 for ac_file in conftest.o conftest.obj conftest.*; do
3100 test -f "$ac_file" || continue;
3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3103 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3108 $as_echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113 as_fn_error $? "cannot compute suffix of object files: cannot compile
3114 See \`config.log' for more details" "$LINENO" 5; }
3116 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3119 $as_echo "$ac_cv_objext" >&6; }
3120 OBJEXT=$ac_cv_objext
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3123 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3124 if ${ac_cv_c_compiler_gnu+:} false; then :
3125 $as_echo_n "(cached) " >&6
3127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3128 /* end confdefs.h. */
3141 if ac_fn_c_try_compile "$LINENO"; then :
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3151 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3152 if test $ac_compiler_gnu = yes; then
3157 ac_test_CFLAGS=${CFLAGS+set}
3158 ac_save_CFLAGS=$CFLAGS
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3160 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3161 if ${ac_cv_prog_cc_g+:} false; then :
3162 $as_echo_n "(cached) " >&6
3164 ac_save_c_werror_flag=$ac_c_werror_flag
3165 ac_c_werror_flag=yes
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h. */
3179 if ac_fn_c_try_compile "$LINENO"; then :
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3194 if ac_fn_c_try_compile "$LINENO"; then :
3197 ac_c_werror_flag=$ac_save_c_werror_flag
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3210 if ac_fn_c_try_compile "$LINENO"; then :
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 ac_c_werror_flag=$ac_save_c_werror_flag
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3221 $as_echo "$ac_cv_prog_cc_g" >&6; }
3222 if test "$ac_test_CFLAGS" = set; then
3223 CFLAGS=$ac_save_CFLAGS
3224 elif test $ac_cv_prog_cc_g = yes; then
3225 if test "$GCC" = yes; then
3231 if test "$GCC" = yes; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3238 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3239 if ${ac_cv_prog_cc_c89+:} false; then :
3240 $as_echo_n "(cached) " >&6
3242 ac_cv_prog_cc_c89=no
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3249 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3250 struct buf { int x; };
3251 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3252 static char *e (p, i)
3258 static char *f (char * (*g) (char **, int), char **p, ...)
3263 s = g (p, va_arg (v,int));
3268 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3269 function prototypes and stuff, but not '\xHH' hex character constants.
3270 These don't provoke an error unfortunately, instead are silently treated
3271 as 'x'. The following induces an error, until -std is added to get
3272 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3273 array size at least. It's necessary to write '\x00'==0 to get something
3274 that's true only with -std. */
3275 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3277 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3278 inside strings and character constants. */
3280 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3282 int test (int i, double x);
3283 struct s1 {int (*f) (int a);};
3284 struct s2 {int (*f) (double a);};
3285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3291 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3296 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3297 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3299 CC="$ac_save_CC $ac_arg"
3300 if ac_fn_c_try_compile "$LINENO"; then :
3301 ac_cv_prog_cc_c89=$ac_arg
3303 rm -f core conftest.err conftest.$ac_objext
3304 test "x$ac_cv_prog_cc_c89" != "xno" && break
3306 rm -f conftest.$ac_ext
3311 case "x$ac_cv_prog_cc_c89" in
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3314 $as_echo "none needed" >&6; } ;;
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3317 $as_echo "unsupported" >&6; } ;;
3319 CC="$CC $ac_cv_prog_cc_c89"
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3321 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3323 if test "x$ac_cv_prog_cc_c89" != xno; then :
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 ac_cpp='$CPP $CPPFLAGS'
3336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3340 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3341 # On Suns, sometimes $CPP names a directory.
3342 if test -n "$CPP" && test -d "$CPP"; then
3345 if test -z "$CPP"; then
3346 if ${ac_cv_prog_CPP+:} false; then :
3347 $as_echo_n "(cached) " >&6
3349 # Double quotes because CPP needs to be expanded
3350 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3353 for ac_c_preproc_warn_flag in '' yes
3355 # Use a header file that comes with gcc, so configuring glibc
3356 # with a fresh cross-compiler works.
3357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3358 # <limits.h> exists even on freestanding compilers.
3359 # On the NeXT, cc -E runs the code through the compiler's parser,
3360 # not just through cpp. "Syntax error" is here to catch this case.
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3364 # include <limits.h>
3366 # include <assert.h>
3370 if ac_fn_c_try_cpp "$LINENO"; then :
3373 # Broken: fails on valid input.
3376 rm -f conftest.err conftest.i conftest.$ac_ext
3378 # OK, works on sane cases. Now check whether nonexistent headers
3379 # can be detected and how.
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382 #include <ac_nonexistent.h>
3384 if ac_fn_c_try_cpp "$LINENO"; then :
3385 # Broken: success on invalid input.
3388 # Passes both tests.
3392 rm -f conftest.err conftest.i conftest.$ac_ext
3395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3396 rm -f conftest.i conftest.err conftest.$ac_ext
3397 if $ac_preproc_ok; then :
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3410 $as_echo "$CPP" >&6; }
3412 for ac_c_preproc_warn_flag in '' yes
3414 # Use a header file that comes with gcc, so configuring glibc
3415 # with a fresh cross-compiler works.
3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417 # <limits.h> exists even on freestanding compilers.
3418 # On the NeXT, cc -E runs the code through the compiler's parser,
3419 # not just through cpp. "Syntax error" is here to catch this case.
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3423 # include <limits.h>
3425 # include <assert.h>
3429 if ac_fn_c_try_cpp "$LINENO"; then :
3432 # Broken: fails on valid input.
3435 rm -f conftest.err conftest.i conftest.$ac_ext
3437 # OK, works on sane cases. Now check whether nonexistent headers
3438 # can be detected and how.
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3441 #include <ac_nonexistent.h>
3443 if ac_fn_c_try_cpp "$LINENO"; then :
3444 # Broken: success on invalid input.
3447 # Passes both tests.
3451 rm -f conftest.err conftest.i conftest.$ac_ext
3454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3455 rm -f conftest.i conftest.err conftest.$ac_ext
3456 if $ac_preproc_ok; then :
3459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3462 See \`config.log' for more details" "$LINENO" 5; }
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3473 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3474 if ${ac_cv_path_GREP+:} false; then :
3475 $as_echo_n "(cached) " >&6
3477 if test -z "$GREP"; then
3478 ac_path_GREP_found=false
3479 # Loop through the user's path and test for each of PROGNAME-LIST
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3484 test -z "$as_dir" && as_dir=.
3485 for ac_prog in grep ggrep; do
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3488 as_fn_executable_p "$ac_path_GREP" || continue
3489 # Check for GNU ac_path_GREP and select it if it is found.
3490 # Check for GNU $ac_path_GREP
3491 case `"$ac_path_GREP" --version 2>&1` in
3493 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3496 $as_echo_n 0123456789 >"conftest.in"
3499 cat "conftest.in" "conftest.in" >"conftest.tmp"
3500 mv "conftest.tmp" "conftest.in"
3501 cp "conftest.in" "conftest.nl"
3502 $as_echo 'GREP' >> "conftest.nl"
3503 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3505 as_fn_arith $ac_count + 1 && ac_count=$as_val
3506 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3507 # Best one so far, save it but keep looking for a better one
3508 ac_cv_path_GREP="$ac_path_GREP"
3509 ac_path_GREP_max=$ac_count
3511 # 10*(2^10) chars as input seems more than enough
3512 test $ac_count -gt 10 && break
3514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3517 $ac_path_GREP_found && break 3
3522 if test -z "$ac_cv_path_GREP"; then
3523 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3526 ac_cv_path_GREP=$GREP
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3531 $as_echo "$ac_cv_path_GREP" >&6; }
3532 GREP="$ac_cv_path_GREP"
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3536 $as_echo_n "checking for egrep... " >&6; }
3537 if ${ac_cv_path_EGREP+:} false; then :
3538 $as_echo_n "(cached) " >&6
3540 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3541 then ac_cv_path_EGREP="$GREP -E"
3543 if test -z "$EGREP"; then
3544 ac_path_EGREP_found=false
3545 # Loop through the user's path and test for each of PROGNAME-LIST
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3550 test -z "$as_dir" && as_dir=.
3551 for ac_prog in egrep; do
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3554 as_fn_executable_p "$ac_path_EGREP" || continue
3555 # Check for GNU ac_path_EGREP and select it if it is found.
3556 # Check for GNU $ac_path_EGREP
3557 case `"$ac_path_EGREP" --version 2>&1` in
3559 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3562 $as_echo_n 0123456789 >"conftest.in"
3565 cat "conftest.in" "conftest.in" >"conftest.tmp"
3566 mv "conftest.tmp" "conftest.in"
3567 cp "conftest.in" "conftest.nl"
3568 $as_echo 'EGREP' >> "conftest.nl"
3569 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3570 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3571 as_fn_arith $ac_count + 1 && ac_count=$as_val
3572 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3573 # Best one so far, save it but keep looking for a better one
3574 ac_cv_path_EGREP="$ac_path_EGREP"
3575 ac_path_EGREP_max=$ac_count
3577 # 10*(2^10) chars as input seems more than enough
3578 test $ac_count -gt 10 && break
3580 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3583 $ac_path_EGREP_found && break 3
3588 if test -z "$ac_cv_path_EGREP"; then
3589 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3592 ac_cv_path_EGREP=$EGREP
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3598 $as_echo "$ac_cv_path_EGREP" >&6; }
3599 EGREP="$ac_cv_path_EGREP"
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3603 $as_echo_n "checking for ANSI C header files... " >&6; }
3604 if ${ac_cv_header_stdc+:} false; then :
3605 $as_echo_n "(cached) " >&6
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623 ac_cv_header_stdc=yes
3625 ac_cv_header_stdc=no
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629 if test $ac_cv_header_stdc = yes; then
3630 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3637 $EGREP "memchr" >/dev/null 2>&1; then :
3640 ac_cv_header_stdc=no
3646 if test $ac_cv_header_stdc = yes; then
3647 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3654 $EGREP "free" >/dev/null 2>&1; then :
3657 ac_cv_header_stdc=no
3663 if test $ac_cv_header_stdc = yes; then
3664 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3665 if test "$cross_compiling" = yes; then :
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3672 #if ((' ' & 0x0FF) == 0x020)
3673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3676 # define ISLOWER(c) \
3677 (('a' <= (c) && (c) <= 'i') \
3678 || ('j' <= (c) && (c) <= 'r') \
3679 || ('s' <= (c) && (c) <= 'z'))
3680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3688 for (i = 0; i < 256; i++)
3689 if (XOR (islower (i), ISLOWER (i))
3690 || toupper (i) != TOUPPER (i))
3695 if ac_fn_c_try_run "$LINENO"; then :
3698 ac_cv_header_stdc=no
3700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3701 conftest.$ac_objext conftest.beam conftest.$ac_ext
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3707 $as_echo "$ac_cv_header_stdc" >&6; }
3708 if test $ac_cv_header_stdc = yes; then
3710 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3714 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3715 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3716 inttypes.h stdint.h unistd.h
3718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3719 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3721 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3722 cat >>confdefs.h <<_ACEOF
3723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3732 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3733 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3740 if test "$MINIX" = yes; then
3742 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3745 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3748 $as_echo "#define _MINIX 1" >>confdefs.h
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3754 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3755 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3756 $as_echo_n "(cached) " >&6
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3761 # define __EXTENSIONS__ 1
3762 $ac_includes_default
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772 ac_cv_safe_to_define___extensions__=yes
3774 ac_cv_safe_to_define___extensions__=no
3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3779 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3780 test $ac_cv_safe_to_define___extensions__ = yes &&
3781 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3783 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3785 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3787 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3789 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3801 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
3803 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
3804 else on_mingw="no"; fi
3808 # Determine configuration file
3809 # the eval is to evaluate shell expansion twice
3810 if test $on_mingw = "no"; then
3811 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
3813 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
3816 # Check whether --with-conf_file was given.
3817 if test "${with_conf_file+set}" = set; then :
3818 withval=$with_conf_file; ub_conf_file="$withval"
3822 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
3825 cat >>confdefs.h <<_ACEOF
3826 #define CONFIGFILE "$hdr_config"
3830 # Determine run, chroot directory and pidfile locations
3832 # Check whether --with-run-dir was given.
3833 if test "${with_run_dir+set}" = set; then :
3834 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
3836 if test $on_mingw = no; then
3837 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
3845 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
3848 cat >>confdefs.h <<_ACEOF
3849 #define RUN_DIR "$hdr_run"
3854 # Check whether --with-chroot-dir was given.
3855 if test "${with_chroot_dir+set}" = set; then :
3856 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
3858 if test $on_mingw = no; then
3859 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
3861 UNBOUND_CHROOT_DIR=""
3867 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
3870 cat >>confdefs.h <<_ACEOF
3871 #define CHROOT_DIR "$hdr_chroot"
3876 # Check whether --with-share-dir was given.
3877 if test "${with_share_dir+set}" = set; then :
3878 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
3880 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
3885 cat >>confdefs.h <<_ACEOF
3886 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
3891 # Check whether --with-pidfile was given.
3892 if test "${with_pidfile+set}" = set; then :
3893 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
3895 if test $on_mingw = no; then
3896 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
3904 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
3907 cat >>confdefs.h <<_ACEOF
3908 #define PIDFILE "$hdr_pid"
3913 # Check whether --with-rootkey-file was given.
3914 if test "${with_rootkey_file+set}" = set; then :
3915 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
3917 if test $on_mingw = no; then
3918 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
3920 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
3926 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
3929 cat >>confdefs.h <<_ACEOF
3930 #define ROOT_ANCHOR_FILE "$hdr_rkey"
3935 # Check whether --with-rootcert-file was given.
3936 if test "${with_rootcert_file+set}" = set; then :
3937 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
3939 if test $on_mingw = no; then
3940 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
3942 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
3948 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
3951 cat >>confdefs.h <<_ACEOF
3952 #define ROOT_CERT_FILE "$hdr_rpem"
3957 # Check whether --with-username was given.
3958 if test "${with_username+set}" = set; then :
3959 withval=$with_username; UNBOUND_USERNAME="$withval"
3961 UNBOUND_USERNAME="unbound"
3966 cat >>confdefs.h <<_ACEOF
3967 #define UB_USERNAME "$UNBOUND_USERNAME"
3972 $as_echo "#define WINVER 0x0502" >>confdefs.h
3974 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/' `
3977 cat >>confdefs.h <<_ACEOF
3978 #define RSRC_PACKAGE_VERSION $wnvs
3982 # Checks for typedefs, structures, and compiler characteristics.
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3984 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3985 if ${ac_cv_c_const+:} false; then :
3986 $as_echo_n "(cached) " >&6
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3996 /* Ultrix mips cc rejects this sort of thing. */
3997 typedef int charset[2];
3998 const charset cs = { 0, 0 };
3999 /* SunOS 4.1.1 cc rejects this. */
4000 char const *const *pcpcc;
4002 /* NEC SVR4.0.2 mips cc rejects this. */
4003 struct point {int x, y;};
4004 static struct point const zero = {0,0};
4005 /* AIX XL C 1.02.0.0 rejects this.
4006 It does not let you subtract one const X* pointer from another in
4007 an arm of an if-expression whose if-part is not a constant
4009 const char *g = "string";
4010 pcpcc = &g + (g ? g-g : 0);
4011 /* HPUX 7.0 cc rejects these. */
4013 ppc = (char**) pcpcc;
4014 pcpcc = (char const *const *) ppc;
4015 { /* SCO 3.2v4 cc rejects this sort of thing. */
4018 char const *s = 0 ? (char *) 0 : (char const *) 0;
4023 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4025 const int *foo = &x[0];
4028 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4029 typedef const int *iptr;
4033 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4034 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4035 struct s { int j; const int *ap[3]; } bx;
4036 struct s *b = &bx; b->j = 5;
4038 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4042 return !cs[0] && !zero.x;
4049 if ac_fn_c_try_compile "$LINENO"; then :
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4057 $as_echo "$ac_cv_c_const" >&6; }
4058 if test $ac_cv_c_const = no; then
4060 $as_echo "#define const /**/" >>confdefs.h
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 # allow user to override the -g -O2 flags.
4071 if test "x$CFLAGS" = "x" ; then
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4075 $as_echo_n "checking whether $CC supports -g... " >&6; }
4076 cache=`echo g | sed 'y%.=/+-%___p_%'`
4077 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4078 $as_echo_n "(cached) " >&6
4081 echo 'void f(){}' >conftest.c
4082 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4083 eval "cv_prog_cc_flag_$cache=yes"
4085 eval "cv_prog_cc_flag_$cache=no"
4087 rm -f conftest conftest.o conftest.c
4091 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4093 $as_echo "yes" >&6; }
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4106 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4107 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4108 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4109 $as_echo_n "(cached) " >&6
4112 echo 'void f(){}' >conftest.c
4113 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4114 eval "cv_prog_cc_flag_$cache=yes"
4116 eval "cv_prog_cc_flag_$cache=no"
4118 rm -f conftest conftest.o conftest.c
4122 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4124 $as_echo "yes" >&6; }
4126 CFLAGS="$CFLAGS -O2"
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140 if test -n "$ac_tool_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if ${ac_cv_prog_CC+:} false; then :
4146 $as_echo_n "(cached) " >&6
4148 if test -n "$CC"; then
4149 ac_cv_prog_CC="$CC" # Let the user override the test.
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 if test -n "$CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 $as_echo "$CC" >&6; }
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4179 if test -z "$ac_cv_prog_CC"; then
4181 # Extract the first word of "gcc", so it can be a program name with args.
4182 set dummy gcc; ac_word=$2
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 $as_echo_n "checking for $ac_word... " >&6; }
4185 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4186 $as_echo_n "(cached) " >&6
4188 if test -n "$ac_ct_CC"; then
4189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4198 ac_cv_prog_ac_ct_CC="gcc"
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4209 if test -n "$ac_ct_CC"; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4211 $as_echo "$ac_ct_CC" >&6; }
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4217 if test "x$ac_ct_CC" = x; then
4220 case $cross_compiling:$ac_tool_warned in
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4224 ac_tool_warned=yes ;;
4232 if test -z "$CC"; then
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}cc; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_CC+:} false; then :
4239 $as_echo_n "(cached) " >&6
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC="$CC" # Let the user override the test.
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_CC="${ac_tool_prefix}cc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 if test -n "$CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4273 if test -z "$CC"; then
4274 # Extract the first word of "cc", so it can be a program name with args.
4275 set dummy cc; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_CC+:} false; then :
4279 $as_echo_n "(cached) " >&6
4281 if test -n "$CC"; then
4282 ac_cv_prog_CC="$CC" # Let the user override the test.
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4293 ac_prog_rejected=yes
4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 if test $ac_prog_rejected = yes; then
4305 # We found a bogon in the path, so make sure we never use it.
4306 set dummy $ac_cv_prog_CC
4308 if test $# != 0; then
4309 # We chose a different compiler from the bogus one.
4310 # However, it has the same basename, so the bogon will be chosen
4311 # first if we set CC to just the basename; use the full file name.
4313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4319 if test -n "$CC"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4321 $as_echo "$CC" >&6; }
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4329 if test -z "$CC"; then
4330 if test -n "$ac_tool_prefix"; then
4331 for ac_prog in cl.exe
4333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if ${ac_cv_prog_CC+:} false; then :
4338 $as_echo_n "(cached) " >&6
4340 if test -n "$CC"; then
4341 ac_cv_prog_CC="$CC" # Let the user override the test.
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 if test -n "$CC"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4363 $as_echo "$CC" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4370 test -n "$CC" && break
4373 if test -z "$CC"; then
4375 for ac_prog in cl.exe
4377 # Extract the first word of "$ac_prog", so it can be a program name with args.
4378 set dummy $ac_prog; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4382 $as_echo_n "(cached) " >&6
4384 if test -n "$ac_ct_CC"; then
4385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_ac_ct_CC="$ac_prog"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4405 if test -n "$ac_ct_CC"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4407 $as_echo "$ac_ct_CC" >&6; }
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4414 test -n "$ac_ct_CC" && break
4417 if test "x$ac_ct_CC" = x; then
4420 case $cross_compiling:$ac_tool_warned in
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424 ac_tool_warned=yes ;;
4433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error $? "no acceptable C compiler found in \$PATH
4436 See \`config.log' for more details" "$LINENO" 5; }
4438 # Provide some information about the compiler.
4439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4442 for ac_option in --version -v -V -qversion; do
4443 { { ac_try="$ac_compiler $ac_option >&5"
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4449 $as_echo "$ac_try_echo"; } >&5
4450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4452 if test -s conftest.err; then
4454 ... rest of stderr output deleted ...
4455 10q' conftest.err >conftest.er1
4456 cat conftest.er1 >&5
4458 rm -f conftest.er1 conftest.err
4459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4460 test $ac_status = 0; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4464 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4465 if ${ac_cv_c_compiler_gnu+:} false; then :
4466 $as_echo_n "(cached) " >&6
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4482 if ac_fn_c_try_compile "$LINENO"; then :
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4492 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4493 if test $ac_compiler_gnu = yes; then
4498 ac_test_CFLAGS=${CFLAGS+set}
4499 ac_save_CFLAGS=$CFLAGS
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4501 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4502 if ${ac_cv_prog_cc_g+:} false; then :
4503 $as_echo_n "(cached) " >&6
4505 ac_save_c_werror_flag=$ac_c_werror_flag
4506 ac_c_werror_flag=yes
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4520 if ac_fn_c_try_compile "$LINENO"; then :
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4535 if ac_fn_c_try_compile "$LINENO"; then :
4538 ac_c_werror_flag=$ac_save_c_werror_flag
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4551 if ac_fn_c_try_compile "$LINENO"; then :
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 ac_c_werror_flag=$ac_save_c_werror_flag
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4562 $as_echo "$ac_cv_prog_cc_g" >&6; }
4563 if test "$ac_test_CFLAGS" = set; then
4564 CFLAGS=$ac_save_CFLAGS
4565 elif test $ac_cv_prog_cc_g = yes; then
4566 if test "$GCC" = yes; then
4572 if test "$GCC" = yes; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4580 if ${ac_cv_prog_cc_c89+:} false; then :
4581 $as_echo_n "(cached) " >&6
4583 ac_cv_prog_cc_c89=no
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4591 struct buf { int x; };
4592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4593 static char *e (p, i)
4599 static char *f (char * (*g) (char **, int), char **p, ...)
4604 s = g (p, va_arg (v,int));
4609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4610 function prototypes and stuff, but not '\xHH' hex character constants.
4611 These don't provoke an error unfortunately, instead are silently treated
4612 as 'x'. The following induces an error, until -std is added to get
4613 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4614 array size at least. It's necessary to write '\x00'==0 to get something
4615 that's true only with -std. */
4616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4618 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4619 inside strings and character constants. */
4621 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4623 int test (int i, double x);
4624 struct s1 {int (*f) (int a);};
4625 struct s2 {int (*f) (double a);};
4626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4632 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4637 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4638 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4640 CC="$ac_save_CC $ac_arg"
4641 if ac_fn_c_try_compile "$LINENO"; then :
4642 ac_cv_prog_cc_c89=$ac_arg
4644 rm -f core conftest.err conftest.$ac_objext
4645 test "x$ac_cv_prog_cc_c89" != "xno" && break
4647 rm -f conftest.$ac_ext
4652 case "x$ac_cv_prog_cc_c89" in
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4655 $as_echo "none needed" >&6; } ;;
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4658 $as_echo "unsupported" >&6; } ;;
4660 CC="$CC $ac_cv_prog_cc_c89"
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4662 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4664 if test "x$ac_cv_prog_cc_c89" != xno; then :
4669 ac_cpp='$CPP $CPPFLAGS'
4670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4676 $as_echo_n "checking $CC dependency flag... " >&6; }
4677 echo 'void f(){}' >conftest.c
4678 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4681 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4684 DEPFLAG="-MM" # dunno do something
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4688 $as_echo "$DEPFLAG" >&6; }
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4696 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4697 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4698 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4699 $as_echo_n "(cached) " >&6
4702 echo 'void f(){}' >conftest.c
4703 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4704 eval "cv_prog_cc_flag_$cache=yes"
4706 eval "cv_prog_cc_flag_$cache=no"
4708 rm -f conftest conftest.o conftest.c
4712 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4714 $as_echo "yes" >&6; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4727 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4728 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4729 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4730 $as_echo_n "(cached) " >&6
4733 echo 'void f(){}' >conftest.c
4734 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4735 eval "cv_prog_cc_flag_$cache=yes"
4737 eval "cv_prog_cc_flag_$cache=no"
4739 rm -f conftest conftest.o conftest.c
4743 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4745 $as_echo "yes" >&6; }
4747 ERRFLAG="$ERRFLAG -Wall"
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750 $as_echo "no" >&6; }
4752 ERRFLAG="$ERRFLAG -errfmt"
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4760 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4761 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4762 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4763 $as_echo_n "(cached) " >&6
4766 echo 'void f(){}' >conftest.c
4767 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4768 eval "cv_prog_cc_flag_$cache=yes"
4770 eval "cv_prog_cc_flag_$cache=no"
4772 rm -f conftest conftest.o conftest.c
4776 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4778 $as_echo "yes" >&6; }
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4791 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
4792 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4793 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4794 $as_echo_n "(cached) " >&6
4797 echo 'void f(){}' >conftest.c
4798 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
4799 eval "cv_prog_cc_flag_$cache=yes"
4801 eval "cv_prog_cc_flag_$cache=no"
4803 rm -f conftest conftest.o conftest.c
4807 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4809 $as_echo "yes" >&6; }
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 $as_echo "no" >&6; }
4820 for ac_header in getopt.h time.h
4822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4823 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4825 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4826 cat >>confdefs.h <<_ACEOF
4827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4838 { $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
4839 $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; }
4840 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`
4841 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4842 $as_echo_n "(cached) " >&6
4846 #include "confdefs.h"
4849 #include <sys/time.h>
4855 #ifdef HAVE_GETOPT_H
4866 const char* str = NULL;
4868 msg.msg_control = 0;
4869 t = ctime_r(&time, buf);
4872 a = getopt(2, opts, "a");
4874 str = gai_strerror(0);
4875 if(str && t && tv.tv_usec && msg.msg_control)
4880 echo 'void f(){}' >>conftest.c
4881 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
4882 eval "cv_prog_cc_flag_needed_$cache=no"
4885 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
4886 eval "cv_prog_cc_flag_needed_$cache=yes"
4888 eval "cv_prog_cc_flag_needed_$cache=fail"
4889 #echo 'Test with flag fails too!'
4891 #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"
4892 #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`
4897 rm -f conftest conftest.c conftest.o
4901 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4903 $as_echo "yes" >&6; }
4905 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"
4907 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4910 #echo 'Test with flag is no!'
4912 #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"
4913 #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`
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4919 $as_echo "failed" >&6; }
4929 { $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
4930 $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; }
4931 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
4932 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4933 $as_echo_n "(cached) " >&6
4937 #include "confdefs.h"
4940 #include <sys/time.h>
4946 #ifdef HAVE_GETOPT_H
4957 const char* str = NULL;
4959 msg.msg_control = 0;
4960 t = ctime_r(&time, buf);
4963 a = getopt(2, opts, "a");
4965 str = gai_strerror(0);
4966 if(str && t && tv.tv_usec && msg.msg_control)
4971 echo 'void f(){}' >>conftest.c
4972 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
4973 eval "cv_prog_cc_flag_needed_$cache=no"
4976 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
4977 eval "cv_prog_cc_flag_needed_$cache=yes"
4979 eval "cv_prog_cc_flag_needed_$cache=fail"
4980 #echo 'Test with flag fails too!'
4982 #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"
4983 #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`
4988 rm -f conftest conftest.c conftest.o
4992 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4994 $as_echo "yes" >&6; }
4996 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
4998 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5001 #echo 'Test with flag is no!'
5003 #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"
5004 #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`
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5010 $as_echo "failed" >&6; }
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5021 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5022 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5023 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5024 $as_echo_n "(cached) " >&6
5028 #include <stdbool.h>
5035 echo 'void f(){}' >>conftest.c
5036 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5037 eval "cv_prog_cc_flag_needed_$cache=no"
5040 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5041 eval "cv_prog_cc_flag_needed_$cache=yes"
5043 eval "cv_prog_cc_flag_needed_$cache=fail"
5044 #echo 'Test with flag fails too!'
5046 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5047 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5052 rm -f conftest conftest.c conftest.o
5056 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5058 $as_echo "yes" >&6; }
5060 CFLAGS="$CFLAGS $C99FLAG"
5062 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 #echo 'Test with flag is no!'
5067 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5068 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5074 $as_echo "failed" >&6; }
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5085 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5087 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5088 $as_echo_n "(cached) " >&6
5100 echo 'void f(){}' >>conftest.c
5101 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5102 eval "cv_prog_cc_flag_needed_$cache=no"
5105 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5106 eval "cv_prog_cc_flag_needed_$cache=yes"
5108 eval "cv_prog_cc_flag_needed_$cache=fail"
5109 #echo 'Test with flag fails too!'
5111 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5112 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5117 rm -f conftest conftest.c conftest.o
5121 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5123 $as_echo "yes" >&6; }
5125 CFLAGS="$CFLAGS -D_BSD_SOURCE"
5127 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5130 #echo 'Test with flag is no!'
5132 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5133 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5139 $as_echo "failed" >&6; }
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5150 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5152 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5153 $as_echo_n "(cached) " >&6
5157 #include <netinet/in.h>
5160 struct in6_pktinfo inf;
5161 int a = (int)sizeof(inf);
5165 echo 'void f(){}' >>conftest.c
5166 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5167 eval "cv_prog_cc_flag_needed_$cache=no"
5170 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5171 eval "cv_prog_cc_flag_needed_$cache=yes"
5173 eval "cv_prog_cc_flag_needed_$cache=fail"
5174 #echo 'Test with flag fails too!'
5176 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5177 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5182 rm -f conftest conftest.c conftest.o
5186 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5188 $as_echo "yes" >&6; }
5190 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5192 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5195 #echo 'Test with flag is no!'
5197 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5198 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5204 $as_echo "failed" >&6; }
5211 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5212 # is not available at all. -D_FRSRESGID is to make this check unique.
5213 # otherwise we would get the previous cached result.
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5218 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5219 cache=_D_GNU_SOURCE__D_FRSRESGID
5220 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5221 $as_echo_n "(cached) " >&6
5228 int a = setresgid(0,0,0);
5229 a = setresuid(0,0,0);
5233 echo 'void f(){}' >>conftest.c
5234 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5235 eval "cv_prog_cc_flag_needed_$cache=no"
5238 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5239 eval "cv_prog_cc_flag_needed_$cache=yes"
5241 eval "cv_prog_cc_flag_needed_$cache=fail"
5242 #echo 'Test with flag fails too!'
5244 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5245 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5250 rm -f conftest conftest.c conftest.o
5254 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5256 $as_echo "yes" >&6; }
5258 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5260 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5263 #echo 'Test with flag is no!'
5265 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5266 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5272 $as_echo "failed" >&6; }
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5283 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5284 cache=_D_POSIX_C_SOURCE_200112
5285 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5286 $as_echo_n "(cached) " >&6
5290 #include "confdefs.h"
5301 const char* str = NULL;
5302 t = ctime_r(&time, buf);
5303 str = gai_strerror(0);
5309 echo 'void f(){}' >>conftest.c
5310 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5311 eval "cv_prog_cc_flag_needed_$cache=no"
5314 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5315 eval "cv_prog_cc_flag_needed_$cache=yes"
5317 eval "cv_prog_cc_flag_needed_$cache=fail"
5318 #echo 'Test with flag fails too!'
5320 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5321 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5326 rm -f conftest conftest.c conftest.o
5330 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5332 $as_echo "yes" >&6; }
5334 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5336 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 #echo 'Test with flag is no!'
5341 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5342 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5348 $as_echo "failed" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5359 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5360 cache=_D__EXTENSIONS__
5361 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5362 $as_echo_n "(cached) " >&6
5366 #include "confdefs.h"
5369 #include <sys/time.h>
5374 #ifdef HAVE_GETOPT_H
5384 a = getopt(2, opts, "a");
5391 echo 'void f(){}' >>conftest.c
5392 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5393 eval "cv_prog_cc_flag_needed_$cache=no"
5396 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5397 eval "cv_prog_cc_flag_needed_$cache=yes"
5399 eval "cv_prog_cc_flag_needed_$cache=fail"
5400 #echo 'Test with flag fails too!'
5402 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5403 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5408 rm -f conftest conftest.c conftest.o
5412 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5414 $as_echo "yes" >&6; }
5416 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5418 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5421 #echo 'Test with flag is no!'
5423 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5424 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5430 $as_echo "failed" >&6; }
5439 # debug mode flags warnings
5440 # Check whether --enable-checking was given.
5441 if test "${enable_checking+set}" = set; then :
5442 enableval=$enable_checking;
5445 # Check whether --enable-debug was given.
5446 if test "${enable_debug+set}" = set; then :
5447 enableval=$enable_debug;
5450 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5451 else debug_enabled="$enable_checking"; fi
5453 case "$debug_enabled" in
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5458 $as_echo_n "checking whether $CC supports -W... " >&6; }
5459 cache=`echo W | sed 'y%.=/+-%___p_%'`
5460 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5461 $as_echo_n "(cached) " >&6
5464 echo 'void f(){}' >conftest.c
5465 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5466 eval "cv_prog_cc_flag_$cache=yes"
5468 eval "cv_prog_cc_flag_$cache=no"
5470 rm -f conftest conftest.o conftest.c
5474 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5476 $as_echo "yes" >&6; }
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5489 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5490 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5491 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5492 $as_echo_n "(cached) " >&6
5495 echo 'void f(){}' >conftest.c
5496 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5497 eval "cv_prog_cc_flag_$cache=yes"
5499 eval "cv_prog_cc_flag_$cache=no"
5501 rm -f conftest conftest.o conftest.c
5505 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5507 $as_echo "yes" >&6; }
5509 CFLAGS="$CFLAGS -Wall"
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5520 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5521 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5522 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5523 $as_echo_n "(cached) " >&6
5526 echo 'void f(){}' >conftest.c
5527 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5528 eval "cv_prog_cc_flag_$cache=yes"
5530 eval "cv_prog_cc_flag_$cache=no"
5532 rm -f conftest conftest.o conftest.c
5536 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5538 $as_echo "yes" >&6; }
5540 CFLAGS="$CFLAGS -Wextra"
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5551 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5552 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5553 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5554 $as_echo_n "(cached) " >&6
5557 echo 'void f(){}' >conftest.c
5558 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5559 eval "cv_prog_cc_flag_$cache=yes"
5561 eval "cv_prog_cc_flag_$cache=no"
5563 rm -f conftest conftest.o conftest.c
5567 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5569 $as_echo "yes" >&6; }
5571 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5580 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5588 $as_echo_n "checking if $CC supports -flto... " >&6; }
5590 CFLAGS="$CFLAGS -flto"
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5602 if ac_fn_c_try_link "$LINENO"; then :
5604 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5610 $as_echo "yes" >&6; }
5612 rm -f conftest conftest.c conftest.o
5615 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5618 rm -f core conftest.err conftest.$ac_objext \
5619 conftest$ac_exeext conftest.$ac_ext
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5623 $as_echo_n "checking for inline... " >&6; }
5624 if ${ac_cv_c_inline+:} false; then :
5625 $as_echo_n "(cached) " >&6
5628 for ac_kw in inline __inline__ __inline; do
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5633 static $ac_kw foo_t static_foo () {return 0; }
5634 $ac_kw foo_t foo () {return 0; }
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 ac_cv_c_inline=$ac_kw
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 test "$ac_cv_c_inline" != no && break
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5647 $as_echo "$ac_cv_c_inline" >&6; }
5649 case $ac_cv_c_inline in
5652 case $ac_cv_c_inline in
5654 *) ac_val=$ac_cv_c_inline;;
5656 cat >>confdefs.h <<_ACEOF
5658 #define inline $ac_val
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5666 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5667 if ${ac_cv_c_format_attribute+:} false; then :
5668 $as_echo_n "(cached) " >&6
5670 ac_cv_c_format_attribute=no
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5674 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5675 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5687 if ac_fn_c_try_compile "$LINENO"; then :
5688 ac_cv_c_format_attribute="yes"
5690 ac_cv_c_format_attribute="no"
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5698 $as_echo "$ac_cv_c_format_attribute" >&6; }
5699 if test $ac_cv_c_format_attribute = yes; then
5701 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5707 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5708 if ${ac_cv_c_unused_attribute+:} false; then :
5709 $as_echo_n "(cached) " >&6
5711 ac_cv_c_unused_attribute=no
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5715 void f (char *u __attribute__((unused)));
5727 if ac_fn_c_try_compile "$LINENO"; then :
5728 ac_cv_c_unused_attribute="yes"
5730 ac_cv_c_unused_attribute="no"
5732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
5740 $as_echo "$ac_cv_c_unused_attribute" >&6; }
5741 if test $ac_cv_c_unused_attribute = yes; then
5743 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
5748 if test "$srcdir" != "."; then
5749 CPPFLAGS="$CPPFLAGS -I$srcdir"
5754 for ac_prog in flex lex
5756 # Extract the first word of "$ac_prog", so it can be a program name with args.
5757 set dummy $ac_prog; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_prog_LEX+:} false; then :
5761 $as_echo_n "(cached) " >&6
5763 if test -n "$LEX"; then
5764 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773 ac_cv_prog_LEX="$ac_prog"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 if test -n "$LEX"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5786 $as_echo "$LEX" >&6; }
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5793 test -n "$LEX" && break
5795 test -n "$LEX" || LEX=":"
5797 if test "x$LEX" != "x:"; then
5798 cat >conftest.l <<_ACEOF
5804 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5805 yyless ((input () != 0)); }
5806 f { unput (yytext[0]); }
5807 . { BEGIN INITIAL; }
5809 #ifdef YYTEXT_POINTER
5810 extern char *yytext;
5815 return ! yylex () + ! yywrap ();
5818 { { ac_try="$LEX conftest.l"
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5824 $as_echo "$ac_try_echo"; } >&5
5825 (eval "$LEX conftest.l") 2>&5
5827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5828 test $ac_status = 0; }
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5830 $as_echo_n "checking lex output file root... " >&6; }
5831 if ${ac_cv_prog_lex_root+:} false; then :
5832 $as_echo_n "(cached) " >&6
5835 if test -f lex.yy.c; then
5836 ac_cv_prog_lex_root=lex.yy
5837 elif test -f lexyy.c; then
5838 ac_cv_prog_lex_root=lexyy
5840 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5844 $as_echo "$ac_cv_prog_lex_root" >&6; }
5845 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5847 if test -z "${LEXLIB+set}"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5849 $as_echo_n "checking lex library... " >&6; }
5850 if ${ac_cv_lib_lex+:} false; then :
5851 $as_echo_n "(cached) " >&6
5855 ac_cv_lib_lex='none needed'
5856 for ac_lib in '' -lfl -ll; do
5857 LIBS="$ac_lib $ac_save_LIBS"
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860 `cat $LEX_OUTPUT_ROOT.c`
5862 if ac_fn_c_try_link "$LINENO"; then :
5863 ac_cv_lib_lex=$ac_lib
5865 rm -f core conftest.err conftest.$ac_objext \
5866 conftest$ac_exeext conftest.$ac_ext
5867 test "$ac_cv_lib_lex" != 'none needed' && break
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5873 $as_echo "$ac_cv_lib_lex" >&6; }
5874 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5879 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5880 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5881 $as_echo_n "(cached) " >&6
5883 # POSIX says lex can declare yytext either as a pointer or an array; the
5884 # default is implementation-dependent. Figure out which it is, since
5885 # not all implementations provide the %pointer and %array declarations.
5886 ac_cv_prog_lex_yytext_pointer=no
5888 LIBS="$LEXLIB $ac_save_LIBS"
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5892 #define YYTEXT_POINTER 1
5893 `cat $LEX_OUTPUT_ROOT.c`
5895 if ac_fn_c_try_link "$LINENO"; then :
5896 ac_cv_prog_lex_yytext_pointer=yes
5898 rm -f core conftest.err conftest.$ac_objext \
5899 conftest$ac_exeext conftest.$ac_ext
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5904 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5905 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5907 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5910 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
5915 $as_echo_n "checking for yylex_destroy... " >&6; }
5916 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
5918 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5921 $as_echo "yes" >&6; }
5922 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }; fi
5925 for ac_prog in 'bison -y' byacc
5927 # Extract the first word of "$ac_prog", so it can be a program name with args.
5928 set dummy $ac_prog; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if ${ac_cv_prog_YACC+:} false; then :
5932 $as_echo_n "(cached) " >&6
5934 if test -n "$YACC"; then
5935 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_YACC="$ac_prog"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 YACC=$ac_cv_prog_YACC
5955 if test -n "$YACC"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5957 $as_echo "$YACC" >&6; }
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5964 test -n "$YACC" && break
5966 test -n "$YACC" || YACC="yacc"
5968 # Extract the first word of "doxygen", so it can be a program name with args.
5969 set dummy doxygen; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if ${ac_cv_prog_doxygen+:} false; then :
5973 $as_echo_n "(cached) " >&6
5975 if test -n "$doxygen"; then
5976 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985 ac_cv_prog_doxygen="doxygen"
5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 doxygen=$ac_cv_prog_doxygen
5996 if test -n "$doxygen"; then
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
5998 $as_echo "$doxygen" >&6; }
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6005 if test -n "$ac_tool_prefix"; then
6006 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6007 set dummy ${ac_tool_prefix}strip; ac_word=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if ${ac_cv_prog_STRIP+:} false; then :
6011 $as_echo_n "(cached) " >&6
6013 if test -n "$STRIP"; then
6014 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 STRIP=$ac_cv_prog_STRIP
6034 if test -n "$STRIP"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6036 $as_echo "$STRIP" >&6; }
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6044 if test -z "$ac_cv_prog_STRIP"; then
6046 # Extract the first word of "strip", so it can be a program name with args.
6047 set dummy strip; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6051 $as_echo_n "(cached) " >&6
6053 if test -n "$ac_ct_STRIP"; then
6054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6063 ac_cv_prog_ac_ct_STRIP="strip"
6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6074 if test -n "$ac_ct_STRIP"; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6076 $as_echo "$ac_ct_STRIP" >&6; }
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6082 if test "x$ac_ct_STRIP" = x; then
6085 case $cross_compiling:$ac_tool_warned in
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6089 ac_tool_warned=yes ;;
6094 STRIP="$ac_cv_prog_STRIP"
6098 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6099 if test -f "$ac_dir/install-sh"; then
6101 ac_install_sh="$ac_aux_dir/install-sh -c"
6103 elif test -f "$ac_dir/install.sh"; then
6105 ac_install_sh="$ac_aux_dir/install.sh -c"
6107 elif test -f "$ac_dir/shtool"; then
6109 ac_install_sh="$ac_aux_dir/shtool install -c"
6113 if test -z "$ac_aux_dir"; then
6114 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6117 # These three variables are undocumented and unsupported,
6118 # and are intended to be withdrawn in a future Autoconf release.
6119 # They can cause serious problems if a builder's source tree is in a directory
6120 # whose full name contains unusual characters.
6121 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6122 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6123 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6126 # Make sure we can run config.sub.
6127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6128 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6131 $as_echo_n "checking build system type... " >&6; }
6132 if ${ac_cv_build+:} false; then :
6133 $as_echo_n "(cached) " >&6
6135 ac_build_alias=$build_alias
6136 test "x$ac_build_alias" = x &&
6137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6138 test "x$ac_build_alias" = x &&
6139 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6141 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6145 $as_echo "$ac_cv_build" >&6; }
6146 case $ac_cv_build in
6148 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6151 ac_save_IFS=$IFS; IFS='-'
6157 # Remember, the first character of IFS is used to create $*,
6158 # except with old shells:
6161 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6165 $as_echo_n "checking host system type... " >&6; }
6166 if ${ac_cv_host+:} false; then :
6167 $as_echo_n "(cached) " >&6
6169 if test "x$host_alias" = x; then
6170 ac_cv_host=$ac_cv_build
6172 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6173 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6178 $as_echo "$ac_cv_host" >&6; }
6181 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6184 ac_save_IFS=$IFS; IFS='-'
6190 # Remember, the first character of IFS is used to create $*,
6191 # except with old shells:
6194 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6198 # skip these tests, we do not need them.
6207 # always use ./libtool unless override from commandline (libtool=mylibtool)
6208 if test -z "$libtool"; then
6212 # avoid libtool max commandline length test on systems that fork slowly.
6214 if echo "$host_os" | grep "sunos4" >/dev/null; then
6215 lt_cv_sys_max_cmd_len=32750;
6217 if test -n "$ac_tool_prefix"; then
6218 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6219 set dummy ${ac_tool_prefix}ar; ac_word=$2
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221 $as_echo_n "checking for $ac_word... " >&6; }
6222 if ${ac_cv_path_AR+:} false; then :
6223 $as_echo_n "(cached) " >&6
6227 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6237 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 if test -n "$AR"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6251 $as_echo "$AR" >&6; }
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6259 if test -z "$ac_cv_path_AR"; then
6261 # Extract the first word of "ar", so it can be a program name with args.
6262 set dummy ar; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if ${ac_cv_path_ac_pt_AR+:} false; then :
6266 $as_echo_n "(cached) " >&6
6270 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 ac_pt_AR=$ac_cv_path_ac_pt_AR
6292 if test -n "$ac_pt_AR"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6294 $as_echo "$ac_pt_AR" >&6; }
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6300 if test "x$ac_pt_AR" = x; then
6303 case $cross_compiling:$ac_tool_warned in
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6307 ac_tool_warned=yes ;;
6315 if test $AR = false; then
6316 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6322 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6327 macro_version='2.4.2'
6328 macro_revision='1.3337'
6342 ltmain="$ac_aux_dir/ltmain.sh"
6344 # Backslashify metacharacters that are still active within
6345 # double-quoted strings.
6346 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6348 # Same as above, but do not quote variable references.
6349 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6351 # Sed substitution to delay expansion of an escaped shell variable in a
6352 # double_quote_subst'ed string.
6353 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6355 # Sed substitution to delay expansion of an escaped single quote.
6356 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6358 # Sed substitution to avoid accidental globbing in evaled expressions
6359 no_glob_subst='s/\*/\\\*/g'
6361 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6362 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6363 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6366 $as_echo_n "checking how to print strings... " >&6; }
6367 # Test print first, because it will be a builtin if present.
6368 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6369 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6371 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6374 # Use this function as a fallback that always works.
6375 func_fallback_echo ()
6377 eval 'cat <<_LTECHO_EOF
6381 ECHO='func_fallback_echo'
6384 # func_echo_all arg...
6385 # Invoke $ECHO with all args, space-separated.
6392 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6393 $as_echo "printf" >&6; } ;;
6394 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6395 $as_echo "print -r" >&6; } ;;
6396 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6397 $as_echo "cat" >&6; } ;;
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6414 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6415 if ${ac_cv_path_SED+:} false; then :
6416 $as_echo_n "(cached) " >&6
6418 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6419 for ac_i in 1 2 3 4 5 6 7; do
6420 ac_script="$ac_script$as_nl$ac_script"
6422 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6423 { ac_script=; unset ac_script;}
6424 if test -z "$SED"; then
6425 ac_path_SED_found=false
6426 # Loop through the user's path and test for each of PROGNAME-LIST
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir=.
6432 for ac_prog in sed gsed; do
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6435 as_fn_executable_p "$ac_path_SED" || continue
6436 # Check for GNU ac_path_SED and select it if it is found.
6437 # Check for GNU $ac_path_SED
6438 case `"$ac_path_SED" --version 2>&1` in
6440 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6443 $as_echo_n 0123456789 >"conftest.in"
6446 cat "conftest.in" "conftest.in" >"conftest.tmp"
6447 mv "conftest.tmp" "conftest.in"
6448 cp "conftest.in" "conftest.nl"
6449 $as_echo '' >> "conftest.nl"
6450 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6452 as_fn_arith $ac_count + 1 && ac_count=$as_val
6453 if test $ac_count -gt ${ac_path_SED_max-0}; then
6454 # Best one so far, save it but keep looking for a better one
6455 ac_cv_path_SED="$ac_path_SED"
6456 ac_path_SED_max=$ac_count
6458 # 10*(2^10) chars as input seems more than enough
6459 test $ac_count -gt 10 && break
6461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6464 $ac_path_SED_found && break 3
6469 if test -z "$ac_cv_path_SED"; then
6470 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6478 $as_echo "$ac_cv_path_SED" >&6; }
6479 SED="$ac_cv_path_SED"
6482 test -z "$SED" && SED=sed
6483 Xsed="$SED -e 1s/^X//"
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6496 $as_echo_n "checking for fgrep... " >&6; }
6497 if ${ac_cv_path_FGREP+:} false; then :
6498 $as_echo_n "(cached) " >&6
6500 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6501 then ac_cv_path_FGREP="$GREP -F"
6503 if test -z "$FGREP"; then
6504 ac_path_FGREP_found=false
6505 # Loop through the user's path and test for each of PROGNAME-LIST
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6510 test -z "$as_dir" && as_dir=.
6511 for ac_prog in fgrep; do
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6514 as_fn_executable_p "$ac_path_FGREP" || continue
6515 # Check for GNU ac_path_FGREP and select it if it is found.
6516 # Check for GNU $ac_path_FGREP
6517 case `"$ac_path_FGREP" --version 2>&1` in
6519 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6522 $as_echo_n 0123456789 >"conftest.in"
6525 cat "conftest.in" "conftest.in" >"conftest.tmp"
6526 mv "conftest.tmp" "conftest.in"
6527 cp "conftest.in" "conftest.nl"
6528 $as_echo 'FGREP' >> "conftest.nl"
6529 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6531 as_fn_arith $ac_count + 1 && ac_count=$as_val
6532 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6533 # Best one so far, save it but keep looking for a better one
6534 ac_cv_path_FGREP="$ac_path_FGREP"
6535 ac_path_FGREP_max=$ac_count
6537 # 10*(2^10) chars as input seems more than enough
6538 test $ac_count -gt 10 && break
6540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6543 $ac_path_FGREP_found && break 3
6548 if test -z "$ac_cv_path_FGREP"; then
6549 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6552 ac_cv_path_FGREP=$FGREP
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6558 $as_echo "$ac_cv_path_FGREP" >&6; }
6559 FGREP="$ac_cv_path_FGREP"
6562 test -z "$GREP" && GREP=grep
6582 # Check whether --with-gnu-ld was given.
6583 if test "${with_gnu_ld+set}" = set; then :
6584 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6590 if test "$GCC" = yes; then
6591 # Check if gcc -print-prog-name=ld gives a path.
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6593 $as_echo_n "checking for ld used by $CC... " >&6; }
6596 # gcc leaves a trailing carriage return which upsets mingw
6597 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6599 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6602 # Accept absolute paths.
6604 re_direlt='/[^/][^/]*/\.\./'
6605 # Canonicalize the pathname of ld
6606 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6607 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6608 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6610 test -z "$LD" && LD="$ac_prog"
6613 # If it fails, then pretend we aren't using GCC.
6617 # If it is relative, then search for the first ld in PATH.
6621 elif test "$with_gnu_ld" = yes; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6623 $as_echo_n "checking for GNU ld... " >&6; }
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6626 $as_echo_n "checking for non-GNU ld... " >&6; }
6628 if ${lt_cv_path_LD+:} false; then :
6629 $as_echo_n "(cached) " >&6
6631 if test -z "$LD"; then
6632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6633 for ac_dir in $PATH; do
6635 test -z "$ac_dir" && ac_dir=.
6636 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6637 lt_cv_path_LD="$ac_dir/$ac_prog"
6638 # Check to see if the program is GNU ld. I'd rather use --version,
6639 # but apparently some variants of GNU ld only accept -v.
6640 # Break only if it was the GNU/non-GNU ld that we prefer.
6641 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6642 *GNU* | *'with BFD'*)
6643 test "$with_gnu_ld" != no && break
6646 test "$with_gnu_ld" != yes && break
6653 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6658 if test -n "$LD"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6660 $as_echo "$LD" >&6; }
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6665 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6667 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6668 if ${lt_cv_prog_gnu_ld+:} false; then :
6669 $as_echo_n "(cached) " >&6
6671 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6672 case `$LD -v 2>&1 </dev/null` in
6673 *GNU* | *'with BFD'*)
6674 lt_cv_prog_gnu_ld=yes
6677 lt_cv_prog_gnu_ld=no
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6682 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6683 with_gnu_ld=$lt_cv_prog_gnu_ld
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6694 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6695 if ${lt_cv_path_NM+:} false; then :
6696 $as_echo_n "(cached) " >&6
6698 if test -n "$NM"; then
6699 # Let the user override the test.
6702 lt_nm_to_check="${ac_tool_prefix}nm"
6703 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6704 lt_nm_to_check="$lt_nm_to_check nm"
6706 for lt_tmp_nm in $lt_nm_to_check; do
6707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6708 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6710 test -z "$ac_dir" && ac_dir=.
6711 tmp_nm="$ac_dir/$lt_tmp_nm"
6712 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6713 # Check to see if the nm accepts a BSD-compat flag.
6714 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6715 # nm: unknown option "B" ignored
6716 # Tru64's nm complains that /dev/null is an invalid object file
6717 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6718 */dev/null* | *'Invalid file or object type'*)
6719 lt_cv_path_NM="$tmp_nm -B"
6723 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6725 lt_cv_path_NM="$tmp_nm -p"
6729 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6730 continue # so that we can try to find one that supports BSD flags
6739 : ${lt_cv_path_NM=no}
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6743 $as_echo "$lt_cv_path_NM" >&6; }
6744 if test "$lt_cv_path_NM" != "no"; then
6747 # Didn't find any BSD compatible name lister, look for dumpbin.
6748 if test -n "$DUMPBIN"; then :
6749 # Let the user override the test.
6751 if test -n "$ac_tool_prefix"; then
6752 for ac_prog in dumpbin "link -dump"
6754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if ${ac_cv_prog_DUMPBIN+:} false; then :
6759 $as_echo_n "(cached) " >&6
6761 if test -n "$DUMPBIN"; then
6762 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 DUMPBIN=$ac_cv_prog_DUMPBIN
6782 if test -n "$DUMPBIN"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6784 $as_echo "$DUMPBIN" >&6; }
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6791 test -n "$DUMPBIN" && break
6794 if test -z "$DUMPBIN"; then
6795 ac_ct_DUMPBIN=$DUMPBIN
6796 for ac_prog in dumpbin "link -dump"
6798 # Extract the first word of "$ac_prog", so it can be a program name with args.
6799 set dummy $ac_prog; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6803 $as_echo_n "(cached) " >&6
6805 if test -n "$ac_ct_DUMPBIN"; then
6806 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6826 if test -n "$ac_ct_DUMPBIN"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6828 $as_echo "$ac_ct_DUMPBIN" >&6; }
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6835 test -n "$ac_ct_DUMPBIN" && break
6838 if test "x$ac_ct_DUMPBIN" = x; then
6841 case $cross_compiling:$ac_tool_warned in
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6847 DUMPBIN=$ac_ct_DUMPBIN
6851 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6853 DUMPBIN="$DUMPBIN -symbols"
6861 if test "$DUMPBIN" != ":"; then
6865 test -z "$NM" && NM=nm
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6873 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6874 if ${lt_cv_nm_interface+:} false; then :
6875 $as_echo_n "(cached) " >&6
6877 lt_cv_nm_interface="BSD nm"
6878 echo "int some_variable = 0;" > conftest.$ac_ext
6879 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6880 (eval "$ac_compile" 2>conftest.err)
6881 cat conftest.err >&5
6882 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6883 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6884 cat conftest.err >&5
6885 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6886 cat conftest.out >&5
6887 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6888 lt_cv_nm_interface="MS dumpbin"
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6893 $as_echo "$lt_cv_nm_interface" >&6; }
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6896 $as_echo_n "checking whether ln -s works... " >&6; }
6898 if test "$LN_S" = "ln -s"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6900 $as_echo "yes" >&6; }
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6903 $as_echo "no, using $LN_S" >&6; }
6906 # find the maximum length of command line arguments
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6908 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6909 if ${lt_cv_sys_max_cmd_len+:} false; then :
6910 $as_echo_n "(cached) " >&6
6917 # On DJGPP, this test can blow up pretty badly due to problems in libc
6918 # (any single argument exceeding 2000 bytes causes a buffer overrun
6919 # during glob expansion). Even if it were fixed, the result of this
6920 # check would be larger than it should be.
6921 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6925 # Under GNU Hurd, this test is not required because there is
6926 # no limit to the length of command line arguments.
6927 # Libtool will interpret -1 as no limit whatsoever
6928 lt_cv_sys_max_cmd_len=-1;
6931 cygwin* | mingw* | cegcc*)
6932 # On Win9x/ME, this test blows up -- it succeeds, but takes
6933 # about 5 minutes as the teststring grows exponentially.
6934 # Worse, since 9x/ME are not pre-emptively multitasking,
6935 # you end up with a "frozen" computer, even though with patience
6936 # the test eventually succeeds (with a max line length of 256k).
6937 # Instead, let's just punt: use the minimum linelength reported by
6938 # all of the supported platforms: 8192 (on NT/2K/XP).
6939 lt_cv_sys_max_cmd_len=8192;
6943 # On MiNT this can take a long time and run out of memory.
6944 lt_cv_sys_max_cmd_len=8192;
6948 # On AmigaOS with pdksh, this test takes hours, literally.
6949 # So we just punt and use a minimum line length of 8192.
6950 lt_cv_sys_max_cmd_len=8192;
6953 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6954 # This has been around since 386BSD, at least. Likely further.
6955 if test -x /sbin/sysctl; then
6956 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6957 elif test -x /usr/sbin/sysctl; then
6958 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6960 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6962 # And add a safety zone
6963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6968 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6969 lt_cv_sys_max_cmd_len=196608
6973 # The test takes a long time on OS/2.
6974 lt_cv_sys_max_cmd_len=8192
6978 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6979 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6980 # nice to cause kernel panics so lets avoid the loop below.
6981 # First set a reasonable default.
6982 lt_cv_sys_max_cmd_len=16384
6984 if test -x /sbin/sysconfig; then
6985 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6986 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6991 lt_cv_sys_max_cmd_len=102400
6993 sysv5* | sco5v6* | sysv4.2uw2*)
6994 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6995 if test -n "$kargmax"; then
6996 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6998 lt_cv_sys_max_cmd_len=32768
7002 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7003 if test -n "$lt_cv_sys_max_cmd_len"; then
7004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7007 # Make teststring a little bigger before we do anything with it.
7008 # a 1K string should be a reasonable start.
7009 for i in 1 2 3 4 5 6 7 8 ; do
7010 teststring=$teststring$teststring
7012 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7013 # If test is not a shell built-in, we'll probably end up computing a
7014 # maximum length that is only half of the actual maximum length, but
7016 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7017 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7018 test $i != 17 # 1/2 MB should be enough
7021 teststring=$teststring$teststring
7023 # Only check the string length outside the loop.
7024 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7026 # Add a significant safety factor because C++ compilers can tack on
7027 # massive amounts of additional arguments before passing them to the
7028 # linker. It appears as though 1/2 is a usable value.
7029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7036 if test -n $lt_cv_sys_max_cmd_len ; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7038 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7041 $as_echo "none" >&6; }
7043 max_cmd_len=$lt_cv_sys_max_cmd_len
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7055 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7056 # Try some XSI features
7059 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7061 && eval 'test $(( 1 + 1 )) -eq 2 \
7062 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7065 $as_echo "$xsi_shell" >&6; }
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7069 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7071 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7073 && lt_shell_append=yes
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7075 $as_echo "$lt_shell_append" >&6; }
7078 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7088 # test EBCDIC or ASCII
7089 case `echo X|tr X '\101'` in
7090 A) # ASCII based system
7091 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7092 lt_SP2NL='tr \040 \012'
7093 lt_NL2SP='tr \015\012 \040\040'
7095 *) # EBCDIC based system
7096 lt_SP2NL='tr \100 \n'
7097 lt_NL2SP='tr \r\n \100\100'
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7110 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7111 if ${lt_cv_to_host_file_cmd+:} false; then :
7112 $as_echo_n "(cached) " >&6
7117 *-*-mingw* ) # actually msys
7118 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7121 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7123 * ) # otherwise, assume *nix
7124 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7130 *-*-mingw* ) # actually msys
7131 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7134 lt_cv_to_host_file_cmd=func_convert_file_noop
7136 * ) # otherwise, assume *nix
7137 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7141 * ) # unhandled hosts (and "normal" native builds)
7142 lt_cv_to_host_file_cmd=func_convert_file_noop
7148 to_host_file_cmd=$lt_cv_to_host_file_cmd
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7150 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7157 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7158 if ${lt_cv_to_tool_file_cmd+:} false; then :
7159 $as_echo_n "(cached) " >&6
7161 #assume ordinary cross tools, or native build.
7162 lt_cv_to_tool_file_cmd=func_convert_file_noop
7166 *-*-mingw* ) # actually msys
7167 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7175 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7177 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7184 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7185 if ${lt_cv_ld_reload_flag+:} false; then :
7186 $as_echo_n "(cached) " >&6
7188 lt_cv_ld_reload_flag='-r'
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7191 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7192 reload_flag=$lt_cv_ld_reload_flag
7193 case $reload_flag in
7195 *) reload_flag=" $reload_flag" ;;
7197 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7199 cygwin* | mingw* | pw32* | cegcc*)
7200 if test "$GCC" != yes; then
7205 if test "$GCC" = yes; then
7206 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7208 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_OBJDUMP+:} false; then :
7227 $as_echo_n "(cached) " >&6
7229 if test -n "$OBJDUMP"; then
7230 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 OBJDUMP=$ac_cv_prog_OBJDUMP
7250 if test -n "$OBJDUMP"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7252 $as_echo "$OBJDUMP" >&6; }
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7260 if test -z "$ac_cv_prog_OBJDUMP"; then
7261 ac_ct_OBJDUMP=$OBJDUMP
7262 # Extract the first word of "objdump", so it can be a program name with args.
7263 set dummy objdump; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7267 $as_echo_n "(cached) " >&6
7269 if test -n "$ac_ct_OBJDUMP"; then
7270 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7290 if test -n "$ac_ct_OBJDUMP"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7292 $as_echo "$ac_ct_OBJDUMP" >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7298 if test "x$ac_ct_OBJDUMP" = x; then
7301 case $cross_compiling:$ac_tool_warned in
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305 ac_tool_warned=yes ;;
7307 OBJDUMP=$ac_ct_OBJDUMP
7310 OBJDUMP="$ac_cv_prog_OBJDUMP"
7313 test -z "$OBJDUMP" && OBJDUMP=objdump
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7324 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7325 if ${lt_cv_deplibs_check_method+:} false; then :
7326 $as_echo_n "(cached) " >&6
7328 lt_cv_file_magic_cmd='$MAGIC_CMD'
7329 lt_cv_file_magic_test_file=
7330 lt_cv_deplibs_check_method='unknown'
7331 # Need to set the preceding variable on all platforms that support
7332 # interlibrary dependencies.
7333 # 'none' -- dependencies not supported.
7334 # `unknown' -- same as none, but documents that we really don't know.
7335 # 'pass_all' -- all dependencies passed with no checks.
7336 # 'test_compile' -- check by making test program.
7337 # 'file_magic [[regex]]' -- check by looking for files in library path
7338 # which responds to the $file_magic_cmd with a given extended regex.
7339 # If you have `file' or equivalent on your system and you're not sure
7340 # whether `pass_all' will *always* work, you probably want this one.
7344 lt_cv_deplibs_check_method=pass_all
7348 lt_cv_deplibs_check_method=pass_all
7352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7353 lt_cv_file_magic_cmd='/usr/bin/file -L'
7354 lt_cv_file_magic_test_file=/shlib/libc.so
7358 # func_win32_libid is a shell function defined in ltmain.sh
7359 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7360 lt_cv_file_magic_cmd='func_win32_libid'
7364 # Base MSYS/MinGW do not provide the 'file' command needed by
7365 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7366 # unless we find 'file', for example because we are cross-compiling.
7367 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7368 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7369 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7370 lt_cv_file_magic_cmd='func_win32_libid'
7372 # Keep this pattern in sync with the one in func_win32_libid.
7373 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7374 lt_cv_file_magic_cmd='$OBJDUMP -f'
7379 # use the weaker test based on 'objdump'. See mingw*.
7380 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7381 lt_cv_file_magic_cmd='$OBJDUMP -f'
7384 darwin* | rhapsody*)
7385 lt_cv_deplibs_check_method=pass_all
7388 freebsd* | dragonfly*)
7389 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7392 # Not sure whether the presence of OpenBSD here was a mistake.
7393 # Let's accept both of them until this is cleared up.
7394 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7395 lt_cv_file_magic_cmd=/usr/bin/file
7396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7400 lt_cv_deplibs_check_method=pass_all
7405 lt_cv_deplibs_check_method=pass_all
7409 lt_cv_deplibs_check_method=pass_all
7412 hpux10.20* | hpux11*)
7413 lt_cv_file_magic_cmd=/usr/bin/file
7416 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7417 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7420 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]'
7421 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7424 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7425 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7431 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7432 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7435 irix5* | irix6* | nonstopux*)
7437 *-32|*"-32 ") libmagic=32-bit;;
7438 *-n32|*"-n32 ") libmagic=N32;;
7439 *-64|*"-64 ") libmagic=64-bit;;
7440 *) libmagic=never-match;;
7442 lt_cv_deplibs_check_method=pass_all
7445 # This must be glibc/ELF.
7446 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7447 lt_cv_deplibs_check_method=pass_all
7451 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7460 lt_cv_file_magic_cmd=/usr/bin/file
7461 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7465 lt_cv_deplibs_check_method=pass_all
7469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7476 osf3* | osf4* | osf5*)
7477 lt_cv_deplibs_check_method=pass_all
7481 lt_cv_deplibs_check_method=pass_all
7485 lt_cv_deplibs_check_method=pass_all
7488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7489 lt_cv_deplibs_check_method=pass_all
7493 case $host_vendor in
7495 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]'
7496 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7499 lt_cv_deplibs_check_method=pass_all
7502 lt_cv_file_magic_cmd='/bin/file'
7503 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7506 lt_cv_file_magic_cmd='/bin/file'
7507 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7508 lt_cv_file_magic_test_file=/lib/libc.so
7511 lt_cv_deplibs_check_method=pass_all
7514 lt_cv_deplibs_check_method=pass_all
7520 lt_cv_deplibs_check_method=pass_all
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7526 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7530 if test "$build" = "$host"; then
7533 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7536 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7542 file_magic_cmd=$lt_cv_file_magic_cmd
7543 deplibs_check_method=$lt_cv_deplibs_check_method
7544 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7567 if test -n "$ac_tool_prefix"; then
7568 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7569 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_prog_DLLTOOL+:} false; then :
7573 $as_echo_n "(cached) " >&6
7575 if test -n "$DLLTOOL"; then
7576 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 DLLTOOL=$ac_cv_prog_DLLTOOL
7596 if test -n "$DLLTOOL"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7598 $as_echo "$DLLTOOL" >&6; }
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7606 if test -z "$ac_cv_prog_DLLTOOL"; then
7607 ac_ct_DLLTOOL=$DLLTOOL
7608 # Extract the first word of "dlltool", so it can be a program name with args.
7609 set dummy dlltool; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7613 $as_echo_n "(cached) " >&6
7615 if test -n "$ac_ct_DLLTOOL"; then
7616 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7636 if test -n "$ac_ct_DLLTOOL"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7638 $as_echo "$ac_ct_DLLTOOL" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7644 if test "x$ac_ct_DLLTOOL" = x; then
7647 case $cross_compiling:$ac_tool_warned in
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7651 ac_tool_warned=yes ;;
7653 DLLTOOL=$ac_ct_DLLTOOL
7656 DLLTOOL="$ac_cv_prog_DLLTOOL"
7659 test -z "$DLLTOOL" && DLLTOOL=dlltool
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7671 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7672 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7673 $as_echo_n "(cached) " >&6
7675 lt_cv_sharedlib_from_linklib_cmd='unknown'
7678 cygwin* | mingw* | pw32* | cegcc*)
7679 # two different shell functions defined in ltmain.sh
7680 # decide which to use based on capabilities of $DLLTOOL
7681 case `$DLLTOOL --help 2>&1` in
7682 *--identify-strict*)
7683 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7686 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7691 # fallback: assume linklib IS sharedlib
7692 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7698 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7699 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7700 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7708 if test -n "$ac_tool_prefix"; then
7711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_prog_AR+:} false; then :
7716 $as_echo_n "(cached) " >&6
7718 if test -n "$AR"; then
7719 ac_cv_prog_AR="$AR" # Let the user override the test.
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7739 if test -n "$AR"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7741 $as_echo "$AR" >&6; }
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7748 test -n "$AR" && break
7751 if test -z "$AR"; then
7755 # Extract the first word of "$ac_prog", so it can be a program name with args.
7756 set dummy $ac_prog; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7760 $as_echo_n "(cached) " >&6
7762 if test -n "$ac_ct_AR"; then
7763 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772 ac_cv_prog_ac_ct_AR="$ac_prog"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7783 if test -n "$ac_ct_AR"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7785 $as_echo "$ac_ct_AR" >&6; }
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7792 test -n "$ac_ct_AR" && break
7795 if test "x$ac_ct_AR" = x; then
7798 case $cross_compiling:$ac_tool_warned in
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7802 ac_tool_warned=yes ;;
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7822 $as_echo_n "checking for archiver @FILE support... " >&6; }
7823 if ${lt_cv_ar_at_file+:} false; then :
7824 $as_echo_n "(cached) " >&6
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7838 if ac_fn_c_try_compile "$LINENO"; then :
7839 echo conftest.$ac_objext > conftest.lst
7840 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7842 (eval $lt_ar_try) 2>&5
7844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7845 test $ac_status = 0; }
7846 if test "$ac_status" -eq 0; then
7847 # Ensure the archiver fails upon bogus file names.
7848 rm -f conftest.$ac_objext libconftest.a
7849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7850 (eval $lt_ar_try) 2>&5
7852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7853 test $ac_status = 0; }
7854 if test "$ac_status" -ne 0; then
7858 rm -f conftest.* libconftest.a
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7865 $as_echo "$lt_cv_ar_at_file" >&6; }
7867 if test "x$lt_cv_ar_at_file" = xno; then
7870 archiver_list_spec=$lt_cv_ar_at_file
7879 if test -n "$ac_tool_prefix"; then
7880 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7881 set dummy ${ac_tool_prefix}strip; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if ${ac_cv_prog_STRIP+:} false; then :
7885 $as_echo_n "(cached) " >&6
7887 if test -n "$STRIP"; then
7888 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 test -z "$as_dir" && as_dir=.
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7897 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 STRIP=$ac_cv_prog_STRIP
7908 if test -n "$STRIP"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7910 $as_echo "$STRIP" >&6; }
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7918 if test -z "$ac_cv_prog_STRIP"; then
7920 # Extract the first word of "strip", so it can be a program name with args.
7921 set dummy strip; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7925 $as_echo_n "(cached) " >&6
7927 if test -n "$ac_ct_STRIP"; then
7928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937 ac_cv_prog_ac_ct_STRIP="strip"
7938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7948 if test -n "$ac_ct_STRIP"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7950 $as_echo "$ac_ct_STRIP" >&6; }
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7956 if test "x$ac_ct_STRIP" = x; then
7959 case $cross_compiling:$ac_tool_warned in
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7963 ac_tool_warned=yes ;;
7968 STRIP="$ac_cv_prog_STRIP"
7971 test -z "$STRIP" && STRIP=:
7978 if test -n "$ac_tool_prefix"; then
7979 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7980 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if ${ac_cv_prog_RANLIB+:} false; then :
7984 $as_echo_n "(cached) " >&6
7986 if test -n "$RANLIB"; then
7987 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7996 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 RANLIB=$ac_cv_prog_RANLIB
8007 if test -n "$RANLIB"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8009 $as_echo "$RANLIB" >&6; }
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8017 if test -z "$ac_cv_prog_RANLIB"; then
8018 ac_ct_RANLIB=$RANLIB
8019 # Extract the first word of "ranlib", so it can be a program name with args.
8020 set dummy ranlib; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8024 $as_echo_n "(cached) " >&6
8026 if test -n "$ac_ct_RANLIB"; then
8027 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_ac_ct_RANLIB="ranlib"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8047 if test -n "$ac_ct_RANLIB"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8049 $as_echo "$ac_ct_RANLIB" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8055 if test "x$ac_ct_RANLIB" = x; then
8058 case $cross_compiling:$ac_tool_warned in
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8062 ac_tool_warned=yes ;;
8064 RANLIB=$ac_ct_RANLIB
8067 RANLIB="$ac_cv_prog_RANLIB"
8070 test -z "$RANLIB" && RANLIB=:
8077 # Determine commands to create old-style static archives.
8078 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8079 old_postinstall_cmds='chmod 644 $oldlib'
8080 old_postuninstall_cmds=
8082 if test -n "$RANLIB"; then
8085 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8088 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8091 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8096 lock_old_archive_extraction=yes ;;
8098 lock_old_archive_extraction=no ;;
8121 for ac_prog in gawk mawk nawk awk
8123 # Extract the first word of "$ac_prog", so it can be a program name with args.
8124 set dummy $ac_prog; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if ${ac_cv_prog_AWK+:} false; then :
8128 $as_echo_n "(cached) " >&6
8130 if test -n "$AWK"; then
8131 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140 ac_cv_prog_AWK="$ac_prog"
8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 if test -n "$AWK"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8153 $as_echo "$AWK" >&6; }
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8160 test -n "$AWK" && break
8181 # If no C compiler was specified, use CC.
8184 # If no C compiler flags were specified, use CFLAGS.
8185 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8187 # Allow CC to be a program name with arguments.
8191 # Check for command to grab the raw symbol name followed by C symbol from nm.
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8193 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8194 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8195 $as_echo_n "(cached) " >&6
8198 # These are sane defaults that work on at least a few old systems.
8199 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8201 # Character class describing NM global symbol codes.
8202 symcode='[BCDEGRST]'
8204 # Regexp to match symbols that can be accessed directly from C.
8205 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8207 # Define system-specific variables.
8212 cygwin* | mingw* | pw32* | cegcc*)
8213 symcode='[ABCDGISTW]'
8216 if test "$host_cpu" = ia64; then
8217 symcode='[ABCDEGRST]'
8221 symcode='[BCDEGRST]'
8224 symcode='[BCDEGQRST]'
8235 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8243 # If we're using GNU nm, then use its standard symbol codes.
8244 case `$NM -V 2>&1` in
8245 *GNU* | *'with BFD'*)
8246 symcode='[ABCDGIRSTW]' ;;
8249 # Transform an extracted symbol line into a proper C declaration.
8250 # Some systems (esp. on ia64) link data and code symbols differently,
8251 # so use this general approach.
8252 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8254 # Transform an extracted symbol line into symbol name and symbol address
8255 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8256 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'"
8258 # Handle CRLF in mingw tool chain
8262 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8266 # Try without a prefix underscore, then with it.
8267 for ac_symprfx in "" "_"; do
8269 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8270 symxfrm="\\1 $ac_symprfx\\2 \\2"
8272 # Write the raw and C identifiers.
8273 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8274 # Fake it for dumpbin and say T for any non-static function
8275 # and D for any global variable.
8276 # Also find C++ and __fastcall symbols from MSVC++,
8277 # which start with @ or ?.
8278 lt_cv_sys_global_symbol_pipe="$AWK '"\
8279 " {last_section=section; section=\$ 3};"\
8280 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8281 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8282 " \$ 0!~/External *\|/{next};"\
8283 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8284 " {if(hide[section]) next};"\
8285 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8286 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8287 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8288 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8289 " ' prfx=^$ac_symprfx"
8291 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8293 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8295 # Check to see that the pipe works correctly.
8299 cat > conftest.$ac_ext <<_LT_EOF
8304 void nm_test_func(void);
8305 void nm_test_func(void){}
8309 int main(){nm_test_var='a';nm_test_func();return(0);}
8312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8313 (eval $ac_compile) 2>&5
8315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8316 test $ac_status = 0; }; then
8317 # Now try to grab the symbols.
8319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8320 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8323 test $ac_status = 0; } && test -s "$nlist"; then
8324 # Try sorting and uniquifying the output.
8325 if sort "$nlist" | uniq > "$nlist"T; then
8326 mv -f "$nlist"T "$nlist"
8331 # Make sure that we snagged all the symbols we need.
8332 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8333 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8334 cat <<_LT_EOF > conftest.$ac_ext
8335 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8336 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8337 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8338 relocations are performed -- see ld's documentation on pseudo-relocs. */
8339 # define LT_DLSYM_CONST
8340 #elif defined(__osf__)
8341 /* This system does not cope well with relocations in const data. */
8342 # define LT_DLSYM_CONST
8344 # define LT_DLSYM_CONST const
8352 # Now generate the symbol file.
8353 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8355 cat <<_LT_EOF >> conftest.$ac_ext
8357 /* The mapping between symbol names and symbols. */
8358 LT_DLSYM_CONST struct {
8362 lt__PROGRAM__LTX_preloaded_symbols[] =
8364 { "@PROGRAM@", (void *) 0 },
8366 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8367 cat <<\_LT_EOF >> conftest.$ac_ext
8371 /* This works around a problem in FreeBSD linker */
8372 #ifdef FREEBSD_WORKAROUND
8373 static const void *lt_preloaded_setup() {
8374 return lt__PROGRAM__LTX_preloaded_symbols;
8382 # Now try linking the two files.
8383 mv conftest.$ac_objext conftstm.$ac_objext
8384 lt_globsym_save_LIBS=$LIBS
8385 lt_globsym_save_CFLAGS=$CFLAGS
8386 LIBS="conftstm.$ac_objext"
8387 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8389 (eval $ac_link) 2>&5
8391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8392 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8395 LIBS=$lt_globsym_save_LIBS
8396 CFLAGS=$lt_globsym_save_CFLAGS
8398 echo "cannot find nm_test_func in $nlist" >&5
8401 echo "cannot find nm_test_var in $nlist" >&5
8404 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8407 echo "$progname: failed program was:" >&5
8408 cat conftest.$ac_ext >&5
8410 rm -rf conftest* conftst*
8412 # Do not use the global_symbol_pipe unless it works.
8413 if test "$pipe_works" = yes; then
8416 lt_cv_sys_global_symbol_pipe=
8422 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8423 lt_cv_sys_global_symbol_to_cdecl=
8425 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8427 $as_echo "failed" >&6; }
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8430 $as_echo "ok" >&6; }
8433 # Response file support.
8434 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8435 nm_file_list_spec='@'
8436 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8437 nm_file_list_spec='@'
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8467 $as_echo_n "checking for sysroot... " >&6; }
8469 # Check whether --with-sysroot was given.
8470 if test "${with_sysroot+set}" = set; then :
8471 withval=$with_sysroot;
8478 case ${with_sysroot} in #(
8480 if test "$GCC" = yes; then
8481 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8485 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8491 $as_echo "${with_sysroot}" >&6; }
8492 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8497 $as_echo "${lt_sysroot:-no}" >&6; }
8503 # Check whether --enable-libtool-lock was given.
8504 if test "${enable_libtool_lock+set}" = set; then :
8505 enableval=$enable_libtool_lock;
8508 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8510 # Some flags need to be propagated to the compiler or linker for good
8514 # Find out which ABI we are using.
8515 echo 'int i;' > conftest.$ac_ext
8516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8517 (eval $ac_compile) 2>&5
8519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8520 test $ac_status = 0; }; then
8521 case `/usr/bin/file conftest.$ac_objext` in
8533 # Find out which ABI we are using.
8534 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8536 (eval $ac_compile) 2>&5
8538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8539 test $ac_status = 0; }; then
8540 if test "$lt_cv_prog_gnu_ld" = yes; then
8541 case `/usr/bin/file conftest.$ac_objext` in
8543 LD="${LD-ld} -melf32bsmip"
8546 LD="${LD-ld} -melf32bmipn32"
8549 LD="${LD-ld} -melf64bmip"
8553 case `/usr/bin/file conftest.$ac_objext` in
8569 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8570 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8571 # Find out which ABI we are using.
8572 echo 'int i;' > conftest.$ac_ext
8573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8574 (eval $ac_compile) 2>&5
8576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8577 test $ac_status = 0; }; then
8578 case `/usr/bin/file conftest.o` in
8581 x86_64-*kfreebsd*-gnu)
8582 LD="${LD-ld} -m elf_i386_fbsd"
8585 LD="${LD-ld} -m elf_i386"
8587 ppc64-*linux*|powerpc64-*linux*)
8588 LD="${LD-ld} -m elf32ppclinux"
8591 LD="${LD-ld} -m elf_s390"
8594 LD="${LD-ld} -m elf32_sparc"
8600 x86_64-*kfreebsd*-gnu)
8601 LD="${LD-ld} -m elf_x86_64_fbsd"
8604 LD="${LD-ld} -m elf_x86_64"
8606 ppc*-*linux*|powerpc*-*linux*)
8607 LD="${LD-ld} -m elf64ppc"
8609 s390*-*linux*|s390*-*tpf*)
8610 LD="${LD-ld} -m elf64_s390"
8613 LD="${LD-ld} -m elf64_sparc"
8623 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8624 SAVE_CFLAGS="$CFLAGS"
8625 CFLAGS="$CFLAGS -belf"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8627 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8628 if ${lt_cv_cc_needs_belf+:} false; then :
8629 $as_echo_n "(cached) " >&6
8632 ac_cpp='$CPP $CPPFLAGS'
8633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8648 if ac_fn_c_try_link "$LINENO"; then :
8649 lt_cv_cc_needs_belf=yes
8651 lt_cv_cc_needs_belf=no
8653 rm -f core conftest.err conftest.$ac_objext \
8654 conftest$ac_exeext conftest.$ac_ext
8656 ac_cpp='$CPP $CPPFLAGS'
8657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8663 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8664 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8665 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8666 CFLAGS="$SAVE_CFLAGS"
8670 # Find out which ABI we are using.
8671 echo 'int i;' > conftest.$ac_ext
8672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8673 (eval $ac_compile) 2>&5
8675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8676 test $ac_status = 0; }; then
8677 case `/usr/bin/file conftest.o` in
8679 case $lt_cv_prog_gnu_ld in
8683 LD="${LD-ld} -m elf_x86_64"
8686 LD="${LD-ld} -m elf64_sparc"
8689 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8690 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8695 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8707 need_locks="$enable_libtool_lock"
8709 if test -n "$ac_tool_prefix"; then
8710 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8711 set dummy ${ac_tool_prefix}mt; ac_word=$2
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713 $as_echo_n "checking for $ac_word... " >&6; }
8714 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8715 $as_echo_n "(cached) " >&6
8717 if test -n "$MANIFEST_TOOL"; then
8718 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724 test -z "$as_dir" && as_dir=.
8725 for ac_exec_ext in '' $ac_executable_extensions; do
8726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8727 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8738 if test -n "$MANIFEST_TOOL"; then
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8740 $as_echo "$MANIFEST_TOOL" >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 $as_echo "no" >&6; }
8748 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8749 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8750 # Extract the first word of "mt", so it can be a program name with args.
8751 set dummy mt; ac_word=$2
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8753 $as_echo_n "checking for $ac_word... " >&6; }
8754 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8755 $as_echo_n "(cached) " >&6
8757 if test -n "$ac_ct_MANIFEST_TOOL"; then
8758 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764 test -z "$as_dir" && as_dir=.
8765 for ac_exec_ext in '' $ac_executable_extensions; do
8766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8767 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8777 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8778 if test -n "$ac_ct_MANIFEST_TOOL"; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8780 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783 $as_echo "no" >&6; }
8786 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8789 case $cross_compiling:$ac_tool_warned in
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8793 ac_tool_warned=yes ;;
8795 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8798 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8801 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8803 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8804 if ${lt_cv_path_mainfest_tool+:} false; then :
8805 $as_echo_n "(cached) " >&6
8807 lt_cv_path_mainfest_tool=no
8808 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8809 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8810 cat conftest.err >&5
8811 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8812 lt_cv_path_mainfest_tool=yes
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8817 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8818 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8828 rhapsody* | darwin*)
8829 if test -n "$ac_tool_prefix"; then
8830 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8831 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8833 $as_echo_n "checking for $ac_word... " >&6; }
8834 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8835 $as_echo_n "(cached) " >&6
8837 if test -n "$DSYMUTIL"; then
8838 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844 test -z "$as_dir" && as_dir=.
8845 for ac_exec_ext in '' $ac_executable_extensions; do
8846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8847 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8857 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8858 if test -n "$DSYMUTIL"; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8860 $as_echo "$DSYMUTIL" >&6; }
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8863 $as_echo "no" >&6; }
8868 if test -z "$ac_cv_prog_DSYMUTIL"; then
8869 ac_ct_DSYMUTIL=$DSYMUTIL
8870 # Extract the first word of "dsymutil", so it can be a program name with args.
8871 set dummy dsymutil; ac_word=$2
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873 $as_echo_n "checking for $ac_word... " >&6; }
8874 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8875 $as_echo_n "(cached) " >&6
8877 if test -n "$ac_ct_DSYMUTIL"; then
8878 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884 test -z "$as_dir" && as_dir=.
8885 for ac_exec_ext in '' $ac_executable_extensions; do
8886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8887 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8898 if test -n "$ac_ct_DSYMUTIL"; then
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8900 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903 $as_echo "no" >&6; }
8906 if test "x$ac_ct_DSYMUTIL" = x; then
8909 case $cross_compiling:$ac_tool_warned in
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8913 ac_tool_warned=yes ;;
8915 DSYMUTIL=$ac_ct_DSYMUTIL
8918 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8921 if test -n "$ac_tool_prefix"; then
8922 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8923 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8925 $as_echo_n "checking for $ac_word... " >&6; }
8926 if ${ac_cv_prog_NMEDIT+:} false; then :
8927 $as_echo_n "(cached) " >&6
8929 if test -n "$NMEDIT"; then
8930 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 test -z "$as_dir" && as_dir=.
8937 for ac_exec_ext in '' $ac_executable_extensions; do
8938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8939 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949 NMEDIT=$ac_cv_prog_NMEDIT
8950 if test -n "$NMEDIT"; then
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8952 $as_echo "$NMEDIT" >&6; }
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955 $as_echo "no" >&6; }
8960 if test -z "$ac_cv_prog_NMEDIT"; then
8961 ac_ct_NMEDIT=$NMEDIT
8962 # Extract the first word of "nmedit", so it can be a program name with args.
8963 set dummy nmedit; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8967 $as_echo_n "(cached) " >&6
8969 if test -n "$ac_ct_NMEDIT"; then
8970 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8989 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8990 if test -n "$ac_ct_NMEDIT"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8992 $as_echo "$ac_ct_NMEDIT" >&6; }
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8998 if test "x$ac_ct_NMEDIT" = x; then
9001 case $cross_compiling:$ac_tool_warned in
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9005 ac_tool_warned=yes ;;
9007 NMEDIT=$ac_ct_NMEDIT
9010 NMEDIT="$ac_cv_prog_NMEDIT"
9013 if test -n "$ac_tool_prefix"; then
9014 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9015 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9017 $as_echo_n "checking for $ac_word... " >&6; }
9018 if ${ac_cv_prog_LIPO+:} false; then :
9019 $as_echo_n "(cached) " >&6
9021 if test -n "$LIPO"; then
9022 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028 test -z "$as_dir" && as_dir=.
9029 for ac_exec_ext in '' $ac_executable_extensions; do
9030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9031 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9041 LIPO=$ac_cv_prog_LIPO
9042 if test -n "$LIPO"; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9044 $as_echo "$LIPO" >&6; }
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9047 $as_echo "no" >&6; }
9052 if test -z "$ac_cv_prog_LIPO"; then
9054 # Extract the first word of "lipo", so it can be a program name with args.
9055 set dummy lipo; ac_word=$2
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9057 $as_echo_n "checking for $ac_word... " >&6; }
9058 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9059 $as_echo_n "(cached) " >&6
9061 if test -n "$ac_ct_LIPO"; then
9062 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068 test -z "$as_dir" && as_dir=.
9069 for ac_exec_ext in '' $ac_executable_extensions; do
9070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9071 ac_cv_prog_ac_ct_LIPO="lipo"
9072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9082 if test -n "$ac_ct_LIPO"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9084 $as_echo "$ac_ct_LIPO" >&6; }
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9090 if test "x$ac_ct_LIPO" = x; then
9093 case $cross_compiling:$ac_tool_warned in
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9097 ac_tool_warned=yes ;;
9102 LIPO="$ac_cv_prog_LIPO"
9105 if test -n "$ac_tool_prefix"; then
9106 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9107 set dummy ${ac_tool_prefix}otool; ac_word=$2
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109 $as_echo_n "checking for $ac_word... " >&6; }
9110 if ${ac_cv_prog_OTOOL+:} false; then :
9111 $as_echo_n "(cached) " >&6
9113 if test -n "$OTOOL"; then
9114 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9123 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9133 OTOOL=$ac_cv_prog_OTOOL
9134 if test -n "$OTOOL"; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9136 $as_echo "$OTOOL" >&6; }
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9144 if test -z "$ac_cv_prog_OTOOL"; then
9146 # Extract the first word of "otool", so it can be a program name with args.
9147 set dummy otool; ac_word=$2
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 $as_echo_n "checking for $ac_word... " >&6; }
9150 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9151 $as_echo_n "(cached) " >&6
9153 if test -n "$ac_ct_OTOOL"; then
9154 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160 test -z "$as_dir" && as_dir=.
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9163 ac_cv_prog_ac_ct_OTOOL="otool"
9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9174 if test -n "$ac_ct_OTOOL"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9176 $as_echo "$ac_ct_OTOOL" >&6; }
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 $as_echo "no" >&6; }
9182 if test "x$ac_ct_OTOOL" = x; then
9185 case $cross_compiling:$ac_tool_warned in
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9189 ac_tool_warned=yes ;;
9194 OTOOL="$ac_cv_prog_OTOOL"
9197 if test -n "$ac_tool_prefix"; then
9198 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9199 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if ${ac_cv_prog_OTOOL64+:} false; then :
9203 $as_echo_n "(cached) " >&6
9205 if test -n "$OTOOL64"; then
9206 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212 test -z "$as_dir" && as_dir=.
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9215 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 OTOOL64=$ac_cv_prog_OTOOL64
9226 if test -n "$OTOOL64"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9228 $as_echo "$OTOOL64" >&6; }
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9236 if test -z "$ac_cv_prog_OTOOL64"; then
9237 ac_ct_OTOOL64=$OTOOL64
9238 # Extract the first word of "otool64", so it can be a program name with args.
9239 set dummy otool64; ac_word=$2
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241 $as_echo_n "checking for $ac_word... " >&6; }
9242 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9243 $as_echo_n "(cached) " >&6
9245 if test -n "$ac_ct_OTOOL64"; then
9246 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9255 ac_cv_prog_ac_ct_OTOOL64="otool64"
9256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9266 if test -n "$ac_ct_OTOOL64"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9268 $as_echo "$ac_ct_OTOOL64" >&6; }
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9274 if test "x$ac_ct_OTOOL64" = x; then
9277 case $cross_compiling:$ac_tool_warned in
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9281 ac_tool_warned=yes ;;
9283 OTOOL64=$ac_ct_OTOOL64
9286 OTOOL64="$ac_cv_prog_OTOOL64"
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9316 $as_echo_n "checking for -single_module linker flag... " >&6; }
9317 if ${lt_cv_apple_cc_single_mod+:} false; then :
9318 $as_echo_n "(cached) " >&6
9320 lt_cv_apple_cc_single_mod=no
9321 if test -z "${LT_MULTI_MODULE}"; then
9322 # By default we will add the -single_module flag. You can override
9323 # by either setting the environment variable LT_MULTI_MODULE
9324 # non-empty at configure time, or by adding -multi_module to the
9326 rm -rf libconftest.dylib*
9327 echo "int foo(void){return 1;}" > conftest.c
9328 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9329 -dynamiclib -Wl,-single_module conftest.c" >&5
9330 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9331 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9333 # If there is a non-empty error log, and "single_module"
9334 # appears in it, assume the flag caused a linker warning
9335 if test -s conftest.err && $GREP single_module conftest.err; then
9336 cat conftest.err >&5
9337 # Otherwise, if the output was created with a 0 exit code from
9338 # the compiler, it worked.
9339 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9340 lt_cv_apple_cc_single_mod=yes
9342 cat conftest.err >&5
9344 rm -rf libconftest.dylib*
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9349 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9352 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9353 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9354 $as_echo_n "(cached) " >&6
9356 lt_cv_ld_exported_symbols_list=no
9357 save_LDFLAGS=$LDFLAGS
9358 echo "_main" > conftest.sym
9359 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9371 if ac_fn_c_try_link "$LINENO"; then :
9372 lt_cv_ld_exported_symbols_list=yes
9374 lt_cv_ld_exported_symbols_list=no
9376 rm -f core conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext conftest.$ac_ext
9378 LDFLAGS="$save_LDFLAGS"
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9382 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9385 $as_echo_n "checking for -force_load linker flag... " >&6; }
9386 if ${lt_cv_ld_force_load+:} false; then :
9387 $as_echo_n "(cached) " >&6
9389 lt_cv_ld_force_load=no
9390 cat > conftest.c << _LT_EOF
9391 int forced_loaded() { return 2;}
9393 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9394 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9395 echo "$AR cru libconftest.a conftest.o" >&5
9396 $AR cru libconftest.a conftest.o 2>&5
9397 echo "$RANLIB libconftest.a" >&5
9398 $RANLIB libconftest.a 2>&5
9399 cat > conftest.c << _LT_EOF
9400 int main() { return 0;}
9402 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9403 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9405 if test -s conftest.err && $GREP force_load conftest.err; then
9406 cat conftest.err >&5
9407 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9408 lt_cv_ld_force_load=yes
9410 cat conftest.err >&5
9412 rm -f conftest.err libconftest.a conftest conftest.c
9413 rm -rf conftest.dSYM
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9417 $as_echo "$lt_cv_ld_force_load" >&6; }
9419 rhapsody* | darwin1.[012])
9420 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9422 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9423 darwin*) # darwin 5.x on
9424 # if running on 10.5 or later, the deployment target defaults
9425 # to the OS version, if on x86, and 10.4, the deployment
9426 # target defaults to 10.4. Don't you love it?
9427 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9428 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9429 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9431 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9433 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9437 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9438 _lt_dar_single_mod='$single_module'
9440 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9441 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9443 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9445 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9446 _lt_dsymutil='~$DSYMUTIL $lib || :'
9453 for ac_header in dlfcn.h
9455 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9457 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9458 cat >>confdefs.h <<_ACEOF
9459 #define HAVE_DLFCN_H 1
9482 # Check whether --enable-shared was given.
9483 if test "${enable_shared+set}" = set; then :
9484 enableval=$enable_shared; p=${PACKAGE-default}
9486 yes) enable_shared=yes ;;
9487 no) enable_shared=no ;;
9490 # Look at the argument we got. We use all the common list separators.
9491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9492 for pkg in $enableval; do
9494 if test "X$pkg" = "X$p"; then
9513 # Check whether --enable-static was given.
9514 if test "${enable_static+set}" = set; then :
9515 enableval=$enable_static; p=${PACKAGE-default}
9517 yes) enable_static=yes ;;
9518 no) enable_static=no ;;
9521 # Look at the argument we got. We use all the common list separators.
9522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9523 for pkg in $enableval; do
9525 if test "X$pkg" = "X$p"; then
9545 # Check whether --with-pic was given.
9546 if test "${with_pic+set}" = set; then :
9547 withval=$with_pic; lt_p=${PACKAGE-default}
9549 yes|no) pic_mode=$withval ;;
9552 # Look at the argument we got. We use all the common list separators.
9553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9554 for lt_pkg in $withval; do
9556 if test "X$lt_pkg" = "X$lt_p"; then
9568 test -z "$pic_mode" && pic_mode=default
9576 # Check whether --enable-fast-install was given.
9577 if test "${enable_fast_install+set}" = set; then :
9578 enableval=$enable_fast_install; p=${PACKAGE-default}
9580 yes) enable_fast_install=yes ;;
9581 no) enable_fast_install=no ;;
9583 enable_fast_install=no
9584 # Look at the argument we got. We use all the common list separators.
9585 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9586 for pkg in $enableval; do
9588 if test "X$pkg" = "X$p"; then
9589 enable_fast_install=yes
9596 enable_fast_install=yes
9609 # This can be used to rebuild libtool when needed
9610 LIBTOOL_DEPS="$ltmain"
9612 # Always use our own libtool.
9613 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9644 test -z "$LN_S" && LN_S="ln -s"
9659 if test -n "${ZSH_VERSION+set}" ; then
9660 setopt NO_GLOB_SUBST
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9664 $as_echo_n "checking for objdir... " >&6; }
9665 if ${lt_cv_objdir+:} false; then :
9666 $as_echo_n "(cached) " >&6
9668 rm -f .libs 2>/dev/null
9669 mkdir .libs 2>/dev/null
9670 if test -d .libs; then
9673 # MS-DOS does not allow filenames that begin with a dot.
9676 rmdir .libs 2>/dev/null
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9679 $as_echo "$lt_cv_objdir" >&6; }
9680 objdir=$lt_cv_objdir
9686 cat >>confdefs.h <<_ACEOF
9687 #define LT_OBJDIR "$lt_cv_objdir/"
9695 # AIX sometimes has problems with the GCC collect2 program. For some
9696 # reason, if we set the COLLECT_NAMES environment variable, the problems
9697 # vanish in a puff of smoke.
9698 if test "X${COLLECT_NAMES+set}" != Xset; then
9700 export COLLECT_NAMES
9707 can_build_shared=yes
9709 # All known linkers require a `.a' archive for static linking (except MSVC,
9710 # which needs '.lib').
9713 with_gnu_ld="$lt_cv_prog_gnu_ld"
9716 old_CFLAGS="$CFLAGS"
9718 # Set sane defaults for various variables
9719 test -z "$CC" && CC=cc
9720 test -z "$LTCC" && LTCC=$CC
9721 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9722 test -z "$LD" && LD=ld
9723 test -z "$ac_objext" && ac_objext=o
9725 for cc_temp in $compiler""; do
9727 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9728 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9733 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9736 # Only perform the check for file, if the check method requires it
9737 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9738 case $deplibs_check_method in
9740 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9742 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9743 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9744 $as_echo_n "(cached) " >&6
9748 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9751 lt_save_MAGIC_CMD="$MAGIC_CMD"
9752 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9753 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9754 for ac_dir in $ac_dummy; do
9756 test -z "$ac_dir" && ac_dir=.
9757 if test -f $ac_dir/${ac_tool_prefix}file; then
9758 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9759 if test -n "$file_magic_test_file"; then
9760 case $deplibs_check_method in
9762 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9763 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9764 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9765 $EGREP "$file_magic_regex" > /dev/null; then
9770 *** Warning: the command libtool uses to detect shared libraries,
9771 *** $file_magic_cmd, produces output that libtool cannot recognize.
9772 *** The result is that libtool may fail to recognize shared libraries
9773 *** as such. This will affect the creation of libtool libraries that
9774 *** depend on shared libraries, but programs linked with such libtool
9775 *** libraries will work regardless of this problem. Nevertheless, you
9776 *** may want to report the problem to your system manager and/or to
9777 *** bug-libtool@gnu.org
9787 MAGIC_CMD="$lt_save_MAGIC_CMD"
9792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9793 if test -n "$MAGIC_CMD"; then
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9795 $as_echo "$MAGIC_CMD" >&6; }
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798 $as_echo "no" >&6; }
9805 if test -z "$lt_cv_path_MAGIC_CMD"; then
9806 if test -n "$ac_tool_prefix"; then
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9808 $as_echo_n "checking for file... " >&6; }
9809 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9810 $as_echo_n "(cached) " >&6
9814 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9817 lt_save_MAGIC_CMD="$MAGIC_CMD"
9818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9819 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9820 for ac_dir in $ac_dummy; do
9822 test -z "$ac_dir" && ac_dir=.
9823 if test -f $ac_dir/file; then
9824 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9825 if test -n "$file_magic_test_file"; then
9826 case $deplibs_check_method in
9828 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9829 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9830 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9831 $EGREP "$file_magic_regex" > /dev/null; then
9836 *** Warning: the command libtool uses to detect shared libraries,
9837 *** $file_magic_cmd, produces output that libtool cannot recognize.
9838 *** The result is that libtool may fail to recognize shared libraries
9839 *** as such. This will affect the creation of libtool libraries that
9840 *** depend on shared libraries, but programs linked with such libtool
9841 *** libraries will work regardless of this problem. Nevertheless, you
9842 *** may want to report the problem to your system manager and/or to
9843 *** bug-libtool@gnu.org
9853 MAGIC_CMD="$lt_save_MAGIC_CMD"
9858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9859 if test -n "$MAGIC_CMD"; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9861 $as_echo "$MAGIC_CMD" >&6; }
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 $as_echo "no" >&6; }
9877 # Use C for the default configuration in the libtool script
9881 ac_cpp='$CPP $CPPFLAGS'
9882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9887 # Source file extension for C test sources.
9890 # Object file extension for compiled C test sources.
9894 # Code to be used in simple compile tests
9895 lt_simple_compile_test_code="int some_variable = 0;"
9897 # Code to be used in simple link tests
9898 lt_simple_link_test_code='int main(){return(0);}'
9906 # If no C compiler was specified, use CC.
9909 # If no C compiler flags were specified, use CFLAGS.
9910 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9912 # Allow CC to be a program name with arguments.
9915 # Save the default compiler, since it gets overwritten when the other
9916 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9917 compiler_DEFAULT=$CC
9919 # save warnings/boilerplate of simple test code
9920 ac_outfile=conftest.$ac_objext
9921 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9922 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9923 _lt_compiler_boilerplate=`cat conftest.err`
9926 ac_outfile=conftest.$ac_objext
9927 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9928 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9929 _lt_linker_boilerplate=`cat conftest.err`
9933 if test -n "$compiler"; then
9935 lt_prog_compiler_no_builtin_flag=
9937 if test "$GCC" = yes; then
9938 case $cc_basename in
9940 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9942 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9946 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9947 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9948 $as_echo_n "(cached) " >&6
9950 lt_cv_prog_compiler_rtti_exceptions=no
9951 ac_outfile=conftest.$ac_objext
9952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9953 lt_compiler_flag="-fno-rtti -fno-exceptions"
9954 # Insert the option either (1) after the last *FLAGS variable, or
9955 # (2) before a word containing "conftest.", or (3) at the end.
9956 # Note that $ac_compile itself does not contain backslashes and begins
9957 # with a dollar sign (not a hyphen), so the echo should work correctly.
9958 # The option is referenced via a variable to avoid confusing sed.
9959 lt_compile=`echo "$ac_compile" | $SED \
9960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9962 -e 's:$: $lt_compiler_flag:'`
9963 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9964 (eval "$lt_compile" 2>conftest.err)
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 if (exit $ac_status) && test -s "$ac_outfile"; then
9969 # The compiler can only warn and ignore the option if not recognized
9970 # So say no if there are warnings other than the usual output.
9971 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9973 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9974 lt_cv_prog_compiler_rtti_exceptions=yes
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9981 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9983 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9984 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9996 lt_prog_compiler_wl=
9997 lt_prog_compiler_pic=
9998 lt_prog_compiler_static=
10001 if test "$GCC" = yes; then
10002 lt_prog_compiler_wl='-Wl,'
10003 lt_prog_compiler_static='-static'
10007 # All AIX code is PIC.
10008 if test "$host_cpu" = ia64; then
10009 # AIX 5 now supports IA64 processor
10010 lt_prog_compiler_static='-Bstatic'
10017 # see comment about AmigaOS4 .so support
10018 lt_prog_compiler_pic='-fPIC'
10021 # FIXME: we need at least 68020 code to build shared libraries, but
10022 # adding the `-m68020' flag to GCC prevents building anything better,
10024 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10029 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10030 # PIC is the default for these OSes.
10033 mingw* | cygwin* | pw32* | os2* | cegcc*)
10034 # This hack is so that the source file can tell whether it is being
10035 # built for inclusion in a dll (and should export symbols for example).
10036 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10037 # (--disable-auto-import) libraries
10038 lt_prog_compiler_pic='-DDLL_EXPORT'
10041 darwin* | rhapsody*)
10042 # PIC is the default on this platform
10043 # Common symbols not allowed in MH_DYLIB files
10044 lt_prog_compiler_pic='-fno-common'
10048 # PIC is the default for Haiku.
10049 # The "-static" flag exists, but is broken.
10050 lt_prog_compiler_static=
10054 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10055 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10056 # sets the default TLS model and affects inlining.
10062 lt_prog_compiler_pic='-fPIC'
10068 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10069 # Instead, we relocate shared libraries at runtime.
10073 # Just because we use GCC doesn't mean we suddenly get shared libraries
10074 # on systems that don't support them.
10075 lt_prog_compiler_can_build_shared=no
10080 # QNX uses GNU C++, but need to define -shared option too, otherwise
10081 # it will coredump.
10082 lt_prog_compiler_pic='-fPIC -shared'
10086 if test -d /usr/nec; then
10087 lt_prog_compiler_pic=-Kconform_pic
10092 lt_prog_compiler_pic='-fPIC'
10096 case $cc_basename in
10097 nvcc*) # Cuda Compiler Driver 2.2
10098 lt_prog_compiler_wl='-Xlinker '
10099 if test -n "$lt_prog_compiler_pic"; then
10100 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10105 # PORTME Check for flag to pass linker flags through the system compiler.
10108 lt_prog_compiler_wl='-Wl,'
10109 if test "$host_cpu" = ia64; then
10110 # AIX 5 now supports IA64 processor
10111 lt_prog_compiler_static='-Bstatic'
10113 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10117 mingw* | cygwin* | pw32* | os2* | cegcc*)
10118 # This hack is so that the source file can tell whether it is being
10119 # built for inclusion in a dll (and should export symbols for example).
10120 lt_prog_compiler_pic='-DDLL_EXPORT'
10123 hpux9* | hpux10* | hpux11*)
10124 lt_prog_compiler_wl='-Wl,'
10125 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10126 # not for PA HP-UX.
10132 lt_prog_compiler_pic='+Z'
10135 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10136 lt_prog_compiler_static='${wl}-a ${wl}archive'
10139 irix5* | irix6* | nonstopux*)
10140 lt_prog_compiler_wl='-Wl,'
10141 # PIC (with -KPIC) is the default.
10142 lt_prog_compiler_static='-non_shared'
10145 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10146 case $cc_basename in
10147 # old Intel for x86_64 which still supported -KPIC.
10149 lt_prog_compiler_wl='-Wl,'
10150 lt_prog_compiler_pic='-KPIC'
10151 lt_prog_compiler_static='-static'
10153 # icc used to be incompatible with GCC.
10154 # ICC 10 doesn't accept -KPIC any more.
10156 lt_prog_compiler_wl='-Wl,'
10157 lt_prog_compiler_pic='-fPIC'
10158 lt_prog_compiler_static='-static'
10160 # Lahey Fortran 8.1.
10162 lt_prog_compiler_wl='-Wl,'
10163 lt_prog_compiler_pic='--shared'
10164 lt_prog_compiler_static='--static'
10167 # NAG Fortran compiler
10168 lt_prog_compiler_wl='-Wl,-Wl,,'
10169 lt_prog_compiler_pic='-PIC'
10170 lt_prog_compiler_static='-Bstatic'
10172 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10173 # Portland Group compilers (*not* the Pentium gcc compiler,
10174 # which looks to be a dead project)
10175 lt_prog_compiler_wl='-Wl,'
10176 lt_prog_compiler_pic='-fpic'
10177 lt_prog_compiler_static='-Bstatic'
10180 lt_prog_compiler_wl='-Wl,'
10181 # All Alpha code is PIC.
10182 lt_prog_compiler_static='-non_shared'
10184 xl* | bgxl* | bgf* | mpixl*)
10185 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10186 lt_prog_compiler_wl='-Wl,'
10187 lt_prog_compiler_pic='-qpic'
10188 lt_prog_compiler_static='-qstaticlink'
10191 case `$CC -V 2>&1 | sed 5q` in
10192 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10193 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10194 lt_prog_compiler_pic='-KPIC'
10195 lt_prog_compiler_static='-Bstatic'
10196 lt_prog_compiler_wl=''
10198 *Sun\ F* | *Sun*Fortran*)
10199 lt_prog_compiler_pic='-KPIC'
10200 lt_prog_compiler_static='-Bstatic'
10201 lt_prog_compiler_wl='-Qoption ld '
10205 lt_prog_compiler_pic='-KPIC'
10206 lt_prog_compiler_static='-Bstatic'
10207 lt_prog_compiler_wl='-Wl,'
10209 *Intel*\ [CF]*Compiler*)
10210 lt_prog_compiler_wl='-Wl,'
10211 lt_prog_compiler_pic='-fPIC'
10212 lt_prog_compiler_static='-static'
10215 lt_prog_compiler_wl='-Wl,'
10216 lt_prog_compiler_pic='-fpic'
10217 lt_prog_compiler_static='-Bstatic'
10225 lt_prog_compiler_pic='-KPIC'
10226 lt_prog_compiler_static='-Bstatic'
10230 # QNX uses GNU C++, but need to define -shared option too, otherwise
10231 # it will coredump.
10232 lt_prog_compiler_pic='-fPIC -shared'
10235 osf3* | osf4* | osf5*)
10236 lt_prog_compiler_wl='-Wl,'
10237 # All OSF/1 code is PIC.
10238 lt_prog_compiler_static='-non_shared'
10242 lt_prog_compiler_static='-non_shared'
10246 lt_prog_compiler_pic='-KPIC'
10247 lt_prog_compiler_static='-Bstatic'
10248 case $cc_basename in
10249 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10250 lt_prog_compiler_wl='-Qoption ld ';;
10252 lt_prog_compiler_wl='-Wl,';;
10257 lt_prog_compiler_wl='-Qoption ld '
10258 lt_prog_compiler_pic='-PIC'
10259 lt_prog_compiler_static='-Bstatic'
10262 sysv4 | sysv4.2uw2* | sysv4.3*)
10263 lt_prog_compiler_wl='-Wl,'
10264 lt_prog_compiler_pic='-KPIC'
10265 lt_prog_compiler_static='-Bstatic'
10269 if test -d /usr/nec ;then
10270 lt_prog_compiler_pic='-Kconform_pic'
10271 lt_prog_compiler_static='-Bstatic'
10275 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10276 lt_prog_compiler_wl='-Wl,'
10277 lt_prog_compiler_pic='-KPIC'
10278 lt_prog_compiler_static='-Bstatic'
10282 lt_prog_compiler_wl='-Wl,'
10283 lt_prog_compiler_can_build_shared=no
10287 lt_prog_compiler_pic='-pic'
10288 lt_prog_compiler_static='-Bstatic'
10292 lt_prog_compiler_can_build_shared=no
10298 # For platforms which do not support PIC, -DPIC is meaningless:
10300 lt_prog_compiler_pic=
10303 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10308 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10309 if ${lt_cv_prog_compiler_pic+:} false; then :
10310 $as_echo_n "(cached) " >&6
10312 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10315 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10316 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10319 # Check to make sure the PIC flag actually works.
10321 if test -n "$lt_prog_compiler_pic"; then
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10323 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10324 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10325 $as_echo_n "(cached) " >&6
10327 lt_cv_prog_compiler_pic_works=no
10328 ac_outfile=conftest.$ac_objext
10329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10330 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10331 # Insert the option either (1) after the last *FLAGS variable, or
10332 # (2) before a word containing "conftest.", or (3) at the end.
10333 # Note that $ac_compile itself does not contain backslashes and begins
10334 # with a dollar sign (not a hyphen), so the echo should work correctly.
10335 # The option is referenced via a variable to avoid confusing sed.
10336 lt_compile=`echo "$ac_compile" | $SED \
10337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10339 -e 's:$: $lt_compiler_flag:'`
10340 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10341 (eval "$lt_compile" 2>conftest.err)
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 if (exit $ac_status) && test -s "$ac_outfile"; then
10346 # The compiler can only warn and ignore the option if not recognized
10347 # So say no if there are warnings other than the usual output.
10348 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10351 lt_cv_prog_compiler_pic_works=yes
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10358 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10360 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10361 case $lt_prog_compiler_pic in
10363 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10366 lt_prog_compiler_pic=
10367 lt_prog_compiler_can_build_shared=no
10383 # Check to make sure the static flag actually works.
10385 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10387 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10388 if ${lt_cv_prog_compiler_static_works+:} false; then :
10389 $as_echo_n "(cached) " >&6
10391 lt_cv_prog_compiler_static_works=no
10392 save_LDFLAGS="$LDFLAGS"
10393 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10394 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10395 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10396 # The linker can only warn and ignore the option if not recognized
10397 # So say no if there are warnings
10398 if test -s conftest.err; then
10399 # Append any errors to the config.log.
10400 cat conftest.err 1>&5
10401 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10402 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10403 if diff conftest.exp conftest.er2 >/dev/null; then
10404 lt_cv_prog_compiler_static_works=yes
10407 lt_cv_prog_compiler_static_works=yes
10411 LDFLAGS="$save_LDFLAGS"
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10415 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10417 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10420 lt_prog_compiler_static=
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10430 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10431 if ${lt_cv_prog_compiler_c_o+:} false; then :
10432 $as_echo_n "(cached) " >&6
10434 lt_cv_prog_compiler_c_o=no
10435 $RM -r conftest 2>/dev/null
10439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10441 lt_compiler_flag="-o out/conftest2.$ac_objext"
10442 # Insert the option either (1) after the last *FLAGS variable, or
10443 # (2) before a word containing "conftest.", or (3) at the end.
10444 # Note that $ac_compile itself does not contain backslashes and begins
10445 # with a dollar sign (not a hyphen), so the echo should work correctly.
10446 lt_compile=`echo "$ac_compile" | $SED \
10447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10449 -e 's:$: $lt_compiler_flag:'`
10450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10451 (eval "$lt_compile" 2>out/conftest.err)
10453 cat out/conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10457 # The compiler can only warn and ignore the option if not recognized
10458 # So say no if there are warnings
10459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10462 lt_cv_prog_compiler_c_o=yes
10467 # SGI C++ compiler will create directory out/ii_files/ for
10468 # template instantiation
10469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10470 $RM out/* && rmdir out
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10477 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10485 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10486 if ${lt_cv_prog_compiler_c_o+:} false; then :
10487 $as_echo_n "(cached) " >&6
10489 lt_cv_prog_compiler_c_o=no
10490 $RM -r conftest 2>/dev/null
10494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10496 lt_compiler_flag="-o out/conftest2.$ac_objext"
10497 # Insert the option either (1) after the last *FLAGS variable, or
10498 # (2) before a word containing "conftest.", or (3) at the end.
10499 # Note that $ac_compile itself does not contain backslashes and begins
10500 # with a dollar sign (not a hyphen), so the echo should work correctly.
10501 lt_compile=`echo "$ac_compile" | $SED \
10502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10504 -e 's:$: $lt_compiler_flag:'`
10505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10506 (eval "$lt_compile" 2>out/conftest.err)
10508 cat out/conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10512 # The compiler can only warn and ignore the option if not recognized
10513 # So say no if there are warnings
10514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10517 lt_cv_prog_compiler_c_o=yes
10522 # SGI C++ compiler will create directory out/ii_files/ for
10523 # template instantiation
10524 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10525 $RM out/* && rmdir out
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10532 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10537 hard_links="nottested"
10538 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10539 # do not overwrite the value of need_locks provided by the user
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10541 $as_echo_n "checking if we can lock with hard links... " >&6; }
10544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10546 ln conftest.a conftest.b 2>&5 || hard_links=no
10547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10549 $as_echo "$hard_links" >&6; }
10550 if test "$hard_links" = no; then
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10552 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10565 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10568 allow_undefined_flag=
10569 always_export_symbols=no
10571 archive_expsym_cmds=
10572 compiler_needs_object=no
10573 enable_shared_with_static_runtimes=no
10574 export_dynamic_flag_spec=
10575 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10576 hardcode_automatic=no
10578 hardcode_direct_absolute=no
10579 hardcode_libdir_flag_spec=
10580 hardcode_libdir_separator=
10581 hardcode_minus_L=no
10582 hardcode_shlibpath_var=unsupported
10584 link_all_deplibs=unknown
10586 module_expsym_cmds=
10587 old_archive_from_new_cmds=
10588 old_archive_from_expsyms_cmds=
10589 thread_safe_flag_spec=
10590 whole_archive_flag_spec=
10591 # include_expsyms should be a list of space-separated symbols to be *always*
10592 # included in the symbol list
10594 # exclude_expsyms can be an extended regexp of symbols to exclude
10595 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10596 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10597 # as well as any symbol that contains `d'.
10598 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10599 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10600 # platforms (ab)use it in PIC code, but their linkers get confused if
10601 # the symbol is explicitly referenced. Since portable code cannot
10602 # rely on this symbol name, it's probably fine to never include it in
10603 # preloaded symbol tables.
10604 # Exclude shared library initialization/finalization symbols.
10605 extract_expsyms_cmds=
10608 cygwin* | mingw* | pw32* | cegcc*)
10609 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10610 # When not using gcc, we currently assume that we are using
10611 # Microsoft Visual C++.
10612 if test "$GCC" != yes; then
10617 # we just hope/assume this is gcc and not c89 (= MSVC++)
10627 # On some targets, GNU ld is compatible enough with the native linker
10628 # that we're better off using the native interface for both.
10629 lt_use_gnu_ld_interface=no
10630 if test "$with_gnu_ld" = yes; then
10633 # The AIX port of GNU ld has always aspired to compatibility
10634 # with the native linker. However, as the warning in the GNU ld
10635 # block says, versions before 2.19.5* couldn't really create working
10636 # shared libraries, regardless of the interface used.
10637 case `$LD -v 2>&1` in
10638 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10639 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10640 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10642 lt_use_gnu_ld_interface=yes
10647 lt_use_gnu_ld_interface=yes
10652 if test "$lt_use_gnu_ld_interface" = yes; then
10653 # If archive_cmds runs LD, not CC, wlarc should be empty
10656 # Set some defaults for GNU ld with shared library support. These
10657 # are reset later if shared libraries are not supported. Putting them
10658 # here allows them to be overridden if necessary.
10659 runpath_var=LD_RUN_PATH
10660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10661 export_dynamic_flag_spec='${wl}--export-dynamic'
10662 # ancient GNU ld didn't support --whole-archive et. al.
10663 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10664 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10666 whole_archive_flag_spec=
10668 supports_anon_versioning=no
10669 case `$LD -v 2>&1` in
10670 *GNU\ gold*) supports_anon_versioning=yes ;;
10671 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10672 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10673 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10674 *\ 2.11.*) ;; # other 2.11 versions
10675 *) supports_anon_versioning=yes ;;
10678 # See if GNU ld supports shared libraries.
10681 # On AIX/PPC, the GNU linker is very broken
10682 if test "$host_cpu" != ia64; then
10686 *** Warning: the GNU linker, at least up to release 2.19, is reported
10687 *** to be unable to reliably create shared libraries on AIX.
10688 *** Therefore, libtool is disabling shared libraries support. If you
10689 *** really care for shared libraries, you may want to install binutils
10690 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10691 *** You will then need to restart the configuration process.
10700 # see comment about AmigaOS4 .so support
10701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10702 archive_expsym_cmds=''
10705 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)'
10706 hardcode_libdir_flag_spec='-L$libdir'
10707 hardcode_minus_L=yes
10713 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10714 allow_undefined_flag=unsupported
10715 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10716 # support --undefined. This deserves some investigation. FIXME
10717 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10723 cygwin* | mingw* | pw32* | cegcc*)
10724 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10725 # as there is no search path for DLLs.
10726 hardcode_libdir_flag_spec='-L$libdir'
10727 export_dynamic_flag_spec='${wl}--export-all-symbols'
10728 allow_undefined_flag=unsupported
10729 always_export_symbols=no
10730 enable_shared_with_static_runtimes=yes
10731 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'
10732 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10734 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10736 # If the export-symbols file already is a .def file (1st line
10737 # is EXPORTS), use it as is; otherwise, prepend...
10738 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10739 cp $export_symbols $output_objdir/$soname.def;
10741 echo EXPORTS > $output_objdir/$soname.def;
10742 cat $export_symbols >> $output_objdir/$soname.def;
10744 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10752 link_all_deplibs=yes
10757 hardcode_shlibpath_var=no
10758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10759 export_dynamic_flag_spec='${wl}-E'
10760 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10761 # Instead, shared libraries are loaded at an image base (0x10000000 by
10762 # default) and relocated if they conflict, which is a slow very memory
10763 # consuming and fragmenting process. To avoid this, we pick a random,
10764 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10765 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10767 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'
10770 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10772 if test "$host_os" = linux-dietlibc; then
10773 case $cc_basename in
10774 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10777 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10778 && test "$tmp_diet" = no
10780 tmp_addflag=' $pic_flag'
10781 tmp_sharedflag='-shared'
10782 case $cc_basename,$host_cpu in
10783 pgcc*) # Portland Group C compiler
10784 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'
10785 tmp_addflag=' $pic_flag'
10787 pgf77* | pgf90* | pgf95* | pgfortran*)
10788 # Portland Group f77 and f90 compilers
10789 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'
10790 tmp_addflag=' $pic_flag -Mnomain' ;;
10791 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10792 tmp_addflag=' -i_dynamic' ;;
10793 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10794 tmp_addflag=' -i_dynamic -nofor_main' ;;
10795 ifc* | ifort*) # Intel Fortran compiler
10796 tmp_addflag=' -nofor_main' ;;
10797 lf95*) # Lahey Fortran 8.1
10798 whole_archive_flag_spec=
10799 tmp_sharedflag='--shared' ;;
10800 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10801 tmp_sharedflag='-qmkshrobj'
10803 nvcc*) # Cuda Compiler Driver 2.2
10804 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'
10805 compiler_needs_object=yes
10808 case `$CC -V 2>&1 | sed 5q` in
10809 *Sun\ C*) # Sun C 5.9
10810 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'
10811 compiler_needs_object=yes
10812 tmp_sharedflag='-G' ;;
10813 *Sun\ F*) # Sun Fortran 8.3
10814 tmp_sharedflag='-G' ;;
10816 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10818 if test "x$supports_anon_versioning" = xyes; then
10819 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10821 echo "local: *; };" >> $output_objdir/$libname.ver~
10822 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10825 case $cc_basename in
10826 xlf* | bgf* | bgxlf* | mpixlf*)
10827 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10828 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10830 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10831 if test "x$supports_anon_versioning" = xyes; then
10832 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10834 echo "local: *; };" >> $output_objdir/$libname.ver~
10835 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10845 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10846 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10849 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10850 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10855 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10859 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10860 *** create shared libraries on Solaris systems. Therefore, libtool
10861 *** is disabling shared libraries support. We urge you to upgrade GNU
10862 *** binutils to release 2.9.1 or newer. Another option is to modify
10863 *** your PATH or compiler configuration so that the native linker is
10864 *** used, and then restart.
10867 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10868 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10869 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10875 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10876 case `$LD -v 2>&1` in
10877 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10881 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10882 *** reliably create shared libraries on SCO systems. Therefore, libtool
10883 *** is disabling shared libraries support. We urge you to upgrade GNU
10884 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10885 *** your PATH or compiler configuration so that the native linker is
10886 *** used, and then restart.
10891 # For security reasons, it is highly recommended that you always
10892 # use absolute paths for naming shared libraries, and exclude the
10893 # DT_RUNPATH tag from executables and libraries. But doing so
10894 # requires that you compile everything twice, which is a pain.
10895 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10898 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10907 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10909 hardcode_direct=yes
10910 hardcode_shlibpath_var=no
10914 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10916 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 test "$ld_shlibs" = no; then
10925 hardcode_libdir_flag_spec=
10926 export_dynamic_flag_spec=
10927 whole_archive_flag_spec=
10930 # PORTME fill in a description of your system's linker (not GNU ld)
10933 allow_undefined_flag=unsupported
10934 always_export_symbols=yes
10935 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'
10936 # Note: this linker hardcodes the directories in LIBPATH if there
10937 # are no directories specified by -L.
10938 hardcode_minus_L=yes
10939 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10940 # Neither direct hardcoding nor static linking is supported with a
10942 hardcode_direct=unsupported
10947 if test "$host_cpu" = ia64; then
10948 # On IA64, the linker does run time linking by default, so we don't
10949 # have to do anything special.
10950 aix_use_runtimelinking=no
10951 exp_sym_flag='-Bexport'
10954 # If we're using GNU nm, then we don't want the "-C" option.
10955 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10956 # Also, AIX nm treats weak defined symbols like other global
10957 # defined symbols, whereas GNU nm marks them as "W".
10958 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10959 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'
10961 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'
10963 aix_use_runtimelinking=no
10965 # Test if we are trying to use run time linking or normal
10966 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10967 # need to do runtime linking.
10968 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10969 for ld_flag in $LDFLAGS; do
10970 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10971 aix_use_runtimelinking=yes
10978 exp_sym_flag='-bexport'
10979 no_entry_flag='-bnoentry'
10982 # When large executables or shared objects are built, AIX ld can
10983 # have problems creating the table of contents. If linking a library
10984 # or program results in "error TOC overflow" add -mminimal-toc to
10985 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10986 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10989 hardcode_direct=yes
10990 hardcode_direct_absolute=yes
10991 hardcode_libdir_separator=':'
10992 link_all_deplibs=yes
10993 file_list_spec='${wl}-f,'
10995 if test "$GCC" = yes; then
10996 case $host_os in aix4.[012]|aix4.[012].*)
10997 # We only want to do this on AIX 4.2 and lower, the check
10998 # below for broken collect2 doesn't work under 4.3+
10999 collect2name=`${CC} -print-prog-name=collect2`
11000 if test -f "$collect2name" &&
11001 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11003 # We have reworked collect2
11006 # We have old collect2
11007 hardcode_direct=unsupported
11008 # It fails to find uninstalled libraries when the uninstalled
11009 # path is not listed in the libpath. Setting hardcode_minus_L
11010 # to unsupported forces relinking
11011 hardcode_minus_L=yes
11012 hardcode_libdir_flag_spec='-L$libdir'
11013 hardcode_libdir_separator=
11017 shared_flag='-shared'
11018 if test "$aix_use_runtimelinking" = yes; then
11019 shared_flag="$shared_flag "'${wl}-G'
11023 if test "$host_cpu" = ia64; then
11024 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11025 # chokes on -Wl,-G. The following line is correct:
11028 if test "$aix_use_runtimelinking" = yes; then
11029 shared_flag='${wl}-G'
11031 shared_flag='${wl}-bM:SRE'
11036 export_dynamic_flag_spec='${wl}-bexpall'
11037 # It seems that -bexpall does not export symbols beginning with
11038 # underscore (_), so it is better to generate a list of symbols to export.
11039 always_export_symbols=yes
11040 if test "$aix_use_runtimelinking" = yes; then
11041 # Warning - without using the other runtime loading flags (-brtl),
11042 # -berok will link without error, but may produce a broken library.
11043 allow_undefined_flag='-berok'
11044 # Determine the default libpath from the value encoded in an
11045 # empty executable.
11046 if test "${lt_cv_aix_libpath+set}" = set; then
11047 aix_libpath=$lt_cv_aix_libpath
11049 if ${lt_cv_aix_libpath_+:} false; then :
11050 $as_echo_n "(cached) " >&6
11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11063 if ac_fn_c_try_link "$LINENO"; then :
11065 lt_aix_libpath_sed='
11066 /Import File Strings/,/^$/ {
11068 s/^0 *\([^ ]*\) *$/\1/
11072 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11073 # Check for a 64-bit object if we didn't find anything.
11074 if test -z "$lt_cv_aix_libpath_"; then
11075 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080 if test -z "$lt_cv_aix_libpath_"; then
11081 lt_cv_aix_libpath_="/usr/lib:/lib"
11086 aix_libpath=$lt_cv_aix_libpath_
11089 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11090 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"
11092 if test "$host_cpu" = ia64; then
11093 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11094 allow_undefined_flag="-z nodefs"
11095 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"
11097 # Determine the default libpath from the value encoded in an
11098 # empty executable.
11099 if test "${lt_cv_aix_libpath+set}" = set; then
11100 aix_libpath=$lt_cv_aix_libpath
11102 if ${lt_cv_aix_libpath_+:} false; then :
11103 $as_echo_n "(cached) " >&6
11105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h. */
11116 if ac_fn_c_try_link "$LINENO"; then :
11118 lt_aix_libpath_sed='
11119 /Import File Strings/,/^$/ {
11121 s/^0 *\([^ ]*\) *$/\1/
11125 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11126 # Check for a 64-bit object if we didn't find anything.
11127 if test -z "$lt_cv_aix_libpath_"; then
11128 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11131 rm -f core conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 if test -z "$lt_cv_aix_libpath_"; then
11134 lt_cv_aix_libpath_="/usr/lib:/lib"
11139 aix_libpath=$lt_cv_aix_libpath_
11142 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11143 # Warning - without using the other run time loading flags,
11144 # -berok will link without error, but may produce a broken library.
11145 no_undefined_flag=' ${wl}-bernotok'
11146 allow_undefined_flag=' ${wl}-berok'
11147 if test "$with_gnu_ld" = yes; then
11148 # We only use this code for GNU lds that support --whole-archive.
11149 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11151 # Exported symbols can be pulled into shared objects from archives
11152 whole_archive_flag_spec='$convenience'
11154 archive_cmds_need_lc=yes
11155 # This is similar to how AIX traditionally builds its shared libraries.
11156 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'
11164 # see comment about AmigaOS4 .so support
11165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11166 archive_expsym_cmds=''
11169 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)'
11170 hardcode_libdir_flag_spec='-L$libdir'
11171 hardcode_minus_L=yes
11177 export_dynamic_flag_spec=-rdynamic
11180 cygwin* | mingw* | pw32* | cegcc*)
11181 # When not using gcc, we currently assume that we are using
11182 # Microsoft Visual C++.
11183 # hardcode_libdir_flag_spec is actually meaningless, as there is
11184 # no search path for DLLs.
11185 case $cc_basename in
11188 hardcode_libdir_flag_spec=' '
11189 allow_undefined_flag=unsupported
11190 always_export_symbols=yes
11192 # Tell ltmain to make .lib files, not .a files.
11194 # Tell ltmain to make .dll files, not .so files.
11196 # FIXME: Setting linknames here is a bad hack.
11197 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11198 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11199 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11201 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11203 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11205 # The linker will not automatically build a static lib if we build a DLL.
11206 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11207 enable_shared_with_static_runtimes=yes
11208 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11209 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11211 old_postinstall_cmds='chmod 644 $oldlib'
11212 postlink_cmds='lt_outputfile="@OUTPUT@"~
11213 lt_tool_outputfile="@TOOL_OUTPUT@"~
11214 case $lt_outputfile in
11217 lt_outputfile="$lt_outputfile.exe"
11218 lt_tool_outputfile="$lt_tool_outputfile.exe"
11221 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11222 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11223 $RM "$lt_outputfile.manifest";
11227 # Assume MSVC wrapper
11228 hardcode_libdir_flag_spec=' '
11229 allow_undefined_flag=unsupported
11230 # Tell ltmain to make .lib files, not .a files.
11232 # Tell ltmain to make .dll files, not .so files.
11234 # FIXME: Setting linknames here is a bad hack.
11235 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11236 # The linker will automatically build a .lib file if we build a DLL.
11237 old_archive_from_new_cmds='true'
11238 # FIXME: Should let the user specify the lib program.
11239 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11240 enable_shared_with_static_runtimes=yes
11245 darwin* | rhapsody*)
11248 archive_cmds_need_lc=no
11250 hardcode_automatic=yes
11251 hardcode_shlibpath_var=unsupported
11252 if test "$lt_cv_ld_force_load" = "yes"; then
11253 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\"`'
11256 whole_archive_flag_spec=''
11258 link_all_deplibs=yes
11259 allow_undefined_flag="$_lt_dar_allow_undefined"
11260 case $cc_basename in
11261 ifort*) _lt_dar_can_shared=yes ;;
11262 *) _lt_dar_can_shared=$GCC ;;
11264 if test "$_lt_dar_can_shared" = "yes"; then
11265 output_verbose_link_cmd=func_echo_all
11266 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11267 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11268 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}"
11269 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}"
11278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11279 hardcode_libdir_flag_spec='-L$libdir'
11280 hardcode_shlibpath_var=no
11283 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11284 # support. Future versions do this automatically, but an explicit c++rt0.o
11285 # does not break anything, and helps significantly (at the cost of a little
11288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11289 hardcode_libdir_flag_spec='-R$libdir'
11290 hardcode_direct=yes
11291 hardcode_shlibpath_var=no
11294 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11297 hardcode_direct=yes
11298 hardcode_minus_L=yes
11299 hardcode_shlibpath_var=no
11302 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11303 freebsd* | dragonfly*)
11304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11305 hardcode_libdir_flag_spec='-R$libdir'
11306 hardcode_direct=yes
11307 hardcode_shlibpath_var=no
11311 if test "$GCC" = yes; then
11312 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'
11314 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'
11316 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11317 hardcode_libdir_separator=:
11318 hardcode_direct=yes
11320 # hardcode_minus_L: Not really in the search PATH,
11321 # but as the default location of the library.
11322 hardcode_minus_L=yes
11323 export_dynamic_flag_spec='${wl}-E'
11327 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11328 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11330 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11332 if test "$with_gnu_ld" = no; then
11333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11334 hardcode_libdir_separator=:
11335 hardcode_direct=yes
11336 hardcode_direct_absolute=yes
11337 export_dynamic_flag_spec='${wl}-E'
11338 # hardcode_minus_L: Not really in the search PATH,
11339 # but as the default location of the library.
11340 hardcode_minus_L=yes
11345 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11348 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11351 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11354 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11360 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11363 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11367 # Older versions of the 11.00 compiler do not understand -b yet
11368 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11370 $as_echo_n "checking if $CC understands -b... " >&6; }
11371 if ${lt_cv_prog_compiler__b+:} false; then :
11372 $as_echo_n "(cached) " >&6
11374 lt_cv_prog_compiler__b=no
11375 save_LDFLAGS="$LDFLAGS"
11376 LDFLAGS="$LDFLAGS -b"
11377 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11378 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11379 # The linker can only warn and ignore the option if not recognized
11380 # So say no if there are warnings
11381 if test -s conftest.err; then
11382 # Append any errors to the config.log.
11383 cat conftest.err 1>&5
11384 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11386 if diff conftest.exp conftest.er2 >/dev/null; then
11387 lt_cv_prog_compiler__b=yes
11390 lt_cv_prog_compiler__b=yes
11394 LDFLAGS="$save_LDFLAGS"
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11398 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11400 if test x"$lt_cv_prog_compiler__b" = xyes; then
11401 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11403 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11409 if test "$with_gnu_ld" = no; then
11410 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11411 hardcode_libdir_separator=:
11416 hardcode_shlibpath_var=no
11419 hardcode_direct=yes
11420 hardcode_direct_absolute=yes
11421 export_dynamic_flag_spec='${wl}-E'
11423 # hardcode_minus_L: Not really in the search PATH,
11424 # but as the default location of the library.
11425 hardcode_minus_L=yes
11431 irix5* | irix6* | nonstopux*)
11432 if test "$GCC" = yes; then
11433 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'
11434 # Try to use the -exported_symbol ld option, if it does not
11435 # work, assume that -exports_file does not work either and
11436 # implicitly export all symbols.
11437 # This should be the same for all languages, so no per-tag cache variable.
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11439 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11440 if ${lt_cv_irix_exported_symbol+:} false; then :
11441 $as_echo_n "(cached) " >&6
11443 save_LDFLAGS="$LDFLAGS"
11444 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11447 int foo (void) { return 0; }
11449 if ac_fn_c_try_link "$LINENO"; then :
11450 lt_cv_irix_exported_symbol=yes
11452 lt_cv_irix_exported_symbol=no
11454 rm -f core conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
11456 LDFLAGS="$save_LDFLAGS"
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11459 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11460 if test "$lt_cv_irix_exported_symbol" = yes; then
11461 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'
11464 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'
11465 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'
11467 archive_cmds_need_lc='no'
11468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11469 hardcode_libdir_separator=:
11471 link_all_deplibs=yes
11475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11478 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11480 hardcode_libdir_flag_spec='-R$libdir'
11481 hardcode_direct=yes
11482 hardcode_shlibpath_var=no
11486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11487 hardcode_direct=yes
11488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11489 hardcode_libdir_separator=:
11490 hardcode_shlibpath_var=no
11497 if test -f /usr/libexec/ld.so; then
11498 hardcode_direct=yes
11499 hardcode_shlibpath_var=no
11500 hardcode_direct_absolute=yes
11501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11502 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11503 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11505 export_dynamic_flag_spec='${wl}-E'
11508 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11510 hardcode_libdir_flag_spec='-R$libdir'
11513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11514 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11524 hardcode_libdir_flag_spec='-L$libdir'
11525 hardcode_minus_L=yes
11526 allow_undefined_flag=unsupported
11527 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'
11528 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11532 if test "$GCC" = yes; then
11533 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11534 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'
11536 allow_undefined_flag=' -expect_unresolved \*'
11537 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'
11539 archive_cmds_need_lc='no'
11540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11541 hardcode_libdir_separator=:
11544 osf4* | osf5*) # as osf3* with the addition of -msym flag
11545 if test "$GCC" = yes; then
11546 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11547 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'
11548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11550 allow_undefined_flag=' -expect_unresolved \*'
11551 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'
11552 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~
11553 $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'
11555 # Both c and cxx compiler support -rpath directly
11556 hardcode_libdir_flag_spec='-rpath $libdir'
11558 archive_cmds_need_lc='no'
11559 hardcode_libdir_separator=:
11563 no_undefined_flag=' -z defs'
11564 if test "$GCC" = yes; then
11566 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11567 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11568 $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'
11570 case `$CC -V 2>&1` in
11573 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11575 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11579 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11580 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11581 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11585 hardcode_libdir_flag_spec='-R$libdir'
11586 hardcode_shlibpath_var=no
11588 solaris2.[0-5] | solaris2.[0-5].*) ;;
11590 # The compiler driver will combine and reorder linker options,
11591 # but understands `-z linker_flag'. GCC discards it without `$wl',
11592 # but is careful enough not to reorder.
11593 # Supported since Solaris 2.6 (maybe 2.5.1?)
11594 if test "$GCC" = yes; then
11595 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11597 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11601 link_all_deplibs=yes
11605 if test "x$host_vendor" = xsequent; then
11606 # Use $CC to link under sequent, because it throws in some extra .o
11607 # files that make .init and .fini sections work.
11608 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11610 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11612 hardcode_libdir_flag_spec='-L$libdir'
11613 hardcode_direct=yes
11614 hardcode_minus_L=yes
11615 hardcode_shlibpath_var=no
11619 case $host_vendor in
11621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11622 hardcode_direct=yes # is this really true???
11625 ## LD is ld it makes a PLAMLIB
11626 ## CC just makes a GrossModule.
11627 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11628 reload_cmds='$CC -r -o $output$reload_objs'
11632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11633 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11636 runpath_var='LD_RUN_PATH'
11637 hardcode_shlibpath_var=no
11641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11642 hardcode_shlibpath_var=no
11643 export_dynamic_flag_spec='-Bexport'
11647 if test -d /usr/nec; then
11648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11649 hardcode_shlibpath_var=no
11650 runpath_var=LD_RUN_PATH
11651 hardcode_runpath_var=yes
11656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11657 no_undefined_flag='${wl}-z,text'
11658 archive_cmds_need_lc=no
11659 hardcode_shlibpath_var=no
11660 runpath_var='LD_RUN_PATH'
11662 if test "$GCC" = yes; then
11663 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11664 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11666 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11667 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11671 sysv5* | sco3.2v5* | sco5v6*)
11672 # Note: We can NOT use -z defs as we might desire, because we do not
11673 # link with -lc, and that would cause any symbols used from libc to
11674 # always be unresolved, which means just about no library would
11675 # ever link correctly. If we're not using GNU ld we use -z text
11676 # though, which does catch some bad symbols but isn't as heavy-handed
11678 no_undefined_flag='${wl}-z,text'
11679 allow_undefined_flag='${wl}-z,nodefs'
11680 archive_cmds_need_lc=no
11681 hardcode_shlibpath_var=no
11682 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11683 hardcode_libdir_separator=':'
11684 link_all_deplibs=yes
11685 export_dynamic_flag_spec='${wl}-Bexport'
11686 runpath_var='LD_RUN_PATH'
11688 if test "$GCC" = yes; then
11689 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11690 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11692 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11693 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11699 hardcode_libdir_flag_spec='-L$libdir'
11700 hardcode_shlibpath_var=no
11708 if test x$host_vendor = xsni; then
11710 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11711 export_dynamic_flag_spec='${wl}-Blargedynsym'
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11718 $as_echo "$ld_shlibs" >&6; }
11719 test "$ld_shlibs" = no && can_build_shared=no
11721 with_gnu_ld=$with_gnu_ld
11738 # Do we need to explicitly link libc?
11740 case "x$archive_cmds_need_lc" in
11742 # Assume -lc should be added
11743 archive_cmds_need_lc=yes
11745 if test "$enable_shared" = yes && test "$GCC" = yes; then
11746 case $archive_cmds in
11748 # FIXME: we may have to deal with multi-command sequences.
11751 # Test whether the compiler implicitly links with -lc since on some
11752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11753 # to ld, don't add -lc before -lgcc.
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11755 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11756 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11757 $as_echo_n "(cached) " >&6
11760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11763 (eval $ac_compile) 2>&5
11765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11766 test $ac_status = 0; } 2>conftest.err; then
11769 libobjs=conftest.$ac_objext
11771 wl=$lt_prog_compiler_wl
11772 pic_flag=$lt_prog_compiler_pic
11778 lt_save_allow_undefined_flag=$allow_undefined_flag
11779 allow_undefined_flag=
11780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11781 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11784 test $ac_status = 0; }
11786 lt_cv_archive_cmds_need_lc=no
11788 lt_cv_archive_cmds_need_lc=yes
11790 allow_undefined_flag=$lt_save_allow_undefined_flag
11792 cat conftest.err 1>&5
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11798 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11799 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11958 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11960 if test "$GCC" = yes; then
11962 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11963 *) lt_awk_arg="/^libraries:/" ;;
11966 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11967 *) lt_sed_strip_eq="s,=/,/,g" ;;
11969 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11970 case $lt_search_path_spec in
11972 # if the path contains ";" then we assume it to be the separator
11973 # otherwise default to the standard path separator (i.e. ":") - it is
11974 # assumed that no part of a normal pathname contains ";" but that should
11975 # okay in the real world where ";" in dirpaths is itself problematic.
11976 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11979 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11982 # Ok, now we have the path, separated by spaces, we can step through it
11983 # and add multilib dir if necessary.
11984 lt_tmp_lt_search_path_spec=
11985 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11986 for lt_sys_path in $lt_search_path_spec; do
11987 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11988 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11990 test -d "$lt_sys_path" && \
11991 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11994 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11995 BEGIN {RS=" "; FS="/|\n";} {
11998 for (lt_i = NF; lt_i > 0; lt_i--) {
11999 if ($lt_i != "" && $lt_i != ".") {
12000 if ($lt_i == "..") {
12003 if (lt_count == 0) {
12004 lt_foo="/" $lt_i lt_foo;
12011 if (lt_foo != "") { lt_freq[lt_foo]++; }
12012 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12014 # AWK program above erroneously prepends '/' to C:/dos/paths
12017 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12018 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12020 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12022 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12024 library_names_spec=
12025 libname_spec='lib$name'
12029 postuninstall_cmds=
12033 shlibpath_overrides_runpath=unknown
12035 dynamic_linker="$host_os ld.so"
12036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12037 need_lib_prefix=unknown
12038 hardcode_into_libs=no
12040 # when you set need_version to no, make sure it does not cause -set_version
12041 # flags to be left without arguments
12042 need_version=unknown
12046 version_type=linux # correct to gnu/linux during the next big refactor
12047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12048 shlibpath_var=LIBPATH
12050 # AIX 3 has no versioning support, so we append a major version to the name.
12051 soname_spec='${libname}${release}${shared_ext}$major'
12055 version_type=linux # correct to gnu/linux during the next big refactor
12058 hardcode_into_libs=yes
12059 if test "$host_cpu" = ia64; then
12060 # AIX 5 supports IA64
12061 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12062 shlibpath_var=LD_LIBRARY_PATH
12064 # With GCC up to 2.95.x, collect2 would create an import file
12065 # for dependence libraries. The import file would start with
12066 # the line `#! .'. This would cause the generated library to
12067 # depend on `.', always an invalid library. This was fixed in
12068 # development snapshots of GCC prior to 3.0.
12070 aix4 | aix4.[01] | aix4.[01].*)
12071 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12073 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12076 can_build_shared=no
12080 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12081 # soname into executable. Probably we can add versioning support to
12082 # collect2, so additional links can be useful in future.
12083 if test "$aix_use_runtimelinking" = yes; then
12084 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12085 # instead of lib<name>.a to let people know that these are not
12086 # typical AIX shared libraries.
12087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12089 # We preserve .a as extension for shared libraries through AIX4.2
12090 # and later when we are not doing run time linking.
12091 library_names_spec='${libname}${release}.a $libname.a'
12092 soname_spec='${libname}${release}${shared_ext}$major'
12094 shlibpath_var=LIBPATH
12101 # Since July 2007 AmigaOS4 officially supports .so libraries.
12102 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106 library_names_spec='$libname.ixlibrary $libname.a'
12107 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12108 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'
12114 library_names_spec='${libname}${shared_ext}'
12115 dynamic_linker="$host_os ld.so"
12116 shlibpath_var=LIBRARY_PATH
12120 version_type=linux # correct to gnu/linux during the next big refactor
12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12123 soname_spec='${libname}${release}${shared_ext}$major'
12124 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12125 shlibpath_var=LD_LIBRARY_PATH
12126 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12127 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12128 # the default ld.so.conf also contains /usr/contrib/lib and
12129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12130 # libtool to hard-code these into programs
12133 cygwin* | mingw* | pw32* | cegcc*)
12134 version_type=windows
12139 case $GCC,$cc_basename in
12142 library_names_spec='$libname.dll.a'
12143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12144 postinstall_cmds='base_file=`basename \${file}`~
12145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12146 dldir=$destdir/`dirname \$dlpath`~
12147 test -d \$dldir || mkdir -p \$dldir~
12148 $install_prog $dir/$dlname \$dldir/$dlname~
12149 chmod a+x \$dldir/$dlname~
12150 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12151 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12154 dlpath=$dir/\$dldll~
12156 shlibpath_overrides_runpath=yes
12160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12163 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12166 # MinGW DLLs use traditional 'lib' prefix
12167 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12170 # pw32 DLLs use 'pw' prefix rather than 'lib'
12171 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12174 dynamic_linker='Win32 ld.exe'
12179 libname_spec='$name'
12180 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12181 library_names_spec='${libname}.dll.lib'
12185 sys_lib_search_path_spec=
12188 for lt_path in $LIB
12191 # Let DOS variable expansion print the short 8.3 style file name.
12192 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12193 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12196 # Convert to MSYS style.
12197 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12200 # Convert to unix form, then to dos form, then back to unix form
12201 # but this time dos style (no spaces!) so that the unix form looks
12202 # like /cygdrive/c/PROGRA~1:/cygdr...
12203 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12204 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12205 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12208 sys_lib_search_path_spec="$LIB"
12209 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12210 # It is most probably a Windows format PATH.
12211 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12213 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12215 # FIXME: find the short name or the path components, as spaces are
12216 # common. (e.g. "Program Files" -> "PROGRA~1")
12220 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12221 postinstall_cmds='base_file=`basename \${file}`~
12222 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12223 dldir=$destdir/`dirname \$dlpath`~
12224 test -d \$dldir || mkdir -p \$dldir~
12225 $install_prog $dir/$dlname \$dldir/$dlname'
12226 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12227 dlpath=$dir/\$dldll~
12229 shlibpath_overrides_runpath=yes
12230 dynamic_linker='Win32 link.exe'
12234 # Assume MSVC wrapper
12235 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12236 dynamic_linker='Win32 ld.exe'
12239 # FIXME: first we should search . and the directory the executable is in
12243 darwin* | rhapsody*)
12244 dynamic_linker="$host_os dyld"
12245 version_type=darwin
12248 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12249 soname_spec='${libname}${release}${major}$shared_ext'
12250 shlibpath_overrides_runpath=yes
12251 shlibpath_var=DYLD_LIBRARY_PATH
12252 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12254 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12259 version_type=linux # correct to gnu/linux during the next big refactor
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12263 soname_spec='${libname}${release}${shared_ext}$major'
12264 shlibpath_var=LD_LIBRARY_PATH
12267 freebsd* | dragonfly*)
12268 # DragonFly does not have aout. When/if they implement a new
12269 # versioning mechanism, adjust this.
12270 if test -x /usr/bin/objformat; then
12271 objformat=`/usr/bin/objformat`
12274 freebsd[23].*) objformat=aout ;;
12275 *) objformat=elf ;;
12278 version_type=freebsd-$objformat
12279 case $version_type in
12281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12290 shlibpath_var=LD_LIBRARY_PATH
12293 shlibpath_overrides_runpath=yes
12295 freebsd3.[01]* | freebsdelf3.[01]*)
12296 shlibpath_overrides_runpath=yes
12297 hardcode_into_libs=yes
12299 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12300 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12301 shlibpath_overrides_runpath=no
12302 hardcode_into_libs=yes
12304 *) # from 4.6 on, and DragonFly
12305 shlibpath_overrides_runpath=yes
12306 hardcode_into_libs=yes
12312 version_type=linux # correct to gnu/linux during the next big refactor
12315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12316 soname_spec='${libname}${release}${shared_ext}$major'
12317 shlibpath_var=LD_LIBRARY_PATH
12318 shlibpath_overrides_runpath=no
12319 hardcode_into_libs=yes
12323 version_type=linux # correct to gnu/linux during the next big refactor
12326 dynamic_linker="$host_os runtime_loader"
12327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12328 soname_spec='${libname}${release}${shared_ext}$major'
12329 shlibpath_var=LIBRARY_PATH
12330 shlibpath_overrides_runpath=yes
12331 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12332 hardcode_into_libs=yes
12335 hpux9* | hpux10* | hpux11*)
12336 # Give a soname corresponding to the major version so that dld.sl refuses to
12337 # link against other versions.
12344 hardcode_into_libs=yes
12345 dynamic_linker="$host_os dld.so"
12346 shlibpath_var=LD_LIBRARY_PATH
12347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12349 soname_spec='${libname}${release}${shared_ext}$major'
12350 if test "X$HPUX_IA64_MODE" = X32; then
12351 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12353 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12359 hardcode_into_libs=yes
12360 dynamic_linker="$host_os dld.sl"
12361 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12364 soname_spec='${libname}${release}${shared_ext}$major'
12365 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12370 dynamic_linker="$host_os dld.sl"
12371 shlibpath_var=SHLIB_PATH
12372 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12374 soname_spec='${libname}${release}${shared_ext}$major'
12377 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12378 postinstall_cmds='chmod 555 $lib'
12379 # or fails outright, so override atomically:
12380 install_override_mode=555
12384 version_type=linux # correct to gnu/linux during the next big refactor
12387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12388 soname_spec='${libname}${release}${shared_ext}$major'
12389 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12390 shlibpath_var=LD_LIBRARY_PATH
12391 shlibpath_overrides_runpath=no
12392 hardcode_into_libs=yes
12395 irix5* | irix6* | nonstopux*)
12397 nonstopux*) version_type=nonstopux ;;
12399 if test "$lt_cv_prog_gnu_ld" = yes; then
12400 version_type=linux # correct to gnu/linux during the next big refactor
12407 soname_spec='${libname}${release}${shared_ext}$major'
12408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12410 irix5* | nonstopux*)
12411 libsuff= shlibsuff=
12414 case $LD in # libtool.m4 will add one of these switches to LD
12415 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12416 libsuff= shlibsuff= libmagic=32-bit;;
12417 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12418 libsuff=32 shlibsuff=N32 libmagic=N32;;
12419 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12420 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12421 *) libsuff= shlibsuff= libmagic=never-match;;
12425 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12426 shlibpath_overrides_runpath=no
12427 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12428 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12429 hardcode_into_libs=yes
12432 # No shared lib support for Linux oldld, aout, or coff.
12433 linux*oldld* | linux*aout* | linux*coff*)
12437 # This must be glibc/ELF.
12438 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12439 version_type=linux # correct to gnu/linux during the next big refactor
12442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443 soname_spec='${libname}${release}${shared_ext}$major'
12444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12445 shlibpath_var=LD_LIBRARY_PATH
12446 shlibpath_overrides_runpath=no
12448 # Some binutils ld are patched to set DT_RUNPATH
12449 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12450 $as_echo_n "(cached) " >&6
12452 lt_cv_shlibpath_overrides_runpath=no
12453 save_LDFLAGS=$LDFLAGS
12454 save_libdir=$libdir
12455 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12456 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12468 if ac_fn_c_try_link "$LINENO"; then :
12469 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12470 lt_cv_shlibpath_overrides_runpath=yes
12473 rm -f core conftest.err conftest.$ac_objext \
12474 conftest$ac_exeext conftest.$ac_ext
12475 LDFLAGS=$save_LDFLAGS
12476 libdir=$save_libdir
12480 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12482 # This implies no fast_install, which is unacceptable.
12483 # Some rework will be needed to allow for fast_install
12484 # before this can be enabled.
12485 hardcode_into_libs=yes
12487 # Add ABI-specific directories to the system library path.
12488 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12490 # Append ld.so.conf contents to the search path
12491 if test -f /etc/ld.so.conf; then
12492 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' ' '`
12493 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12497 # We used to test for /lib/ld.so.1 and disable shared libraries on
12498 # powerpc, because MkLinux only supported shared libraries with the
12499 # GNU dynamic linker. Since this was broken with cross compilers,
12500 # most powerpc-linux boxes support dynamic linking these days and
12501 # people can always --disable-shared, the test was removed, and we
12502 # assume the GNU/Linux dynamic linker is in use.
12503 dynamic_linker='GNU/Linux ld.so'
12510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12513 dynamic_linker='NetBSD (a.out) ld.so'
12515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12516 soname_spec='${libname}${release}${shared_ext}$major'
12517 dynamic_linker='NetBSD ld.elf_so'
12519 shlibpath_var=LD_LIBRARY_PATH
12520 shlibpath_overrides_runpath=yes
12521 hardcode_into_libs=yes
12525 version_type=linux # correct to gnu/linux during the next big refactor
12526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12527 shlibpath_var=LD_LIBRARY_PATH
12528 shlibpath_overrides_runpath=yes
12535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12536 soname_spec='${libname}${release}${shared_ext}$major'
12537 shlibpath_var=LD_LIBRARY_PATH
12538 shlibpath_overrides_runpath=no
12539 hardcode_into_libs=yes
12540 dynamic_linker='ldqnx.so'
12545 sys_lib_dlsearch_path_spec="/usr/lib"
12547 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12549 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12550 *) need_version=no ;;
12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12557 openbsd2.[89] | openbsd2.[89].*)
12558 shlibpath_overrides_runpath=no
12561 shlibpath_overrides_runpath=yes
12565 shlibpath_overrides_runpath=yes
12570 libname_spec='$name'
12573 library_names_spec='$libname${shared_ext} $libname.a'
12574 dynamic_linker='OS/2 ld.exe'
12575 shlibpath_var=LIBPATH
12578 osf3* | osf4* | osf5*)
12582 soname_spec='${libname}${release}${shared_ext}$major'
12583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12584 shlibpath_var=LD_LIBRARY_PATH
12585 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12586 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12594 version_type=linux # correct to gnu/linux during the next big refactor
12597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12598 soname_spec='${libname}${release}${shared_ext}$major'
12599 shlibpath_var=LD_LIBRARY_PATH
12600 shlibpath_overrides_runpath=yes
12601 hardcode_into_libs=yes
12602 # ldd complains unless libraries are executable
12603 postinstall_cmds='chmod +x $lib'
12608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12609 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12610 shlibpath_var=LD_LIBRARY_PATH
12611 shlibpath_overrides_runpath=yes
12612 if test "$with_gnu_ld" = yes; then
12619 version_type=linux # correct to gnu/linux during the next big refactor
12620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12621 soname_spec='${libname}${release}${shared_ext}$major'
12622 shlibpath_var=LD_LIBRARY_PATH
12623 case $host_vendor in
12625 shlibpath_overrides_runpath=no
12627 runpath_var=LD_RUN_PATH
12635 shlibpath_overrides_runpath=no
12636 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12642 if test -d /usr/nec ;then
12643 version_type=linux # correct to gnu/linux during the next big refactor
12644 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12645 soname_spec='$libname${shared_ext}.$major'
12646 shlibpath_var=LD_LIBRARY_PATH
12650 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12651 version_type=freebsd-elf
12654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12655 soname_spec='${libname}${release}${shared_ext}$major'
12656 shlibpath_var=LD_LIBRARY_PATH
12657 shlibpath_overrides_runpath=yes
12658 hardcode_into_libs=yes
12659 if test "$with_gnu_ld" = yes; then
12660 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12662 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12665 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12669 sys_lib_dlsearch_path_spec='/usr/lib'
12673 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12674 version_type=linux # correct to gnu/linux during the next big refactor
12677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12678 shlibpath_var=LD_LIBRARY_PATH
12679 shlibpath_overrides_runpath=no
12680 hardcode_into_libs=yes
12684 version_type=linux # correct to gnu/linux during the next big refactor
12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12686 soname_spec='${libname}${release}${shared_ext}$major'
12687 shlibpath_var=LD_LIBRARY_PATH
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12695 $as_echo "$dynamic_linker" >&6; }
12696 test "$dynamic_linker" = no && can_build_shared=no
12698 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12699 if test "$GCC" = yes; then
12700 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12703 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12704 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12706 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12707 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12802 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12804 if test -n "$hardcode_libdir_flag_spec" ||
12805 test -n "$runpath_var" ||
12806 test "X$hardcode_automatic" = "Xyes" ; then
12808 # We can hardcode non-existent directories.
12809 if test "$hardcode_direct" != no &&
12810 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12811 # have to relink, otherwise we might link with an installed library
12812 # when we should be linking with a yet-to-be-installed one
12813 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12814 test "$hardcode_minus_L" != no; then
12815 # Linking always hardcodes the temporary library directory.
12816 hardcode_action=relink
12818 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12819 hardcode_action=immediate
12822 # We cannot hardcode anything, or else we can only hardcode existing
12824 hardcode_action=unsupported
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12827 $as_echo "$hardcode_action" >&6; }
12829 if test "$hardcode_action" = relink ||
12830 test "$inherit_rpath" = yes; then
12831 # Fast installation is not supported
12832 enable_fast_install=no
12833 elif test "$shlibpath_overrides_runpath" = yes ||
12834 test "$enable_shared" = no; then
12835 # Fast installation is not necessary
12836 enable_fast_install=needless
12844 if test "x$enable_dlopen" != xyes; then
12845 enable_dlopen=unknown
12846 enable_dlopen_self=unknown
12847 enable_dlopen_self_static=unknown
12854 lt_cv_dlopen="load_add_on"
12856 lt_cv_dlopen_self=yes
12859 mingw* | pw32* | cegcc*)
12860 lt_cv_dlopen="LoadLibrary"
12865 lt_cv_dlopen="dlopen"
12870 # if libdl is installed we need to link against it
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12872 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12873 if ${ac_cv_lib_dl_dlopen+:} false; then :
12874 $as_echo_n "(cached) " >&6
12876 ac_check_lib_save_LIBS=$LIBS
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12881 /* Override any GCC internal prototype to avoid an error.
12882 Use char because int might match the return type of a GCC
12883 builtin and then its argument prototype would still apply. */
12896 if ac_fn_c_try_link "$LINENO"; then :
12897 ac_cv_lib_dl_dlopen=yes
12899 ac_cv_lib_dl_dlopen=no
12901 rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12906 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12907 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12911 lt_cv_dlopen="dyld"
12913 lt_cv_dlopen_self=yes
12920 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12921 if test "x$ac_cv_func_shl_load" = xyes; then :
12922 lt_cv_dlopen="shl_load"
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12925 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12926 if ${ac_cv_lib_dld_shl_load+:} false; then :
12927 $as_echo_n "(cached) " >&6
12929 ac_check_lib_save_LIBS=$LIBS
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12934 /* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12944 return shl_load ();
12949 if ac_fn_c_try_link "$LINENO"; then :
12950 ac_cv_lib_dld_shl_load=yes
12952 ac_cv_lib_dld_shl_load=no
12954 rm -f core conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12956 LIBS=$ac_check_lib_save_LIBS
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12959 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12960 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12961 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12963 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12964 if test "x$ac_cv_func_dlopen" = xyes; then :
12965 lt_cv_dlopen="dlopen"
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12968 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12969 if ${ac_cv_lib_dl_dlopen+:} false; then :
12970 $as_echo_n "(cached) " >&6
12972 ac_check_lib_save_LIBS=$LIBS
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12977 /* Override any GCC internal prototype to avoid an error.
12978 Use char because int might match the return type of a GCC
12979 builtin and then its argument prototype would still apply. */
12992 if ac_fn_c_try_link "$LINENO"; then :
12993 ac_cv_lib_dl_dlopen=yes
12995 ac_cv_lib_dl_dlopen=no
12997 rm -f core conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
12999 LIBS=$ac_check_lib_save_LIBS
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13002 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13003 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13004 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13007 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13008 if ${ac_cv_lib_svld_dlopen+:} false; then :
13009 $as_echo_n "(cached) " >&6
13011 ac_check_lib_save_LIBS=$LIBS
13012 LIBS="-lsvld $LIBS"
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13016 /* Override any GCC internal prototype to avoid an error.
13017 Use char because int might match the return type of a GCC
13018 builtin and then its argument prototype would still apply. */
13031 if ac_fn_c_try_link "$LINENO"; then :
13032 ac_cv_lib_svld_dlopen=yes
13034 ac_cv_lib_svld_dlopen=no
13036 rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13038 LIBS=$ac_check_lib_save_LIBS
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13041 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13042 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13046 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13047 if ${ac_cv_lib_dld_dld_link+:} false; then :
13048 $as_echo_n "(cached) " >&6
13050 ac_check_lib_save_LIBS=$LIBS
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13055 /* Override any GCC internal prototype to avoid an error.
13056 Use char because int might match the return type of a GCC
13057 builtin and then its argument prototype would still apply. */
13065 return dld_link ();
13070 if ac_fn_c_try_link "$LINENO"; then :
13071 ac_cv_lib_dld_dld_link=yes
13073 ac_cv_lib_dld_dld_link=no
13075 rm -f core conftest.err conftest.$ac_objext \
13076 conftest$ac_exeext conftest.$ac_ext
13077 LIBS=$ac_check_lib_save_LIBS
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13080 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13081 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13082 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13103 if test "x$lt_cv_dlopen" != xno; then
13109 case $lt_cv_dlopen in
13111 save_CPPFLAGS="$CPPFLAGS"
13112 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13114 save_LDFLAGS="$LDFLAGS"
13115 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13118 LIBS="$lt_cv_dlopen_libs $LIBS"
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13121 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13122 if ${lt_cv_dlopen_self+:} false; then :
13123 $as_echo_n "(cached) " >&6
13125 if test "$cross_compiling" = yes; then :
13126 lt_cv_dlopen_self=cross
13128 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13129 lt_status=$lt_dlunknown
13130 cat > conftest.$ac_ext <<_LT_EOF
13131 #line $LINENO "configure"
13132 #include "confdefs.h"
13141 # define LT_DLGLOBAL RTLD_GLOBAL
13144 # define LT_DLGLOBAL DL_GLOBAL
13146 # define LT_DLGLOBAL 0
13150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13151 find out it does not work in some platform. */
13152 #ifndef LT_DLLAZY_OR_NOW
13154 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13157 # define LT_DLLAZY_OR_NOW DL_LAZY
13160 # define LT_DLLAZY_OR_NOW RTLD_NOW
13163 # define LT_DLLAZY_OR_NOW DL_NOW
13165 # define LT_DLLAZY_OR_NOW 0
13172 /* When -fvisbility=hidden is used, assume the code has been annotated
13173 correspondingly for the symbols needed. */
13174 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13175 int fnord () __attribute__((visibility("default")));
13178 int fnord () { return 42; }
13181 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13182 int status = $lt_dlunknown;
13186 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13189 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13190 else puts (dlerror ());
13192 /* dlclose (self); */
13200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13201 (eval $ac_link) 2>&5
13203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13204 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13205 (./conftest; exit; ) >&5 2>/dev/null
13207 case x$lt_status in
13208 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13209 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13210 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13213 # compilation failed
13214 lt_cv_dlopen_self=no
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13222 $as_echo "$lt_cv_dlopen_self" >&6; }
13224 if test "x$lt_cv_dlopen_self" = xyes; then
13225 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13227 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13228 if ${lt_cv_dlopen_self_static+:} false; then :
13229 $as_echo_n "(cached) " >&6
13231 if test "$cross_compiling" = yes; then :
13232 lt_cv_dlopen_self_static=cross
13234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13235 lt_status=$lt_dlunknown
13236 cat > conftest.$ac_ext <<_LT_EOF
13237 #line $LINENO "configure"
13238 #include "confdefs.h"
13247 # define LT_DLGLOBAL RTLD_GLOBAL
13250 # define LT_DLGLOBAL DL_GLOBAL
13252 # define LT_DLGLOBAL 0
13256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13257 find out it does not work in some platform. */
13258 #ifndef LT_DLLAZY_OR_NOW
13260 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13263 # define LT_DLLAZY_OR_NOW DL_LAZY
13266 # define LT_DLLAZY_OR_NOW RTLD_NOW
13269 # define LT_DLLAZY_OR_NOW DL_NOW
13271 # define LT_DLLAZY_OR_NOW 0
13278 /* When -fvisbility=hidden is used, assume the code has been annotated
13279 correspondingly for the symbols needed. */
13280 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13281 int fnord () __attribute__((visibility("default")));
13284 int fnord () { return 42; }
13287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13288 int status = $lt_dlunknown;
13292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13295 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13296 else puts (dlerror ());
13298 /* dlclose (self); */
13306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13307 (eval $ac_link) 2>&5
13309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13310 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13311 (./conftest; exit; ) >&5 2>/dev/null
13313 case x$lt_status in
13314 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13315 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13316 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13319 # compilation failed
13320 lt_cv_dlopen_self_static=no
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13328 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13331 CPPFLAGS="$save_CPPFLAGS"
13332 LDFLAGS="$save_LDFLAGS"
13337 case $lt_cv_dlopen_self in
13338 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13339 *) enable_dlopen_self=unknown ;;
13342 case $lt_cv_dlopen_self_static in
13343 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13344 *) enable_dlopen_self_static=unknown ;;
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13367 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13368 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13369 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13370 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13372 $as_echo "yes" >&6; }
13374 # FIXME - insert some real tests, host_os isn't really good enough
13377 if test -n "$STRIP" ; then
13378 striplib="$STRIP -x"
13379 old_striplib="$STRIP -S"
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13381 $as_echo "yes" >&6; }
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384 $as_echo "no" >&6; }
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13405 # Report which library types will actually be built
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13407 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13409 $as_echo "$can_build_shared" >&6; }
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13412 $as_echo_n "checking whether to build shared libraries... " >&6; }
13413 test "$can_build_shared" = "no" && enable_shared=no
13415 # On AIX, shared libraries and static libraries use the same namespace, and
13416 # are all built from PIC.
13419 test "$enable_shared" = yes && enable_static=no
13420 if test -n "$RANLIB"; then
13421 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13422 postinstall_cmds='$RANLIB $lib'
13427 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13428 test "$enable_shared" = yes && enable_static=no
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13433 $as_echo "$enable_shared" >&6; }
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13436 $as_echo_n "checking whether to build static libraries... " >&6; }
13437 # Make sure either enable_shared or enable_static is yes.
13438 test "$enable_shared" = yes || enable_static=yes
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13440 $as_echo "$enable_static" >&6; }
13447 ac_cpp='$CPP $CPPFLAGS'
13448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13468 ac_config_commands="$ac_config_commands libtool"
13473 # Only expand once:
13478 # Checks for header files.
13479 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
13481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13482 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13484 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13485 cat >>confdefs.h <<_ACEOF
13486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13495 # Using own tests for int64* because autoconf builtin only give 32bit.
13496 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13497 if test "x$ac_cv_type_int8_t" = xyes; then :
13501 cat >>confdefs.h <<_ACEOF
13502 #define int8_t signed char
13507 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13508 if test "x$ac_cv_type_int16_t" = xyes; then :
13512 cat >>confdefs.h <<_ACEOF
13513 #define int16_t short
13518 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13519 if test "x$ac_cv_type_int32_t" = xyes; then :
13523 cat >>confdefs.h <<_ACEOF
13524 #define int32_t int
13529 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13530 if test "x$ac_cv_type_int64_t" = xyes; then :
13534 cat >>confdefs.h <<_ACEOF
13535 #define int64_t long long
13540 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13541 if test "x$ac_cv_type_uint8_t" = xyes; then :
13545 cat >>confdefs.h <<_ACEOF
13546 #define uint8_t unsigned char
13551 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13552 if test "x$ac_cv_type_uint16_t" = xyes; then :
13556 cat >>confdefs.h <<_ACEOF
13557 #define uint16_t unsigned short
13562 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13563 if test "x$ac_cv_type_uint32_t" = xyes; then :
13567 cat >>confdefs.h <<_ACEOF
13568 #define uint32_t unsigned int
13573 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13574 if test "x$ac_cv_type_uint64_t" = xyes; then :
13578 cat >>confdefs.h <<_ACEOF
13579 #define uint64_t unsigned long long
13584 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13585 if test "x$ac_cv_type_size_t" = xyes; then :
13589 cat >>confdefs.h <<_ACEOF
13590 #define size_t unsigned int
13595 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13596 if test "x$ac_cv_type_ssize_t" = xyes; then :
13600 cat >>confdefs.h <<_ACEOF
13601 #define ssize_t int
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13607 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13608 if ${ac_cv_type_uid_t+:} false; then :
13609 $as_echo_n "(cached) " >&6
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13613 #include <sys/types.h>
13616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13617 $EGREP "uid_t" >/dev/null 2>&1; then :
13618 ac_cv_type_uid_t=yes
13620 ac_cv_type_uid_t=no
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13626 $as_echo "$ac_cv_type_uid_t" >&6; }
13627 if test $ac_cv_type_uid_t = no; then
13629 $as_echo "#define uid_t int" >>confdefs.h
13632 $as_echo "#define gid_t int" >>confdefs.h
13636 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13637 if test "x$ac_cv_type_pid_t" = xyes; then :
13641 cat >>confdefs.h <<_ACEOF
13647 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13648 if test "x$ac_cv_type_off_t" = xyes; then :
13652 cat >>confdefs.h <<_ACEOF
13653 #define off_t long int
13658 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
13659 $ac_includes_default
13660 #ifdef HAVE_WINSOCK2_H
13661 # include <winsock2.h>
13665 if test "x$ac_cv_type_u_char" = xyes; then :
13669 $as_echo "#define u_char unsigned char" >>confdefs.h
13673 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
13674 $ac_includes_default
13675 #ifdef HAVE_SYS_RESOURCE_H
13676 # include <sys/resource.h>
13680 if test "x$ac_cv_type_rlim_t" = xyes; then :
13684 $as_echo "#define rlim_t unsigned long" >>confdefs.h
13689 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13690 $ac_includes_default
13691 #ifdef HAVE_SYS_SOCKET_H
13692 # include <sys/socket.h>
13694 #ifdef HAVE_WS2TCPIP_H
13695 # include <ws2tcpip.h>
13699 if test "x$ac_cv_type_socklen_t" = xyes; then :
13703 $as_echo "#define socklen_t int" >>confdefs.h
13707 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
13708 $ac_includes_default
13709 #ifdef HAVE_SYS_TYPES_H
13710 # include <sys/types.h>
13712 #ifdef HAVE_NETINET_IN_H
13713 # include <netinet/in.h>
13717 if test "x$ac_cv_type_in_addr_t" = xyes; then :
13721 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
13725 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
13726 $ac_includes_default
13727 #ifdef HAVE_SYS_TYPES_H
13728 # include <sys/types.h>
13730 #ifdef HAVE_NETINET_IN_H
13731 # include <netinet/in.h>
13735 if test "x$ac_cv_type_in_port_t" = xyes; then :
13739 $as_echo "#define in_port_t uint16_t" >>confdefs.h
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
13744 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
13745 if test "$cross_compiling" = yes; then :
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
13747 $as_echo "cross-compile no" >&6; }
13749 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13751 case " $LIBOBJS " in
13752 *" memcmp.$ac_objext "* ) ;;
13753 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13763 #include <stdlib.h>
13764 #include <string.h>
13767 char a = 255, b = 0;
13768 if(memcmp(&a, &b, 1) < 0)
13774 if ac_fn_c_try_run "$LINENO"; then :
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13776 $as_echo "yes" >&6; }
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13779 $as_echo "no" >&6; }
13781 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13783 case " $LIBOBJS " in
13784 *" memcmp.$ac_objext "* ) ;;
13785 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13792 conftest.$ac_objext conftest.beam conftest.$ac_ext
13796 # add option to disable the evil rpath
13798 # Check whether --enable-rpath was given.
13799 if test "${enable_rpath+set}" = set; then :
13800 enableval=$enable_rpath; enable_rpath=$enableval
13805 if test "x$enable_rpath" = xno; then
13806 ac_config_commands="$ac_config_commands disable-rpath"
13812 # check to see if libraries are needed for these functions.
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
13814 $as_echo_n "checking for library containing inet_pton... " >&6; }
13815 if ${ac_cv_search_inet_pton+:} false; then :
13816 $as_echo_n "(cached) " >&6
13818 ac_func_search_save_LIBS=$LIBS
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13822 /* Override any GCC internal prototype to avoid an error.
13823 Use char because int might match the return type of a GCC
13824 builtin and then its argument prototype would still apply. */
13832 return inet_pton ();
13837 for ac_lib in '' nsl; do
13838 if test -z "$ac_lib"; then
13839 ac_res="none required"
13842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13844 if ac_fn_c_try_link "$LINENO"; then :
13845 ac_cv_search_inet_pton=$ac_res
13847 rm -f core conftest.err conftest.$ac_objext \
13849 if ${ac_cv_search_inet_pton+:} false; then :
13853 if ${ac_cv_search_inet_pton+:} false; then :
13856 ac_cv_search_inet_pton=no
13858 rm conftest.$ac_ext
13859 LIBS=$ac_func_search_save_LIBS
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
13862 $as_echo "$ac_cv_search_inet_pton" >&6; }
13863 ac_res=$ac_cv_search_inet_pton
13864 if test "$ac_res" != no; then :
13865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13870 $as_echo_n "checking for library containing socket... " >&6; }
13871 if ${ac_cv_search_socket+:} false; then :
13872 $as_echo_n "(cached) " >&6
13874 ac_func_search_save_LIBS=$LIBS
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13878 /* Override any GCC internal prototype to avoid an error.
13879 Use char because int might match the return type of a GCC
13880 builtin and then its argument prototype would still apply. */
13893 for ac_lib in '' socket; do
13894 if test -z "$ac_lib"; then
13895 ac_res="none required"
13898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13900 if ac_fn_c_try_link "$LINENO"; then :
13901 ac_cv_search_socket=$ac_res
13903 rm -f core conftest.err conftest.$ac_objext \
13905 if ${ac_cv_search_socket+:} false; then :
13909 if ${ac_cv_search_socket+:} false; then :
13912 ac_cv_search_socket=no
13914 rm conftest.$ac_ext
13915 LIBS=$ac_func_search_save_LIBS
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13918 $as_echo "$ac_cv_search_socket" >&6; }
13919 ac_res=$ac_cv_search_socket
13920 if test "$ac_res" != no; then :
13921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13926 # check wether strptime also works
13928 # check some functions of the OS before linking libs (while still runnable).
13929 for ac_header in unistd.h
13931 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13932 if test "x$ac_cv_header_unistd_h" = xyes; then :
13933 cat >>confdefs.h <<_ACEOF
13934 #define HAVE_UNISTD_H 1
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
13942 $as_echo_n "checking for working chown... " >&6; }
13943 if ${ac_cv_func_chown_works+:} false; then :
13944 $as_echo_n "(cached) " >&6
13946 if test "$cross_compiling" = yes; then :
13947 ac_cv_func_chown_works=no
13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h. */
13951 $ac_includes_default
13957 char *f = "conftest.chown";
13958 struct stat before, after;
13960 if (creat (f, 0600) < 0)
13962 if (stat (f, &before) < 0)
13964 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
13966 if (stat (f, &after) < 0)
13968 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
13974 if ac_fn_c_try_run "$LINENO"; then :
13975 ac_cv_func_chown_works=yes
13977 ac_cv_func_chown_works=no
13979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13980 conftest.$ac_objext conftest.beam conftest.$ac_ext
13983 rm -f conftest.chown
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
13987 $as_echo "$ac_cv_func_chown_works" >&6; }
13988 if test $ac_cv_func_chown_works = yes; then
13990 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
13994 for ac_header in vfork.h
13996 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13997 if test "x$ac_cv_header_vfork_h" = xyes; then :
13998 cat >>confdefs.h <<_ACEOF
13999 #define HAVE_VFORK_H 1
14006 for ac_func in fork vfork
14008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14010 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14011 cat >>confdefs.h <<_ACEOF
14012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14018 if test "x$ac_cv_func_fork" = xyes; then
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14020 $as_echo_n "checking for working fork... " >&6; }
14021 if ${ac_cv_func_fork_works+:} false; then :
14022 $as_echo_n "(cached) " >&6
14024 if test "$cross_compiling" = yes; then :
14025 ac_cv_func_fork_works=cross
14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h. */
14029 $ac_includes_default
14034 /* By Ruediger Kuhlmann. */
14035 return fork () < 0;
14041 if ac_fn_c_try_run "$LINENO"; then :
14042 ac_cv_func_fork_works=yes
14044 ac_cv_func_fork_works=no
14046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14047 conftest.$ac_objext conftest.beam conftest.$ac_ext
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14052 $as_echo "$ac_cv_func_fork_works" >&6; }
14055 ac_cv_func_fork_works=$ac_cv_func_fork
14057 if test "x$ac_cv_func_fork_works" = xcross; then
14059 *-*-amigaos* | *-*-msdosdjgpp*)
14060 # Override, as these systems have only a dummy fork() stub
14061 ac_cv_func_fork_works=no
14064 ac_cv_func_fork_works=yes
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14068 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14070 ac_cv_func_vfork_works=$ac_cv_func_vfork
14071 if test "x$ac_cv_func_vfork" = xyes; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14073 $as_echo_n "checking for working vfork... " >&6; }
14074 if ${ac_cv_func_vfork_works+:} false; then :
14075 $as_echo_n "(cached) " >&6
14077 if test "$cross_compiling" = yes; then :
14078 ac_cv_func_vfork_works=cross
14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h. */
14082 /* Thanks to Paul Eggert for this test. */
14083 $ac_includes_default
14084 #include <sys/wait.h>
14085 #ifdef HAVE_VFORK_H
14086 # include <vfork.h>
14088 /* On some sparc systems, changes by the child to local and incoming
14089 argument registers are propagated back to the parent. The compiler
14090 is told about this with #include <vfork.h>, but some compilers
14091 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14092 static variable whose address is put into a register that is
14093 clobbered by the vfork. */
14096 sparc_address_test (int arg)
14098 sparc_address_test (arg) int arg;
14101 static pid_t child;
14119 pid_t parent = getpid ();
14122 sparc_address_test (0);
14127 /* Here is another test for sparc vfork register problems. This
14128 test uses lots of local variables, at least as many local
14129 variables as main has allocated so far including compiler
14130 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14131 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14132 reuse the register of parent for one of the local variables,
14133 since it will think that parent can't possibly be used any more
14134 in this routine. Assigning to the local variable will thus
14135 munge parent in the parent process. */
14137 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14138 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14139 /* Convince the compiler that p..p7 are live; otherwise, it might
14140 use the same hardware register for all 8 local variables. */
14141 if (p != p1 || p != p2 || p != p3 || p != p4
14142 || p != p5 || p != p6 || p != p7)
14145 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14146 from child file descriptors. If the child closes a descriptor
14147 before it execs or exits, this munges the parent's descriptor
14148 as well. Test for this by closing stdout in the child. */
14149 _exit(close(fileno(stdout)) != 0);
14154 while (wait(&status) != child)
14157 /* Was there some problem with vforking? */
14160 /* Did the child fail? (This shouldn't happen.) */
14163 /* Did the vfork/compiler bug occur? */
14164 || parent != getpid()
14166 /* Did the file descriptor bug occur? */
14167 || fstat(fileno(stdout), &st) != 0
14172 if ac_fn_c_try_run "$LINENO"; then :
14173 ac_cv_func_vfork_works=yes
14175 ac_cv_func_vfork_works=no
14177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14178 conftest.$ac_objext conftest.beam conftest.$ac_ext
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14183 $as_echo "$ac_cv_func_vfork_works" >&6; }
14186 if test "x$ac_cv_func_fork_works" = xcross; then
14187 ac_cv_func_vfork_works=$ac_cv_func_vfork
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14189 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14192 if test "x$ac_cv_func_vfork_works" = xyes; then
14194 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14198 $as_echo "#define vfork fork" >>confdefs.h
14201 if test "x$ac_cv_func_fork_works" = xyes; then
14203 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14208 $as_echo_n "checking return type of signal handlers... " >&6; }
14209 if ${ac_cv_type_signal+:} false; then :
14210 $as_echo_n "(cached) " >&6
14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213 /* end confdefs.h. */
14214 #include <sys/types.h>
14215 #include <signal.h>
14220 return *(signal (0, 0)) (0) == 1;
14225 if ac_fn_c_try_compile "$LINENO"; then :
14226 ac_cv_type_signal=int
14228 ac_cv_type_signal=void
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14233 $as_echo "$ac_cv_type_signal" >&6; }
14235 cat >>confdefs.h <<_ACEOF
14236 #define RETSIGTYPE $ac_cv_type_signal
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14241 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14242 if ${ac_cv_sys_largefile_source+:} false; then :
14243 $as_echo_n "(cached) " >&6
14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14248 #include <sys/types.h> /* for off_t */
14253 int (*fp) (FILE *, off_t, int) = fseeko;
14254 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14259 if ac_fn_c_try_link "$LINENO"; then :
14260 ac_cv_sys_largefile_source=no; break
14262 rm -f core conftest.err conftest.$ac_objext \
14263 conftest$ac_exeext conftest.$ac_ext
14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h. */
14266 #define _LARGEFILE_SOURCE 1
14267 #include <sys/types.h> /* for off_t */
14272 int (*fp) (FILE *, off_t, int) = fseeko;
14273 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14278 if ac_fn_c_try_link "$LINENO"; then :
14279 ac_cv_sys_largefile_source=1; break
14281 rm -f core conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
14283 ac_cv_sys_largefile_source=unknown
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14288 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14289 case $ac_cv_sys_largefile_source in #(
14292 cat >>confdefs.h <<_ACEOF
14293 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14299 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14300 # in glibc 2.1.3, but that breaks too many other things.
14301 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14302 if test $ac_cv_sys_largefile_source != unknown; then
14304 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14309 # Check whether --enable-largefile was given.
14310 if test "${enable_largefile+set}" = set; then :
14311 enableval=$enable_largefile;
14314 if test "$enable_largefile" != no; then
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14317 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14318 if ${ac_cv_sys_largefile_CC+:} false; then :
14319 $as_echo_n "(cached) " >&6
14321 ac_cv_sys_largefile_CC=no
14322 if test "$GCC" != yes; then
14325 # IRIX 6.2 and later do not support large files by default,
14326 # so use the C compiler's -n32 option if that helps.
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14329 #include <sys/types.h>
14330 /* Check that off_t can represent 2**63 - 1 correctly.
14331 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14332 since some C++ compilers masquerading as C compilers
14333 incorrectly reject 9223372036854775807. */
14334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14336 && LARGE_OFF_T % 2147483647 == 1)
14346 if ac_fn_c_try_compile "$LINENO"; then :
14349 rm -f core conftest.err conftest.$ac_objext
14351 if ac_fn_c_try_compile "$LINENO"; then :
14352 ac_cv_sys_largefile_CC=' -n32'; break
14354 rm -f core conftest.err conftest.$ac_objext
14358 rm -f conftest.$ac_ext
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14362 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14363 if test "$ac_cv_sys_largefile_CC" != no; then
14364 CC=$CC$ac_cv_sys_largefile_CC
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14368 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14369 if ${ac_cv_sys_file_offset_bits+:} false; then :
14370 $as_echo_n "(cached) " >&6
14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374 /* end confdefs.h. */
14375 #include <sys/types.h>
14376 /* Check that off_t can represent 2**63 - 1 correctly.
14377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14378 since some C++ compilers masquerading as C compilers
14379 incorrectly reject 9223372036854775807. */
14380 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14382 && LARGE_OFF_T % 2147483647 == 1)
14392 if ac_fn_c_try_compile "$LINENO"; then :
14393 ac_cv_sys_file_offset_bits=no; break
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14398 #define _FILE_OFFSET_BITS 64
14399 #include <sys/types.h>
14400 /* Check that off_t can represent 2**63 - 1 correctly.
14401 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14402 since some C++ compilers masquerading as C compilers
14403 incorrectly reject 9223372036854775807. */
14404 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14406 && LARGE_OFF_T % 2147483647 == 1)
14416 if ac_fn_c_try_compile "$LINENO"; then :
14417 ac_cv_sys_file_offset_bits=64; break
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420 ac_cv_sys_file_offset_bits=unknown
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14425 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14426 case $ac_cv_sys_file_offset_bits in #(
14429 cat >>confdefs.h <<_ACEOF
14430 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14435 if test $ac_cv_sys_file_offset_bits = unknown; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14437 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14438 if ${ac_cv_sys_large_files+:} false; then :
14439 $as_echo_n "(cached) " >&6
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444 #include <sys/types.h>
14445 /* Check that off_t can represent 2**63 - 1 correctly.
14446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14447 since some C++ compilers masquerading as C compilers
14448 incorrectly reject 9223372036854775807. */
14449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14451 && LARGE_OFF_T % 2147483647 == 1)
14461 if ac_fn_c_try_compile "$LINENO"; then :
14462 ac_cv_sys_large_files=no; break
14464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h. */
14467 #define _LARGE_FILES 1
14468 #include <sys/types.h>
14469 /* Check that off_t can represent 2**63 - 1 correctly.
14470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14471 since some C++ compilers masquerading as C compilers
14472 incorrectly reject 9223372036854775807. */
14473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14475 && LARGE_OFF_T % 2147483647 == 1)
14485 if ac_fn_c_try_compile "$LINENO"; then :
14486 ac_cv_sys_large_files=1; break
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489 ac_cv_sys_large_files=unknown
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14494 $as_echo "$ac_cv_sys_large_files" >&6; }
14495 case $ac_cv_sys_large_files in #(
14498 cat >>confdefs.h <<_ACEOF
14499 #define _LARGE_FILES $ac_cv_sys_large_files
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14513 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14514 cache=_D_LARGEFILE_SOURCE_1
14515 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
14516 $as_echo_n "(cached) " >&6
14522 int a = fseeko(stdin, 0, 0);
14526 echo 'void f(){}' >>conftest.c
14527 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14528 eval "cv_prog_cc_flag_needed_$cache=no"
14531 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14532 eval "cv_prog_cc_flag_needed_$cache=yes"
14534 eval "cv_prog_cc_flag_needed_$cache=fail"
14535 #echo 'Test with flag fails too!'
14537 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14538 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14543 rm -f conftest conftest.c conftest.o
14547 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14549 $as_echo "yes" >&6; }
14551 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
14553 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14555 $as_echo "no" >&6; }
14556 #echo 'Test with flag is no!'
14558 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14559 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14565 $as_echo "failed" >&6; }
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14574 $as_echo_n "checking if nonblocking sockets work... " >&6; }
14575 if echo $target | grep mingw32 >/dev/null; then
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14577 $as_echo "no (windows)" >&6; }
14579 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14582 if test "$cross_compiling" = yes; then :
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
14585 $as_echo "crosscompile(yes)" >&6; }
14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14593 #include <string.h>
14594 #include <stdlib.h>
14597 #ifdef HAVE_SYS_TYPES_H
14598 #include <sys/types.h>
14600 #ifdef HAVE_SYS_SOCKET_H
14601 #include <sys/socket.h>
14603 #ifdef HAVE_NETINET_IN_H
14604 #include <netinet/in.h>
14606 #ifdef HAVE_ARPA_INET_H
14607 #include <arpa/inet.h>
14609 #ifdef HAVE_UNISTD_H
14610 #include <unistd.h>
14622 struct sockaddr_in a;
14623 /* test if select and nonblocking reads work well together */
14625 fork child to send 10 messages.
14627 then try to nonblocking read the 10 messages
14628 then, nonblocking read must give EAGAIN
14631 port = 12345 + (time(0)%32);
14632 sfd = socket(PF_INET, SOCK_DGRAM, 0);
14637 memset(&a, 0, sizeof(a));
14638 a.sin_family = AF_INET;
14639 a.sin_port = htons(port);
14640 a.sin_addr.s_addr = inet_addr("127.0.0.1");
14641 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14645 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
14650 cfd = socket(PF_INET, SOCK_DGRAM, 0);
14652 perror("client socket");
14656 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14657 perror("client bind");
14660 a.sin_port = htons(port);
14662 /* no handler, causes exit in 10 seconds */
14665 /* send and receive on the socket */
14666 if((p=fork()) == 0) {
14667 for(i=0; i<num; i++) {
14668 if(sendto(cfd, &i, sizeof(i), 0,
14669 (struct sockaddr*)&a, sizeof(a)) < 0) {
14683 FD_SET(sfd, &rset);
14684 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
14690 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
14691 if(errno == EAGAIN)
14698 /* now we want to get EAGAIN: nonblocking goodness */
14700 recv(sfd, &x, sizeof(x), 0);
14701 if(errno != EAGAIN) {
14702 perror("trying to recv again");
14705 /* EAGAIN encountered */
14714 if ac_fn_c_try_run "$LINENO"; then :
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14717 $as_echo "yes" >&6; }
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722 $as_echo "no" >&6; }
14724 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14729 conftest.$ac_objext conftest.beam conftest.$ac_ext
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
14736 $as_echo_n "checking whether mkdir has one arg... " >&6; }
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14741 #include <unistd.h>
14742 #ifdef HAVE_WINSOCK2_H
14743 #include <winsock2.h>
14745 #ifdef HAVE_SYS_STAT_H
14746 #include <sys/stat.h>
14753 (void)mkdir("directory");
14759 if ac_fn_c_try_compile "$LINENO"; then :
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14761 $as_echo "yes" >&6; }
14763 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14768 $as_echo "no" >&6; }
14771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773 for ac_func in strptime
14775 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
14776 if test "x$ac_cv_func_strptime" = xyes; then :
14777 cat >>confdefs.h <<_ACEOF
14778 #define HAVE_STRPTIME 1
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
14782 $as_echo_n "checking whether strptime works... " >&6; }
14783 if test c${cross_compiling} = cno; then
14784 if test "$cross_compiling" = yes; then :
14785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14787 as_fn_error $? "cannot run test program while cross compiling
14788 See \`config.log' for more details" "$LINENO" 5; }
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14793 #define _XOPEN_SOURCE
14795 int main(void) { struct tm tm; char *res;
14796 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);
14797 if (!res) return 2;
14798 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
14799 if (!res) return 1; return 0; }
14802 if ac_fn_c_try_run "$LINENO"; then :
14803 eval "ac_cv_c_strptime_works=yes"
14805 eval "ac_cv_c_strptime_works=no"
14807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14808 conftest.$ac_objext conftest.beam conftest.$ac_ext
14812 eval "ac_cv_c_strptime_works=maybe"
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
14815 $as_echo "$ac_cv_c_strptime_works" >&6; }
14816 if test $ac_cv_c_strptime_works = no; then
14817 case " $LIBOBJS " in
14818 *" strptime.$ac_objext "* ) ;;
14819 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
14825 cat >>confdefs.h <<_ACEOF
14826 #define STRPTIME_WORKS 1
14832 case " $LIBOBJS " in
14833 *" strptime.$ac_objext "* ) ;;
14834 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
14842 # set memory allocation checking if requested
14843 # Check whether --enable-alloc-checks was given.
14844 if test "${enable_alloc_checks+set}" = set; then :
14845 enableval=$enable_alloc_checks;
14848 # Check whether --enable-alloc-lite was given.
14849 if test "${enable_alloc_lite+set}" = set; then :
14850 enableval=$enable_alloc_lite;
14853 # Check whether --enable-alloc-nonregional was given.
14854 if test "${enable_alloc_nonregional+set}" = set; then :
14855 enableval=$enable_alloc_nonregional;
14858 if test x_$enable_alloc_nonregional = x_yes; then
14860 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
14863 if test x_$enable_alloc_checks = x_yes; then
14865 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
14868 if test x_$enable_alloc_lite = x_yes; then
14870 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14875 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14876 if test "$cross_compiling" = yes; then :
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
14878 $as_echo "no (crosscompile)" >&6; }
14879 case " $LIBOBJS " in
14880 *" malloc.$ac_objext "* ) ;;
14881 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14886 cat >>confdefs.h <<_ACEOF
14887 #define malloc rpl_malloc_unbound
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14893 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14894 #include <stdlib.h>
14902 if(malloc(0) != 0) return 1;
14908 if ac_fn_c_try_run "$LINENO"; then :
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14910 $as_echo "no" >&6; }
14911 case " $LIBOBJS " in
14912 *" malloc.$ac_objext "* ) ;;
14913 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14918 cat >>confdefs.h <<_ACEOF
14919 #define malloc rpl_malloc_unbound
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14924 $as_echo "yes" >&6; }
14926 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
14929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14930 conftest.$ac_objext conftest.beam conftest.$ac_ext
14937 # check windows threads (we use them, not pthreads, on windows).
14938 if test "$on_mingw" = "yes"; then
14939 # check windows threads
14940 for ac_header in windows.h
14942 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
14944 if test "x$ac_cv_header_windows_h" = xyes; then :
14945 cat >>confdefs.h <<_ACEOF
14946 #define HAVE_WINDOWS_H 1
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
14954 $as_echo_n "checking for CreateThread... " >&6; }
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14958 #ifdef HAVE_WINDOWS_H
14959 #include <windows.h>
14966 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
14972 if ac_fn_c_try_compile "$LINENO"; then :
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14974 $as_echo "yes" >&6; }
14976 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14981 $as_echo "no" >&6; }
14984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14987 # not on mingw, check thread libraries.
14989 # check for thread library.
14990 # check this first, so that the pthread lib does not get linked in via
14991 # libssl or libpython, and thus distorts the tests, and we end up using
14992 # the non-threadsafe C libraries.
14994 # Check whether --with-pthreads was given.
14995 if test "${with_pthreads+set}" = set; then :
14996 withval=$with_pthreads;
15001 ub_have_pthreads=no
15002 if test x_$withval != x_no; then
15007 ac_cpp='$CPP $CPPFLAGS'
15008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15014 # We used to check for pthread.h first, but this fails if pthread.h
15015 # requires special compiler flags (e.g. on True64 or Sequent).
15016 # It gets checked for in the link test anyway.
15018 # First of all, check if the user has set any of the PTHREAD_LIBS,
15019 # etcetera environment variables, and if threads linking works using
15021 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15022 save_CFLAGS="$CFLAGS"
15023 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15025 LIBS="$PTHREAD_LIBS $LIBS"
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15027 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15031 /* Override any GCC internal prototype to avoid an error.
15032 Use char because int might match the return type of a GCC
15033 builtin and then its argument prototype would still apply. */
15037 char pthread_join ();
15041 return pthread_join ();
15046 if ac_fn_c_try_link "$LINENO"; then :
15049 rm -f core conftest.err conftest.$ac_objext \
15050 conftest$ac_exeext conftest.$ac_ext
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15052 $as_echo "$acx_pthread_ok" >&6; }
15053 if test x"$acx_pthread_ok" = xno; then
15058 CFLAGS="$save_CFLAGS"
15061 # We must check for the threads library under a number of different
15062 # names; the ordering is very important because some systems
15063 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15064 # libraries is broken (non-POSIX).
15066 # Create a list of thread flags to try. Items starting with a "-" are
15067 # C compiler flags, and other items are library names, except for "none"
15068 # which indicates that we try without any flags at all, and "pthread-config"
15069 # which is a program returning the flags for the Pth emulation library.
15071 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15073 # The ordering *is* (sometimes) important. Some notes on the
15074 # individual items follow:
15076 # pthreads: AIX (must check this before -lpthread)
15077 # none: in case threads are in libc; should be tried before -Kthread and
15078 # other compiler flags to prevent continual compiler warnings
15079 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15080 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15081 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15082 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15083 # -pthreads: Solaris/gcc
15084 # -mthreads: Mingw32/gcc, Lynx/gcc
15085 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15086 # doesn't hurt to check since this sometimes defines pthreads too;
15087 # also defines -D_REENTRANT)
15088 # ... -mt is also the pthreads flag for HP/aCC
15089 # pthread: Linux, etcetera
15090 # --thread-safe: KAI C++
15091 # pthread-config: use pthread-config program (for GNU Pth library)
15093 case "${host_cpu}-${host_os}" in
15096 # On Solaris (at least, for some versions), libc contains stubbed
15097 # (non-functional) versions of the pthreads routines, so link-based
15098 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15099 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15100 # a function called by this macro, so we could check for that, but
15101 # who knows whether they'll stub that too in a future libc.) So,
15102 # we'll just look for -pthreads and -lpthread first:
15104 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15108 if test x"$acx_pthread_ok" = xno; then
15109 for flag in $acx_pthread_flags; do
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15114 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15119 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15120 PTHREAD_CFLAGS="$flag"
15124 # Extract the first word of "pthread-config", so it can be a program name with args.
15125 set dummy pthread-config; ac_word=$2
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15127 $as_echo_n "checking for $ac_word... " >&6; }
15128 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15129 $as_echo_n "(cached) " >&6
15131 if test -n "$acx_pthread_config"; then
15132 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15135 for as_dir in $PATH
15138 test -z "$as_dir" && as_dir=.
15139 for ac_exec_ext in '' $ac_executable_extensions; do
15140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15141 ac_cv_prog_acx_pthread_config="yes"
15142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15149 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15152 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15153 if test -n "$acx_pthread_config"; then
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15155 $as_echo "$acx_pthread_config" >&6; }
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15158 $as_echo "no" >&6; }
15162 if test x"$acx_pthread_config" = xno; then continue; fi
15163 PTHREAD_CFLAGS="`pthread-config --cflags`"
15164 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15169 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15170 PTHREAD_LIBS="-l$flag"
15175 save_CFLAGS="$CFLAGS"
15176 LIBS="$PTHREAD_LIBS $LIBS"
15177 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15179 # Check for various functions. We must include pthread.h,
15180 # since some functions may be macros. (On the Sequent, we
15181 # need a special flag -Kthread to make this header compile.)
15182 # We check for pthread_join because it is in -lpthread on IRIX
15183 # while pthread_create is in libc. We check for pthread_attr_init
15184 # due to DEC craziness with -lpthreads. We check for
15185 # pthread_cleanup_push because it is one of the few pthread
15186 # functions on Solaris that doesn't have a non-functional libc stub.
15187 # We try pthread_create on general principles.
15188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h. */
15190 #include <pthread.h>
15194 pthread_t th; pthread_join(th, 0);
15195 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15196 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15201 if ac_fn_c_try_link "$LINENO"; then :
15204 rm -f core conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
15208 CFLAGS="$save_CFLAGS"
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15211 $as_echo "$acx_pthread_ok" >&6; }
15212 if test "x$acx_pthread_ok" = xyes; then
15221 # Various other checks:
15222 if test "x$acx_pthread_ok" = xyes; then
15224 LIBS="$PTHREAD_LIBS $LIBS"
15225 save_CFLAGS="$CFLAGS"
15226 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15228 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15230 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15232 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234 /* end confdefs.h. */
15235 #include <pthread.h>
15239 int attr=$attr; return attr;
15244 if ac_fn_c_try_link "$LINENO"; then :
15245 attr_name=$attr; break
15247 rm -f core conftest.err conftest.$ac_objext \
15248 conftest$ac_exeext conftest.$ac_ext
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15251 $as_echo "$attr_name" >&6; }
15252 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15254 cat >>confdefs.h <<_ACEOF
15255 #define PTHREAD_CREATE_JOINABLE $attr_name
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15261 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15263 case "${host_cpu}-${host_os}" in
15264 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15265 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15268 $as_echo "${flag}" >&6; }
15269 if test "x$flag" != xno; then
15270 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15274 CFLAGS="$save_CFLAGS"
15276 # More AIX lossage: must compile with xlc_r or cc_r
15277 if test x"$GCC" != xyes; then
15278 for ac_prog in xlc_r cc_r
15280 # Extract the first word of "$ac_prog", so it can be a program name with args.
15281 set dummy $ac_prog; ac_word=$2
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15283 $as_echo_n "checking for $ac_word... " >&6; }
15284 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15285 $as_echo_n "(cached) " >&6
15287 if test -n "$PTHREAD_CC"; then
15288 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15291 for as_dir in $PATH
15294 test -z "$as_dir" && as_dir=.
15295 for ac_exec_ext in '' $ac_executable_extensions; do
15296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15297 ac_cv_prog_PTHREAD_CC="$ac_prog"
15298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15307 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15308 if test -n "$PTHREAD_CC"; then
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15310 $as_echo "$PTHREAD_CC" >&6; }
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15313 $as_echo "no" >&6; }
15317 test -n "$PTHREAD_CC" && break
15319 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15332 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15333 if test x"$acx_pthread_ok" = xyes; then
15336 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15338 LIBS="$PTHREAD_LIBS $LIBS"
15339 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15341 ub_have_pthreads=yes
15342 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15344 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
15346 cat >>confdefs.h <<_ACEOF
15347 #define HAVE_PTHREAD_SPINLOCK_T 1
15352 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15354 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15356 cat >>confdefs.h <<_ACEOF
15357 #define HAVE_PTHREAD_RWLOCK_T 1
15370 ac_cpp='$CPP $CPPFLAGS'
15371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15378 # check solaris thread library
15380 # Check whether --with-solaris-threads was given.
15381 if test "${with_solaris_threads+set}" = set; then :
15382 withval=$with_solaris_threads;
15387 ub_have_sol_threads=no
15388 if test x_$withval != x_no; then
15389 if test x_$ub_have_pthreads != x_no; then
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15391 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15394 $as_echo_n "checking for library containing thr_create... " >&6; }
15395 if ${ac_cv_search_thr_create+:} false; then :
15396 $as_echo_n "(cached) " >&6
15398 ac_func_search_save_LIBS=$LIBS
15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h. */
15402 /* Override any GCC internal prototype to avoid an error.
15403 Use char because int might match the return type of a GCC
15404 builtin and then its argument prototype would still apply. */
15408 char thr_create ();
15412 return thr_create ();
15417 for ac_lib in '' thread; do
15418 if test -z "$ac_lib"; then
15419 ac_res="none required"
15422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15424 if ac_fn_c_try_link "$LINENO"; then :
15425 ac_cv_search_thr_create=$ac_res
15427 rm -f core conftest.err conftest.$ac_objext \
15429 if ${ac_cv_search_thr_create+:} false; then :
15433 if ${ac_cv_search_thr_create+:} false; then :
15436 ac_cv_search_thr_create=no
15438 rm conftest.$ac_ext
15439 LIBS=$ac_func_search_save_LIBS
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15442 $as_echo "$ac_cv_search_thr_create" >&6; }
15443 ac_res=$ac_cv_search_thr_create
15444 if test "$ac_res" != no; then :
15445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15448 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15454 $as_echo_n "checking whether $CC supports -mt... " >&6; }
15455 cache=`echo mt | sed 'y%.=/+-%___p_%'`
15456 if eval \${cv_prog_cc_flag_$cache+:} false; then :
15457 $as_echo_n "(cached) " >&6
15460 echo 'void f(){}' >conftest.c
15461 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15462 eval "cv_prog_cc_flag_$cache=yes"
15464 eval "cv_prog_cc_flag_$cache=no"
15466 rm -f conftest conftest.o conftest.c
15470 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15472 $as_echo "yes" >&6; }
15474 CFLAGS="$CFLAGS -mt"
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15477 $as_echo "no" >&6; }
15479 CFLAGS="$CFLAGS -D_REENTRANT"
15482 ub_have_sol_threads=yes
15486 as_fn_error $? "no solaris threads found." "$LINENO" 5
15493 fi # end of non-mingw check of thread libraries
15495 # Check for PyUnbound
15497 # Check whether --with-pyunbound was given.
15498 if test "${with_pyunbound+set}" = set; then :
15499 withval=$with_pyunbound;
15506 ub_with_pyunbound=no
15507 if test x_$withval != x_no; then
15508 ub_with_pyunbound=yes
15512 # Check for Python module
15514 # Check whether --with-pythonmodule was given.
15515 if test "${with_pythonmodule+set}" = set; then :
15516 withval=$with_pythonmodule;
15522 ub_with_pythonmod=no
15523 if test x_$withval != x_no; then
15524 ub_with_pythonmod=yes
15528 # Check for Python & SWIG only on PyUnbound or PyModule
15529 if test x_$ub_test_python != x_no; then
15533 ac_save_LIBS="$LIBS"
15535 # Allow the use of a (user set) custom python version
15539 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15540 set dummy python$PYTHON_VERSION; ac_word=$2
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15542 $as_echo_n "checking for $ac_word... " >&6; }
15543 if ${ac_cv_path_PYTHON+:} false; then :
15544 $as_echo_n "(cached) " >&6
15548 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15552 for as_dir in $PATH
15555 test -z "$as_dir" && as_dir=.
15556 for ac_exec_ext in '' $ac_executable_extensions; do
15557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15558 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15569 PYTHON=$ac_cv_path_PYTHON
15570 if test -n "$PYTHON"; then
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15572 $as_echo "$PYTHON" >&6; }
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15575 $as_echo "no" >&6; }
15579 if test -z "$PYTHON"; then
15580 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15584 if test -z "$PYTHON_VERSION"; then
15585 PYTHON_VERSION=`$PYTHON -c "import sys, string; \
15586 print string.split(sys.version)[0]"`
15590 # Check for a version of Python >= 2.1.0
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
15593 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
15594 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15595 ver = string.split(sys.version)[0]; \
15596 print ver >= '2.1.0'"`
15597 if test "$ac_supports_python_ver" != "True"; then
15598 if test -z "$PYTHON_NOVERSIONCHECK"; then
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15600 $as_echo "no" >&6; }
15601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15604 This version of the AC_PYTHON_DEVEL macro
15605 doesn't work properly with versions of Python before
15606 2.1.0. You may need to re-run configure, setting the
15607 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
15608 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
15609 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
15610 to something else than an empty string.
15612 See \`config.log' for more details" "$LINENO" 5; }
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
15615 $as_echo "skip at user request" >&6; }
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15619 $as_echo "yes" >&6; }
15623 # if the macro parameter ``version'' is set, honour it
15625 if test -n ""; then
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
15627 $as_echo_n "checking for a version of Python ... " >&6; }
15628 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15629 ver = string.split(sys.version)[0]; \
15631 if test "$ac_supports_python_ver" = "True"; then
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15633 $as_echo "yes" >&6; }
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15636 $as_echo "no" >&6; }
15637 as_fn_error $? "this package requires Python .
15638 If you have it installed, but it isn't the default Python
15639 interpreter in your system path, please pass the PYTHON_VERSION
15640 variable to configure. See \`\`configure --help'' for reference.
15647 # Check if you have distutils, else fail
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15650 $as_echo_n "checking for the distutils Python package... " >&6; }
15651 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15652 if test -z "$ac_distutils_result"; then
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15654 $as_echo "yes" >&6; }
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15657 $as_echo "no" >&6; }
15658 as_fn_error $? "cannot import Python module \"distutils\".
15659 Please check your Python installation. The error was:
15660 $ac_distutils_result" "$LINENO" 5
15665 # Check for Python include path
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15668 $as_echo_n "checking for Python include path... " >&6; }
15669 if test -z "$PYTHON_CPPFLAGS"; then
15670 python_path=`$PYTHON -c "import distutils.sysconfig; \
15671 print distutils.sysconfig.get_python_inc();"`
15672 if test -n "${python_path}"; then
15673 python_path="-I$python_path"
15675 PYTHON_CPPFLAGS=$python_path
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15678 $as_echo "$PYTHON_CPPFLAGS" >&6; }
15682 # Check for Python library path
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15685 $as_echo_n "checking for Python library path... " >&6; }
15686 if test -z "$PYTHON_LDFLAGS"; then
15687 # (makes two attempts to ensure we've got a version number
15688 # from the interpreter)
15689 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
15690 from string import join; \
15691 print join(get_config_vars('VERSION'))"`
15692 if test "$py_version" = "None"; then
15693 if test -n "$PYTHON_VERSION"; then
15694 py_version=$PYTHON_VERSION
15696 py_version=`$PYTHON -c "import sys; \
15697 print sys.version[:3]"`
15701 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
15702 from string import join; \
15703 print '-L' + get_python_lib(0,1), \
15704 '-L' + os.path.dirname(get_python_lib(0,1)), \
15705 '-lpython';"`$py_version
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
15708 $as_echo "$PYTHON_LDFLAGS" >&6; }
15712 # Check for site packages
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15715 $as_echo_n "checking for Python site-packages path... " >&6; }
15716 if test -z "$PYTHON_SITE_PKG"; then
15717 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15718 print distutils.sysconfig.get_python_lib(1,0);"`
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15721 $as_echo "$PYTHON_SITE_PKG" >&6; }
15725 # libraries which must be linked in when embedding
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
15728 $as_echo_n "checking python extra libraries... " >&6; }
15729 if test -z "$PYTHON_EXTRA_LIBS"; then
15730 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
15731 conf = distutils.sysconfig.get_config_var; \
15732 print conf('LOCALMODLIBS'), conf('LIBS')"`
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
15735 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
15739 # linking flags needed when embedding
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
15742 $as_echo_n "checking python extra linking flags... " >&6; }
15743 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
15744 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
15745 conf = distutils.sysconfig.get_config_var; \
15746 print conf('LINKFORSHARED')"`
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
15749 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
15753 # final check to see if everything compiles alright
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
15756 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
15758 ac_cpp='$CPP $CPPFLAGS'
15759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15763 # save current global flags
15764 ac_save_LIBS="$LIBS"
15765 ac_save_CPPFLAGS="$CPPFLAGS"
15767 LIBS="$LIBS $PYTHON_LDFLAGS"
15768 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770 /* end confdefs.h. */
15772 #include <Python.h>
15784 if ac_fn_c_try_link "$LINENO"; then :
15789 rm -f core conftest.err conftest.$ac_objext \
15790 conftest$ac_exeext conftest.$ac_ext
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
15793 $as_echo "$pythonexists" >&6; }
15795 if test ! "$pythonexists" = "yes"; then
15797 Could not link test program to Python. Maybe the main Python library has been
15798 installed in some non-standard library path. If so, pass it to configure,
15799 via the LDFLAGS environment variable.
15800 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
15801 ============================================================================
15803 You probably have to install the development version of the Python package
15804 for your distribution. The exact name of this package varies among them.
15805 ============================================================================
15810 ac_cpp='$CPP $CPPFLAGS'
15811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15815 # turn back to default flags
15816 CPPFLAGS="$ac_save_CPPFLAGS"
15817 LIBS="$ac_save_LIBS"
15823 if test ! -z "$PYTHON_VERSION"; then
15824 if test `$PYTHON -c "print '$PYTHON_VERSION' >= '2.4.0'"` = "False"; then
15825 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
15830 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
15832 LIBS="$PYTHON_LDFLAGS $LIBS"
15833 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15839 # Extract the first word of "swig", so it can be a program name with args.
15840 set dummy swig; ac_word=$2
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15842 $as_echo_n "checking for $ac_word... " >&6; }
15843 if ${ac_cv_path_SWIG+:} false; then :
15844 $as_echo_n "(cached) " >&6
15848 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
15851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15852 for as_dir in $PATH
15855 test -z "$as_dir" && as_dir=.
15856 for ac_exec_ext in '' $ac_executable_extensions; do
15857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15858 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
15859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15869 SWIG=$ac_cv_path_SWIG
15870 if test -n "$SWIG"; then
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
15872 $as_echo "$SWIG" >&6; }
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15875 $as_echo "no" >&6; }
15879 if test -z "$SWIG" ; then
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
15881 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
15882 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
15883 elif test -n "" ; then
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
15885 $as_echo_n "checking for SWIG version... " >&6; }
15886 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'`
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
15888 $as_echo "$swig_version" >&6; }
15889 if test -n "$swig_version" ; then
15890 # Calculate the required version number components
15892 required_major=`echo $required | sed 's/[^0-9].*//'`
15893 if test -z "$required_major" ; then
15896 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15897 required_minor=`echo $required | sed 's/[^0-9].*//'`
15898 if test -z "$required_minor" ; then
15901 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15902 required_patch=`echo $required | sed 's/[^0-9].*//'`
15903 if test -z "$required_patch" ; then
15906 # Calculate the available version number components
15907 available=$swig_version
15908 available_major=`echo $available | sed 's/[^0-9].*//'`
15909 if test -z "$available_major" ; then
15912 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15913 available_minor=`echo $available | sed 's/[^0-9].*//'`
15914 if test -z "$available_minor" ; then
15917 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15918 available_patch=`echo $available | sed 's/[^0-9].*//'`
15919 if test -z "$available_patch" ; then
15922 if test $available_major -ne $required_major \
15923 -o $available_minor -ne $required_minor \
15924 -o $available_patch -lt $required_patch ; then
15925 { $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
15926 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
15927 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
15930 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
15931 SWIG_LIB=`$SWIG -swiglib`
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
15933 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
15937 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
15938 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
15944 $as_echo_n "checking SWIG... " >&6; }
15945 if test ! -x "$SWIG"; then
15946 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
15949 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
15954 $as_echo "present" >&6; }
15956 # If have Python & SWIG
15957 # Declare PythonMod
15958 if test x_$ub_with_pythonmod != x_no; then
15960 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
15962 WITH_PYTHONMODULE=yes
15964 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
15966 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
15968 PYTHONMOD_INSTALL=pythonmod-install
15970 PYTHONMOD_UNINSTALL=pythonmod-uninstall
15974 # Declare PyUnbound
15975 if test x_$ub_with_pyunbound != x_no; then
15977 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
15981 PYUNBOUND_OBJ="libunbound_wrap.lo"
15983 PYUNBOUND_TARGET="_unbound.la"
15985 PYUNBOUND_INSTALL=pyunbound-install
15987 PYUNBOUND_UNINSTALL=pyunbound-uninstall
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
15993 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
15994 ub_with_pyunbound=no
15995 ub_with_pythonmod=no
15999 if test "`uname`" = "NetBSD"; then
16000 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16003 CONFIG_DATE=`date +%Y%m%d`
16006 # Checks for libraries.
16011 # Check whether --with-nss was given.
16012 if test "${with_nss+set}" = set; then :
16016 $as_echo "#define HAVE_NSS 1" >>confdefs.h
16018 if test "$withval" != "" -a "$withval" != "yes"; then
16019 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
16020 LDFLAGS="$LDFLAGS -L$withval/lib"
16022 if test "x$enable_rpath" = xyes; then
16023 if echo "$withval/lib" | grep "^/" >/dev/null; then
16024 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16028 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16030 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
16031 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16033 LIBS="$LIBS -lnss3 -lnspr4"
16040 if test $USE_NSS = "no"; then
16043 # Check whether --with-ssl was given.
16044 if test "${with_ssl+set}" = set; then :
16053 if test x_$withval = x_no; then
16054 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
16058 if test x_$withval != x_no; then
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16060 $as_echo_n "checking for SSL... " >&6; }
16061 if test x_$withval = x_ -o x_$withval = x_yes; then
16062 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16064 for dir in $withval; do
16066 if test -f "$dir/include/openssl/ssl.h"; then
16069 cat >>confdefs.h <<_ACEOF
16070 #define HAVE_SSL /**/
16073 if test "$ssldir" != "/usr"; then
16074 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16075 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16080 if test x_$found_ssl != x_yes; then
16081 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16084 $as_echo "found in $ssldir" >&6; }
16086 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16087 LDFLAGS="$LDFLAGS -L$ssldir/lib"
16088 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16090 if test "x$enable_rpath" = xyes; then
16091 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16092 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16099 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16100 LIBS="$LIBS -lcrypto"
16101 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h. */
16109 int HMAC_CTX_init(void);
16110 (void)HMAC_CTX_init();
16116 if ac_fn_c_try_link "$LINENO"; then :
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16119 $as_echo "yes" >&6; }
16121 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16127 $as_echo "no" >&6; }
16128 # check if -lwsock32 or -lgdi32 are needed.
16130 BAKSSLLIBS="$LIBSSL_LIBS"
16131 LIBS="$LIBS -lgdi32"
16132 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16134 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136 /* end confdefs.h. */
16142 int HMAC_CTX_init(void);
16143 (void)HMAC_CTX_init();
16149 if ac_fn_c_try_link "$LINENO"; then :
16152 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16155 $as_echo "yes" >&6; }
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16160 $as_echo "no" >&6; }
16162 LIBSSL_LIBS="$BAKSSLLIBS"
16164 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16166 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16174 int HMAC_CTX_init(void);
16175 (void)HMAC_CTX_init();
16181 if ac_fn_c_try_link "$LINENO"; then :
16184 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16187 $as_echo "yes" >&6; }
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16192 $as_echo "no" >&6; }
16193 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16196 rm -f core conftest.err conftest.$ac_objext \
16197 conftest$ac_exeext conftest.$ac_ext
16200 rm -f core conftest.err conftest.$ac_objext \
16201 conftest$ac_exeext conftest.$ac_ext
16204 rm -f core conftest.err conftest.$ac_objext \
16205 conftest$ac_exeext conftest.$ac_ext
16209 # openssl engine functionality needs dlopen().
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16212 $as_echo_n "checking for library containing dlopen... " >&6; }
16213 if ${ac_cv_search_dlopen+:} false; then :
16214 $as_echo_n "(cached) " >&6
16216 ac_func_search_save_LIBS=$LIBS
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h. */
16220 /* Override any GCC internal prototype to avoid an error.
16221 Use char because int might match the return type of a GCC
16222 builtin and then its argument prototype would still apply. */
16235 for ac_lib in '' dl; do
16236 if test -z "$ac_lib"; then
16237 ac_res="none required"
16240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16242 if ac_fn_c_try_link "$LINENO"; then :
16243 ac_cv_search_dlopen=$ac_res
16245 rm -f core conftest.err conftest.$ac_objext \
16247 if ${ac_cv_search_dlopen+:} false; then :
16251 if ${ac_cv_search_dlopen+:} false; then :
16254 ac_cv_search_dlopen=no
16256 rm conftest.$ac_ext
16257 LIBS=$ac_func_search_save_LIBS
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16260 $as_echo "$ac_cv_search_dlopen" >&6; }
16261 ac_res=$ac_cv_search_dlopen
16262 if test "$ac_res" != no; then :
16263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16267 if test "$LIBS" != "$BAKLIBS"; then
16268 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16271 for ac_header in openssl/ssl.h
16273 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16275 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
16276 cat >>confdefs.h <<_ACEOF
16277 #define HAVE_OPENSSL_SSL_H 1
16284 for ac_header in openssl/err.h
16286 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16288 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
16289 cat >>confdefs.h <<_ACEOF
16290 #define HAVE_OPENSSL_ERR_H 1
16297 for ac_header in openssl/rand.h
16299 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16301 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
16302 cat >>confdefs.h <<_ACEOF
16303 #define HAVE_OPENSSL_RAND_H 1
16313 # check if libssl needs libdl
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16317 $as_echo_n "checking if libssl needs libdl... " >&6; }
16318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16319 /* end confdefs.h. */
16321 /* Override any GCC internal prototype to avoid an error.
16322 Use char because int might match the return type of a GCC
16323 builtin and then its argument prototype would still apply. */
16327 char SSL_CTX_new ();
16331 return SSL_CTX_new ();
16336 if ac_fn_c_try_link "$LINENO"; then :
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16339 $as_echo "no" >&6; }
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16345 $as_echo "yes" >&6; }
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16348 $as_echo_n "checking for library containing dlopen... " >&6; }
16349 if ${ac_cv_search_dlopen+:} false; then :
16350 $as_echo_n "(cached) " >&6
16352 ac_func_search_save_LIBS=$LIBS
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h. */
16356 /* Override any GCC internal prototype to avoid an error.
16357 Use char because int might match the return type of a GCC
16358 builtin and then its argument prototype would still apply. */
16371 for ac_lib in '' dl; do
16372 if test -z "$ac_lib"; then
16373 ac_res="none required"
16376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16378 if ac_fn_c_try_link "$LINENO"; then :
16379 ac_cv_search_dlopen=$ac_res
16381 rm -f core conftest.err conftest.$ac_objext \
16383 if ${ac_cv_search_dlopen+:} false; then :
16387 if ${ac_cv_search_dlopen+:} false; then :
16390 ac_cv_search_dlopen=no
16392 rm conftest.$ac_ext
16393 LIBS=$ac_func_search_save_LIBS
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16396 $as_echo "$ac_cv_search_dlopen" >&6; }
16397 ac_res=$ac_cv_search_dlopen
16398 if test "$ac_res" != no; then :
16399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16405 rm -f core conftest.err conftest.$ac_objext \
16406 conftest$ac_exeext conftest.$ac_ext
16407 for ac_header in openssl/conf.h
16409 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16411 if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
16412 cat >>confdefs.h <<_ACEOF
16413 #define HAVE_OPENSSL_CONF_H 1
16420 for ac_header in openssl/engine.h
16422 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16424 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
16425 cat >>confdefs.h <<_ACEOF
16426 #define HAVE_OPENSSL_ENGINE_H 1
16433 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16436 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16437 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16438 cat >>confdefs.h <<_ACEOF
16439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16445 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16446 $ac_includes_default
16447 #ifdef HAVE_OPENSSL_ERR_H
16448 #include <openssl/err.h>
16451 #ifdef HAVE_OPENSSL_RAND_H
16452 #include <openssl/rand.h>
16455 #ifdef HAVE_OPENSSL_CONF_H
16456 #include <openssl/conf.h>
16459 #ifdef HAVE_OPENSSL_ENGINE_H
16460 #include <openssl/engine.h>
16462 #include <openssl/ssl.h>
16463 #include <openssl/evp.h>
16466 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
16472 cat >>confdefs.h <<_ACEOF
16473 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16475 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16476 $ac_includes_default
16477 #ifdef HAVE_OPENSSL_ERR_H
16478 #include <openssl/err.h>
16481 #ifdef HAVE_OPENSSL_RAND_H
16482 #include <openssl/rand.h>
16485 #ifdef HAVE_OPENSSL_CONF_H
16486 #include <openssl/conf.h>
16489 #ifdef HAVE_OPENSSL_ENGINE_H
16490 #include <openssl/engine.h>
16492 #include <openssl/ssl.h>
16493 #include <openssl/evp.h>
16496 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
16502 cat >>confdefs.h <<_ACEOF
16503 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16509 # Check whether --enable-sha2 was given.
16510 if test "${enable_sha2+set}" = set; then :
16511 enableval=$enable_sha2;
16514 case "$enable_sha2" in
16519 $as_echo "#define USE_SHA2 1" >>confdefs.h
16524 # check wether gost also works
16526 # Check whether --enable-gost was given.
16527 if test "${enable_gost+set}" = set; then :
16528 enableval=$enable_gost;
16532 if test $USE_NSS = "no"; then
16533 case "$enable_gost" in
16537 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16538 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
16541 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
16544 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16545 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
16548 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16553 $as_echo_n "checking if GOST works... " >&6; }
16554 if test c${cross_compiling} = cno; then
16555 BAKCFLAGS="$CFLAGS"
16556 if test -n "$ssldir"; then
16557 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
16559 if test "$cross_compiling" = yes; then :
16560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16562 as_fn_error $? "cannot run test program while cross compiling
16563 See \`config.log' for more details" "$LINENO" 5; }
16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566 /* end confdefs.h. */
16568 #include <string.h>
16569 #include <openssl/ssl.h>
16570 #include <openssl/evp.h>
16571 #include <openssl/engine.h>
16572 #include <openssl/conf.h>
16573 /* routine to load gost from ldns */
16574 int load_gost_id(void)
16576 static int gost_id = 0;
16577 const EVP_PKEY_ASN1_METHOD* meth;
16580 if(gost_id) return gost_id;
16582 /* see if configuration loaded gost implementation from other engine*/
16583 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16585 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16589 /* see if engine can be loaded already */
16590 e = ENGINE_by_id("gost");
16592 /* load it ourself, in case statically linked */
16593 ENGINE_load_builtin_engines();
16594 ENGINE_load_dynamic();
16595 e = ENGINE_by_id("gost");
16598 /* no gost engine in openssl */
16601 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16607 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16609 /* algo not found */
16614 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16620 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16621 const char* str = "Hello world";
16622 const unsigned char check[] = {
16623 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16624 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16625 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16626 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16628 OPENSSL_config(NULL);
16629 (void)load_gost_id();
16630 md = EVP_get_digestbyname("md_gost94");
16632 memset(digest, 0, sizeof(digest));
16633 ctx = EVP_MD_CTX_create();
16635 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16636 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16637 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16638 /* uncomment to see the hash calculated.
16640 for(i=0; i<32; i++)
16641 printf(" %2.2x", (int)digest[i]);
16644 if(memcmp(digest, check, sizeof(check)) != 0)
16650 if ac_fn_c_try_run "$LINENO"; then :
16651 eval "ac_cv_c_gost_works=yes"
16653 eval "ac_cv_c_gost_works=no"
16655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16656 conftest.$ac_objext conftest.beam conftest.$ac_ext
16659 CFLAGS="$BAKCFLAGS"
16661 eval "ac_cv_c_gost_works=maybe"
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
16664 $as_echo "$ac_cv_c_gost_works" >&6; }
16666 if test "$ac_cv_c_gost_works" != no; then
16669 $as_echo "#define USE_GOST 1" >>confdefs.h
16675 # Check whether --enable-ecdsa was given.
16676 if test "${enable_ecdsa+set}" = set; then :
16677 enableval=$enable_ecdsa;
16681 case "$enable_ecdsa" in
16685 if test $USE_NSS = "no"; then
16686 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
16687 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
16690 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16693 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
16694 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
16697 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16700 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
16701 #include <openssl/evp.h>
16704 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
16710 cat >>confdefs.h <<_ACEOF
16711 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
16713 if test $ac_have_decl = 1; then :
16716 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16718 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
16719 #include <openssl/evp.h>
16722 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
16728 cat >>confdefs.h <<_ACEOF
16729 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
16731 if test $ac_have_decl = 1; then :
16734 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16737 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
16739 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
16740 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16742 $as_echo "no" >&6; }
16744 cat >>confdefs.h <<_ACEOF
16745 #define USE_ECDSA_EVP_WORKAROUND 1
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16750 $as_echo "yes" >&6; }
16753 # we now know we have ECDSA and the required curves.
16755 cat >>confdefs.h <<_ACEOF
16756 #define USE_ECDSA 1
16763 # check for libevent
16765 # Check whether --with-libevent was given.
16766 if test "${with_libevent+set}" = set; then :
16767 withval=$with_libevent;
16772 if test x_$withval = x_yes -o x_$withval != x_no; then
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
16774 $as_echo_n "checking for libevent... " >&6; }
16775 if test x_$withval = x_ -o x_$withval = x_yes; then
16776 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
16778 for dir in $withval; do
16780 if test -f "$dir/include/event.h"; then
16781 found_libevent="yes"
16782 if test "$thedir" != "/usr"; then
16783 CPPFLAGS="$CPPFLAGS -I$thedir/include"
16788 if test x_$found_libevent != x_yes; then
16789 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
16790 # libevent source directory
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
16792 $as_echo "found in $thedir" >&6; }
16793 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
16794 BAK_LDFLAGS_SET="1"
16795 BAK_LDFLAGS="$LDFLAGS"
16796 # remove evdns from linking
16797 mkdir build >/dev/null 2>&1
16798 mkdir build/libevent >/dev/null 2>&1
16799 mkdir build/libevent/.libs >/dev/null 2>&1
16800 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
16801 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
16802 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
16803 cp $ev_files_o build/libevent
16804 cp $ev_files_lo build/libevent
16805 cp $ev_files_libso build/libevent/.libs
16806 LATE_LDFLAGS="build/libevent/*.lo -lm"
16807 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
16809 as_fn_error $? "Cannot find the libevent library in $withval
16810 You can restart ./configure --with-libevent=no to use a builtin alternative.
16811 Please note that this alternative is not as capable as libevent when using
16812 large outgoing port ranges. " "$LINENO" 5
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
16816 $as_echo "found in $thedir" >&6; }
16817 if test "$thedir" != "/usr" -a "$thedir" != ""; then
16818 LDFLAGS="$LDFLAGS -L$thedir/lib"
16820 if test "x$enable_rpath" = xyes; then
16821 if echo "$thedir/lib" | grep "^/" >/dev/null; then
16822 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
16828 # check for library used by libevent after 1.3c
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16830 $as_echo_n "checking for library containing clock_gettime... " >&6; }
16831 if ${ac_cv_search_clock_gettime+:} false; then :
16832 $as_echo_n "(cached) " >&6
16834 ac_func_search_save_LIBS=$LIBS
16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h. */
16838 /* Override any GCC internal prototype to avoid an error.
16839 Use char because int might match the return type of a GCC
16840 builtin and then its argument prototype would still apply. */
16844 char clock_gettime ();
16848 return clock_gettime ();
16853 for ac_lib in '' rt; do
16854 if test -z "$ac_lib"; then
16855 ac_res="none required"
16858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16860 if ac_fn_c_try_link "$LINENO"; then :
16861 ac_cv_search_clock_gettime=$ac_res
16863 rm -f core conftest.err conftest.$ac_objext \
16865 if ${ac_cv_search_clock_gettime+:} false; then :
16869 if ${ac_cv_search_clock_gettime+:} false; then :
16872 ac_cv_search_clock_gettime=no
16874 rm conftest.$ac_ext
16875 LIBS=$ac_func_search_save_LIBS
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16878 $as_echo "$ac_cv_search_clock_gettime" >&6; }
16879 ac_res=$ac_cv_search_clock_gettime
16880 if test "$ac_res" != no; then :
16881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16886 # is the event.h header libev or libevent?
16887 for ac_header in event.h
16889 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
16891 if test "x$ac_cv_header_event_h" = xyes; then :
16892 cat >>confdefs.h <<_ACEOF
16893 #define HAVE_EVENT_H 1
16900 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
16904 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
16907 $as_echo_n "checking for library containing event_set... " >&6; }
16908 if ${ac_cv_search_event_set+:} false; then :
16909 $as_echo_n "(cached) " >&6
16911 ac_func_search_save_LIBS=$LIBS
16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913 /* end confdefs.h. */
16915 /* Override any GCC internal prototype to avoid an error.
16916 Use char because int might match the return type of a GCC
16917 builtin and then its argument prototype would still apply. */
16925 return event_set ();
16930 for ac_lib in '' ev; do
16931 if test -z "$ac_lib"; then
16932 ac_res="none required"
16935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16937 if ac_fn_c_try_link "$LINENO"; then :
16938 ac_cv_search_event_set=$ac_res
16940 rm -f core conftest.err conftest.$ac_objext \
16942 if ${ac_cv_search_event_set+:} false; then :
16946 if ${ac_cv_search_event_set+:} false; then :
16949 ac_cv_search_event_set=no
16951 rm conftest.$ac_ext
16952 LIBS=$ac_func_search_save_LIBS
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
16955 $as_echo "$ac_cv_search_event_set" >&6; }
16956 ac_res=$ac_cv_search_event_set
16957 if test "$ac_res" != no; then :
16958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
16966 $as_echo_n "checking for library containing event_set... " >&6; }
16967 if ${ac_cv_search_event_set+:} false; then :
16968 $as_echo_n "(cached) " >&6
16970 ac_func_search_save_LIBS=$LIBS
16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16974 /* Override any GCC internal prototype to avoid an error.
16975 Use char because int might match the return type of a GCC
16976 builtin and then its argument prototype would still apply. */
16984 return event_set ();
16989 for ac_lib in '' event; do
16990 if test -z "$ac_lib"; then
16991 ac_res="none required"
16994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16996 if ac_fn_c_try_link "$LINENO"; then :
16997 ac_cv_search_event_set=$ac_res
16999 rm -f core conftest.err conftest.$ac_objext \
17001 if ${ac_cv_search_event_set+:} false; then :
17005 if ${ac_cv_search_event_set+:} false; then :
17008 ac_cv_search_event_set=no
17010 rm conftest.$ac_ext
17011 LIBS=$ac_func_search_save_LIBS
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17014 $as_echo "$ac_cv_search_event_set" >&6; }
17015 ac_res=$ac_cv_search_event_set
17016 if test "$ac_res" != no; then :
17017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17024 for ac_func in event_base_free
17026 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17027 if test "x$ac_cv_func_event_base_free" = xyes; then :
17028 cat >>confdefs.h <<_ACEOF
17029 #define HAVE_EVENT_BASE_FREE 1
17034 # only in libevent 1.2 and later
17035 for ac_func in event_base_once
17037 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17038 if test "x$ac_cv_func_event_base_once" = xyes; then :
17039 cat >>confdefs.h <<_ACEOF
17040 #define HAVE_EVENT_BASE_ONCE 1
17045 # only in libevent 1.4.1 and later
17046 for ac_func in event_base_new
17048 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17049 if test "x$ac_cv_func_event_base_new" = xyes; then :
17050 cat >>confdefs.h <<_ACEOF
17051 #define HAVE_EVENT_BASE_NEW 1
17056 # only in libevent 1.4.1 and later
17057 for ac_func in event_base_get_method
17059 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17060 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
17061 cat >>confdefs.h <<_ACEOF
17062 #define HAVE_EVENT_BASE_GET_METHOD 1
17067 # only in libevent 1.4.3 and later
17068 for ac_func in ev_loop
17070 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17071 if test "x$ac_cv_func_ev_loop" = xyes; then :
17072 cat >>confdefs.h <<_ACEOF
17073 #define HAVE_EV_LOOP 1
17078 # only in libev. (tested on 3.51)
17079 for ac_func in ev_default_loop
17081 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17082 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
17083 cat >>confdefs.h <<_ACEOF
17084 #define HAVE_EV_DEFAULT_LOOP 1
17089 # only in libev. (tested on 4.00)
17090 if test -n "$BAK_LDFLAGS_SET"; then
17091 LDFLAGS="$BAK_LDFLAGS"
17095 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17099 # check for libexpat
17101 # Check whether --with-libexpat was given.
17102 if test "${with_libexpat+set}" = set; then :
17103 withval=$with_libexpat;
17105 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17109 $as_echo_n "checking for libexpat... " >&6; }
17110 found_libexpat="no"
17111 for dir in $withval ; do
17112 if test -f "$dir/include/expat.h"; then
17113 found_libexpat="yes"
17114 if test "$dir" != "/usr"; then
17115 CPPFLAGS="$CPPFLAGS -I$dir/include"
17116 LDFLAGS="$LDFLAGS -L$dir/lib"
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17119 $as_echo "found in $dir" >&6; }
17123 if test x_$found_libexpat != x_yes; then
17124 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
17126 for ac_header in expat.h
17128 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17130 if test "x$ac_cv_header_expat_h" = xyes; then :
17131 cat >>confdefs.h <<_ACEOF
17132 #define HAVE_EXPAT_H 1
17140 # set static linking if requested
17143 # Check whether --enable-static-exe was given.
17144 if test "${enable_static_exe+set}" = set; then :
17145 enableval=$enable_static_exe;
17148 if test x_$enable_static_exe = x_yes; then
17149 staticexe="-static"
17150 if test "$on_mingw" = yes; then
17151 staticexe="-all-static"
17152 # for static crosscompile, include gdi32 and zlib here.
17153 if test "`uname`" = "Linux"; then
17154 LIBS="$LIBS -lgdi32 -lz"
17159 # set lock checking if requested
17160 # Check whether --enable-lock_checks was given.
17161 if test "${enable_lock_checks+set}" = set; then :
17162 enableval=$enable_lock_checks;
17165 if test x_$enable_lock_checks = x_yes; then
17167 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17169 CHECKLOCK_OBJ="checklocks.lo"
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17175 $as_echo_n "checking for getaddrinfo... " >&6; }
17176 ac_cv_func_getaddrinfo=no
17177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17178 /* end confdefs.h. */
17184 char* getaddrinfo();
17185 char* (*f) () = getaddrinfo;
17195 if ac_fn_c_try_link "$LINENO"; then :
17196 ac_cv_func_getaddrinfo="yes"
17197 if test "$ac_cv_header_windows_h" = "yes"; then
17199 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17202 LIBS="$LIBS -lws2_32"
17207 LIBS="$LIBS -lws2_32"
17208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17209 /* end confdefs.h. */
17211 #ifdef HAVE_WS2TCPIP_H
17212 #include <ws2tcpip.h>
17219 (void)getaddrinfo(NULL, NULL, NULL, NULL);
17226 if ac_fn_c_try_link "$LINENO"; then :
17228 ac_cv_func_getaddrinfo="yes"
17230 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17236 ac_cv_func_getaddrinfo="no"
17240 rm -f core conftest.err conftest.$ac_objext \
17241 conftest$ac_exeext conftest.$ac_ext
17244 rm -f core conftest.err conftest.$ac_objext \
17245 conftest$ac_exeext conftest.$ac_ext
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17248 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
17249 if test $ac_cv_func_getaddrinfo = yes; then
17251 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17255 if test "$USE_WINSOCK" = 1; then
17257 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17259 for ac_header in iphlpapi.h
17261 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17262 #include <windows.h>
17265 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
17266 cat >>confdefs.h <<_ACEOF
17267 #define HAVE_IPHLPAPI_H 1
17274 if test -n "$ac_tool_prefix"; then
17275 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17276 set dummy ${ac_tool_prefix}windres; ac_word=$2
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17278 $as_echo_n "checking for $ac_word... " >&6; }
17279 if ${ac_cv_prog_WINDRES+:} false; then :
17280 $as_echo_n "(cached) " >&6
17282 if test -n "$WINDRES"; then
17283 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17286 for as_dir in $PATH
17289 test -z "$as_dir" && as_dir=.
17290 for ac_exec_ext in '' $ac_executable_extensions; do
17291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17292 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17302 WINDRES=$ac_cv_prog_WINDRES
17303 if test -n "$WINDRES"; then
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17305 $as_echo "$WINDRES" >&6; }
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17308 $as_echo "no" >&6; }
17313 if test -z "$ac_cv_prog_WINDRES"; then
17314 ac_ct_WINDRES=$WINDRES
17315 # Extract the first word of "windres", so it can be a program name with args.
17316 set dummy windres; ac_word=$2
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17318 $as_echo_n "checking for $ac_word... " >&6; }
17319 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17320 $as_echo_n "(cached) " >&6
17322 if test -n "$ac_ct_WINDRES"; then
17323 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17326 for as_dir in $PATH
17329 test -z "$as_dir" && as_dir=.
17330 for ac_exec_ext in '' $ac_executable_extensions; do
17331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17332 ac_cv_prog_ac_ct_WINDRES="windres"
17333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17342 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17343 if test -n "$ac_ct_WINDRES"; then
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17345 $as_echo "$ac_ct_WINDRES" >&6; }
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17348 $as_echo "no" >&6; }
17351 if test "x$ac_ct_WINDRES" = x; then
17354 case $cross_compiling:$ac_tool_warned in
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17358 ac_tool_warned=yes ;;
17360 WINDRES=$ac_ct_WINDRES
17363 WINDRES="$ac_cv_prog_WINDRES"
17366 LIBS="$LIBS -liphlpapi"
17367 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17369 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
17371 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
17373 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
17375 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
17377 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
17379 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
17381 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
17384 if test $ac_cv_func_getaddrinfo = no; then
17385 case " $LIBOBJS " in
17386 *" fake-rfc2553.$ac_objext "* ) ;;
17387 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17392 # check after getaddrinfo for its libraries
17394 # check ioctlsocket
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17396 $as_echo_n "checking for ioctlsocket... " >&6; }
17397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398 /* end confdefs.h. */
17400 #ifdef HAVE_WINSOCK2_H
17401 #include <winsock2.h>
17408 (void)ioctlsocket(0, 0, NULL);
17414 if ac_fn_c_try_link "$LINENO"; then :
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17417 $as_echo "yes" >&6; }
17419 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17424 $as_echo "no" >&6; }
17426 rm -f core conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
17430 # see if daemon(3) exists, and if it is deprecated.
17431 for ac_func in daemon
17433 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17434 if test "x$ac_cv_func_daemon" = xyes; then :
17435 cat >>confdefs.h <<_ACEOF
17436 #define HAVE_DAEMON 1
17442 if test $ac_cv_func_daemon = yes; then
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17446 $as_echo_n "checking if daemon is deprecated... " >&6; }
17447 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
17448 if eval \${cv_cc_deprecated_$cache+:} false; then :
17449 $as_echo_n "(cached) " >&6
17453 #include <stdlib.h>
17455 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17456 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17457 eval "cv_cc_deprecated_$cache=no"
17459 eval "cv_cc_deprecated_$cache=yes"
17461 rm -f conftest conftest.o conftest.c
17465 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17467 $as_echo "yes" >&6; }
17469 cat >>confdefs.h <<_ACEOF
17470 #define DEPRECATED_DAEMON 1
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17477 $as_echo "no" >&6; }
17484 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
17485 $ac_includes_default
17486 #if HAVE_SYS_PARAM_H
17487 #include <sys/param.h>
17490 #ifdef HAVE_SYS_SOCKET_H
17491 #include <sys/socket.h>
17494 #ifdef HAVE_SYS_UIO_H
17495 #include <sys/uio.h>
17498 #ifdef HAVE_NETINET_IN_H
17499 #include <netinet/in.h>
17502 #ifdef HAVE_ARPA_INET_H
17503 #include <arpa/inet.h>
17506 #ifdef HAVE_WINSOCK2_H
17507 #include <winsock2.h>
17510 #ifdef HAVE_WS2TCPIP_H
17511 #include <ws2tcpip.h>
17515 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
17517 cat >>confdefs.h <<_ACEOF
17518 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17525 $as_echo_n "checking for library containing setusercontext... " >&6; }
17526 if ${ac_cv_search_setusercontext+:} false; then :
17527 $as_echo_n "(cached) " >&6
17529 ac_func_search_save_LIBS=$LIBS
17530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531 /* end confdefs.h. */
17533 /* Override any GCC internal prototype to avoid an error.
17534 Use char because int might match the return type of a GCC
17535 builtin and then its argument prototype would still apply. */
17539 char setusercontext ();
17543 return setusercontext ();
17548 for ac_lib in '' util; do
17549 if test -z "$ac_lib"; then
17550 ac_res="none required"
17553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17555 if ac_fn_c_try_link "$LINENO"; then :
17556 ac_cv_search_setusercontext=$ac_res
17558 rm -f core conftest.err conftest.$ac_objext \
17560 if ${ac_cv_search_setusercontext+:} false; then :
17564 if ${ac_cv_search_setusercontext+:} false; then :
17567 ac_cv_search_setusercontext=no
17569 rm conftest.$ac_ext
17570 LIBS=$ac_func_search_save_LIBS
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
17573 $as_echo "$ac_cv_search_setusercontext" >&6; }
17574 ac_res=$ac_cv_search_setusercontext
17575 if test "$ac_res" != no; then :
17576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17580 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
17582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17583 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17584 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17585 cat >>confdefs.h <<_ACEOF
17586 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17592 for ac_func in setresuid
17594 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17595 if test "x$ac_cv_func_setresuid" = xyes; then :
17596 cat >>confdefs.h <<_ACEOF
17597 #define HAVE_SETRESUID 1
17601 for ac_func in setreuid
17603 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17604 if test "x$ac_cv_func_setreuid" = xyes; then :
17605 cat >>confdefs.h <<_ACEOF
17606 #define HAVE_SETREUID 1
17615 for ac_func in setresgid
17617 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
17618 if test "x$ac_cv_func_setresgid" = xyes; then :
17619 cat >>confdefs.h <<_ACEOF
17620 #define HAVE_SETRESGID 1
17624 for ac_func in setregid
17626 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
17627 if test "x$ac_cv_func_setregid" = xyes; then :
17628 cat >>confdefs.h <<_ACEOF
17629 #define HAVE_SETREGID 1
17639 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
17640 if echo $build_os | grep darwin8 > /dev/null; then
17642 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
17645 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
17646 if test "x$ac_cv_func_inet_aton" = xyes; then :
17647 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17650 case " $LIBOBJS " in
17651 *" inet_aton.$ac_objext "* ) ;;
17652 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
17659 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
17660 if test "x$ac_cv_func_inet_pton" = xyes; then :
17661 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
17664 case " $LIBOBJS " in
17665 *" inet_pton.$ac_objext "* ) ;;
17666 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
17673 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
17674 if test "x$ac_cv_func_inet_ntop" = xyes; then :
17675 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
17678 case " $LIBOBJS " in
17679 *" inet_ntop.$ac_objext "* ) ;;
17680 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
17687 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17688 if test "x$ac_cv_func_snprintf" = xyes; then :
17689 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17692 case " $LIBOBJS " in
17693 *" snprintf.$ac_objext "* ) ;;
17694 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17701 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17702 if test "x$ac_cv_func_strlcpy" = xyes; then :
17703 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17706 case " $LIBOBJS " in
17707 *" strlcpy.$ac_objext "* ) ;;
17708 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17715 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
17716 if test "x$ac_cv_func_memmove" = xyes; then :
17717 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
17720 case " $LIBOBJS " in
17721 *" memmove.$ac_objext "* ) ;;
17722 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
17729 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
17730 if test "x$ac_cv_func_gmtime_r" = xyes; then :
17731 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17734 case " $LIBOBJS " in
17735 *" gmtime_r.$ac_objext "* ) ;;
17736 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
17743 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
17745 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
17746 if test "x$ac_cv_func_ctime_r" = xyes; then :
17747 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
17750 case " $LIBOBJS " in
17751 *" ctime_r.$ac_objext "* ) ;;
17752 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
17760 # Check whether --enable-allsymbols was given.
17761 if test "${enable_allsymbols+set}" = set; then :
17762 enableval=$enable_allsymbols;
17765 case "$enable_allsymbols" in
17767 COMMON_OBJ_ALL_SYMBOLS=""
17769 EXTRALINK="-L. -L.libs -lunbound"
17771 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
17775 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
17776 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
17783 if test x_$enable_lock_checks = x_yes; then
17784 UBSYMS="-export-symbols clubsyms.def"
17785 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
17786 echo lock_protect >> clubsyms.def
17787 echo lock_unprotect >> clubsyms.def
17788 echo lock_get_mem >> clubsyms.def
17789 echo checklock_start >> clubsyms.def
17790 echo checklock_stop >> clubsyms.def
17791 echo checklock_lock >> clubsyms.def
17792 echo checklock_unlock >> clubsyms.def
17793 echo checklock_init >> clubsyms.def
17794 echo checklock_thrcreate >> clubsyms.def
17795 echo checklock_thrjoin >> clubsyms.def
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
17799 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
17800 # on openBSD, the implicit rule make $< work.
17801 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
17803 cat >conftest.make <<EOF
17806 conftest.lo foo.lo bla.lo:
17807 if test -f "\$<"; then touch \$@; fi
17811 if test -f "\$<"; then touch \$@; fi
17813 conftest.lo: conftest.dir/conftest.c
17816 touch conftest.dir/conftest.c
17817 rm -f conftest.lo conftest.c
17818 ${MAKE:-make} -f conftest.make >/dev/null
17819 rm -f conftest.make conftest.c conftest.dir/conftest.c
17820 rm -rf conftest.dir
17821 if test ! -f conftest.lo; then
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17823 $as_echo "no" >&6; }
17824 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
17825 SOURCEFILE='`cat .source`'
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17828 $as_echo "yes" >&6; }
17829 SOURCEDETERMINE=':'
17836 # see if we want to build the library or everything
17837 ALLTARGET="alltargets"
17839 # Check whether --with-libunbound-only was given.
17840 if test "${with_libunbound_only+set}" = set; then :
17841 withval=$with_libunbound_only;
17842 if test "$withval" = "yes"; then
17850 # check this after all other compilation checks, since the linking of the lib
17851 # may break checks after this.
17853 # Check whether --with-ldns was given.
17854 if test "${with_ldns+set}" = set; then :
17855 withval=$with_ldns;
17856 if test "$withval" != "yes"; then
17857 if test "$withval" != "/usr" -a "$withval" != ""; then
17858 CPPFLAGS="-I$withval/include $CPPFLAGS"
17859 LDFLAGS="-L$withval/lib $LDFLAGS"
17861 if test "x$enable_rpath" = xyes; then
17862 if echo "$withval/lib" | grep "^/" >/dev/null; then
17863 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17875 # check if ldns is good enough
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_rr_new in -lldns" >&5
17877 $as_echo_n "checking for ldns_rr_new in -lldns... " >&6; }
17878 if ${ac_cv_lib_ldns_ldns_rr_new+:} false; then :
17879 $as_echo_n "(cached) " >&6
17881 ac_check_lib_save_LIBS=$LIBS
17882 LIBS="-lldns $LIBS"
17883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17884 /* end confdefs.h. */
17886 /* Override any GCC internal prototype to avoid an error.
17887 Use char because int might match the return type of a GCC
17888 builtin and then its argument prototype would still apply. */
17892 char ldns_rr_new ();
17896 return ldns_rr_new ();
17901 if ac_fn_c_try_link "$LINENO"; then :
17902 ac_cv_lib_ldns_ldns_rr_new=yes
17904 ac_cv_lib_ldns_ldns_rr_new=no
17906 rm -f core conftest.err conftest.$ac_objext \
17907 conftest$ac_exeext conftest.$ac_ext
17908 LIBS=$ac_check_lib_save_LIBS
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_rr_new" >&5
17911 $as_echo "$ac_cv_lib_ldns_ldns_rr_new" >&6; }
17912 if test "x$ac_cv_lib_ldns_ldns_rr_new" = xyes; then :
17913 cat >>confdefs.h <<_ACEOF
17914 #define HAVE_LIBLDNS 1
17917 LIBS="-lldns $LIBS"
17921 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
17925 ac_fn_c_check_func "$LINENO" "ldns_buffer_copy" "ac_cv_func_ldns_buffer_copy"
17926 if test "x$ac_cv_func_ldns_buffer_copy" = xyes; then :
17930 if test $USE_NSS = "no"; then
17931 ac_fn_c_check_func "$LINENO" "ldns_key_buf2rsa_raw" "ac_cv_func_ldns_key_buf2rsa_raw"
17932 if test "x$ac_cv_func_ldns_key_buf2rsa_raw" = xyes; then :
17937 ac_cv_func_ldns_key_buf2rsa_raw="yes"
17939 ac_fn_c_check_func "$LINENO" "ldns_get_random" "ac_cv_func_ldns_get_random"
17940 if test "x$ac_cv_func_ldns_get_random" = xyes; then :
17944 ac_fn_c_check_func "$LINENO" "ldns_b32_ntop_extended_hex" "ac_cv_func_ldns_b32_ntop_extended_hex"
17945 if test "x$ac_cv_func_ldns_b32_ntop_extended_hex" = xyes; then :
17949 if test x$use_gost = xyes -a x$USE_NSS = xno; then
17950 ac_fn_c_check_func "$LINENO" "ldns_key_EVP_load_gost_id" "ac_cv_func_ldns_key_EVP_load_gost_id"
17951 if test "x$ac_cv_func_ldns_key_EVP_load_gost_id" = xyes; then :
17955 for ac_func in ldns_key_EVP_unload_gost
17957 ac_fn_c_check_func "$LINENO" "ldns_key_EVP_unload_gost" "ac_cv_func_ldns_key_EVP_unload_gost"
17958 if test "x$ac_cv_func_ldns_key_EVP_unload_gost" = xyes; then :
17959 cat >>confdefs.h <<_ACEOF
17960 #define HAVE_LDNS_KEY_EVP_UNLOAD_GOST 1
17967 ac_cv_func_ldns_key_EVP_load_gost_id="yes"
17969 if test x$use_ecdsa = xyes; then
17970 ac_fn_c_check_decl "$LINENO" "LDNS_ECDSAP384SHA384" "ac_cv_have_decl_LDNS_ECDSAP384SHA384" "
17971 $ac_includes_default
17972 #ifdef HAVE_SYS_SOCKET_H
17973 # include <sys/socket.h>
17975 #ifdef HAVE_WS2TCPIP_H
17976 # include <ws2tcpip.h>
17978 #include <ldns/ldns.h>
17981 if test "x$ac_cv_have_decl_LDNS_ECDSAP384SHA384" = xyes; then :
17986 ac_cv_have_decl_LDNS_ECDSAP384SHA384="yes"
17988 for ac_header in ldns/ldns.h
17990 ac_fn_c_check_header_compile "$LINENO" "ldns/ldns.h" "ac_cv_header_ldns_ldns_h" "$ac_includes_default
17991 #ifdef HAVE_SYS_SOCKET_H
17992 #include <sys/socket.h>
17995 #ifdef HAVE_NETINET_IN_H
17996 #include <netinet/in.h>
17999 #ifdef HAVE_ARPA_INET_H
18000 #include <arpa/inet.h>
18003 #ifdef HAVE_WINSOCK2_H
18004 #include <winsock2.h>
18007 #ifdef HAVE_WS2TCPIP_H
18008 #include <ws2tcpip.h>
18012 if test "x$ac_cv_header_ldns_ldns_h" = xyes; then :
18013 cat >>confdefs.h <<_ACEOF
18014 #define HAVE_LDNS_LDNS_H 1
18019 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
18025 if test $ac_cv_func_ldns_buffer_copy = yes \
18026 -a $ac_cv_func_ldns_key_buf2rsa_raw = yes \
18027 -a $ac_cv_func_ldns_get_random = yes \
18028 -a $ac_cv_header_ldns_ldns_h = yes \
18029 -a $ac_cv_func_ldns_b32_ntop_extended_hex = yes \
18030 -a $ac_cv_func_ldns_key_EVP_load_gost_id = yes \
18031 -a $ac_cv_have_decl_LDNS_ECDSAP384SHA384 = yes; then
18034 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
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18039 $as_echo "$as_me: Stripping extension flags..." >&6;}
18041 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
18042 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18044 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
18049 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
18050 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
18052 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
18057 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
18058 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
18060 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
18065 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
18066 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
18068 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
18073 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
18074 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
18076 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
18081 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
18082 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
18084 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
18089 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
18090 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
18092 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
18097 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
18098 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
18100 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
18105 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
18108 cat >>confdefs.h <<_ACEOF
18109 #define MAXSYSLOGMSGLEN 10240
18115 ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 smallapp/unbound-control-setup.sh"
18117 ac_config_headers="$ac_config_headers config.h"
18119 cat >confcache <<\_ACEOF
18120 # This file is a shell script that caches the results of configure
18121 # tests run on this system so they can be shared between configure
18122 # scripts and configure runs, see configure's option --config-cache.
18123 # It is not useful on other systems. If it contains results you don't
18124 # want to keep, you may remove or edit it.
18126 # config.status only pays attention to the cache file if you give it
18127 # the --recheck option to rerun configure.
18129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18131 # following values.
18135 # The following way of writing the cache mishandles newlines in values,
18136 # but we know of no workaround that is simple, portable, and efficient.
18137 # So, we kill variables containing newlines.
18138 # Ultrix sh set writes to stderr and can't be redirected directly,
18139 # and sets the high bit in the cache file unless we assign to the vars.
18141 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18142 eval ac_val=\$$ac_var
18146 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18147 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18150 _ | IFS | as_nl) ;; #(
18151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18152 *) { eval $ac_var=; unset $ac_var;} ;;
18158 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18159 *${as_nl}ac_space=\ *)
18160 # `set' does not quote correctly, so add quotes: double-quote
18161 # substitution turns \\\\ into \\, and sed turns \\ into \.
18164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18167 # `set' quotes correctly as required by POSIX, so do not add quotes.
18168 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18177 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18179 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18181 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18182 if test -w "$cache_file"; then
18183 if test "x$cache_file" != "x/dev/null"; then
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18185 $as_echo "$as_me: updating cache $cache_file" >&6;}
18186 if test ! -f "$cache_file" || test -h "$cache_file"; then
18187 cat confcache >"$cache_file"
18189 case $cache_file in #(
18191 mv -f confcache "$cache_file"$$ &&
18192 mv -f "$cache_file"$$ "$cache_file" ;; #(
18194 mv -f confcache "$cache_file" ;;
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18200 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18205 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18206 # Let make expand exec_prefix.
18207 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18209 DEFS=-DHAVE_CONFIG_H
18214 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18215 # 1. Remove the extension, and $U if already installed.
18216 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18217 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18218 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18219 # will be set to the directory where LIBOBJS objects are built.
18220 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18221 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18223 LIBOBJS=$ac_libobjs
18225 LTLIBOBJS=$ac_ltlibobjs
18229 : "${CONFIG_STATUS=./config.status}"
18231 ac_clean_files_save=$ac_clean_files
18232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18234 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18236 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18238 # Generated by $as_me.
18239 # Run this file to recreate the current configuration.
18240 # Compiler output produced by configure, useful for debugging
18241 # configure, is in config.log if it exists.
18244 ac_cs_recheck=false
18247 SHELL=\${CONFIG_SHELL-$SHELL}
18250 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18251 ## -------------------- ##
18252 ## M4sh Initialization. ##
18253 ## -------------------- ##
18255 # Be more Bourne compatible
18256 DUALCASE=1; export DUALCASE # for MKS sh
18257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18260 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18261 # is contrary to our usage. Disable this feature.
18262 alias -g '${1+"$@"}'='"$@"'
18263 setopt NO_GLOB_SUBST
18265 case `(set -o) 2>/dev/null` in #(
18277 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18278 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18279 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18280 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18281 # Prefer a ksh shell builtin over an external printf program on Solaris,
18282 # but without wasting forks for bash or zsh.
18283 if test -z "$BASH_VERSION$ZSH_VERSION" \
18284 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18285 as_echo='print -r --'
18286 as_echo_n='print -rn --'
18287 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18288 as_echo='printf %s\n'
18289 as_echo_n='printf %s'
18291 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18292 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18293 as_echo_n='/usr/ucb/echo -n'
18295 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18296 as_echo_n_body='eval
18300 expr "X$arg" : "X\\(.*\\)$as_nl";
18301 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18303 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18305 export as_echo_n_body
18306 as_echo_n='sh -c $as_echo_n_body as_echo'
18308 export as_echo_body
18309 as_echo='sh -c $as_echo_body as_echo'
18312 # The user is always right.
18313 if test "${PATH_SEPARATOR+set}" != set; then
18315 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18316 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18323 # We need space, tab and new line, in precisely that order. Quoting is
18324 # there to prevent editors from complaining about space-tab.
18325 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18326 # splitting by setting IFS to empty value.)
18329 # Find who we are. Look in the path if we contain no directory separator.
18332 *[\\/]* ) as_myself=$0 ;;
18333 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18334 for as_dir in $PATH
18337 test -z "$as_dir" && as_dir=.
18338 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18344 # We did not find ourselves, most probably we were run as `sh COMMAND'
18345 # in which case we are not to be found in the path.
18346 if test "x$as_myself" = x; then
18349 if test ! -f "$as_myself"; then
18350 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18354 # Unset variables that we do not need and which cause bugs (e.g. in
18355 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18356 # suppresses any "Segmentation fault" message there. '((' could
18357 # trigger a bug in pdksh 5.2.14.
18358 for as_var in BASH_ENV ENV MAIL MAILPATH
18359 do eval test x\${$as_var+set} = xset \
18360 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18376 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18377 # ----------------------------------------
18378 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18379 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18380 # script with STATUS, using 1 if that was 0.
18383 as_status=$1; test $as_status -eq 0 && as_status=1
18385 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18386 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18388 $as_echo "$as_me: error: $2" >&2
18389 as_fn_exit $as_status
18393 # as_fn_set_status STATUS
18394 # -----------------------
18395 # Set $? to STATUS, without forking.
18396 as_fn_set_status ()
18399 } # as_fn_set_status
18401 # as_fn_exit STATUS
18402 # -----------------
18403 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18407 as_fn_set_status $1
18413 # Portably unset VAR.
18416 { eval $1=; unset $1;}
18418 as_unset=as_fn_unset
18419 # as_fn_append VAR VALUE
18420 # ----------------------
18421 # Append the text in VALUE to the end of the definition contained in VAR. Take
18422 # advantage of any shell optimizations that allow amortized linear growth over
18423 # repeated appends, instead of the typical quadratic growth present in naive
18425 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18426 eval 'as_fn_append ()
18437 # as_fn_arith ARG...
18438 # ------------------
18439 # Perform arithmetic evaluation on the ARGs, and store the result in the
18440 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18441 # must be portable across $(()) and expr.
18442 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18443 eval 'as_fn_arith ()
18450 as_val=`expr "$@" || test $? -eq 1`
18455 if expr a : '\(a\)' >/dev/null 2>&1 &&
18456 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18462 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18463 as_basename=basename
18468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18474 as_me=`$as_basename -- "$0" ||
18475 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18476 X"$0" : 'X\(//\)$' \| \
18477 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18479 sed '/^.*\/\([^/][^/]*\)\/*$/{
18493 # Avoid depending upon Character Ranges.
18494 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18495 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18496 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18497 as_cr_digits='0123456789'
18498 as_cr_alnum=$as_cr_Letters$as_cr_digits
18500 ECHO_C= ECHO_N= ECHO_T=
18501 case `echo -n x` in #(((((
18503 case `echo 'xy\c'` in
18504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18513 rm -f conf$$ conf$$.exe conf$$.file
18514 if test -d conf$$.dir; then
18515 rm -f conf$$.dir/conf$$.file
18518 mkdir conf$$.dir 2>/dev/null
18520 if (echo >conf$$.file) 2>/dev/null; then
18521 if ln -s conf$$.file conf$$ 2>/dev/null; then
18523 # ... but there are two gotchas:
18524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18526 # In both cases, we have to default to `cp -pR'.
18527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18529 elif ln conf$$.file conf$$ 2>/dev/null; then
18537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18538 rmdir conf$$.dir 2>/dev/null
18543 # Create "$as_dir" as a directory, including parents if necessary.
18548 -*) as_dir=./$as_dir;;
18550 test -d "$as_dir" || eval $as_mkdir_p || {
18554 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18555 *) as_qdir=$as_dir;;
18557 as_dirs="'$as_qdir' $as_dirs"
18558 as_dir=`$as_dirname -- "$as_dir" ||
18559 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18560 X"$as_dir" : 'X\(//\)[^/]' \| \
18561 X"$as_dir" : 'X\(//\)$' \| \
18562 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18563 $as_echo X"$as_dir" |
18564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18568 /^X\(\/\/\)[^/].*/{
18581 test -d "$as_dir" && break
18583 test -z "$as_dirs" || eval "mkdir $as_dirs"
18584 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18588 if mkdir -p . 2>/dev/null; then
18589 as_mkdir_p='mkdir -p "$as_dir"'
18591 test -d ./-p && rmdir ./-p
18596 # as_fn_executable_p FILE
18597 # -----------------------
18598 # Test if FILE is an executable regular file.
18599 as_fn_executable_p ()
18601 test -f "$1" && test -x "$1"
18602 } # as_fn_executable_p
18603 as_test_x='test -x'
18604 as_executable_p=as_fn_executable_p
18606 # Sed expression to map a string onto a valid CPP name.
18607 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18609 # Sed expression to map a string onto a valid variable name.
18610 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18614 ## ----------------------------------- ##
18615 ## Main body of $CONFIG_STATUS script. ##
18616 ## ----------------------------------- ##
18618 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18621 # Save the log message, to keep $0 and so on meaningful, and to
18622 # report actual input values of CONFIG_FILES etc. instead of their
18623 # values after options handling.
18625 This file was extended by unbound $as_me 1.4.20, which was
18626 generated by GNU Autoconf 2.69. Invocation command line was
18628 CONFIG_FILES = $CONFIG_FILES
18629 CONFIG_HEADERS = $CONFIG_HEADERS
18630 CONFIG_LINKS = $CONFIG_LINKS
18631 CONFIG_COMMANDS = $CONFIG_COMMANDS
18634 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18639 case $ac_config_files in *"
18640 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18643 case $ac_config_headers in *"
18644 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18649 # Files that config.status was made for.
18650 config_files="$ac_config_files"
18651 config_headers="$ac_config_headers"
18652 config_commands="$ac_config_commands"
18656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18658 \`$as_me' instantiates files and other configuration actions
18659 from templates according to the current configuration. Unless the files
18660 and actions are specified as TAGs, all are instantiated by default.
18662 Usage: $0 [OPTION]... [TAG]...
18664 -h, --help print this help, then exit
18665 -V, --version print version number and configuration settings, then exit
18666 --config print configuration, then exit
18667 -q, --quiet, --silent
18668 do not print progress messages
18669 -d, --debug don't remove temporary files
18670 --recheck update $as_me by reconfiguring in the same conditions
18671 --file=FILE[:TEMPLATE]
18672 instantiate the configuration file FILE
18673 --header=FILE[:TEMPLATE]
18674 instantiate the configuration header FILE
18676 Configuration files:
18679 Configuration headers:
18682 Configuration commands:
18685 Report bugs to <unbound-bugs@nlnetlabs.nl>."
18688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18689 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18691 unbound config.status 1.4.20
18692 configured by $0, generated by GNU Autoconf 2.69,
18693 with options \\"\$ac_cs_config\\"
18695 Copyright (C) 2012 Free Software Foundation, Inc.
18696 This config.status script is free software; the Free Software Foundation
18697 gives unlimited permission to copy, distribute and modify it."
18702 test -n "\$AWK" || AWK=awk
18705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18706 # The default lists apply if the user does not specify any file.
18712 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18713 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18717 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18729 # Handling of the options.
18730 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18732 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18733 $as_echo "$ac_cs_version"; exit ;;
18734 --config | --confi | --conf | --con | --co | --c )
18735 $as_echo "$ac_cs_config"; exit ;;
18736 --debug | --debu | --deb | --de | --d | -d )
18738 --file | --fil | --fi | --f )
18741 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18742 '') as_fn_error $? "missing file argument" ;;
18744 as_fn_append CONFIG_FILES " '$ac_optarg'"
18745 ac_need_defaults=false;;
18746 --header | --heade | --head | --hea )
18749 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18751 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18752 ac_need_defaults=false;;
18754 # Conflict between --help and --header
18755 as_fn_error $? "ambiguous option: \`$1'
18756 Try \`$0 --help' for more information.";;
18757 --help | --hel | -h )
18758 $as_echo "$ac_cs_usage"; exit ;;
18759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18760 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18763 # This is an error.
18764 -*) as_fn_error $? "unrecognized option: \`$1'
18765 Try \`$0 --help' for more information." ;;
18767 *) as_fn_append ac_config_targets " $1"
18768 ac_need_defaults=false ;;
18774 ac_configure_extra_args=
18776 if $ac_cs_silent; then
18778 ac_configure_extra_args="$ac_configure_extra_args --silent"
18782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18783 if \$ac_cs_recheck; then
18784 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18786 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18787 CONFIG_SHELL='$SHELL'
18788 export CONFIG_SHELL
18793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18797 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18798 ## Running $as_me. ##
18804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18810 # The HP-UX ksh and POSIX shell print the target directory to stdout
18811 # if CDPATH is set.
18812 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18814 sed_quote_subst='$sed_quote_subst'
18815 double_quote_subst='$double_quote_subst'
18816 delay_variable_subst='$delay_variable_subst'
18817 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18818 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18819 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18820 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18821 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18822 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18823 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18824 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18825 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18826 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18827 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18828 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18829 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18830 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18831 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18832 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18833 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18834 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18835 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18836 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18837 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18838 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18839 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18840 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18841 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18842 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18843 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18844 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18845 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18846 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18847 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18848 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18849 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18850 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18851 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18852 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18853 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18854 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18855 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18856 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18857 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18858 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18859 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18860 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18861 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18862 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18863 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18864 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18865 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18866 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18867 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18868 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18869 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18870 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18871 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18872 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18873 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"`'
18874 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18875 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18876 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18877 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18878 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18879 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18880 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18881 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18882 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18883 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18884 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18885 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18886 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18887 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18888 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18889 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18890 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18891 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18892 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18893 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18894 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18895 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18896 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18897 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18898 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18899 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18900 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18901 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18902 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18903 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18904 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18905 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18906 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18907 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18908 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18909 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18910 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18911 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18912 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18913 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18914 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18915 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18916 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18917 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18918 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18919 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18920 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18921 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18922 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18923 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18924 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18925 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18926 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18927 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18928 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18929 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18930 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18931 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18932 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18933 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18934 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18935 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18936 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18937 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18938 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18939 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18940 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18941 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18942 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18943 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18944 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18945 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18946 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18949 LTCFLAGS='$LTCFLAGS'
18950 compiler='$compiler_DEFAULT'
18952 # A function that is used when there is no print builtin or printf.
18953 func_fallback_echo ()
18955 eval 'cat <<_LTECHO_EOF
18960 # Quote evaled strings.
18975 deplibs_check_method \
18980 sharedlib_from_linklib_cmd \
18983 archiver_list_spec \
18989 lt_cv_sys_global_symbol_pipe \
18990 lt_cv_sys_global_symbol_to_cdecl \
18991 lt_cv_sys_global_symbol_to_c_name_address \
18992 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18993 nm_file_list_spec \
18994 lt_prog_compiler_no_builtin_flag \
18995 lt_prog_compiler_pic \
18996 lt_prog_compiler_wl \
18997 lt_prog_compiler_static \
18998 lt_cv_prog_compiler_c_o \
19007 export_dynamic_flag_spec \
19008 whole_archive_flag_spec \
19009 compiler_needs_object \
19011 allow_undefined_flag \
19012 no_undefined_flag \
19013 hardcode_libdir_flag_spec \
19014 hardcode_libdir_separator \
19018 variables_saved_for_relink \
19020 library_names_spec \
19022 install_override_mode \
19026 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19027 *[\\\\\\\`\\"\\\$]*)
19028 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19031 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19036 # Double-quote double-evaled strings.
19037 for var in reload_cmds \
19038 old_postinstall_cmds \
19039 old_postuninstall_cmds \
19041 extract_expsyms_cmds \
19042 old_archive_from_new_cmds \
19043 old_archive_from_expsyms_cmds \
19045 archive_expsym_cmds \
19047 module_expsym_cmds \
19048 export_symbols_cmds \
19052 postuninstall_cmds \
19054 sys_lib_search_path_spec \
19055 sys_lib_dlsearch_path_spec; do
19056 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19057 *[\\\\\\\`\\"\\\$]*)
19058 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19061 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19066 ac_aux_dir='$ac_aux_dir'
19067 xsi_shell='$xsi_shell'
19068 lt_shell_append='$lt_shell_append'
19070 # See if we are running on zsh, and set the options which allow our
19071 # commands through without removal of \ escapes INIT.
19072 if test -n "\${ZSH_VERSION+set}" ; then
19073 setopt NO_GLOB_SUBST
19079 TIMESTAMP='$TIMESTAMP'
19088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19090 # Handling of arguments.
19091 for ac_config_target in $ac_config_targets
19093 case $ac_config_target in
19094 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19095 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
19096 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19097 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
19098 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
19099 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
19100 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
19101 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
19102 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
19103 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
19104 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
19105 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19107 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19112 # If the user did not use the arguments to specify the items to instantiate,
19113 # then the envvar interface is used. Set only those that are not.
19114 # We use the long form for the default assignment because of an extremely
19115 # bizarre bug on SunOS 4.1.3.
19116 if $ac_need_defaults; then
19117 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19118 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19119 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19122 # Have a temporary directory for convenience. Make it in the build tree
19123 # simply because there is no reason against having it here, and in addition,
19124 # creating and moving files from /tmp can sometimes cause problems.
19125 # Hook for its removal unless debugging.
19126 # Note that there is a small window in which the directory will not be cleaned:
19127 # after its creation but before its name has been assigned to `$tmp'.
19131 trap 'exit_status=$?
19132 : "${ac_tmp:=$tmp}"
19133 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19135 trap 'as_fn_exit 1' 1 2 13 15
19137 # Create a (secure) tmp directory for tmp files.
19140 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19144 tmp=./conf$$-$RANDOM
19145 (umask 077 && mkdir "$tmp")
19146 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19149 # Set up the scripts for CONFIG_FILES section.
19150 # No need to generate them if there are no CONFIG_FILES.
19151 # This happens for instance with `./config.status config.h'.
19152 if test -n "$CONFIG_FILES"; then
19155 ac_cr=`echo X | tr X '\015'`
19156 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19157 # But we know of no other shell where ac_cr would be empty at this
19158 # point, so we can use a bashism as a fallback.
19159 if test "x$ac_cr" = x; then
19160 eval ac_cr=\$\'\\r\'
19162 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19163 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19166 ac_cs_awk_cr=$ac_cr
19169 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19174 echo "cat >conf$$subs.awk <<_ACEOF" &&
19175 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19177 } >conf$$subs.sh ||
19178 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19179 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19181 for ac_last_try in false false false false false :; do
19182 . ./conf$$subs.sh ||
19183 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19185 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19186 if test $ac_delim_n = $ac_delim_num; then
19188 elif $ac_last_try; then
19189 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19191 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19194 rm -f conf$$subs.sh
19196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19197 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19201 s/^/S["/; s/!.*/"]=/
19211 s/\(.\{148\}\)..*/\1/
19213 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19218 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19225 s/\(.\{148\}\)..*/\1/
19227 s/["\\]/\\&/g; s/^/"/; s/$/"/
19231 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19236 ' <conf$$subs.awk | sed '
19241 ' >>$CONFIG_STATUS || ac_write_fail=1
19242 rm -f conf$$subs.awk
19243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19245 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19246 for (key in S) S_is_set[key] = 1
19252 nfields = split(line, field, "@")
19254 len = length(field[1])
19255 for (i = 2; i < nfields; i++) {
19257 keylen = length(key)
19258 if (S_is_set[key]) {
19260 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19261 len += length(value) + length(field[++i])
19272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19273 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19274 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19277 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19278 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19281 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19282 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19283 # trailing colons and then remove the whole line if VPATH becomes empty
19284 # (actually we leave an empty line to preserve line numbers).
19285 if test "x$srcdir" = x.; then
19286 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19305 fi # test -n "$CONFIG_FILES"
19307 # Set up the scripts for CONFIG_HEADERS section.
19308 # No need to generate them if there are no CONFIG_HEADERS.
19309 # This happens for instance with `./config.status Makefile'.
19310 if test -n "$CONFIG_HEADERS"; then
19311 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19315 # Transform confdefs.h into an awk script `defines.awk', embedded as
19316 # here-document in config.status, that substitutes the proper values into
19317 # config.h.in to produce config.h.
19319 # Create a delimiter string that does not exist in confdefs.h, to ease
19320 # handling of long lines.
19322 for ac_last_try in false false :; do
19323 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19324 if test -z "$ac_tt"; then
19326 elif $ac_last_try; then
19327 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19329 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19333 # For the awk script, D is an array of macro values keyed by name,
19334 # likewise P contains macro parameters if any. Preserve backslash
19335 # newline sequences.
19337 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19339 s/.\{148\}/&'"$ac_delim"'/g
19342 s/^[ ]*#[ ]*define[ ][ ]*/ /
19349 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19351 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19355 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19356 D["\1"]=" \3\\\\\\n"\\/p
19358 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19363 s/.\{148\}/&'"$ac_delim"'/g
19368 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19371 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19373 ' <confdefs.h | sed '
19374 s/'"$ac_delim"'/"\\\
19375 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19378 for (key in D) D_is_set[key] = 1
19381 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19383 split(line, arg, " ")
19384 if (arg[1] == "#") {
19388 defundef = substr(arg[1], 2)
19391 split(mac1, mac2, "(") #)
19393 prefix = substr(line, 1, index(line, defundef) - 1)
19394 if (D_is_set[macro]) {
19395 # Preserve the white space surrounding the "#".
19396 print prefix "define", macro P[macro] D[macro]
19399 # Replace #undef with comments. This is necessary, for example,
19400 # in the case of _POSIX_SOURCE, which is predefined and required
19401 # on some systems where configure will not decide to define it.
19402 if (defundef == "undef") {
19403 print "/*", prefix defundef, macro, "*/"
19411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19412 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19413 fi # test -n "$CONFIG_HEADERS"
19416 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19421 :[FHLC]) ac_mode=$ac_tag; continue;;
19423 case $ac_mode$ac_tag in
19425 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19426 :[FH]-) ac_tag=-:-;;
19427 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19444 -) ac_f="$ac_tmp/stdin";;
19445 *) # Look for the file first in the build tree, then in the source tree
19446 # (if the path is not absolute). The absolute path cannot be DOS-style,
19447 # because $ac_f cannot contain `:'.
19451 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19453 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19455 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19456 as_fn_append ac_file_inputs " '$ac_f'"
19459 # Let's still pretend it is `configure' which instantiates (i.e., don't
19460 # use $as_me), people would be surprised to read:
19461 # /* config.h. Generated by config.status. */
19462 configure_input='Generated from '`
19463 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19465 if test x"$ac_file" != x-; then
19466 configure_input="$ac_file. $configure_input"
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19468 $as_echo "$as_me: creating $ac_file" >&6;}
19470 # Neutralize special characters interpreted by sed in replacement strings.
19471 case $configure_input in #(
19472 *\&* | *\|* | *\\* )
19473 ac_sed_conf_input=`$as_echo "$configure_input" |
19474 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19475 *) ac_sed_conf_input=$configure_input;;
19479 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19480 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19485 ac_dir=`$as_dirname -- "$ac_file" ||
19486 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19487 X"$ac_file" : 'X\(//\)[^/]' \| \
19488 X"$ac_file" : 'X\(//\)$' \| \
19489 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19490 $as_echo X"$ac_file" |
19491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19495 /^X\(\/\/\)[^/].*/{
19508 as_dir="$ac_dir"; as_fn_mkdir_p
19512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19515 # A ".." for each directory in $ac_dir_suffix.
19516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19517 case $ac_top_builddir_sub in
19518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19522 ac_abs_top_builddir=$ac_pwd
19523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19524 # for backward compatibility:
19525 ac_top_builddir=$ac_top_build_prefix
19528 .) # We are building in place.
19530 ac_top_srcdir=$ac_top_builddir_sub
19531 ac_abs_top_srcdir=$ac_pwd ;;
19532 [\\/]* | ?:[\\/]* ) # Absolute name.
19533 ac_srcdir=$srcdir$ac_dir_suffix;
19534 ac_top_srcdir=$srcdir
19535 ac_abs_top_srcdir=$srcdir ;;
19536 *) # Relative name.
19537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19538 ac_top_srcdir=$ac_top_build_prefix$srcdir
19539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19553 # If the template does not know about datarootdir, expand it.
19554 # FIXME: This hack should be removed a few years after 2.60.
19555 ac_datarootdir_hack=; ac_datarootdir_seen=
19566 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19567 *datarootdir*) ac_datarootdir_seen=yes;;
19568 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19570 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19573 ac_datarootdir_hack='
19574 s&@datadir@&$datadir&g
19575 s&@docdir@&$docdir&g
19576 s&@infodir@&$infodir&g
19577 s&@localedir@&$localedir&g
19578 s&@mandir@&$mandir&g
19579 s&\\\${datarootdir}&$datarootdir&g' ;;
19583 # Neutralize VPATH when `$srcdir' = `.'.
19584 # Shell code in configure.ac might set extrasub.
19585 # FIXME: do we really want to maintain this feature?
19586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19587 ac_sed_extra="$ac_vpsub
19590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19593 s|@configure_input@|$ac_sed_conf_input|;t t
19594 s&@top_builddir@&$ac_top_builddir_sub&;t t
19595 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19596 s&@srcdir@&$ac_srcdir&;t t
19597 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19598 s&@top_srcdir@&$ac_top_srcdir&;t t
19599 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19600 s&@builddir@&$ac_builddir&;t t
19601 s&@abs_builddir@&$ac_abs_builddir&;t t
19602 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19603 $ac_datarootdir_hack
19605 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19606 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19609 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19611 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19613 which seems to be undefined. Please make sure it is defined" >&5
19614 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19615 which seems to be undefined. Please make sure it is defined" >&2;}
19617 rm -f "$ac_tmp/stdin"
19619 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19620 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19628 if test x"$ac_file" != x-; then
19630 $as_echo "/* $configure_input */" \
19631 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19632 } >"$ac_tmp/config.h" \
19633 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19634 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19636 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19639 mv "$ac_tmp/config.h" "$ac_file" \
19640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19643 $as_echo "/* $configure_input */" \
19644 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19645 || as_fn_error $? "could not create -" "$LINENO" 5
19649 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19650 $as_echo "$as_me: executing $ac_file commands" >&6;}
19655 case $ac_file$ac_mode in
19658 # See if we are running on zsh, and set the options which allow our
19659 # commands through without removal of \ escapes.
19660 if test -n "${ZSH_VERSION+set}" ; then
19661 setopt NO_GLOB_SUBST
19664 cfgfile="${ofile}T"
19665 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19668 cat <<_LT_EOF >> "$cfgfile"
19671 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19672 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19673 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19674 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19676 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19677 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19679 # Written by Gordon Matzigkeit, 1996
19681 # This file is part of GNU Libtool.
19683 # GNU Libtool is free software; you can redistribute it and/or
19684 # modify it under the terms of the GNU General Public License as
19685 # published by the Free Software Foundation; either version 2 of
19686 # the License, or (at your option) any later version.
19688 # As a special exception to the GNU General Public License,
19689 # if you distribute this file as part of a program or library that
19690 # is built using GNU Libtool, you may include this file under the
19691 # same distribution terms that you use for the rest of that program.
19693 # GNU Libtool is distributed in the hope that it will be useful,
19694 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19695 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19696 # GNU General Public License for more details.
19698 # You should have received a copy of the GNU General Public License
19699 # along with GNU Libtool; see the file COPYING. If not, a copy
19700 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19701 # obtained by writing to the Free Software Foundation, Inc.,
19702 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19705 # The names of the tagged configurations supported by this script.
19708 # ### BEGIN LIBTOOL CONFIG
19710 # Which release of libtool.m4 was used?
19711 macro_version=$macro_version
19712 macro_revision=$macro_revision
19714 # Whether or not to build shared libraries.
19715 build_libtool_libs=$enable_shared
19717 # Whether or not to build static libraries.
19718 build_old_libs=$enable_static
19720 # What type of objects to build.
19723 # Whether or not to optimize for fast installation.
19724 fast_install=$enable_fast_install
19726 # Shell to use when invoking shell scripts.
19729 # An echo program that protects backslashes.
19732 # The PATH separator for the build system.
19733 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19736 host_alias=$host_alias
19740 # The build system.
19741 build_alias=$build_alias
19745 # A sed program that does not truncate output.
19748 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19749 Xsed="\$SED -e 1s/^X//"
19751 # A grep program that handles long lines.
19757 # A literal string matcher.
19760 # A BSD- or MS-compatible name lister.
19763 # Whether we need soft or hard links.
19766 # What is the maximum length of a command?
19767 max_cmd_len=$max_cmd_len
19769 # Object file suffix (normally "o").
19772 # Executable file suffix (normally "").
19775 # whether the shell understands "unset".
19778 # turn spaces into newlines.
19781 # turn newlines into spaces.
19784 # convert \$build file names to \$host format.
19785 to_host_file_cmd=$lt_cv_to_host_file_cmd
19787 # convert \$build files to toolchain format.
19788 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19790 # An object symbol dumper.
19791 OBJDUMP=$lt_OBJDUMP
19793 # Method to check whether dependent libraries are shared objects.
19794 deplibs_check_method=$lt_deplibs_check_method
19796 # Command to use when deplibs_check_method = "file_magic".
19797 file_magic_cmd=$lt_file_magic_cmd
19799 # How to find potential files when deplibs_check_method = "file_magic".
19800 file_magic_glob=$lt_file_magic_glob
19802 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19803 want_nocaseglob=$lt_want_nocaseglob
19805 # DLL creation program.
19806 DLLTOOL=$lt_DLLTOOL
19808 # Command to associate shared and link libraries.
19809 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19814 # Flags to create an archive.
19815 AR_FLAGS=$lt_AR_FLAGS
19817 # How to feed a file listing to the archiver.
19818 archiver_list_spec=$lt_archiver_list_spec
19820 # A symbol stripping program.
19823 # Commands used to install an old-style archive.
19825 old_postinstall_cmds=$lt_old_postinstall_cmds
19826 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19828 # Whether to use a lock for old archive extraction.
19829 lock_old_archive_extraction=$lock_old_archive_extraction
19834 # LTCC compiler flags.
19835 LTCFLAGS=$lt_CFLAGS
19837 # Take the output of nm and produce a listing of raw symbols and C names.
19838 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19840 # Transform the output of nm in a proper C declaration.
19841 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19843 # Transform the output of nm in a C name address pair.
19844 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19846 # Transform the output of nm in a C name address pair when lib prefix is needed.
19847 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19849 # Specify filename containing input files for \$NM.
19850 nm_file_list_spec=$lt_nm_file_list_spec
19852 # The root where to search for dependent libraries,and in which our libraries should be installed.
19853 lt_sysroot=$lt_sysroot
19855 # The name of the directory that contains temporary libtool files.
19858 # Used to examine libraries when file_magic_cmd begins with "file".
19859 MAGIC_CMD=$MAGIC_CMD
19861 # Must we lock files when doing compilation?
19862 need_locks=$lt_need_locks
19865 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19867 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19868 DSYMUTIL=$lt_DSYMUTIL
19870 # Tool to change global to local symbols on Mac OS X.
19873 # Tool to manipulate fat objects and archives on Mac OS X.
19876 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19879 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19880 OTOOL64=$lt_OTOOL64
19882 # Old archive suffix (normally "a").
19885 # Shared library suffix (normally ".so").
19886 shrext_cmds=$lt_shrext_cmds
19888 # The commands to extract the exported symbol list from a shared archive.
19889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19891 # Variables whose values should be saved in libtool wrapper scripts and
19892 # restored at link time.
19893 variables_saved_for_relink=$lt_variables_saved_for_relink
19895 # Do we need the "lib" prefix for modules?
19896 need_lib_prefix=$need_lib_prefix
19898 # Do we need a version for libraries?
19899 need_version=$need_version
19901 # Library versioning type.
19902 version_type=$version_type
19904 # Shared library runtime path variable.
19905 runpath_var=$runpath_var
19907 # Shared library path variable.
19908 shlibpath_var=$shlibpath_var
19910 # Is shlibpath searched before the hard-coded library search path?
19911 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19913 # Format of library name prefix.
19914 libname_spec=$lt_libname_spec
19916 # List of archive names. First name is the real one, the rest are links.
19917 # The last name is the one that the linker finds with -lNAME
19918 library_names_spec=$lt_library_names_spec
19920 # The coded name of the library, if different from the real name.
19921 soname_spec=$lt_soname_spec
19923 # Permission mode override for installation of shared libraries.
19924 install_override_mode=$lt_install_override_mode
19926 # Command to use after installation of a shared archive.
19927 postinstall_cmds=$lt_postinstall_cmds
19929 # Command to use after uninstallation of a shared archive.
19930 postuninstall_cmds=$lt_postuninstall_cmds
19932 # Commands used to finish a libtool library installation in a directory.
19933 finish_cmds=$lt_finish_cmds
19935 # As "finish_cmds", except a single script fragment to be evaled but
19937 finish_eval=$lt_finish_eval
19939 # Whether we should hardcode library paths into libraries.
19940 hardcode_into_libs=$hardcode_into_libs
19942 # Compile-time system search path for libraries.
19943 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19945 # Run-time system search path for libraries.
19946 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19948 # Whether dlopen is supported.
19949 dlopen_support=$enable_dlopen
19951 # Whether dlopen of programs is supported.
19952 dlopen_self=$enable_dlopen_self
19954 # Whether dlopen of statically linked programs is supported.
19955 dlopen_self_static=$enable_dlopen_self_static
19957 # Commands to strip libraries.
19958 old_striplib=$lt_old_striplib
19959 striplib=$lt_striplib
19962 # The linker used to build libraries.
19965 # How to create reloadable object files.
19966 reload_flag=$lt_reload_flag
19967 reload_cmds=$lt_reload_cmds
19969 # Commands used to build an old-style archive.
19970 old_archive_cmds=$lt_old_archive_cmds
19972 # A language specific compiler.
19975 # Is the compiler the GNU compiler?
19978 # Compiler flag to turn off builtin functions.
19979 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19981 # Additional compiler flags for building library objects.
19982 pic_flag=$lt_lt_prog_compiler_pic
19984 # How to pass a linker flag through the compiler.
19985 wl=$lt_lt_prog_compiler_wl
19987 # Compiler flag to prevent dynamic linking.
19988 link_static_flag=$lt_lt_prog_compiler_static
19990 # Does compiler simultaneously support -c and -o options?
19991 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19993 # Whether or not to add -lc for building shared libraries.
19994 build_libtool_need_lc=$archive_cmds_need_lc
19996 # Whether or not to disallow shared libs when runtime libs are static.
19997 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19999 # Compiler flag to allow reflexive dlopens.
20000 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20002 # Compiler flag to generate shared objects directly from archives.
20003 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20005 # Whether the compiler copes with passing no objects directly.
20006 compiler_needs_object=$lt_compiler_needs_object
20008 # Create an old-style archive from a shared archive.
20009 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20011 # Create a temporary old-style archive to link instead of a shared archive.
20012 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20014 # Commands used to build a shared archive.
20015 archive_cmds=$lt_archive_cmds
20016 archive_expsym_cmds=$lt_archive_expsym_cmds
20018 # Commands used to build a loadable module if different from building
20019 # a shared archive.
20020 module_cmds=$lt_module_cmds
20021 module_expsym_cmds=$lt_module_expsym_cmds
20023 # Whether we are building with GNU ld or not.
20024 with_gnu_ld=$lt_with_gnu_ld
20026 # Flag that allows shared libraries with undefined symbols to be built.
20027 allow_undefined_flag=$lt_allow_undefined_flag
20029 # Flag that enforces no undefined symbols.
20030 no_undefined_flag=$lt_no_undefined_flag
20032 # Flag to hardcode \$libdir into a binary during linking.
20033 # This must work even if \$libdir does not exist
20034 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20036 # Whether we need a single "-rpath" flag with a separated argument.
20037 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20039 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20040 # DIR into the resulting binary.
20041 hardcode_direct=$hardcode_direct
20043 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20044 # DIR into the resulting binary and the resulting library dependency is
20045 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20046 # library is relocated.
20047 hardcode_direct_absolute=$hardcode_direct_absolute
20049 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20050 # into the resulting binary.
20051 hardcode_minus_L=$hardcode_minus_L
20053 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20054 # into the resulting binary.
20055 hardcode_shlibpath_var=$hardcode_shlibpath_var
20057 # Set to "yes" if building a shared library automatically hardcodes DIR
20058 # into the library and all subsequent libraries and executables linked
20060 hardcode_automatic=$hardcode_automatic
20062 # Set to yes if linker adds runtime paths of dependent libraries
20063 # to runtime path list.
20064 inherit_rpath=$inherit_rpath
20066 # Whether libtool must link a program against all its dependency libraries.
20067 link_all_deplibs=$link_all_deplibs
20069 # Set to "yes" if exported symbols are required.
20070 always_export_symbols=$always_export_symbols
20072 # The commands to list exported symbols.
20073 export_symbols_cmds=$lt_export_symbols_cmds
20075 # Symbols that should not be listed in the preloaded symbols.
20076 exclude_expsyms=$lt_exclude_expsyms
20078 # Symbols that must always be exported.
20079 include_expsyms=$lt_include_expsyms
20081 # Commands necessary for linking programs (against libraries) with templates.
20082 prelink_cmds=$lt_prelink_cmds
20084 # Commands necessary for finishing linking programs.
20085 postlink_cmds=$lt_postlink_cmds
20087 # Specify filename containing input files.
20088 file_list_spec=$lt_file_list_spec
20090 # How to hardcode a shared library path into an executable.
20091 hardcode_action=$hardcode_action
20093 # ### END LIBTOOL CONFIG
20099 cat <<\_LT_EOF >> "$cfgfile"
20100 # AIX sometimes has problems with the GCC collect2 program. For some
20101 # reason, if we set the COLLECT_NAMES environment variable, the problems
20102 # vanish in a puff of smoke.
20103 if test "X${COLLECT_NAMES+set}" != Xset; then
20105 export COLLECT_NAMES
20112 ltmain="$ac_aux_dir/ltmain.sh"
20115 # We use sed instead of cat because bash on DJGPP gets confused if
20116 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20117 # text mode, it properly converts lines to CR/LF. This bash problem
20118 # is reportedly fixed, but why not run on old versions too?
20119 sed '$q' "$ltmain" >> "$cfgfile" \
20120 || (rm -f "$cfgfile"; exit 1)
20122 if test x"$xsi_shell" = xyes; then
20123 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20127 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20128 \ * ) func_dirname_result="${3}" ;;\
20130 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20131 && mv -f "$cfgfile.tmp" "$cfgfile" \
20132 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20133 test 0 -eq $? || _lt_function_replace_fail=:
20136 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20139 \ func_basename_result="${1##*/}"\
20140 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20141 && mv -f "$cfgfile.tmp" "$cfgfile" \
20142 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20143 test 0 -eq $? || _lt_function_replace_fail=:
20146 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20147 func_dirname_and_basename ()\
20150 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20151 \ * ) func_dirname_result="${3}" ;;\
20153 \ func_basename_result="${1##*/}"\
20154 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20155 && mv -f "$cfgfile.tmp" "$cfgfile" \
20156 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20157 test 0 -eq $? || _lt_function_replace_fail=:
20160 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20163 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20164 \ # positional parameters, so assign one to ordinary parameter first.\
20165 \ func_stripname_result=${3}\
20166 \ func_stripname_result=${func_stripname_result#"${1}"}\
20167 \ func_stripname_result=${func_stripname_result%"${2}"}\
20168 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20169 && mv -f "$cfgfile.tmp" "$cfgfile" \
20170 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20171 test 0 -eq $? || _lt_function_replace_fail=:
20174 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20175 func_split_long_opt ()\
20177 \ func_split_long_opt_name=${1%%=*}\
20178 \ func_split_long_opt_arg=${1#*=}\
20179 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20180 && mv -f "$cfgfile.tmp" "$cfgfile" \
20181 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20182 test 0 -eq $? || _lt_function_replace_fail=:
20185 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20186 func_split_short_opt ()\
20188 \ func_split_short_opt_arg=${1#??}\
20189 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20190 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20191 && mv -f "$cfgfile.tmp" "$cfgfile" \
20192 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20193 test 0 -eq $? || _lt_function_replace_fail=:
20196 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20200 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20201 \ *) func_lo2o_result=${1} ;;\
20203 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20204 && mv -f "$cfgfile.tmp" "$cfgfile" \
20205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20206 test 0 -eq $? || _lt_function_replace_fail=:
20209 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20212 func_xform_result=${1%.*}.lo\
20213 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20214 && mv -f "$cfgfile.tmp" "$cfgfile" \
20215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20216 test 0 -eq $? || _lt_function_replace_fail=:
20219 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20222 func_arith_result=$(( $* ))\
20223 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20224 && mv -f "$cfgfile.tmp" "$cfgfile" \
20225 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20226 test 0 -eq $? || _lt_function_replace_fail=:
20229 sed -e '/^func_len ()$/,/^} # func_len /c\
20232 func_len_result=${#1}\
20233 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20234 && mv -f "$cfgfile.tmp" "$cfgfile" \
20235 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20236 test 0 -eq $? || _lt_function_replace_fail=:
20240 if test x"$lt_shell_append" = xyes; then
20241 sed -e '/^func_append ()$/,/^} # func_append /c\
20244 eval "${1}+=\\${2}"\
20245 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20246 && mv -f "$cfgfile.tmp" "$cfgfile" \
20247 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20248 test 0 -eq $? || _lt_function_replace_fail=:
20251 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20252 func_append_quoted ()\
20254 \ func_quote_for_eval "${2}"\
20255 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20256 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20257 && mv -f "$cfgfile.tmp" "$cfgfile" \
20258 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20259 test 0 -eq $? || _lt_function_replace_fail=:
20262 # Save a `func_append' function call where possible by direct use of '+='
20263 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20264 && mv -f "$cfgfile.tmp" "$cfgfile" \
20265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20266 test 0 -eq $? || _lt_function_replace_fail=:
20268 # Save a `func_append' function call even when '+=' is not available
20269 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20270 && mv -f "$cfgfile.tmp" "$cfgfile" \
20271 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20272 test 0 -eq $? || _lt_function_replace_fail=:
20275 if test x"$_lt_function_replace_fail" = x":"; then
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20277 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20281 mv -f "$cfgfile" "$ofile" ||
20282 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20287 sed < libtool > libtool-2 \
20288 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
20289 mv libtool-2 libtool
20291 libtool="./libtool"
20300 ac_clean_files=$ac_clean_files_save
20302 test $ac_write_fail = 0 ||
20303 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20306 # configure is writing to config.log, and then calls config.status.
20307 # config.status does its own redirection, appending to config.log.
20308 # Unfortunately, on DOS this fails, as config.log is still kept open
20309 # by configure, so config.status won't be able to write to it; its
20310 # output is simply discarded. So we exec the FD to /dev/null,
20311 # effectively closing config.log, so it can be properly (re)opened and
20312 # appended to by config.status. When coming back to configure, we
20313 # need to make the FD available again.
20314 if test "$no_create" != yes; then
20316 ac_config_status_args=
20317 test "$silent" = yes &&
20318 ac_config_status_args="$ac_config_status_args --quiet"
20320 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20322 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20323 # would make configure fail if this is the last instruction.
20324 $ac_cs_success || as_fn_exit 1
20326 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20328 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}