2 # Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC")
3 # Copyright (C) 1996-2003 Internet Software Consortium.
5 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
9 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 # PERFORMANCE OF THIS SOFTWARE.
17 # Guess values for system-dependent variables and create Makefiles.
18 # Generated by GNU Autoconf 2.69 for BIND 9.10.
20 # Report bugs to <bind9-bugs@isc.org>.
23 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
26 # This configure script is free software; the Free Software Foundation
27 # gives unlimited permission to copy, distribute and modify it.
28 ## -------------------- ##
29 ## M4sh Initialization. ##
30 ## -------------------- ##
32 # Be more Bourne compatible
33 DUALCASE
=1; export DUALCASE
# for MKS sh
34 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
37 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
38 # is contrary to our usage. Disable this feature.
39 alias -g '${1+"$@"}'='"$@"'
42 case `(set -o) 2>/dev/null` in #(
54 # Printing a long string crashes Solaris 7 /usr/bin/printf.
55 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
56 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
57 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
58 # Prefer a ksh shell builtin over an external printf program on Solaris,
59 # but without wasting forks for bash or zsh.
60 if test -z "$BASH_VERSION$ZSH_VERSION" \
61 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
63 as_echo_n='print
-rn --'
64 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
68 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
69 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
70 as_echo_n='/usr
/ucb
/echo -n'
72 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
77 expr "X$arg" : "X\\(.*\\)$as_nl";
78 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
80 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
83 as_echo_n='sh
-c $as_echo_n_body as_echo
'
86 as_echo='sh
-c $as_echo_body as_echo
'
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
92 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
93 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
100 # We need space, tab and new line, in precisely that order. Quoting is
101 # there to prevent editors from complaining about space-tab.
102 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
103 # splitting by setting IFS to empty value.)
106 # Find who we are. Look in the path if we contain no directory separator.
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
131 # Unset variables that we do not need and which cause bugs (e.g. in
132 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
133 # suppresses any "Segmentation fault" message there. '((' could
134 # trigger a bug in pdksh 5.2.14.
135 for as_var
in BASH_ENV ENV MAIL MAILPATH
136 do eval test x\
${$as_var+set} = xset \
137 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
150 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
152 # Use a proper internal environment variable to ensure we don't fall
153 # into an infinite loop, continuously re-executing ourselves.
154 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
155 _as_can_reexec
=no
; export _as_can_reexec
;
156 # We cannot yet assume a decent shell, so we have to provide a
157 # neutralization value for shells without unset; and this also
158 # works around shells that cannot unset nonexistent variables.
159 # Preserve -v and -x to the replacement shell.
162 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
164 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
169 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
170 # Admittedly, this is quite paranoid, since all the known shells bail
171 # out after a failed `exec'.
172 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
175 # We don't want this to propagate to other subprocesses.
176 { _as_can_reexec
=; unset _as_can_reexec
;}
177 if test "x$CONFIG_SHELL" = x
; then
178 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
181 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
182 # is contrary to our usage. Disable this feature.
183 alias -g '\${1+\"\$@\"}'='\"\$@\"'
186 case \`(set -o) 2>/dev/null\` in #(
194 as_required
="as_fn_return () { (exit \$1); }
195 as_fn_success () { as_fn_return 0; }
196 as_fn_failure () { as_fn_return 1; }
197 as_fn_ret_success () { return 0; }
198 as_fn_ret_failure () { return 1; }
201 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
202 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
203 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
204 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
205 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
208 exitcode=1; echo positional parameters were not saved.
210 test x\$exitcode = x0 || exit 1
212 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
213 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
214 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
215 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
217 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
218 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
219 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
220 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
221 PATH=/empty FPATH=/empty; export PATH FPATH
222 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
223 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
224 test \$(( 1 + 1 )) = 2 || exit 1"
225 if (eval "$as_required") 2>/dev
/null
; then :
230 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
235 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
238 test -z "$as_dir" && as_dir
=.
242 for as_base
in sh bash ksh sh5
; do
243 # Try only shells that exist, to save several forks.
244 as_shell
=$as_dir/$as_base
245 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
246 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
247 CONFIG_SHELL
=$as_shell as_have_required
=yes
248 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
256 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
257 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
258 CONFIG_SHELL
=$SHELL as_have_required
=yes
263 if test "x$CONFIG_SHELL" != x
; then :
265 # We cannot yet assume a decent shell, so we have to provide a
266 # neutralization value for shells without unset; and this also
267 # works around shells that cannot unset nonexistent variables.
268 # Preserve -v and -x to the replacement shell.
271 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
273 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
278 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
279 # Admittedly, this is quite paranoid, since all the known shells bail
280 # out after a failed `exec'.
281 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
285 if test x
$as_have_required = xno
; then :
286 $as_echo "$0: This script requires a shell more modern than all"
287 $as_echo "$0: the shells that I found on your system."
288 if test x
${ZSH_VERSION+set} = xset
; then
289 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
290 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
292 $as_echo "$0: Please tell bug-autoconf@gnu.org and bind9-bugs@isc.org
293 $0: about your system, including any error possibly output
294 $0: before this message. Then install a modern shell, or
295 $0: manually run the script under such a shell if you do
302 SHELL
=${CONFIG_SHELL-/bin/sh}
304 # Unset more variables known to interfere with behavior of common tools.
305 CLICOLOR_FORCE
= GREP_OPTIONS
=
306 unset CLICOLOR_FORCE GREP_OPTIONS
308 ## --------------------- ##
309 ## M4sh Shell Functions. ##
310 ## --------------------- ##
313 # Portably unset VAR.
316 { eval $1=; unset $1;}
320 # as_fn_set_status STATUS
321 # -----------------------
322 # Set $? to STATUS, without forking.
330 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
340 # Create "$as_dir" as a directory, including parents if necessary.
345 -*) as_dir
=.
/$as_dir;;
347 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
351 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
354 as_dirs
="'$as_qdir' $as_dirs"
355 as_dir
=`$as_dirname -- "$as_dir" ||
356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
357 X"$as_dir" : 'X\(//\)[^/]' \| \
358 X"$as_dir" : 'X\(//\)$' \| \
359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
360 $as_echo X"$as_dir" |
361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
378 test -d "$as_dir" && break
380 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
381 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
386 # as_fn_executable_p FILE
387 # -----------------------
388 # Test if FILE is an executable regular file.
389 as_fn_executable_p
()
391 test -f "$1" && test -x "$1"
392 } # as_fn_executable_p
393 # as_fn_append VAR VALUE
394 # ----------------------
395 # Append the text in VALUE to the end of the definition contained in VAR. Take
396 # advantage of any shell optimizations that allow amortized linear growth over
397 # repeated appends, instead of the typical quadratic growth present in naive
399 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
400 eval 'as_fn_append ()
413 # Perform arithmetic evaluation on the ARGs, and store the result in the
414 # global $as_val. Take advantage of shells that can avoid forks. The arguments
415 # must be portable across $(()) and expr.
416 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
424 as_val
=`expr "$@" || test $? -eq 1`
429 # as_fn_error STATUS ERROR [LINENO LOG_FD]
430 # ----------------------------------------
431 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
432 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
433 # script with STATUS, using 1 if that was 0.
436 as_status
=$1; test $as_status -eq 0 && as_status
=1
438 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
439 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
441 $as_echo "$as_me: error: $2" >&2
442 as_fn_exit
$as_status
445 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
446 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
452 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
464 as_me
=`$as_basename -- "$0" ||
465 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
466 X"$0" : 'X\(//\)$' \| \
467 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
469 sed '/^.*\/\([^/][^/]*\)\/*$/{
483 # Avoid depending upon Character Ranges.
484 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
485 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
486 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
487 as_cr_digits
='0123456789'
488 as_cr_alnum
=$as_cr_Letters$as_cr_digits
491 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
492 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
493 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
494 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
495 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
507 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
511 chmod +x
"$as_me.lineno" ||
512 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
514 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
515 # already done that, so ensure we don't try to do so again and fall
516 # in an infinite loop. This has already happened in practice.
517 _as_can_reexec
=no
; export _as_can_reexec
518 # Don't try to exec as it changes $[0], causing all sort of problems
519 # (the dirname of $[0] is not the place where we might find the
520 # original and so on. Autoconf is especially sensitive to this).
522 # Exit status is that of the last command.
526 ECHO_C
= ECHO_N
= ECHO_T
=
527 case `echo -n x` in #(((((
529 case `echo 'xy\c'` in
530 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
539 rm -f conf$$ conf$$.exe conf$$.
file
540 if test -d conf$$.dir
; then
541 rm -f conf$$.dir
/conf$$.
file
544 mkdir conf$$.dir
2>/dev
/null
546 if (echo >conf$$.
file) 2>/dev
/null
; then
547 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
549 # ... but there are two gotchas:
550 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
551 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
552 # In both cases, we have to default to `cp -pR'.
553 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
555 elif ln conf$$.
file conf$$
2>/dev
/null
; then
563 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
564 rmdir conf$$.dir
2>/dev
/null
566 if mkdir
-p .
2>/dev
/null
; then
567 as_mkdir_p
='mkdir -p "$as_dir"'
569 test -d .
/-p && rmdir .
/-p
574 as_executable_p
=as_fn_executable_p
576 # Sed expression to map a string onto a valid CPP name.
577 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
579 # Sed expression to map a string onto a valid variable name.
580 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
582 SHELL
=${CONFIG_SHELL-/bin/sh}
585 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590 # so uname gets run too.
591 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
596 ac_default_prefix
=/usr
/local
598 ac_config_libobj_dir
=.
605 # Identity of this package.
607 PACKAGE_TARNAME
='bind'
608 PACKAGE_VERSION
='9.10'
609 PACKAGE_STRING
='BIND 9.10'
610 PACKAGE_BUGREPORT
='bind9-bugs@isc.org'
611 PACKAGE_URL
='https://www.isc.org/downloads/BIND/'
613 # Factoring default headers for most tests.
614 ac_includes_default
="\
616 #ifdef HAVE_SYS_TYPES_H
617 # include <sys/types.h>
619 #ifdef HAVE_SYS_STAT_H
620 # include <sys/stat.h>
626 # ifdef HAVE_STDLIB_H
631 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
636 #ifdef HAVE_STRINGS_H
637 # include <strings.h>
639 #ifdef HAVE_INTTYPES_H
640 # include <inttypes.h>
649 ac_subst_vars
='LTLIBOBJS
675 BIND9_IRS_BUILDINCLUDE
676 BIND9_BIND9_BUILDINCLUDE
677 BIND9_LWRES_BUILDINCLUDE
678 BIND9_DNS_BUILDINCLUDE
679 BIND9_ISCCFG_BUILDINCLUDE
680 BIND9_ISCCC_BUILDINCLUDE
681 BIND9_ISC_BUILDINCLUDE
688 XSLT_DB2LATEX_ADMONITIONS
690 XSLT_DOCBOOK_MAKETOC_XHTML
691 XSLT_DOCBOOK_MAKETOC_HTML
692 XSLT_DOCBOOK_CHUNKTOC_XHTML
693 XSLT_DOCBOOK_CHUNKTOC_HTML
694 XSLT_DOCBOOK_CHUNK_XHTML
695 XSLT_DOCBOOK_CHUNK_HTML
696 XSLT_DOCBOOK_STYLE_MAN
697 XSLT_DOCBOOK_STYLE_XHTML
698 XSLT_DOCBOOK_STYLE_HTML
706 ISC_PLATFORM_USEMACASM
707 ISC_PLATFORM_USESTDASM
708 ISC_PLATFORM_USEOSFASM
709 ISC_PLATFORM_USEGCCASM
710 ISC_PLATFORM_HAVEATOMICSTORE
711 ISC_PLATFORM_HAVECMPXCHG
712 ISC_PLATFORM_HAVEXADDQ
713 ISC_PLATFORM_HAVEXADD
714 ISC_PLATFORM_HAVEIFNAMETOINDEX
715 ISC_PLATFORM_HAVESTRINGSH
716 ISC_PLATFORM_BRACEPTHREADONCEINIT
717 IRS_PLATFORM_USEDECLSPEC
718 LWRES_PLATFORM_USEDECLSPEC
719 ISC_PLATFORM_USEDECLSPEC
720 ISC_PLATFORM_RLIMITTYPE
721 ISC_PLATFORM_HAVESYSUNH
722 LWRES_PLATFORM_QUADFORMAT
723 ISC_PLATFORM_QUADFORMAT
729 LWRES_PLATFORM_NEEDVSNPRINTF
730 ISC_PLATFORM_NEEDVSNPRINTF
731 LWRES_PLATFORM_NEEDSPRINTF
732 ISC_PLATFORM_NEEDSPRINTF
734 ISC_PLATFORM_NEEDSTRCASESTR
735 ISC_PLATFORM_NEEDSTRLCAT
736 LWRES_PLATFORM_NEEDSTRLCPY
737 ISC_PLATFORM_NEEDSTRLCPY
739 LWRES_PLATFORM_NEEDSTRTOUL
740 ISC_PLATFORM_NEEDSTRTOUL
741 ISC_PLATFORM_NEEDMEMMOVE
742 ISC_PLATFORM_NEEDSTRSEP
743 ISC_IRS_GETNAMEINFOSOCKLEN
744 ISC_LWRES_GETNAMEINFOPROTO
745 ISC_LWRES_GETADDRINFOPROTO
746 ISC_LWRES_GETIPNODEPROTO
748 ISC_LWRES_GETHOSTBYADDRVOID
749 ISC_LWRES_ENDNETENTINT
750 ISC_LWRES_SETNETENTINT
751 ISC_LWRES_GETNETBYADDRINADDR
752 ISC_LWRES_ENDHOSTENTINT
753 ISC_LWRES_SETHOSTENTINT
754 ISC_LWRES_NEEDRRSETINFO
756 ISC_LWRES_NEEDADDRINFO
757 ISC_PLATFORM_NEEDPORTT
758 ISC_PLATFORM_MSGHDRFLAVOR
759 LWRES_PLATFORM_HAVESALEN
760 ISC_PLATFORM_HAVESALEN
761 ISC_PLATFORM_NEEDPTON
762 ISC_PLATFORM_NEEDNTOP
763 ISC_PLATFORM_HAVEIF_LADDRCONF
764 ISC_PLATFORM_HAVEIF_LADDRREQ
765 ISC_PLATFORM_HAVESCOPEID
766 LWRES_HAVE_SIN6_SCOPE_ID
771 ISC_PLATFORM_HAVESOCKADDRSTORAGE
772 ISC_PLATFORM_FIXIN6ISADDR
773 ISC_PLATFORM_HAVEIN6PKTINFO
774 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK
775 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
776 LWRES_PLATFORM_NEEDIN6ADDRANY
777 ISC_PLATFORM_NEEDIN6ADDRANY
778 LWRES_PLATFORM_HAVEINADDR6
779 ISC_PLATFORM_HAVEINADDR6
780 LWRES_PLATFORM_NEEDNETINET6IN6H
781 ISC_PLATFORM_NEEDNETINET6IN6H
782 LWRES_PLATFORM_NEEDNETINETIN6H
783 ISC_PLATFORM_NEEDNETINETIN6H
784 LWRES_PLATFORM_HAVEIPV6
785 ISC_PLATFORM_HAVEIPV6
788 LIBTOOL_ALLOW_UNDEFINED
798 ISC_PLATFORM_USEBACKTRACE
801 IRIX_DNSSEC_WARNINGS_HACK
825 ISC_PLATFORM_OPENSSLHASH
840 ISC_PLATFORM_USETHREADS
847 ISC_PLATFORM_KRB5HEADER
848 ISC_PLATFORM_GSSAPI_KRB5_HEADER
849 ISC_PLATFORM_GSSAPIHEADER
850 ISC_PLATFORM_HAVEGSSAPI
853 LWRES_PLATFORM_NEEDSYSSELECTH
854 ISC_PLATFORM_NEEDSYSSELECTH
855 ISC_PLATFORM_HAVEDEVPOLL
856 ISC_PLATFORM_HAVEEPOLL
857 ISC_PLATFORM_HAVEKQUEUE
858 ISC_PLATFORM_HAVELIFCONF
859 ISC_PLATFORM_NORETURN_POST
860 ISC_PLATFORM_NORETURN_PRE
861 ISC_PLATFORM_HAVELONGLONG
947 program_transform_name
958 ac_subst_files
='BIND9_MAKE_INCLUDES
970 enable_option_checking
1002 enable_openssl_version_check
1007 with_gperftools_profiler
1041 ac_precious_vars
='build_alias
1052 # Initialize some variables set by options.
1054 ac_init_version
=false
1055 ac_unrecognized_opts
=
1056 ac_unrecognized_sep
=
1057 # The variables have the same names as the options, with
1058 # dashes changed to underlines.
1059 cache_file
=/dev
/null
1066 program_transform_name
=s
,x
,x
,
1074 # Installation directory options.
1075 # These are left unexpanded so users can "make install exec_prefix=/foo"
1076 # and all the variables that are supposed to be based on exec_prefix
1077 # by default will actually change.
1078 # Use braces instead of parens because sh, perl, etc. also accept them.
1079 # (The list follows the same order as the GNU Coding Standards.)
1080 bindir
='${exec_prefix}/bin'
1081 sbindir
='${exec_prefix}/sbin'
1082 libexecdir
='${exec_prefix}/libexec'
1083 datarootdir
='${prefix}/share'
1084 datadir
='${datarootdir}'
1085 sysconfdir
='${prefix}/etc'
1086 sharedstatedir
='${prefix}/com'
1087 localstatedir
='${prefix}/var'
1088 includedir
='${prefix}/include'
1089 oldincludedir
='/usr/include'
1090 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1091 infodir
='${datarootdir}/info'
1096 libdir
='${exec_prefix}/lib'
1097 localedir
='${datarootdir}/locale'
1098 mandir
='${datarootdir}/man'
1104 # If the previous option needs an argument, assign it.
1105 if test -n "$ac_prev"; then
1106 eval $ac_prev=\
$ac_option
1112 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1117 # Accept the important Cygnus configure options, so we can diagnose typos.
1119 case $ac_dashdash$ac_option in
1123 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1125 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1126 bindir
=$ac_optarg ;;
1128 -build |
--build |
--buil |
--bui |
--bu)
1129 ac_prev
=build_alias
;;
1130 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1131 build_alias
=$ac_optarg ;;
1133 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1134 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1135 ac_prev
=cache_file
;;
1136 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1137 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1138 cache_file
=$ac_optarg ;;
1140 --config-cache |
-C)
1141 cache_file
=config.cache
;;
1143 -datadir |
--datadir |
--datadi |
--datad)
1145 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1146 datadir
=$ac_optarg ;;
1148 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1149 |
--dataroo |
--dataro |
--datar)
1150 ac_prev
=datarootdir
;;
1151 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1152 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1153 datarootdir
=$ac_optarg ;;
1155 -disable-* |
--disable-*)
1156 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1159 as_fn_error $?
"invalid feature name: $ac_useropt"
1160 ac_useropt_orig
=$ac_useropt
1161 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "enable_
$ac_useropt"
1166 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1167 ac_unrecognized_sep
=', ';;
1169 eval enable_
$ac_useropt=no
;;
1171 -docdir |
--docdir |
--docdi |
--doc |
--do)
1173 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1174 docdir
=$ac_optarg ;;
1176 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1178 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1179 dvidir
=$ac_optarg ;;
1181 -enable-* |
--enable-*)
1182 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1185 as_fn_error $?
"invalid feature name: $ac_useropt"
1186 ac_useropt_orig
=$ac_useropt
1187 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1190 "enable_
$ac_useropt"
1192 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1193 ac_unrecognized_sep
=', ';;
1195 eval enable_
$ac_useropt=\
$ac_optarg ;;
1197 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1198 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1199 |
--exec |
--exe |
--ex)
1200 ac_prev
=exec_prefix
;;
1201 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1202 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1203 |
--exec=* |
--exe=* |
--ex=*)
1204 exec_prefix
=$ac_optarg ;;
1206 -gas |
--gas |
--ga |
--g)
1207 # Obsolete; use --with-gas.
1210 -help |
--help |
--hel |
--he |
-h)
1211 ac_init_help
=long
;;
1212 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1213 ac_init_help
=recursive
;;
1214 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1215 ac_init_help
=short
;;
1217 -host |
--host |
--hos |
--ho)
1218 ac_prev
=host_alias
;;
1219 -host=* |
--host=* |
--hos=* |
--ho=*)
1220 host_alias
=$ac_optarg ;;
1222 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1224 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1226 htmldir
=$ac_optarg ;;
1228 -includedir |
--includedir |
--includedi |
--included |
--include \
1229 |
--includ |
--inclu |
--incl |
--inc)
1230 ac_prev
=includedir
;;
1231 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1232 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1233 includedir
=$ac_optarg ;;
1235 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1237 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1238 infodir
=$ac_optarg ;;
1240 -libdir |
--libdir |
--libdi |
--libd)
1242 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1243 libdir
=$ac_optarg ;;
1245 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1246 |
--libexe |
--libex |
--libe)
1247 ac_prev
=libexecdir
;;
1248 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1249 |
--libexe=* |
--libex=* |
--libe=*)
1250 libexecdir
=$ac_optarg ;;
1252 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1253 ac_prev
=localedir
;;
1254 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1255 localedir
=$ac_optarg ;;
1257 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1258 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1259 ac_prev
=localstatedir
;;
1260 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1261 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1262 localstatedir
=$ac_optarg ;;
1264 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1266 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1267 mandir
=$ac_optarg ;;
1269 -nfp |
--nfp |
--nf)
1270 # Obsolete; use --without-fp.
1273 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1274 |
--no-cr |
--no-c |
-n)
1277 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1278 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1281 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1282 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1283 |
--oldin |
--oldi |
--old |
--ol |
--o)
1284 ac_prev
=oldincludedir
;;
1285 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1286 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1287 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1288 oldincludedir
=$ac_optarg ;;
1290 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1292 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1293 prefix
=$ac_optarg ;;
1295 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1296 |
--program-pre |
--program-pr |
--program-p)
1297 ac_prev
=program_prefix
;;
1298 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1299 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1300 program_prefix
=$ac_optarg ;;
1302 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1303 |
--program-suf |
--program-su |
--program-s)
1304 ac_prev
=program_suffix
;;
1305 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1306 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1307 program_suffix
=$ac_optarg ;;
1309 -program-transform-name |
--program-transform-name \
1310 |
--program-transform-nam |
--program-transform-na \
1311 |
--program-transform-n |
--program-transform- \
1312 |
--program-transform |
--program-transfor \
1313 |
--program-transfo |
--program-transf \
1314 |
--program-trans |
--program-tran \
1315 |
--progr-tra |
--program-tr |
--program-t)
1316 ac_prev
=program_transform_name
;;
1317 -program-transform-name=* |
--program-transform-name=* \
1318 |
--program-transform-nam=* |
--program-transform-na=* \
1319 |
--program-transform-n=* |
--program-transform-=* \
1320 |
--program-transform=* |
--program-transfor=* \
1321 |
--program-transfo=* |
--program-transf=* \
1322 |
--program-trans=* |
--program-tran=* \
1323 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1324 program_transform_name
=$ac_optarg ;;
1326 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1328 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1329 pdfdir
=$ac_optarg ;;
1331 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1333 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1336 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1337 |
-silent |
--silent |
--silen |
--sile |
--sil)
1340 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1342 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1344 sbindir
=$ac_optarg ;;
1346 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1347 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1348 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1350 ac_prev
=sharedstatedir
;;
1351 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1352 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1353 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1355 sharedstatedir
=$ac_optarg ;;
1357 -site |
--site |
--sit)
1359 -site=* |
--site=* |
--sit=*)
1362 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1364 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1365 srcdir
=$ac_optarg ;;
1367 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1368 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1369 ac_prev
=sysconfdir
;;
1370 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1371 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1372 sysconfdir
=$ac_optarg ;;
1374 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1375 ac_prev
=target_alias
;;
1376 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1377 target_alias
=$ac_optarg ;;
1379 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1382 -version |
--version |
--versio |
--versi |
--vers |
-V)
1383 ac_init_version
=: ;;
1386 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1387 # Reject names that are not valid shell variable names.
1388 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1389 as_fn_error $?
"invalid package name: $ac_useropt"
1390 ac_useropt_orig
=$ac_useropt
1391 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1392 case $ac_user_opts in
1396 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1397 ac_unrecognized_sep
=', ';;
1399 eval with_
$ac_useropt=\
$ac_optarg ;;
1401 -without-* |
--without-*)
1402 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1403 # Reject names that are not valid shell variable names.
1404 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1405 as_fn_error $?
"invalid package name: $ac_useropt"
1406 ac_useropt_orig
=$ac_useropt
1407 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1408 case $ac_user_opts in
1412 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1413 ac_unrecognized_sep
=', ';;
1415 eval with_
$ac_useropt=no
;;
1418 # Obsolete; use --with-x.
1421 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1422 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1423 ac_prev
=x_includes
;;
1424 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1425 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1426 x_includes
=$ac_optarg ;;
1428 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1429 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1430 ac_prev
=x_libraries
;;
1431 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1432 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1433 x_libraries
=$ac_optarg ;;
1435 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1436 Try \`$0 --help' for more information"
1440 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1441 # Reject names that are not valid shell variable names.
1442 case $ac_envvar in #(
1443 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1444 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1446 eval $ac_envvar=\
$ac_optarg
1447 export $ac_envvar ;;
1450 # FIXME: should be removed in autoconf 3.0.
1451 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1452 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1453 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1454 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1460 if test -n "$ac_prev"; then
1461 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1462 as_fn_error $?
"missing argument to $ac_option"
1465 if test -n "$ac_unrecognized_opts"; then
1466 case $enable_option_checking in
1468 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1469 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1473 # Check all directory arguments for consistency.
1474 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1475 datadir sysconfdir sharedstatedir localstatedir includedir \
1476 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1477 libdir localedir mandir
1479 eval ac_val
=\$
$ac_var
1480 # Remove trailing slashes.
1483 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1484 eval $ac_var=\
$ac_val;;
1486 # Be sure to have absolute directory names.
1488 [\\/$
]* | ?
:[\\/]* ) continue;;
1489 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1491 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1494 # There might be people who depend on the old broken behavior: `$host'
1495 # used to hold the argument of --host etc.
1496 # FIXME: To remove some day.
1499 target
=$target_alias
1501 # FIXME: To remove some day.
1502 if test "x$host_alias" != x
; then
1503 if test "x$build_alias" = x
; then
1504 cross_compiling
=maybe
1505 elif test "x$build_alias" != "x$host_alias"; then
1511 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1513 test "$silent" = yes && exec 6>/dev
/null
1516 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1517 ac_ls_di
=`ls -di .` &&
1518 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1519 as_fn_error $?
"working directory cannot be determined"
1520 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1521 as_fn_error $?
"pwd does not report name of working directory"
1524 # Find the source files, if location was not specified.
1525 if test -z "$srcdir"; then
1526 ac_srcdir_defaulted
=yes
1527 # Try the directory containing this script, then the parent directory.
1528 ac_confdir
=`$as_dirname -- "$as_myself" ||
1529 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1530 X"$as_myself" : 'X\(//\)[^/]' \| \
1531 X"$as_myself" : 'X\(//\)$' \| \
1532 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1533 $as_echo X"$as_myself" |
1534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1552 if test ! -r "$srcdir/$ac_unique_file"; then
1556 ac_srcdir_defaulted
=no
1558 if test ! -r "$srcdir/$ac_unique_file"; then
1559 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1560 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1562 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1564 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1566 # When building in place, set srcdir=.
1567 if test "$ac_abs_confdir" = "$ac_pwd"; then
1570 # Remove unnecessary trailing slashes from srcdir.
1571 # Double slashes in file names in object file debugging info
1572 # mess up M-x gdb in Emacs.
1574 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1576 for ac_var
in $ac_precious_vars; do
1577 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1578 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1579 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1580 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1584 # Report the --help message.
1586 if test "$ac_init_help" = "long"; then
1587 # Omit some internal or obsolete options to make the list less imposing.
1588 # This message is too long to be a string in the A/UX 3.1 sh.
1590 \`configure' configures BIND 9.10 to adapt to many kinds of systems.
1592 Usage: $0 [OPTION]... [VAR=VALUE]...
1594 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1595 VAR=VALUE. See below for descriptions of some of the useful variables.
1597 Defaults for the options are specified in brackets.
1600 -h, --help display this help and exit
1601 --help=short display options specific to this package
1602 --help=recursive display the short help of all the included packages
1603 -V, --version display version information and exit
1604 -q, --quiet, --silent do not print \`checking ...' messages
1605 --cache-file=FILE cache test results in FILE [disabled]
1606 -C, --config-cache alias for \`--cache-file=config.cache'
1607 -n, --no-create do not create output files
1608 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1610 Installation directories:
1611 --prefix=PREFIX install architecture-independent files in PREFIX
1612 [$ac_default_prefix]
1613 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1616 By default, \`make install' will install all the files in
1617 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1618 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1619 for instance \`--prefix=\$HOME'.
1621 For better control, use the options below.
1623 Fine tuning of the installation directories:
1624 --bindir=DIR user executables [EPREFIX/bin]
1625 --sbindir=DIR system admin executables [EPREFIX/sbin]
1626 --libexecdir=DIR program executables [EPREFIX/libexec]
1627 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1628 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1629 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1630 --libdir=DIR object code libraries [EPREFIX/lib]
1631 --includedir=DIR C header files [PREFIX/include]
1632 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1633 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1634 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1635 --infodir=DIR info documentation [DATAROOTDIR/info]
1636 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1637 --mandir=DIR man documentation [DATAROOTDIR/man]
1638 --docdir=DIR documentation root [DATAROOTDIR/doc/bind]
1639 --htmldir=DIR html documentation [DOCDIR]
1640 --dvidir=DIR dvi documentation [DOCDIR]
1641 --pdfdir=DIR pdf documentation [DOCDIR]
1642 --psdir=DIR ps documentation [DOCDIR]
1647 NOTE
: If PREFIX is not
set, then the default values
for --sysconfdir
1648 and
--localstatedir are
/etc and
/var
, respectively.
1651 --build=BUILD configure
for building on BUILD
[guessed
]
1652 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1656 if test -n "$ac_init_help"; then
1657 case $ac_init_help in
1658 short | recursive
) echo "Configuration of BIND 9.10:";;
1663 --disable-option-checking ignore unrecognized
--enable/--with options
1664 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1665 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1666 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1667 --enable-static[=PKGS
] build static libraries
[default
=yes]
1668 --enable-fast-install[=PKGS
]
1669 optimize
for fast installation
[default
=yes]
1670 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1671 --enable-libbind deprecated
1672 --enable-warn-shadow turn on
-Wshadow when compiling
1673 --enable-warn-error turn on
-Werror when compiling
1674 --enable-developer enable developer build settings
1675 --enable-seccomp enable support
for libseccomp system call filtering
1677 --enable-kqueue use BSD kqueue when available
[default
=yes]
1678 --enable-epoll use Linux epoll when available
[default
=auto
]
1679 --enable-devpoll use
/dev
/poll when available
[default
=yes]
1680 --enable-threads enable multithreading
1681 --enable-native-pkcs11 use native PKCS11
for all crypto
[default
=no
]
1682 --enable-openssl-hash use OpenSSL
for hash functions
[default
=no
]
1683 --enable-sit enable source identity token
[default
=no
]
1684 --enable-openssl-version-check
1685 check OpenSSL version
[default
=yes]
1686 --enable-largefile 64-bit file support
1687 --enable-backtrace log stack backtrace on abort
[default
=yes]
1688 --enable-symtable use internal symbol table
for backtrace
1689 [all|minimal
(default
)|none
]
1690 --enable-ipv6 use IPv6 default
=autodetect
1691 --enable-getifaddrs enable the use of getifaddrs
() [yes|no
].
1692 --disable-isc-spnego use SPNEGO from GSSAPI library
1693 --disable-chroot disable chroot
1694 --disable-linux-caps disable linux capabilities
1695 --enable-atomic enable machine specific atomic operations
1696 [default
=autodetect
]
1697 --enable-fixed-rrset enable fixed rrset ordering
[default
=no
]
1698 --disable-rpz-nsip disable rpz-nsip rules
[default
=enabled
]
1699 --disable-rpz-nsdname disable rpz-nsdname rules
[default
=enabled
]
1700 --enable-filter-aaaa enable filtering of AAAA records
[default
=no
]
1701 --enable-full-report report values of all configure options
1704 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1705 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1706 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1708 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1709 --with-sysroot=DIR Search
for dependent libraries within DIR
1710 (or the compiler
's sysroot if not specified).
1711 --with-python=PATH specify path to python interpreter
1712 --with-geoip=PATH Build with GeoIP support (yes|no|path)
1713 --with-gssapi=PATH Specify path for system-supplied GSSAPI [default=yes]
1714 --with-randomdev=PATH Specify path for random device
1715 --with-locktype=ARG Specify mutex lock type (adaptive or standard)
1716 --with-libtool use GNU libtool
1717 --with-openssl=PATH Build with OpenSSL yes|no|path.
1718 (Crypto is required for DNSSEC)
1719 --with-pkcs11=PATH Build with PKCS11 support yes|no|path
1720 (PATH is for the PKCS11 provider)
1721 --with-ecdsa Crypto ECDSA
1722 --with-gost Crypto GOST yes|no|raw|asn1.
1723 --with-aes Crypto AES
1724 --with-sit-alg=ALG choose the algorithm for SIT [aes|sha1|sha256]
1725 --with-libxml2=PATH build with libxml2 library yes|no|path
1726 --with-libjson=PATH build with libjson0 library yes|no|path
1727 --with-purify=PATH use Rational purify
1728 --with-gperftools-profiler use gperftools CPU profiler
1729 --with-kame=PATH use Kame IPv6 default path /usr/local/v6
1730 --with-readline=LIBSPEC specify readline library default -lreadline
1732 --with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets
1733 --with-idn=MPREFIX enable IDN support using idnkit default PREFIX
1734 --with-libiconv=IPREFIX GNU libiconv are in IPREFIX default PREFIX
1735 --with-iconv=LIBSPEC specify iconv library default -liconv
1736 --with-idnlib=ARG specify libidnkit
1737 --with-atf=ARG support Automated Test Framework
1738 --with-tuning=ARG Specify server tuning (large or default)
1739 --with-dlopen=ARG support dynamically loadable DLZ drivers
1740 --with-dlz-postgres=PATH Build with Postgres DLZ driver yes|no|path.
1741 (Required to use Postgres with DLZ)
1742 --with-dlz-mysql=PATH Build with MySQL DLZ driver yes|no|path.
1743 (Required to use MySQL with DLZ)
1744 --with-dlz-bdb=PATH Build with Berkeley DB DLZ driver yes|no|path.
1745 (Required to use Berkeley DB with DLZ)
1746 --with-dlz-filesystem=PATH Build with filesystem DLZ driver yes|no.
1747 (Required to use file system driver with DLZ)
1748 --with-dlz-ldap=PATH Build with LDAP DLZ driver yes|no|path.
1749 (Required to use LDAP with DLZ)
1750 --with-dlz-odbc=PATH Build with ODBC DLZ driver yes|no|path.
1751 (Required to use ODBC with DLZ)
1752 --with-dlz-stub=PATH Build with stub DLZ driver yes|no.
1753 (Required to use stub driver with DLZ)
1754 --with-make-clean run "make clean" at end of configure [yes|no]
1756 Some influential environment variables:
1757 CC C compiler command
1758 CFLAGS C compiler flags
1759 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1760 nonstandard directory <lib dir>
1761 LIBS libraries to pass to the linker, e.g. -l<library>
1762 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1763 you have headers in a nonstandard directory <include dir>
1766 Use these variables to override the choices made by `configure' or to
help
1767 it to
find libraries and programs with nonstandard names
/locations.
1769 Professional support
for BIND is provided by Internet Systems Consortium
,
1770 Inc. Information about paid support and training options is available
at
1771 https
://www.isc.org
/support.
1773 Help can also often be found on the BIND Users mailing list
1774 (https
://lists.isc.org
/mailman
/listinfo
/bind-users
) or
in the
#bind
1775 channel of the Freenode IRC service.
1777 Report bugs to
<bind9-bugs@isc.org
>.
1778 BIND home page
: <https
://www.isc.org
/downloads
/BIND
/>.
1783 if test "$ac_init_help" = "recursive"; then
1784 # If there are subdirs, report their specific --help.
1785 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1786 test -d "$ac_dir" ||
1787 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1792 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1794 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1795 # A ".." for each directory in $ac_dir_suffix.
1796 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1797 case $ac_top_builddir_sub in
1798 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1799 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1802 ac_abs_top_builddir
=$ac_pwd
1803 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1804 # for backward compatibility:
1805 ac_top_builddir
=$ac_top_build_prefix
1808 .
) # We are building in place.
1810 ac_top_srcdir
=$ac_top_builddir_sub
1811 ac_abs_top_srcdir
=$ac_pwd ;;
1812 [\\/]* | ?
:[\\/]* ) # Absolute name.
1813 ac_srcdir
=$srcdir$ac_dir_suffix;
1814 ac_top_srcdir
=$srcdir
1815 ac_abs_top_srcdir
=$srcdir ;;
1817 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1818 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1819 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1821 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1823 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1824 # Check for guested configure.
1825 if test -f "$ac_srcdir/configure.gnu"; then
1827 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1828 elif test -f "$ac_srcdir/configure"; then
1830 $SHELL "$ac_srcdir/configure" --help=recursive
1832 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1834 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1838 test -n "$ac_init_help" && exit $ac_status
1839 if $ac_init_version; then
1842 generated by GNU Autoconf
2.69
1844 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1845 This configure
script is free software
; the Free Software Foundation
1846 gives unlimited permission to copy
, distribute and modify it.
1851 ## ------------------------ ##
1852 ## Autoconf initialization. ##
1853 ## ------------------------ ##
1855 # ac_fn_c_try_compile LINENO
1856 # --------------------------
1857 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_c_try_compile
()
1860 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1861 rm -f conftest.
$ac_objext
1862 if { { ac_try
="$ac_compile"
1864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_compile") 2>conftest.err
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest.$ac_objext; then :
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_c_try_compile
1893 # ac_fn_c_try_link LINENO
1894 # -----------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1903 *) ac_try_echo
=$ac_try;;
1905 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1909 if test -s conftest.err
; then
1910 grep -v '^ *+' conftest.err
>conftest.er1
1911 cat conftest.er1
>&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest
$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 test -x conftest
$ac_exeext
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.
$ac_ext >&5
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status
$ac_retval
1937 } # ac_fn_c_try_link
1939 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists and can be compiled using the include files in
1942 # INCLUDES, setting the cache variable VAR accordingly.
1943 ac_fn_c_check_header_compile
()
1945 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \
${$3+:} false
; then :
1949 $as_echo_n "(cached) " >&6
1951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1956 if ac_fn_c_try_compile
"$LINENO"; then :
1961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 } # ac_fn_c_check_header_compile
1970 # ac_fn_c_try_cpp LINENO
1971 # ----------------------
1972 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1975 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1976 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1985 if test -s conftest.err; then
1986 grep -v '^ *+' conftest.err >conftest.er1
1987 cat conftest.er1 >&5
1988 mv -f conftest.er1 conftest.err
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } > conftest.i && {
1992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1993 test ! -s conftest.err
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2007 # ac_fn_c_try_run LINENO
2008 # ----------------------
2009 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2010 # that executables *can* be run.
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if { { ac_try="$ac_link"
2016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2017 *) ac_try_echo
=$ac_try;;
2019 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_link") 2>&5
2023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2025 { { case "(($ac_try" in
2026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_try") 2>&5
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; }; }; then :
2037 $as_echo "$as_me: program exited with status $ac_status" >&5
2038 $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2041 ac_retval=$ac_status
2043 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045 as_fn_set_status $ac_retval
2049 # ac_fn_c_check_func LINENO FUNC VAR
2050 # ----------------------------------
2051 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2052 ac_fn_c_check_func ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058 $as_echo_n "(cached) " >&6
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2064 #define $2 innocuous_$2
2066 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $2 (); below.
2068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069 <limits.h> exists even on freestanding compilers. */
2072 # include <limits.h>
2074 # include <assert.h>
2079 /* Override any GCC internal prototype to avoid an error.
2080 Use char because int might match the return type of a GCC
2081 builtin and then its argument prototype would still apply. */
2086 /* The GNU C library defines this for functions which it implements
2087 to always fail with ENOSYS. Some functions are actually named
2088 something starting with __ and the normal name is an alias. */
2089 #if defined __stub_$2 || defined __stub___$2
2101 if ac_fn_c_try_link "$LINENO"; then :
2106 rm -f core conftest.err conftest.$ac_objext \
2107 conftest$ac_exeext conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 } # ac_fn_c_check_func
2116 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2117 # -------------------------------------------
2118 # Tests whether TYPE exists after having included INCLUDES, setting cache
2119 # variable VAR accordingly.
2120 ac_fn_c_check_type ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if eval \${$3+:} false; then :
2126 $as_echo_n "(cached) " >&6
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2154 if ac_fn_c_try_compile "$LINENO"; then :
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 } # ac_fn_c_check_type
2170 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2171 # -------------------------------------------------------
2172 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2173 # the include files in INCLUDES and setting the cache variable VAR
2175 ac_fn_c_check_header_mongrel ()
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 if eval \${$3+:} false; then :
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 $as_echo_n "checking for $2... " >&6; }
2181 if eval \${$3+:} false; then :
2182 $as_echo_n "(cached) " >&6
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2188 # Is the header compilable?
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2190 $as_echo_n "checking $2 usability... " >&6; }
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2196 if ac_fn_c_try_compile "$LINENO"; then :
2197 ac_header_compiler=yes
2199 ac_header_compiler=no
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2203 $as_echo "$ac_header_compiler" >&6; }
2205 # Is the header present?
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2207 $as_echo_n "checking $2 presence... " >&6; }
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2212 if ac_fn_c_try_cpp "$LINENO"; then :
2213 ac_header_preproc=yes
2215 ac_header_preproc=no
2217 rm -f conftest.err conftest.i conftest.$ac_ext
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2219 $as_echo "$ac_header_preproc" >&6; }
2221 # So? What about this header?
2222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2225 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2227 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2231 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2233 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2235 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2237 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2239 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2240 ( $as_echo "## --------------------------------- ##
2241 ## Report this to bind9-bugs@isc.org ##
2242 ## --------------------------------- ##"
2243 ) | sed "s/^/$as_me: WARNING: /" >&2
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247 $as_echo_n "checking for $2... " >&6; }
2248 if eval \${$3+:} false; then :
2249 $as_echo_n "(cached) " >&6
2251 eval "$3=\$ac_header_compiler"
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 } # ac_fn_c_check_header_mongrel
2261 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2262 # --------------------------------------------
2263 # Tries to find the compile-time value of EXPR in a program that includes
2264 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2266 ac_fn_c_compute_int ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 if test "$cross_compiling" = yes; then
2270 # Depending upon the size, compute the lo and hi bounds.
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2277 static int test_array [1 - 2 * !(($2) >= 0)];
2279 return test_array [0];
2285 if ac_fn_c_try_compile "$LINENO"; then :
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2294 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2296 return test_array [0];
2302 if ac_fn_c_try_compile "$LINENO"; then :
2303 ac_hi=$ac_mid; break
2305 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2306 if test $ac_lo -le $ac_mid; then
2310 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2321 static int test_array [1 - 2 * !(($2) < 0)];
2323 return test_array [0];
2329 if ac_fn_c_try_compile "$LINENO"; then :
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2338 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2340 return test_array [0];
2346 if ac_fn_c_try_compile "$LINENO"; then :
2347 ac_lo=$ac_mid; break
2349 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2350 if test $ac_mid -le $ac_hi; then
2354 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 # Binary search between lo and hi bounds.
2365 while test "x$ac_lo" != "x$ac_hi"; do
2366 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2373 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2375 return test_array [0];
2381 if ac_fn_c_try_compile "$LINENO"; then :
2384 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2396 static long int longval () { return $2; }
2397 static unsigned long int ulongval () { return $2; }
2404 FILE *f = fopen ("conftest.val", "w");
2409 long int i = longval ();
2412 fprintf (f, "%ld", i);
2416 unsigned long int i = ulongval ();
2419 fprintf (f, "%lu", i);
2421 /* Do not output a trailing newline, as this causes \r\n confusion
2422 on some platforms. */
2423 return ferror (f) || fclose (f) != 0;
2429 if ac_fn_c_try_run "$LINENO"; then :
2430 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2435 conftest.$ac_objext conftest.beam conftest.$ac_ext
2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2440 as_fn_set_status $ac_retval
2442 } # ac_fn_c_compute_int
2443 cat >config.log <<_ACEOF
2444 This file contains any messages produced by compilers while
2445 running configure, to aid debugging if configure makes a mistake.
2447 It was created by BIND $as_me 9.10, which was
2448 generated by GNU Autoconf 2.69. Invocation command line was
2460 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2461 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2462 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2463 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2464 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2466 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2467 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2469 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2470 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2471 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2472 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2473 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2474 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2475 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 test -z "$as_dir" && as_dir=.
2484 $as_echo "PATH: $as_dir"
2500 # Keep a trace of the command line.
2501 # Strip out --no-create and --no-recursion so they do not pile up.
2502 # Strip out --silent because we don't want to record it for future runs.
2503 # Also quote any args containing shell meta-characters.
2504 # Make two passes to allow for proper duplicate-argument suppression.
2508 ac_must_keep_next=false
2514 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2516 | -silent | --silent | --silen | --sile | --sil)
2519 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2522 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2524 as_fn_append ac_configure_args1 " '$ac_arg'"
2525 if test $ac_must_keep_next = true; then
2526 ac_must_keep_next=false # Got value, back to normal.
2529 *=* | --config-cache | -C | -disable-* | --disable-* \
2530 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2531 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2532 | -with-* | --with-* | -without-* | --without-* | --x)
2533 case "$ac_configure_args0 " in
2534 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2537 -* ) ac_must_keep_next=true ;;
2540 as_fn_append ac_configure_args " '$ac_arg'"
2545 { ac_configure_args0=; unset ac_configure_args0;}
2546 { ac_configure_args1=; unset ac_configure_args1;}
2548 # When interrupted or exit'd, cleanup temporary files, and complete
2549 # config.log. We remove comments because anyway the quotes in there
2550 # would cause problems or look ugly.
2551 # WARNING: Use '\'' to represent an apostrophe within the trap.
2552 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2553 trap 'exit_status=$?
2554 # Save into config.log some information that might help in debugging.
2558 $as_echo "## ---------------- ##
2559 ## Cache variables. ##
2560 ## ---------------- ##"
2562 # The following way of writing the cache mishandles newlines in values,
2564 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2565 eval ac_val=\$$ac_var
2569 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2570 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2573 _ | IFS | as_nl) ;; #(
2574 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2575 *) { eval $ac_var=; unset $ac_var;} ;;
2580 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2581 *${as_nl}ac_space=\ *)
2583 "s/'\''/'\''\\\\'\'''\''/g;
2584 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2587 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2594 $as_echo "## ----------------- ##
2595 ## Output variables. ##
2596 ## ----------------- ##"
2598 for ac_var in $ac_subst_vars
2600 eval ac_val=\$$ac_var
2602 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2604 $as_echo "$ac_var='\''$ac_val'\''"
2608 if test -n "$ac_subst_files"; then
2609 $as_echo "## ------------------- ##
2610 ## File substitutions. ##
2611 ## ------------------- ##"
2613 for ac_var in $ac_subst_files
2615 eval ac_val=\$$ac_var
2617 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2619 $as_echo "$ac_var='\''$ac_val'\''"
2624 if test -s confdefs.h; then
2625 $as_echo "## ----------- ##
2632 test "$ac_signal" != 0 &&
2633 $as_echo "$as_me: caught signal $ac_signal"
2634 $as_echo "$as_me: exit $exit_status"
2636 rm -f core *.core core.conftest.* &&
2637 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2640 for ac_signal in 1 2 13 15; do
2641 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2646 rm -f -r conftest* confdefs.h
2648 $as_echo "/* confdefs.h */" > confdefs.h
2650 # Predefined preprocessor variables.
2652 cat >>confdefs.h <<_ACEOF
2653 #define PACKAGE_NAME "$PACKAGE_NAME"
2656 cat >>confdefs.h <<_ACEOF
2657 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE_STRING "$PACKAGE_STRING"
2668 cat >>confdefs.h <<_ACEOF
2669 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2672 cat >>confdefs.h <<_ACEOF
2673 #define PACKAGE_URL "$PACKAGE_URL"
2677 # Let the site file select an alternate cache file if it wants to.
2678 # Prefer an explicitly selected file to automatically selected ones.
2681 if test -n "$CONFIG_SITE"; then
2682 # We do not want a PATH search for config.site.
2683 case $CONFIG_SITE in #((
2684 -*) ac_site_file1=./$CONFIG_SITE;;
2685 */*) ac_site_file1=$CONFIG_SITE;;
2686 *) ac_site_file1=./$CONFIG_SITE;;
2688 elif test "x$prefix" != xNONE; then
2689 ac_site_file1=$prefix/share/config.site
2690 ac_site_file2=$prefix/etc/config.site
2692 ac_site_file1=$ac_default_prefix/share/config.site
2693 ac_site_file2=$ac_default_prefix/etc/config.site
2695 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2697 test "x$ac_site_file" = xNONE && continue
2698 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2700 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2701 sed 's/^/| /' "$ac_site_file" >&5
2703 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705 as_fn_error $? "failed to load site
script $ac_site_file
2706 See \
`config.log' for more details" "$LINENO" 5; }
2710 if test -r "$cache_file"; then
2711 # Some versions of bash will fail to source /dev/null (special files
2712 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2713 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2715 $as_echo "$as_me: loading cache $cache_file" >&6;}
2717 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2718 *) . "./$cache_file";;
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2723 $as_echo "$as_me: creating cache $cache_file" >&6;}
2727 # Check that the precious variables saved in the cache have kept the same
2729 ac_cache_corrupted=false
2730 for ac_var in $ac_precious_vars; do
2731 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2732 eval ac_new_set=\$ac_env_${ac_var}_set
2733 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2734 eval ac_new_val=\$ac_env_${ac_var}_value
2735 case $ac_old_set,$ac_new_set in
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2738 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2739 ac_cache_corrupted=: ;;
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2742 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2743 ac_cache_corrupted=: ;;
2746 if test "x$ac_old_val" != "x$ac_new_val"; then
2747 # differences in whitespace do not lead to failure.
2748 ac_old_val_w=`echo x
$ac_old_val`
2749 ac_new_val_w=`echo x
$ac_new_val`
2750 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2752 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2753 ac_cache_corrupted=:
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2756 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2757 eval $ac_var=\$ac_old_val
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2760 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2762 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2765 # Pass precious variables to config.status.
2766 if test "$ac_new_set" = set; then
2768 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2769 *) ac_arg=$ac_var=$ac_new_val ;;
2771 case " $ac_configure_args " in
2772 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2773 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2777 if $ac_cache_corrupted; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2781 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2782 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2784 ## -------------------- ##
2785 ## Main body of script. ##
2786 ## -------------------- ##
2789 ac_cpp='$CPP $CPPFLAGS'
2790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797 ac_config_headers="$ac_config_headers config.h"
2802 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2803 if test -f "$ac_dir/install-sh"; then
2805 ac_install_sh="$ac_aux_dir/install-sh -c"
2807 elif test -f "$ac_dir/install.sh"; then
2809 ac_install_sh="$ac_aux_dir/install.sh -c"
2811 elif test -f "$ac_dir/shtool"; then
2813 ac_install_sh="$ac_aux_dir/shtool install -c"
2817 if test -z "$ac_aux_dir"; then
2818 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2821 # These three variables are undocumented and unsupported,
2822 # and are intended to be withdrawn in a future Autoconf release.
2823 # They can cause serious problems if a builder's source tree is in a directory
2824 # whose full name contains unusual characters.
2825 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2826 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2827 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2830 # Make sure we can run config.sub.
2831 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2832 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2835 $as_echo_n "checking build system type... " >&6; }
2836 if ${ac_cv_build+:} false; then :
2837 $as_echo_n "(cached) " >&6
2839 ac_build_alias=$build_alias
2840 test "x$ac_build_alias" = x &&
2841 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2842 test "x$ac_build_alias" = x &&
2843 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2844 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2845 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2849 $as_echo "$ac_cv_build" >&6; }
2850 case $ac_cv_build in
2852 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2855 ac_save_IFS=$IFS; IFS='-'
2861 # Remember, the first character of IFS is used to create $*,
2862 # except with old shells:
2865 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2869 $as_echo_n "checking host system type... " >&6; }
2870 if ${ac_cv_host+:} false; then :
2871 $as_echo_n "(cached) " >&6
2873 if test "x$host_alias" = x; then
2874 ac_cv_host=$ac_cv_build
2876 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2877 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2882 $as_echo "$ac_cv_host" >&6; }
2885 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2888 ac_save_IFS=$IFS; IFS='-'
2894 # Remember, the first character of IFS is used to create $*,
2895 # except with old shells:
2898 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2903 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2905 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2906 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2907 $as_echo_n "(cached) " >&6
2909 cat >conftest.make <<\_ACEOF
2912 @echo '@@@%%%=$(MAKE)=@@@%%%'
2914 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2915 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
2917 eval ac_cv_prog_make_${ac_make}_set=yes;;
2919 eval ac_cv_prog_make_${ac_make}_set=no;;
2923 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2925 $as_echo "yes" >&6; }
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930 SET_MAKE="MAKE=${MAKE-make}"
2935 # GNU libtool support
2939 # Just set the maximum command line length for sunos as it otherwise
2940 # takes a exceptionally long time to work it out. Required for libtool.
2942 lt_cv_sys_max_cmd_len=4096;
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
2949 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
2954 macro_version='2.4.2'
2955 macro_revision='1.3337'
2969 ltmain="$ac_aux_dir/ltmain.sh"
2971 # Backslashify metacharacters that are still active within
2972 # double-quoted strings.
2973 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
2975 # Same as above, but do not quote variable references.
2976 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
2978 # Sed substitution to delay expansion of an escaped shell variable in a
2979 # double_quote_subst'ed string.
2980 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2982 # Sed substitution to delay expansion of an escaped single quote.
2983 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2985 # Sed substitution to avoid accidental globbing in evaled expressions
2986 no_glob_subst='s/\*/\\\*/g'
2988 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2989 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2990 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
2993 $as_echo_n "checking how to print
strings...
" >&6; }
2994 # Test print first, because it will be a builtin if present.
2995 if test "X
`( print -r -- -n ) 2>/dev/null`" = X-n && \
2996 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
2998 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
3001 # Use this function as a fallback that always works.
3002 func_fallback_echo ()
3004 eval 'cat <<_LTECHO_EOF
3008 ECHO='func_fallback_echo'
3011 # func_echo_all arg...
3012 # Invoke $ECHO with all args, space-separated.
3019 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
3020 $as_echo "printf" >&6; } ;;
3021 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
3022 $as_echo "print
-r" >&6; } ;;
3023 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
3024 $as_echo "cat" >&6; } ;;
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}gcc
", so it can be a program name with args.
3047 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3049 $as_echo_n "checking
for $ac_word...
" >&6; }
3050 if ${ac_cv_prog_CC+:} false; then :
3051 $as_echo_n "(cached
) " >&6
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC="$CC" # Let the user override the test.
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063 ac_cv_prog_CC="${ac_tool_prefix}gcc
"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3074 if test -n "$CC"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC" >&5
3076 $as_echo "$CC" >&6; }
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3079 $as_echo "no
" >&6; }
3084 if test -z "$ac_cv_prog_CC"; then
3086 # Extract the first word of "gcc
", so it can be a program name with args.
3087 set dummy gcc; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3089 $as_echo_n "checking
for $ac_word...
" >&6; }
3090 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3091 $as_echo_n "(cached
) " >&6
3093 if test -n "$ac_ct_CC"; then
3094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_ac_ct_CC="gcc
"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3114 if test -n "$ac_ct_CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CC" >&5
3116 $as_echo "$ac_ct_CC" >&6; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3119 $as_echo "no
" >&6; }
3122 if test "x
$ac_ct_CC" = x; then
3125 case $cross_compiling:$ac_tool_warned in
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3128 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3129 ac_tool_warned=yes ;;
3137 if test -z "$CC"; then
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}cc
", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}cc; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3142 $as_echo_n "checking
for $ac_word...
" >&6; }
3143 if ${ac_cv_prog_CC+:} false; then :
3144 $as_echo_n "(cached
) " >&6
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_CC="${ac_tool_prefix}cc
"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3167 if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC" >&5
3169 $as_echo "$CC" >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3172 $as_echo "no
" >&6; }
3178 if test -z "$CC"; then
3179 # Extract the first word of "cc
", so it can be a program name with args.
3180 set dummy cc; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3182 $as_echo_n "checking
for $ac_word...
" >&6; }
3183 if ${ac_cv_prog_CC+:} false; then :
3184 $as_echo_n "(cached
) " >&6
3186 if test -n "$CC"; then
3187 ac_cv_prog_CC="$CC" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr
/ucb
/cc
"; then
3198 ac_prog_rejected=yes
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3209 if test $ac_prog_rejected = yes; then
3210 # We found a bogon in the path, so make sure we never use it.
3211 set dummy $ac_cv_prog_CC
3213 if test $# != 0; then
3214 # We chose a different compiler from the bogus one.
3215 # However, it has the same basename, so the bogon will be chosen
3216 # first if we set CC to just the basename; use the full file name.
3218 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@
"
3224 if test -n "$CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC" >&5
3226 $as_echo "$CC" >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3229 $as_echo "no
" >&6; }
3234 if test -z "$CC"; then
3235 if test -n "$ac_tool_prefix"; then
3236 for ac_prog in cl.exe
3238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3241 $as_echo_n "checking
for $ac_word...
" >&6; }
3242 if ${ac_cv_prog_CC+:} false; then :
3243 $as_echo_n "(cached
) " >&6
3245 if test -n "$CC"; then
3246 ac_cv_prog_CC="$CC" # Let the user override the test.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3266 if test -n "$CC"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC" >&5
3268 $as_echo "$CC" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3271 $as_echo "no
" >&6; }
3275 test -n "$CC" && break
3278 if test -z "$CC"; then
3280 for ac_prog in cl.exe
3282 # Extract the first word of "$ac_prog", so it can be a program name with args.
3283 set dummy $ac_prog; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3285 $as_echo_n "checking
for $ac_word...
" >&6; }
3286 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3287 $as_echo_n "(cached
) " >&6
3289 if test -n "$ac_ct_CC"; then
3290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_ac_ct_CC="$ac_prog"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3310 if test -n "$ac_ct_CC"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CC" >&5
3312 $as_echo "$ac_ct_CC" >&6; }
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3315 $as_echo "no
" >&6; }
3319 test -n "$ac_ct_CC" && break
3322 if test "x
$ac_ct_CC" = x; then
3325 case $cross_compiling:$ac_tool_warned in
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3328 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3329 ac_tool_warned=yes ;;
3338 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error $? "no acceptable C compiler found in \$PATH
3341 See \`config.log' for more details
" "$LINENO" 5; }
3343 # Provide some information about the compiler.
3344 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C compiler version
" >&5
3347 for ac_option in --version -v -V -qversion; do
3348 { { ac_try="$ac_compiler $ac_option >&5"
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3357 if test -s conftest.err; then
3359 ... rest of stderr output deleted ...
3360 10q' conftest.err >conftest.er1
3361 cat conftest.er1 >&5
3363 rm -f conftest.er1 conftest.err
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3365 test $ac_status = 0; }
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3379 ac_clean_files_save=$ac_clean_files
3380 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out
"
3381 # Try to create an executable without -o first, disregard a.out.
3382 # It will help us diagnose broken compilers, and finding out an intuition
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works
" >&5
3385 $as_echo_n "checking whether the C compiler works...
" >&6; }
3386 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3388 # The possible output files:
3389 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.
*"
3392 for ac_file in $ac_files
3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3396 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3401 if { { ac_try="$ac_link_default"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_link_default") 2>&5
3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3411 test $ac_status = 0; }; then :
3412 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3413 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3414 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3415 # so that the user can short-circuit this test for compilers unknown to
3417 for ac_file in $ac_files ''
3419 test -f "$ac_file" || continue
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3424 # We found the default executable, but exeext='' is most
3428 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3430 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3432 # We set ac_cv_exeext here because the later test for it is not
3433 # safe: cross compilers may not add the suffix if given an `-o'
3434 # argument, so we may need to know it at that point already.
3435 # Even if this section looks crufty: it has the advantage of
3442 test "$ac_cv_exeext" = no && ac_cv_exeext=
3447 if test -z "$ac_file"; then :
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3449 $as_echo "no
" >&6; }
3450 $as_echo "$as_me: failed program was
:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error 77 "C compiler cannot create executables
3456 See \`config.log' for more details
" "$LINENO" 5; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3459 $as_echo "yes" >&6; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C compiler default output
file name
" >&5
3462 $as_echo_n "checking
for C compiler default output
file name...
" >&6; }
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_file" >&5
3464 $as_echo "$ac_file" >&6; }
3465 ac_exeext=$ac_cv_exeext
3467 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3468 ac_clean_files=$ac_clean_files_save
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3470 $as_echo_n "checking
for suffix of executables...
" >&6; }
3471 if { { ac_try="$ac_link"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_link") 2>&5
3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3481 test $ac_status = 0; }; then :
3482 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3483 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3484 # work properly (i.e., refer to `conftest.exe'), while it won't with
3486 for ac_file in conftest.exe conftest conftest.*; do
3487 test -f "$ac_file" || continue
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3499 See \`config.log' for more details
" "$LINENO" 5; }
3501 rm -f conftest conftest$ac_cv_exeext
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3503 $as_echo "$ac_cv_exeext" >&6; }
3505 rm -f conftest.$ac_ext
3506 EXEEXT=$ac_cv_exeext
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3514 FILE *f = fopen ("conftest.out
", "w
");
3515 return ferror (f) || fclose (f) != 0;
3521 ac_clean_files="$ac_clean_files conftest.out
"
3522 # Check that the compiler produces executables we can run. If not, either
3523 # the compiler is broken, or we cross compile.
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3525 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3526 if test "$cross_compiling" != yes; then
3527 { { ac_try="$ac_link"
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534 (eval "$ac_link") 2>&5
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3537 test $ac_status = 0; }
3538 if { ac_try='./conftest$ac_cv_exeext'
3539 { { case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_try") 2>&5
3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3548 test $ac_status = 0; }; }; then
3551 if test "$cross_compiling" = maybe; then
3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 as_fn_error $? "cannot run C compiled programs.
3557 If you meant to cross compile, use \`--host'.
3558 See \
`config.log' for more details" "$LINENO" 5; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3563 $as_echo "$cross_compiling" >&6; }
3565 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3566 ac_clean_files=$ac_clean_files_save
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3568 $as_echo_n "checking for suffix of object files... " >&6; }
3569 if ${ac_cv_objext+:} false; then :
3570 $as_echo_n "(cached) " >&6
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3583 rm -f conftest.o conftest.obj
3584 if { { ac_try="$ac_compile"
3586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3587 *) ac_try_echo
=$ac_try;;
3589 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_compile") 2>&5
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }; then :
3595 for ac_file
in conftest.o conftest.obj conftest.
*; do
3596 test -f "$ac_file" ||
continue;
3598 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
3599 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3604 $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.
$ac_ext >&5
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error $?
"cannot compute suffix of object files: cannot compile
3610 See \`config.log' for more details" "$LINENO" 5; }
3612 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3615 $as_echo "$ac_cv_objext" >&6; }
3616 OBJEXT
=$ac_cv_objext
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3620 if ${ac_cv_c_compiler_gnu+:} false
; then :
3621 $as_echo_n "(cached) " >&6
3623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3637 if ac_fn_c_try_compile
"$LINENO"; then :
3642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3643 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3648 if test $ac_compiler_gnu = yes; then
3653 ac_test_CFLAGS
=${CFLAGS+set}
3654 ac_save_CFLAGS
=$CFLAGS
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3657 if ${ac_cv_prog_cc_g+:} false
; then :
3658 $as_echo_n "(cached) " >&6
3660 ac_save_c_werror_flag
=$ac_c_werror_flag
3661 ac_c_werror_flag
=yes
3664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3675 if ac_fn_c_try_compile
"$LINENO"; then :
3679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3690 if ac_fn_c_try_compile
"$LINENO"; then :
3693 ac_c_werror_flag
=$ac_save_c_werror_flag
3695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3706 if ac_fn_c_try_compile
"$LINENO"; then :
3709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3714 ac_c_werror_flag
=$ac_save_c_werror_flag
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3717 $as_echo "$ac_cv_prog_cc_g" >&6; }
3718 if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS
=$ac_save_CFLAGS
3720 elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3727 if test "$GCC" = yes; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3735 if ${ac_cv_prog_cc_c89+:} false
; then :
3736 $as_echo_n "(cached) " >&6
3738 ac_cv_prog_cc_c89
=no
3740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3746 struct buf { int x; };
3747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3748 static char *e (p, i)
3754 static char *f (char * (*g) (char **, int), char **p, ...)
3759 s = g (p, va_arg (v,int));
3764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3765 function prototypes and stuff, but not '\xHH' hex character constants.
3766 These don't provoke an error unfortunately, instead are silently treated
3767 as 'x'. The following induces an error, until -std is added to get
3768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3769 array size at least. It's necessary to write '\x00'==0 to get something
3770 that's true only with -std. */
3771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3774 inside strings and character constants. */
3776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3778 int test (int i, double x);
3779 struct s1 {int (*f) (int a);};
3780 struct s2 {int (*f) (double a);};
3781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3792 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3795 CC
="$ac_save_CC $ac_arg"
3796 if ac_fn_c_try_compile
"$LINENO"; then :
3797 ac_cv_prog_cc_c89
=$ac_arg
3799 rm -f core conftest.err conftest.
$ac_objext
3800 test "x$ac_cv_prog_cc_c89" != "xno" && break
3802 rm -f conftest.
$ac_ext
3807 case "x$ac_cv_prog_cc_c89" in
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3810 $as_echo "none needed" >&6; } ;;
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3813 $as_echo "unsupported" >&6; } ;;
3815 CC
="$CC $ac_cv_prog_cc_c89"
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3817 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3819 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3824 ac_cpp
='$CPP $CPPFLAGS'
3825 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3830 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3831 if ${ac_cv_path_SED+:} false
; then :
3832 $as_echo_n "(cached) " >&6
3834 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
3835 for ac_i
in 1 2 3 4 5 6 7; do
3836 ac_script
="$ac_script$as_nl$ac_script"
3838 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
3839 { ac_script
=; unset ac_script
;}
3840 if test -z "$SED"; then
3841 ac_path_SED_found
=false
3842 # Loop through the user's path and test for each of PROGNAME-LIST
3843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3847 test -z "$as_dir" && as_dir
=.
3848 for ac_prog
in sed gsed
; do
3849 for ac_exec_ext
in '' $ac_executable_extensions; do
3850 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
3851 as_fn_executable_p
"$ac_path_SED" ||
continue
3852 # Check for GNU ac_path_SED and select it if it is found.
3853 # Check for GNU $ac_path_SED
3854 case `"$ac_path_SED" --version 2>&1` in
3856 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
3859 $as_echo_n 0123456789 >"conftest.in"
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 $as_echo '' >> "conftest.nl"
3866 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3867 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3868 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3869 if test $ac_count -gt ${ac_path_SED_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_SED
="$ac_path_SED"
3872 ac_path_SED_max
=$ac_count
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3877 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3880 $ac_path_SED_found && break 3
3885 if test -z "$ac_cv_path_SED"; then
3886 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3894 $as_echo "$ac_cv_path_SED" >&6; }
3895 SED
="$ac_cv_path_SED"
3898 test -z "$SED" && SED
=sed
3899 Xsed
="$SED -e 1s/^X//"
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3912 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3913 if ${ac_cv_path_GREP+:} false
; then :
3914 $as_echo_n "(cached) " >&6
3916 if test -z "$GREP"; then
3917 ac_path_GREP_found
=false
3918 # Loop through the user's path and test for each of PROGNAME-LIST
3919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3920 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3923 test -z "$as_dir" && as_dir
=.
3924 for ac_prog
in grep ggrep
; do
3925 for ac_exec_ext
in '' $ac_executable_extensions; do
3926 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3927 as_fn_executable_p
"$ac_path_GREP" ||
continue
3928 # Check for GNU ac_path_GREP and select it if it is found.
3929 # Check for GNU $ac_path_GREP
3930 case `"$ac_path_GREP" --version 2>&1` in
3932 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3935 $as_echo_n 0123456789 >"conftest.in"
3938 cat "conftest.in" "conftest.in" >"conftest.tmp"
3939 mv "conftest.tmp" "conftest.in"
3940 cp "conftest.in" "conftest.nl"
3941 $as_echo 'GREP' >> "conftest.nl"
3942 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3943 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3944 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3945 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3946 # Best one so far, save it but keep looking for a better one
3947 ac_cv_path_GREP
="$ac_path_GREP"
3948 ac_path_GREP_max
=$ac_count
3950 # 10*(2^10) chars as input seems more than enough
3951 test $ac_count -gt 10 && break
3953 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3956 $ac_path_GREP_found && break 3
3961 if test -z "$ac_cv_path_GREP"; then
3962 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3965 ac_cv_path_GREP
=$GREP
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3970 $as_echo "$ac_cv_path_GREP" >&6; }
3971 GREP
="$ac_cv_path_GREP"
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3975 $as_echo_n "checking for egrep... " >&6; }
3976 if ${ac_cv_path_EGREP+:} false
; then :
3977 $as_echo_n "(cached) " >&6
3979 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3980 then ac_cv_path_EGREP
="$GREP -E"
3982 if test -z "$EGREP"; then
3983 ac_path_EGREP_found
=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3986 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3989 test -z "$as_dir" && as_dir
=.
3990 for ac_prog
in egrep; do
3991 for ac_exec_ext
in '' $ac_executable_extensions; do
3992 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3993 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3994 # Check for GNU ac_path_EGREP and select it if it is found.
3995 # Check for GNU $ac_path_EGREP
3996 case `"$ac_path_EGREP" --version 2>&1` in
3998 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4001 $as_echo_n 0123456789 >"conftest.in"
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 $as_echo 'EGREP' >> "conftest.nl"
4008 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4009 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4010 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4011 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_EGREP
="$ac_path_EGREP"
4014 ac_path_EGREP_max
=$ac_count
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4019 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4022 $ac_path_EGREP_found && break 3
4027 if test -z "$ac_cv_path_EGREP"; then
4028 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4031 ac_cv_path_EGREP
=$EGREP
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4037 $as_echo "$ac_cv_path_EGREP" >&6; }
4038 EGREP
="$ac_cv_path_EGREP"
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4042 $as_echo_n "checking for fgrep... " >&6; }
4043 if ${ac_cv_path_FGREP+:} false
; then :
4044 $as_echo_n "(cached) " >&6
4046 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4047 then ac_cv_path_FGREP
="$GREP -F"
4049 if test -z "$FGREP"; then
4050 ac_path_FGREP_found
=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4053 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4056 test -z "$as_dir" && as_dir
=.
4057 for ac_prog
in fgrep
; do
4058 for ac_exec_ext
in '' $ac_executable_extensions; do
4059 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4060 as_fn_executable_p
"$ac_path_FGREP" ||
continue
4061 # Check for GNU ac_path_FGREP and select it if it is found.
4062 # Check for GNU $ac_path_FGREP
4063 case `"$ac_path_FGREP" --version 2>&1` in
4065 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4068 $as_echo_n 0123456789 >"conftest.in"
4071 cat "conftest.in" "conftest.in" >"conftest.tmp"
4072 mv "conftest.tmp" "conftest.in"
4073 cp "conftest.in" "conftest.nl"
4074 $as_echo 'FGREP' >> "conftest.nl"
4075 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4076 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4077 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4078 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4079 # Best one so far, save it but keep looking for a better one
4080 ac_cv_path_FGREP
="$ac_path_FGREP"
4081 ac_path_FGREP_max
=$ac_count
4083 # 10*(2^10) chars as input seems more than enough
4084 test $ac_count -gt 10 && break
4086 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4089 $ac_path_FGREP_found && break 3
4094 if test -z "$ac_cv_path_FGREP"; then
4095 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4098 ac_cv_path_FGREP
=$FGREP
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4104 $as_echo "$ac_cv_path_FGREP" >&6; }
4105 FGREP
="$ac_cv_path_FGREP"
4108 test -z "$GREP" && GREP
=grep
4128 # Check whether --with-gnu-ld was given.
4129 if test "${with_gnu_ld+set}" = set; then :
4130 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4136 if test "$GCC" = yes; then
4137 # Check if gcc -print-prog-name=ld gives a path.
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4139 $as_echo_n "checking for ld used by $CC... " >&6; }
4142 # gcc leaves a trailing carriage return which upsets mingw
4143 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4145 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4148 # Accept absolute paths.
4150 re_direlt
='/[^/][^/]*/\.\./'
4151 # Canonicalize the pathname of ld
4152 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4153 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4154 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4156 test -z "$LD" && LD
="$ac_prog"
4159 # If it fails, then pretend we aren't using GCC.
4163 # If it is relative, then search for the first ld in PATH.
4167 elif test "$with_gnu_ld" = yes; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4169 $as_echo_n "checking for GNU ld... " >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4172 $as_echo_n "checking for non-GNU ld... " >&6; }
4174 if ${lt_cv_path_LD+:} false
; then :
4175 $as_echo_n "(cached) " >&6
4177 if test -z "$LD"; then
4178 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4179 for ac_dir
in $PATH; do
4181 test -z "$ac_dir" && ac_dir
=.
4182 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4183 lt_cv_path_LD
="$ac_dir/$ac_prog"
4184 # Check to see if the program is GNU ld. I'd rather use --version,
4185 # but apparently some variants of GNU ld only accept -v.
4186 # Break only if it was the GNU/non-GNU ld that we prefer.
4187 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4188 *GNU
* |
*'with BFD'*)
4189 test "$with_gnu_ld" != no
&& break
4192 test "$with_gnu_ld" != yes && break
4199 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4204 if test -n "$LD"; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4206 $as_echo "$LD" >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4211 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4213 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4214 if ${lt_cv_prog_gnu_ld+:} false
; then :
4215 $as_echo_n "(cached) " >&6
4217 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4218 case `$LD -v 2>&1 </dev/null` in
4219 *GNU
* |
*'with BFD'*)
4220 lt_cv_prog_gnu_ld
=yes
4223 lt_cv_prog_gnu_ld
=no
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4228 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4229 with_gnu_ld
=$lt_cv_prog_gnu_ld
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4240 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4241 if ${lt_cv_path_NM+:} false
; then :
4242 $as_echo_n "(cached) " >&6
4244 if test -n "$NM"; then
4245 # Let the user override the test.
4248 lt_nm_to_check
="${ac_tool_prefix}nm"
4249 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4250 lt_nm_to_check
="$lt_nm_to_check nm"
4252 for lt_tmp_nm
in $lt_nm_to_check; do
4253 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4254 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4256 test -z "$ac_dir" && ac_dir
=.
4257 tmp_nm
="$ac_dir/$lt_tmp_nm"
4258 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4259 # Check to see if the nm accepts a BSD-compat flag.
4260 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4261 # nm: unknown option "B" ignored
4262 # Tru64's nm complains that /dev/null is an invalid object file
4263 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4264 */dev
/null
* |
*'Invalid file or object type'*)
4265 lt_cv_path_NM
="$tmp_nm -B"
4269 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4271 lt_cv_path_NM
="$tmp_nm -p"
4275 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4276 continue # so that we can try to find one that supports BSD flags
4285 : ${lt_cv_path_NM=no}
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4289 $as_echo "$lt_cv_path_NM" >&6; }
4290 if test "$lt_cv_path_NM" != "no"; then
4293 # Didn't find any BSD compatible name lister, look for dumpbin.
4294 if test -n "$DUMPBIN"; then :
4295 # Let the user override the test.
4297 if test -n "$ac_tool_prefix"; then
4298 for ac_prog
in dumpbin
"link -dump"
4300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4301 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 $as_echo_n "checking for $ac_word... " >&6; }
4304 if ${ac_cv_prog_DUMPBIN+:} false
; then :
4305 $as_echo_n "(cached) " >&6
4307 if test -n "$DUMPBIN"; then
4308 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir
=.
4315 for ac_exec_ext
in '' $ac_executable_extensions; do
4316 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4317 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 DUMPBIN
=$ac_cv_prog_DUMPBIN
4328 if test -n "$DUMPBIN"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4330 $as_echo "$DUMPBIN" >&6; }
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333 $as_echo "no" >&6; }
4337 test -n "$DUMPBIN" && break
4340 if test -z "$DUMPBIN"; then
4341 ac_ct_DUMPBIN
=$DUMPBIN
4342 for ac_prog
in dumpbin
"link -dump"
4344 # Extract the first word of "$ac_prog", so it can be a program name with args.
4345 set dummy
$ac_prog; ac_word
=$2
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347 $as_echo_n "checking for $ac_word... " >&6; }
4348 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
4349 $as_echo_n "(cached) " >&6
4351 if test -n "$ac_ct_DUMPBIN"; then
4352 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4358 test -z "$as_dir" && as_dir
=.
4359 for ac_exec_ext
in '' $ac_executable_extensions; do
4360 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4361 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4372 if test -n "$ac_ct_DUMPBIN"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4374 $as_echo "$ac_ct_DUMPBIN" >&6; }
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4381 test -n "$ac_ct_DUMPBIN" && break
4384 if test "x$ac_ct_DUMPBIN" = x
; then
4387 case $cross_compiling:$ac_tool_warned in
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4391 ac_tool_warned
=yes ;;
4393 DUMPBIN
=$ac_ct_DUMPBIN
4397 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4399 DUMPBIN
="$DUMPBIN -symbols"
4407 if test "$DUMPBIN" != ":"; then
4411 test -z "$NM" && NM
=nm
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4419 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4420 if ${lt_cv_nm_interface+:} false
; then :
4421 $as_echo_n "(cached) " >&6
4423 lt_cv_nm_interface
="BSD nm"
4424 echo "int some_variable = 0;" > conftest.
$ac_ext
4425 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4426 (eval "$ac_compile" 2>conftest.err
)
4427 cat conftest.err
>&5
4428 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4429 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4430 cat conftest.err
>&5
4431 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4432 cat conftest.out
>&5
4433 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4434 lt_cv_nm_interface
="MS dumpbin"
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4439 $as_echo "$lt_cv_nm_interface" >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4442 $as_echo_n "checking whether ln -s works... " >&6; }
4444 if test "$LN_S" = "ln -s"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4446 $as_echo "yes" >&6; }
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4449 $as_echo "no, using $LN_S" >&6; }
4452 # find the maximum length of command line arguments
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4454 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4455 if ${lt_cv_sys_max_cmd_len+:} false
; then :
4456 $as_echo_n "(cached) " >&6
4463 # On DJGPP, this test can blow up pretty badly due to problems in libc
4464 # (any single argument exceeding 2000 bytes causes a buffer overrun
4465 # during glob expansion). Even if it were fixed, the result of this
4466 # check would be larger than it should be.
4467 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4471 # Under GNU Hurd, this test is not required because there is
4472 # no limit to the length of command line arguments.
4473 # Libtool will interpret -1 as no limit whatsoever
4474 lt_cv_sys_max_cmd_len
=-1;
4477 cygwin
* | mingw
* | cegcc
*)
4478 # On Win9x/ME, this test blows up -- it succeeds, but takes
4479 # about 5 minutes as the teststring grows exponentially.
4480 # Worse, since 9x/ME are not pre-emptively multitasking,
4481 # you end up with a "frozen" computer, even though with patience
4482 # the test eventually succeeds (with a max line length of 256k).
4483 # Instead, let's just punt: use the minimum linelength reported by
4484 # all of the supported platforms: 8192 (on NT/2K/XP).
4485 lt_cv_sys_max_cmd_len
=8192;
4489 # On MiNT this can take a long time and run out of memory.
4490 lt_cv_sys_max_cmd_len
=8192;
4494 # On AmigaOS with pdksh, this test takes hours, literally.
4495 # So we just punt and use a minimum line length of 8192.
4496 lt_cv_sys_max_cmd_len
=8192;
4499 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4500 # This has been around since 386BSD, at least. Likely further.
4501 if test -x /sbin
/sysctl
; then
4502 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4503 elif test -x /usr
/sbin
/sysctl
; then
4504 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4506 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4508 # And add a safety zone
4509 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4510 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4514 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4515 lt_cv_sys_max_cmd_len
=196608
4519 # The test takes a long time on OS/2.
4520 lt_cv_sys_max_cmd_len
=8192
4524 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4525 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4526 # nice to cause kernel panics so lets avoid the loop below.
4527 # First set a reasonable default.
4528 lt_cv_sys_max_cmd_len
=16384
4530 if test -x /sbin
/sysconfig
; then
4531 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4532 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4537 lt_cv_sys_max_cmd_len
=102400
4539 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4540 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4541 if test -n "$kargmax"; then
4542 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4544 lt_cv_sys_max_cmd_len
=32768
4548 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4549 if test -n "$lt_cv_sys_max_cmd_len"; then
4550 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4551 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4553 # Make teststring a little bigger before we do anything with it.
4554 # a 1K string should be a reasonable start.
4555 for i
in 1 2 3 4 5 6 7 8 ; do
4556 teststring
=$teststring$teststring
4558 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4559 # If test is not a shell built-in, we'll probably end up computing a
4560 # maximum length that is only half of the actual maximum length, but
4562 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4563 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
4564 test $i != 17 # 1/2 MB should be enough
4567 teststring
=$teststring$teststring
4569 # Only check the string length outside the loop.
4570 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4572 # Add a significant safety factor because C++ compilers can tack on
4573 # massive amounts of additional arguments before passing them to the
4574 # linker. It appears as though 1/2 is a usable value.
4575 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4582 if test -n $lt_cv_sys_max_cmd_len ; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4584 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4587 $as_echo "none" >&6; }
4589 max_cmd_len
=$lt_cv_sys_max_cmd_len
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4601 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4602 # Try some XSI features
4605 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4607 && eval 'test $(( 1 + 1 )) -eq 2 \
4608 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
4611 $as_echo "$xsi_shell" >&6; }
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
4615 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
4617 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
4619 && lt_shell_append=yes
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
4621 $as_echo "$lt_shell_append" >&6; }
4624 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4634 # test EBCDIC or ASCII
4635 case `echo X|tr X '\101'` in
4636 A) # ASCII based system
4637 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4638 lt_SP2NL='tr \040 \012'
4639 lt_NL2SP='tr \015\012 \040\040'
4641 *) # EBCDIC based system
4642 lt_SP2NL='tr \100 \n'
4643 lt_NL2SP='tr \r\n \100\100'
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
4656 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
4657 if ${lt_cv_to_host_file_cmd+:} false; then :
4658 $as_echo_n "(cached
) " >&6
4663 *-*-mingw* ) # actually msys
4664 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4667 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4669 * ) # otherwise, assume *nix
4670 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4676 *-*-mingw* ) # actually msys
4677 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4680 lt_cv_to_host_file_cmd=func_convert_file_noop
4682 * ) # otherwise, assume *nix
4683 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4687 * ) # unhandled hosts (and "normal
" native builds)
4688 lt_cv_to_host_file_cmd=func_convert_file_noop
4694 to_host_file_cmd=$lt_cv_to_host_file_cmd
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
4696 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
4703 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
4704 if ${lt_cv_to_tool_file_cmd+:} false; then :
4705 $as_echo_n "(cached
) " >&6
4707 #assume ordinary cross tools, or native build.
4708 lt_cv_to_tool_file_cmd=func_convert_file_noop
4712 *-*-mingw* ) # actually msys
4713 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4721 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
4723 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
4730 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
4731 if ${lt_cv_ld_reload_flag+:} false; then :
4732 $as_echo_n "(cached
) " >&6
4734 lt_cv_ld_reload_flag='-r'
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
4737 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4738 reload_flag=$lt_cv_ld_reload_flag
4739 case $reload_flag in
4741 *) reload_flag=" $reload_flag" ;;
4743 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4745 cygwin* | mingw* | pw32* | cegcc*)
4746 if test "$GCC" != yes; then
4751 if test "$GCC" = yes; then
4752 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4767 if test -n "$ac_tool_prefix"; then
4768 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
4769 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4771 $as_echo_n "checking
for $ac_word...
" >&6; }
4772 if ${ac_cv_prog_OBJDUMP+:} false; then :
4773 $as_echo_n "(cached
) " >&6
4775 if test -n "$OBJDUMP"; then
4776 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4785 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
4786 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4795 OBJDUMP=$ac_cv_prog_OBJDUMP
4796 if test -n "$OBJDUMP"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
4798 $as_echo "$OBJDUMP" >&6; }
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4801 $as_echo "no
" >&6; }
4806 if test -z "$ac_cv_prog_OBJDUMP"; then
4807 ac_ct_OBJDUMP=$OBJDUMP
4808 # Extract the first word of "objdump
", so it can be a program name with args.
4809 set dummy objdump; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4811 $as_echo_n "checking
for $ac_word...
" >&6; }
4812 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4813 $as_echo_n "(cached
) " >&6
4815 if test -n "$ac_ct_OBJDUMP"; then
4816 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4835 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4836 if test -n "$ac_ct_OBJDUMP"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
4838 $as_echo "$ac_ct_OBJDUMP" >&6; }
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4841 $as_echo "no
" >&6; }
4844 if test "x
$ac_ct_OBJDUMP" = x; then
4847 case $cross_compiling:$ac_tool_warned in
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
4850 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
4851 ac_tool_warned=yes ;;
4853 OBJDUMP=$ac_ct_OBJDUMP
4856 OBJDUMP="$ac_cv_prog_OBJDUMP"
4859 test -z "$OBJDUMP" && OBJDUMP=objdump
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
4870 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
4871 if ${lt_cv_deplibs_check_method+:} false; then :
4872 $as_echo_n "(cached
) " >&6
4874 lt_cv_file_magic_cmd='$MAGIC_CMD'
4875 lt_cv_file_magic_test_file=
4876 lt_cv_deplibs_check_method='unknown'
4877 # Need to set the preceding variable on all platforms that support
4878 # interlibrary dependencies.
4879 # 'none' -- dependencies not supported.
4880 # `unknown' -- same as none, but documents that we really don't know.
4881 # 'pass_all' -- all dependencies passed with no checks.
4882 # 'test_compile' -- check by making test program.
4883 # 'file_magic [[regex]]' -- check by looking for files in library path
4884 # which responds to the $file_magic_cmd with a given extended regex.
4885 # If you have `file' or equivalent on your system and you're not sure
4886 # whether `pass_all' will *always* work, you probably want this one.
4890 lt_cv_deplibs_check_method=pass_all
4894 lt_cv_deplibs_check_method=pass_all
4898 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4899 lt_cv_file_magic_cmd='/usr/bin/file -L'
4900 lt_cv_file_magic_test_file=/shlib/libc.so
4904 # func_win32_libid is a shell function defined in ltmain.sh
4905 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4906 lt_cv_file_magic_cmd='func_win32_libid'
4910 # Base MSYS/MinGW do not provide the 'file' command needed by
4911 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4912 # unless we find 'file', for example because we are cross-compiling.
4913 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4914 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
4915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4916 lt_cv_file_magic_cmd='func_win32_libid'
4918 # Keep this pattern in sync with the one in func_win32_libid.
4919 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4920 lt_cv_file_magic_cmd='$OBJDUMP -f'
4925 # use the weaker test based on 'objdump'. See mingw*.
4926 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4927 lt_cv_file_magic_cmd='$OBJDUMP -f'
4930 darwin* | rhapsody*)
4931 lt_cv_deplibs_check_method=pass_all
4934 freebsd* | dragonfly*)
4935 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4938 # Not sure whether the presence of OpenBSD here was a mistake.
4939 # Let's accept both of them until this is cleared up.
4940 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4941 lt_cv_file_magic_cmd=/usr/bin/file
4942 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4946 lt_cv_deplibs_check_method=pass_all
4951 lt_cv_deplibs_check_method=pass_all
4955 lt_cv_deplibs_check_method=pass_all
4958 hpux10.20* | hpux11*)
4959 lt_cv_file_magic_cmd=/usr/bin/file
4962 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4963 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4966 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]'
4967 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4971 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4977 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4981 irix5* | irix6* | nonstopux*)
4983 *-32|*"-32 ") libmagic=32-bit;;
4984 *-n32|*"-n32 ") libmagic=N32;;
4985 *-64|*"-64 ") libmagic=64-bit;;
4986 *) libmagic=never-match;;
4988 lt_cv_deplibs_check_method=pass_all
4991 # This must be glibc/ELF.
4992 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4993 lt_cv_deplibs_check_method=pass_all
4997 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5006 lt_cv_file_magic_cmd=/usr/bin/file
5007 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5011 lt_cv_deplibs_check_method=pass_all
5015 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5022 osf3* | osf4* | osf5*)
5023 lt_cv_deplibs_check_method=pass_all
5027 lt_cv_deplibs_check_method=pass_all
5031 lt_cv_deplibs_check_method=pass_all
5034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5035 lt_cv_deplibs_check_method=pass_all
5039 case $host_vendor in
5041 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]'
5042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5045 lt_cv_deplibs_check_method=pass_all
5048 lt_cv_file_magic_cmd='/bin/file'
5049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5052 lt_cv_file_magic_cmd='/bin/file'
5053 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5054 lt_cv_file_magic_test_file=/lib/libc.so
5057 lt_cv_deplibs_check_method=pass_all
5060 lt_cv_deplibs_check_method=pass_all
5066 lt_cv_deplibs_check_method=pass_all
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5072 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5076 if test "$build" = "$host"; then
5079 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5082 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5088 file_magic_cmd=$lt_cv_file_magic_cmd
5089 deplibs_check_method=$lt_cv_deplibs_check_method
5090 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5113 if test -n "$ac_tool_prefix"; then
5114 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5115 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5117 $as_echo_n "checking
for $ac_word...
" >&6; }
5118 if ${ac_cv_prog_DLLTOOL+:} false; then :
5119 $as_echo_n "(cached
) " >&6
5121 if test -n "$DLLTOOL"; then
5122 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5141 DLLTOOL=$ac_cv_prog_DLLTOOL
5142 if test -n "$DLLTOOL"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5144 $as_echo "$DLLTOOL" >&6; }
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5147 $as_echo "no
" >&6; }
5152 if test -z "$ac_cv_prog_DLLTOOL"; then
5153 ac_ct_DLLTOOL=$DLLTOOL
5154 # Extract the first word of "dlltool
", so it can be a program name with args.
5155 set dummy dlltool; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5157 $as_echo_n "checking
for $ac_word...
" >&6; }
5158 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5159 $as_echo_n "(cached
) " >&6
5161 if test -n "$ac_ct_DLLTOOL"; then
5162 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5181 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5182 if test -n "$ac_ct_DLLTOOL"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5184 $as_echo "$ac_ct_DLLTOOL" >&6; }
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5187 $as_echo "no
" >&6; }
5190 if test "x
$ac_ct_DLLTOOL" = x; then
5193 case $cross_compiling:$ac_tool_warned in
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5196 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5197 ac_tool_warned=yes ;;
5199 DLLTOOL=$ac_ct_DLLTOOL
5202 DLLTOOL="$ac_cv_prog_DLLTOOL"
5205 test -z "$DLLTOOL" && DLLTOOL=dlltool
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5217 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5218 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5219 $as_echo_n "(cached
) " >&6
5221 lt_cv_sharedlib_from_linklib_cmd='unknown'
5224 cygwin* | mingw* | pw32* | cegcc*)
5225 # two different shell functions defined in ltmain.sh
5226 # decide which to use based on capabilities of $DLLTOOL
5227 case `$DLLTOOL --help 2>&1` in
5228 *--identify-strict*)
5229 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5232 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5237 # fallback: assume linklib IS sharedlib
5238 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5244 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5245 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5246 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5255 if test -n "$ac_tool_prefix"; then
5258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5261 $as_echo_n "checking
for $ac_word...
" >&6; }
5262 if ${ac_cv_prog_AR+:} false; then :
5263 $as_echo_n "(cached
) " >&6
5265 if test -n "$AR"; then
5266 ac_cv_prog_AR="$AR" # Let the user override the test.
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5276 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5286 if test -n "$AR"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5288 $as_echo "$AR" >&6; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5291 $as_echo "no
" >&6; }
5295 test -n "$AR" && break
5298 if test -z "$AR"; then
5302 # Extract the first word of "$ac_prog", so it can be a program name with args.
5303 set dummy $ac_prog; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5305 $as_echo_n "checking
for $ac_word...
" >&6; }
5306 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5307 $as_echo_n "(cached
) " >&6
5309 if test -n "$ac_ct_AR"; then
5310 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5319 ac_cv_prog_ac_ct_AR="$ac_prog"
5320 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5329 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5330 if test -n "$ac_ct_AR"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5332 $as_echo "$ac_ct_AR" >&6; }
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5335 $as_echo "no
" >&6; }
5339 test -n "$ac_ct_AR" && break
5342 if test "x
$ac_ct_AR" = x; then
5345 case $cross_compiling:$ac_tool_warned in
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5348 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5349 ac_tool_warned=yes ;;
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
5369 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
5370 if ${lt_cv_ar_at_file+:} false; then :
5371 $as_echo_n "(cached
) " >&6
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5385 if ac_fn_c_try_compile "$LINENO"; then :
5386 echo conftest.$ac_objext > conftest.lst
5387 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5388 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5389 (eval $lt_ar_try) 2>&5
5391 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5392 test $ac_status = 0; }
5393 if test "$ac_status" -eq 0; then
5394 # Ensure the archiver fails upon bogus file names.
5395 rm -f conftest.$ac_objext libconftest.a
5396 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5397 (eval $lt_ar_try) 2>&5
5399 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5400 test $ac_status = 0; }
5401 if test "$ac_status" -ne 0; then
5405 rm -f conftest.* libconftest.a
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
5412 $as_echo "$lt_cv_ar_at_file" >&6; }
5414 if test "x
$lt_cv_ar_at_file" = xno; then
5417 archiver_list_spec=$lt_cv_ar_at_file
5426 if test -n "$ac_tool_prefix"; then
5427 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5428 set dummy ${ac_tool_prefix}strip; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5430 $as_echo_n "checking
for $ac_word...
" >&6; }
5431 if ${ac_cv_prog_STRIP+:} false; then :
5432 $as_echo_n "(cached
) " >&6
5434 if test -n "$STRIP"; then
5435 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5445 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5454 STRIP=$ac_cv_prog_STRIP
5455 if test -n "$STRIP"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
5457 $as_echo "$STRIP" >&6; }
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5460 $as_echo "no
" >&6; }
5465 if test -z "$ac_cv_prog_STRIP"; then
5467 # Extract the first word of "strip
", so it can be a program name with args.
5468 set dummy strip; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5470 $as_echo_n "checking
for $ac_word...
" >&6; }
5471 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5472 $as_echo_n "(cached
) " >&6
5474 if test -n "$ac_ct_STRIP"; then
5475 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484 ac_cv_prog_ac_ct_STRIP="strip
"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5494 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5495 if test -n "$ac_ct_STRIP"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
5497 $as_echo "$ac_ct_STRIP" >&6; }
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5500 $as_echo "no
" >&6; }
5503 if test "x
$ac_ct_STRIP" = x; then
5506 case $cross_compiling:$ac_tool_warned in
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5509 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5510 ac_tool_warned=yes ;;
5515 STRIP="$ac_cv_prog_STRIP"
5518 test -z "$STRIP" && STRIP=:
5525 if test -n "$ac_tool_prefix"; then
5526 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5527 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5529 $as_echo_n "checking
for $ac_word...
" >&6; }
5530 if ${ac_cv_prog_RANLIB+:} false; then :
5531 $as_echo_n "(cached
) " >&6
5533 if test -n "$RANLIB"; then
5534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5553 RANLIB=$ac_cv_prog_RANLIB
5554 if test -n "$RANLIB"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
5556 $as_echo "$RANLIB" >&6; }
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5559 $as_echo "no
" >&6; }
5564 if test -z "$ac_cv_prog_RANLIB"; then
5565 ac_ct_RANLIB=$RANLIB
5566 # Extract the first word of "ranlib
", so it can be a program name with args.
5567 set dummy ranlib; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5569 $as_echo_n "checking
for $ac_word...
" >&6; }
5570 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5571 $as_echo_n "(cached
) " >&6
5573 if test -n "$ac_ct_RANLIB"; then
5574 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5593 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5594 if test -n "$ac_ct_RANLIB"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
5596 $as_echo "$ac_ct_RANLIB" >&6; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5599 $as_echo "no
" >&6; }
5602 if test "x
$ac_ct_RANLIB" = x; then
5605 case $cross_compiling:$ac_tool_warned in
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5608 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5609 ac_tool_warned=yes ;;
5611 RANLIB=$ac_ct_RANLIB
5614 RANLIB="$ac_cv_prog_RANLIB"
5617 test -z "$RANLIB" && RANLIB=:
5624 # Determine commands to create old-style static archives.
5625 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5626 old_postinstall_cmds='chmod 644 $oldlib'
5627 old_postuninstall_cmds=
5629 if test -n "$RANLIB"; then
5632 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
5635 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
5638 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
5643 lock_old_archive_extraction=yes ;;
5645 lock_old_archive_extraction=no ;;
5668 for ac_prog in gawk mawk nawk awk
5670 # Extract the first word of "$ac_prog", so it can be a program name with args.
5671 set dummy $ac_prog; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5673 $as_echo_n "checking
for $ac_word...
" >&6; }
5674 if ${ac_cv_prog_AWK+:} false; then :
5675 $as_echo_n "(cached
) " >&6
5677 if test -n "$AWK"; then
5678 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687 ac_cv_prog_AWK="$ac_prog"
5688 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5698 if test -n "$AWK"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AWK" >&5
5700 $as_echo "$AWK" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5703 $as_echo "no
" >&6; }
5707 test -n "$AWK" && break
5728 # If no C compiler was specified, use CC.
5731 # If no C compiler flags were specified, use CFLAGS.
5732 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5734 # Allow CC to be a program name with arguments.
5738 # Check for command to grab the raw symbol name followed by C symbol from nm.
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
5740 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5741 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5742 $as_echo_n "(cached
) " >&6
5745 # These are sane defaults that work on at least a few old systems.
5746 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5748 # Character class describing NM global symbol codes.
5749 symcode='[BCDEGRST]'
5751 # Regexp to match symbols that can be accessed directly from C.
5752 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5754 # Define system-specific variables.
5759 cygwin* | mingw* | pw32* | cegcc*)
5760 symcode='[ABCDGISTW]'
5763 if test "$host_cpu" = ia64; then
5764 symcode='[ABCDEGRST]'
5768 symcode='[BCDEGRST]'
5771 symcode='[BCDEGQRST]'
5782 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5790 # If we're using GNU nm, then use its standard symbol codes.
5791 case `$NM -V 2>&1` in
5792 *GNU* | *'with BFD'*)
5793 symcode='[ABCDGIRSTW]' ;;
5796 # Transform an extracted symbol line into a proper C declaration.
5797 # Some systems (esp. on ia64) link data and code symbols differently,
5798 # so use this general approach.
5799 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5801 # Transform an extracted symbol line into symbol name and symbol address
5802 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5803 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'"
5805 # Handle CRLF in mingw tool chain
5809 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5813 # Try without a prefix underscore, then with it.
5814 for ac_symprfx in "" "_
"; do
5816 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5817 symxfrm="\\1 $ac_symprfx\\2 \\2"
5819 # Write the raw and C identifiers.
5820 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5821 # Fake it for dumpbin and say T for any non-static function
5822 # and D for any global variable.
5823 # Also find C++ and __fastcall symbols from MSVC++,
5824 # which start with @ or ?.
5825 lt_cv_sys_global_symbol_pipe="$AWK '"\
5826 " {last_section=section; section=\$ 3};"\
5827 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5828 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5829 " \$ 0!~/External *\|/{next};"\
5830 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5831 " {if(hide[section]) next};"\
5832 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5833 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5834 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5835 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5836 " ' prfx
=^
$ac_symprfx"
5838 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5840 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
5842 # Check to see that the pipe works correctly.
5846 cat > conftest.$ac_ext <<_LT_EOF
5851 void nm_test_func(void);
5852 void nm_test_func(void){}
5856 int main(){nm_test_var='a';nm_test_func();return(0);}
5859 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5860 (eval $ac_compile) 2>&5
5862 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5863 test $ac_status = 0; }; then
5864 # Now try to grab the symbols.
5866 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
5867 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5869 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5870 test $ac_status = 0; } && test -s "$nlist"; then
5871 # Try sorting and uniquifying the output.
5872 if sort "$nlist" | uniq > "$nlist"T; then
5873 mv -f "$nlist"T "$nlist"
5878 # Make sure that we snagged all the symbols we need.
5879 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5880 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5881 cat <<_LT_EOF > conftest.$ac_ext
5882 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5883 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5884 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5885 relocations are performed -- see ld's documentation on pseudo-relocs. */
5886 # define LT_DLSYM_CONST
5887 #elif defined(__osf__)
5888 /* This system does not cope well with relocations in const data. */
5889 # define LT_DLSYM_CONST
5891 # define LT_DLSYM_CONST const
5899 # Now generate the symbol file.
5900 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5902 cat <<_LT_EOF >> conftest.$ac_ext
5904 /* The mapping between symbol names and symbols. */
5905 LT_DLSYM_CONST struct {
5909 lt__PROGRAM__LTX_preloaded_symbols[] =
5911 { "@PROGRAM@
", (void *) 0 },
5913 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5914 cat <<\_LT_EOF >> conftest.$ac_ext
5918 /* This works around a problem in FreeBSD linker */
5919 #ifdef FREEBSD_WORKAROUND
5920 static const void *lt_preloaded_setup() {
5921 return lt__PROGRAM__LTX_preloaded_symbols;
5929 # Now try linking the two files.
5930 mv conftest.$ac_objext conftstm.$ac_objext
5931 lt_globsym_save_LIBS=$LIBS
5932 lt_globsym_save_CFLAGS=$CFLAGS
5933 LIBS="conftstm.
$ac_objext"
5934 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5935 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5936 (eval $ac_link) 2>&5
5938 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5939 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5942 LIBS=$lt_globsym_save_LIBS
5943 CFLAGS=$lt_globsym_save_CFLAGS
5945 echo "cannot
find nm_test_func
in $nlist" >&5
5948 echo "cannot
find nm_test_var
in $nlist" >&5
5951 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5954 echo "$progname: failed program was
:" >&5
5955 cat conftest.$ac_ext >&5
5957 rm -rf conftest* conftst*
5959 # Do not use the global_symbol_pipe unless it works.
5960 if test "$pipe_works" = yes; then
5963 lt_cv_sys_global_symbol_pipe=
5969 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5970 lt_cv_sys_global_symbol_to_cdecl=
5972 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
5974 $as_echo "failed
" >&6; }
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
5977 $as_echo "ok
" >&6; }
5980 # Response file support.
5981 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5982 nm_file_list_spec='@'
5983 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5984 nm_file_list_spec='@'
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6014 $as_echo_n "checking
for sysroot...
" >&6; }
6016 # Check whether --with-sysroot was given.
6017 if test "${with_sysroot+set}" = set; then :
6018 withval=$with_sysroot;
6025 case ${with_sysroot} in #(
6027 if test "$GCC" = yes; then
6028 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6032 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${with_sysroot}" >&5
6038 $as_echo "${with_sysroot}" >&6; }
6039 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6044 $as_echo "${lt_sysroot:-no}" >&6; }
6050 # Check whether --enable-libtool-lock was given.
6051 if test "${enable_libtool_lock+set}" = set; then :
6052 enableval=$enable_libtool_lock;
6055 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6057 # Some flags need to be propagated to the compiler or linker for good
6061 # Find out which ABI we are using.
6062 echo 'int i;' > conftest.$ac_ext
6063 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6064 (eval $ac_compile) 2>&5
6066 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6067 test $ac_status = 0; }; then
6068 case `/usr/bin/file conftest.$ac_objext` in
6080 # Find out which ABI we are using.
6081 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6082 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6083 (eval $ac_compile) 2>&5
6085 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6086 test $ac_status = 0; }; then
6087 if test "$lt_cv_prog_gnu_ld" = yes; then
6088 case `/usr/bin/file conftest.$ac_objext` in
6090 LD="${LD-ld} -melf32bsmip"
6093 LD="${LD-ld} -melf32bmipn32"
6096 LD="${LD-ld} -melf64bmip"
6100 case `/usr/bin/file conftest.$ac_objext` in
6116 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6117 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6118 # Find out which ABI we are using.
6119 echo 'int i;' > conftest.$ac_ext
6120 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6121 (eval $ac_compile) 2>&5
6123 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6124 test $ac_status = 0; }; then
6125 case `/usr/bin/file conftest.o` in
6128 x86_64-*kfreebsd*-gnu)
6129 LD="${LD-ld} -m elf_i386_fbsd
"
6132 LD="${LD-ld} -m elf_i386
"
6134 ppc64-*linux*|powerpc64-*linux*)
6135 LD="${LD-ld} -m elf32ppclinux
"
6138 LD="${LD-ld} -m elf_s390
"
6141 LD="${LD-ld} -m elf32_sparc
"
6147 x86_64-*kfreebsd*-gnu)
6148 LD="${LD-ld} -m elf_x86_64_fbsd
"
6151 LD="${LD-ld} -m elf_x86_64
"
6153 ppc*-*linux*|powerpc*-*linux*)
6154 LD="${LD-ld} -m elf64ppc
"
6156 s390*-*linux*|s390*-*tpf*)
6157 LD="${LD-ld} -m elf64_s390
"
6160 LD="${LD-ld} -m elf64_sparc
"
6170 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6171 SAVE_CFLAGS="$CFLAGS"
6172 CFLAGS="$CFLAGS -belf"
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6174 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6175 if ${lt_cv_cc_needs_belf+:} false; then :
6176 $as_echo_n "(cached
) " >&6
6179 ac_cpp='$CPP $CPPFLAGS'
6180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6195 if ac_fn_c_try_link "$LINENO"; then :
6196 lt_cv_cc_needs_belf=yes
6198 lt_cv_cc_needs_belf=no
6200 rm -f core conftest.err conftest.$ac_objext \
6201 conftest$ac_exeext conftest.$ac_ext
6203 ac_cpp='$CPP $CPPFLAGS'
6204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6210 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6211 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6212 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6213 CFLAGS="$SAVE_CFLAGS"
6217 # Find out which ABI we are using.
6218 echo 'int i;' > conftest.$ac_ext
6219 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6220 (eval $ac_compile) 2>&5
6222 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6223 test $ac_status = 0; }; then
6224 case `/usr/bin/file conftest.o` in
6226 case $lt_cv_prog_gnu_ld in
6230 LD="${LD-ld} -m elf_x86_64
"
6233 LD="${LD-ld} -m elf64_sparc
"
6236 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6237 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6242 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6254 need_locks="$enable_libtool_lock"
6256 if test -n "$ac_tool_prefix"; then
6257 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6258 set dummy ${ac_tool_prefix}mt; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6260 $as_echo_n "checking
for $ac_word...
" >&6; }
6261 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6262 $as_echo_n "(cached
) " >&6
6264 if test -n "$MANIFEST_TOOL"; then
6265 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6284 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6285 if test -n "$MANIFEST_TOOL"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
6287 $as_echo "$MANIFEST_TOOL" >&6; }
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6290 $as_echo "no
" >&6; }
6295 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6296 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6297 # Extract the first word of "mt
", so it can be a program name with args.
6298 set dummy mt; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6300 $as_echo_n "checking
for $ac_word...
" >&6; }
6301 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6302 $as_echo_n "(cached
) " >&6
6304 if test -n "$ac_ct_MANIFEST_TOOL"; then
6305 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6314 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
6315 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6324 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6325 if test -n "$ac_ct_MANIFEST_TOOL"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
6327 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6330 $as_echo "no
" >&6; }
6333 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
6336 case $cross_compiling:$ac_tool_warned in
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6339 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6340 ac_tool_warned=yes ;;
6342 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6345 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6348 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
6350 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
6351 if ${lt_cv_path_mainfest_tool+:} false; then :
6352 $as_echo_n "(cached
) " >&6
6354 lt_cv_path_mainfest_tool=no
6355 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6356 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6357 cat conftest.err >&5
6358 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6359 lt_cv_path_mainfest_tool=yes
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
6364 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6365 if test "x
$lt_cv_path_mainfest_tool" != xyes; then
6375 rhapsody* | darwin*)
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6378 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6380 $as_echo_n "checking
for $ac_word...
" >&6; }
6381 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6382 $as_echo_n "(cached
) " >&6
6384 if test -n "$DSYMUTIL"; then
6385 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6404 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6405 if test -n "$DSYMUTIL"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6407 $as_echo "$DSYMUTIL" >&6; }
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6410 $as_echo "no
" >&6; }
6415 if test -z "$ac_cv_prog_DSYMUTIL"; then
6416 ac_ct_DSYMUTIL=$DSYMUTIL
6417 # Extract the first word of "dsymutil
", so it can be a program name with args.
6418 set dummy dsymutil; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6420 $as_echo_n "checking
for $ac_word...
" >&6; }
6421 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6422 $as_echo_n "(cached
) " >&6
6424 if test -n "$ac_ct_DSYMUTIL"; then
6425 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6434 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6444 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6445 if test -n "$ac_ct_DSYMUTIL"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6447 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6450 $as_echo "no
" >&6; }
6453 if test "x
$ac_ct_DSYMUTIL" = x; then
6456 case $cross_compiling:$ac_tool_warned in
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6459 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6460 ac_tool_warned=yes ;;
6462 DSYMUTIL=$ac_ct_DSYMUTIL
6465 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6470 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6472 $as_echo_n "checking
for $ac_word...
" >&6; }
6473 if ${ac_cv_prog_NMEDIT+:} false; then :
6474 $as_echo_n "(cached
) " >&6
6476 if test -n "$NMEDIT"; then
6477 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6486 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6487 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6496 NMEDIT=$ac_cv_prog_NMEDIT
6497 if test -n "$NMEDIT"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6499 $as_echo "$NMEDIT" >&6; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6502 $as_echo "no
" >&6; }
6507 if test -z "$ac_cv_prog_NMEDIT"; then
6508 ac_ct_NMEDIT=$NMEDIT
6509 # Extract the first word of "nmedit
", so it can be a program name with args.
6510 set dummy nmedit; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6512 $as_echo_n "checking
for $ac_word...
" >&6; }
6513 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6514 $as_echo_n "(cached
) " >&6
6516 if test -n "$ac_ct_NMEDIT"; then
6517 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6536 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6537 if test -n "$ac_ct_NMEDIT"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6539 $as_echo "$ac_ct_NMEDIT" >&6; }
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6542 $as_echo "no
" >&6; }
6545 if test "x
$ac_ct_NMEDIT" = x; then
6548 case $cross_compiling:$ac_tool_warned in
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6551 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6552 ac_tool_warned=yes ;;
6554 NMEDIT=$ac_ct_NMEDIT
6557 NMEDIT="$ac_cv_prog_NMEDIT"
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6564 $as_echo_n "checking
for $ac_word...
" >&6; }
6565 if ${ac_cv_prog_LIPO+:} false; then :
6566 $as_echo_n "(cached
) " >&6
6568 if test -n "$LIPO"; then
6569 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6578 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6588 LIPO=$ac_cv_prog_LIPO
6589 if test -n "$LIPO"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6591 $as_echo "$LIPO" >&6; }
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6594 $as_echo "no
" >&6; }
6599 if test -z "$ac_cv_prog_LIPO"; then
6601 # Extract the first word of "lipo
", so it can be a program name with args.
6602 set dummy lipo; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6604 $as_echo_n "checking
for $ac_word...
" >&6; }
6605 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6606 $as_echo_n "(cached
) " >&6
6608 if test -n "$ac_ct_LIPO"; then
6609 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_ac_ct_LIPO="lipo
"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6628 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6629 if test -n "$ac_ct_LIPO"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
6631 $as_echo "$ac_ct_LIPO" >&6; }
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6634 $as_echo "no
" >&6; }
6637 if test "x
$ac_ct_LIPO" = x; then
6640 case $cross_compiling:$ac_tool_warned in
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6643 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6644 ac_tool_warned=yes ;;
6649 LIPO="$ac_cv_prog_LIPO"
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}otool; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6656 $as_echo_n "checking
for $ac_word...
" >&6; }
6657 if ${ac_cv_prog_OTOOL+:} false; then :
6658 $as_echo_n "(cached
) " >&6
6660 if test -n "$OTOOL"; then
6661 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6680 OTOOL=$ac_cv_prog_OTOOL
6681 if test -n "$OTOOL"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
6683 $as_echo "$OTOOL" >&6; }
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6686 $as_echo "no
" >&6; }
6691 if test -z "$ac_cv_prog_OTOOL"; then
6693 # Extract the first word of "otool
", so it can be a program name with args.
6694 set dummy otool; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6696 $as_echo_n "checking
for $ac_word...
" >&6; }
6697 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6698 $as_echo_n "(cached
) " >&6
6700 if test -n "$ac_ct_OTOOL"; then
6701 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710 ac_cv_prog_ac_ct_OTOOL="otool
"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6720 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6721 if test -n "$ac_ct_OTOOL"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
6723 $as_echo "$ac_ct_OTOOL" >&6; }
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6726 $as_echo "no
" >&6; }
6729 if test "x
$ac_ct_OTOOL" = x; then
6732 case $cross_compiling:$ac_tool_warned in
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6735 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6736 ac_tool_warned=yes ;;
6741 OTOOL="$ac_cv_prog_OTOOL"
6744 if test -n "$ac_tool_prefix"; then
6745 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6746 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6748 $as_echo_n "checking
for $ac_word...
" >&6; }
6749 if ${ac_cv_prog_OTOOL64+:} false; then :
6750 $as_echo_n "(cached
) " >&6
6752 if test -n "$OTOOL64"; then
6753 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6772 OTOOL64=$ac_cv_prog_OTOOL64
6773 if test -n "$OTOOL64"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
6775 $as_echo "$OTOOL64" >&6; }
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6778 $as_echo "no
" >&6; }
6783 if test -z "$ac_cv_prog_OTOOL64"; then
6784 ac_ct_OTOOL64=$OTOOL64
6785 # Extract the first word of "otool64
", so it can be a program name with args.
6786 set dummy otool64; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6788 $as_echo_n "checking
for $ac_word...
" >&6; }
6789 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6790 $as_echo_n "(cached
) " >&6
6792 if test -n "$ac_ct_OTOOL64"; then
6793 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6802 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6803 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6812 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6813 if test -n "$ac_ct_OTOOL64"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
6815 $as_echo "$ac_ct_OTOOL64" >&6; }
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6818 $as_echo "no
" >&6; }
6821 if test "x
$ac_ct_OTOOL64" = x; then
6824 case $cross_compiling:$ac_tool_warned in
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6827 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6828 ac_tool_warned=yes ;;
6830 OTOOL64=$ac_ct_OTOOL64
6833 OTOOL64="$ac_cv_prog_OTOOL64"
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
6863 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6864 if ${lt_cv_apple_cc_single_mod+:} false; then :
6865 $as_echo_n "(cached
) " >&6
6867 lt_cv_apple_cc_single_mod=no
6868 if test -z "${LT_MULTI_MODULE}"; then
6869 # By default we will add the -single_module flag. You can override
6870 # by either setting the environment variable LT_MULTI_MODULE
6871 # non-empty at configure time, or by adding -multi_module to the
6873 rm -rf libconftest.dylib*
6874 echo "int foo
(void
){return 1;}" > conftest.c
6875 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6876 -dynamiclib -Wl,-single_module conftest.c
" >&5
6877 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6878 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6880 # If there is a non-empty error log, and "single_module
"
6881 # appears in it, assume the flag caused a linker warning
6882 if test -s conftest.err && $GREP single_module conftest.err; then
6883 cat conftest.err >&5
6884 # Otherwise, if the output was created with a 0 exit code from
6885 # the compiler, it worked.
6886 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6887 lt_cv_apple_cc_single_mod=yes
6889 cat conftest.err >&5
6891 rm -rf libconftest.dylib*
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
6896 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
6899 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6900 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6901 $as_echo_n "(cached
) " >&6
6903 lt_cv_ld_exported_symbols_list=no
6904 save_LDFLAGS=$LDFLAGS
6905 echo "_main
" > conftest.sym
6906 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6918 if ac_fn_c_try_link "$LINENO"; then :
6919 lt_cv_ld_exported_symbols_list=yes
6921 lt_cv_ld_exported_symbols_list=no
6923 rm -f core conftest.err conftest.$ac_objext \
6924 conftest$ac_exeext conftest.$ac_ext
6925 LDFLAGS="$save_LDFLAGS"
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
6929 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
6932 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
6933 if ${lt_cv_ld_force_load+:} false; then :
6934 $as_echo_n "(cached
) " >&6
6936 lt_cv_ld_force_load=no
6937 cat > conftest.c << _LT_EOF
6938 int forced_loaded() { return 2;}
6940 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
6941 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6942 echo "$AR cru libconftest.a conftest.o
" >&5
6943 $AR cru libconftest.a conftest.o 2>&5
6944 echo "$RANLIB libconftest.a
" >&5
6945 $RANLIB libconftest.a 2>&5
6946 cat > conftest.c << _LT_EOF
6947 int main() { return 0;}
6949 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
6950 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6952 if test -s conftest.err && $GREP force_load conftest.err; then
6953 cat conftest.err >&5
6954 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6955 lt_cv_ld_force_load=yes
6957 cat conftest.err >&5
6959 rm -f conftest.err libconftest.a conftest conftest.c
6960 rm -rf conftest.dSYM
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
6964 $as_echo "$lt_cv_ld_force_load" >&6; }
6966 rhapsody* | darwin1.[012])
6967 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6969 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6970 darwin*) # darwin 5.x on
6971 # if running on 10.5 or later, the deployment target defaults
6972 # to the OS version, if on x86, and 10.4, the deployment
6973 # target defaults to 10.4. Don't you love it?
6974 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6975 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6976 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6978 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6980 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6984 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6985 _lt_dar_single_mod='$single_module'
6987 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6988 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6990 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6992 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
6993 _lt_dsymutil='~$DSYMUTIL $lib || :'
7001 ac_cpp='$CPP $CPPFLAGS'
7002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7006 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7007 # On Suns, sometimes $CPP names a directory.
7008 if test -n "$CPP" && test -d "$CPP"; then
7011 if test -z "$CPP"; then
7012 if ${ac_cv_prog_CPP+:} false; then :
7013 $as_echo_n "(cached
) " >&6
7015 # Double quotes because CPP needs to be expanded
7016 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7019 for ac_c_preproc_warn_flag in '' yes
7021 # Use a header file that comes with gcc, so configuring glibc
7022 # with a fresh cross-compiler works.
7023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7024 # <limits.h> exists even on freestanding compilers.
7025 # On the NeXT, cc -E runs the code through the compiler's parser,
7026 # not just through cpp. "Syntax error
" is here to catch this case.
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7030 # include <limits.h>
7032 # include <assert.h>
7036 if ac_fn_c_try_cpp "$LINENO"; then :
7039 # Broken: fails on valid input.
7042 rm -f conftest.err conftest.i conftest.$ac_ext
7044 # OK, works on sane cases. Now check whether nonexistent headers
7045 # can be detected and how.
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7048 #include <ac_nonexistent.h>
7050 if ac_fn_c_try_cpp "$LINENO"; then :
7051 # Broken: success on invalid input.
7054 # Passes both tests.
7058 rm -f conftest.err conftest.i conftest.$ac_ext
7061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7062 rm -f conftest.i conftest.err conftest.$ac_ext
7063 if $ac_preproc_ok; then :
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7076 $as_echo "$CPP" >&6; }
7078 for ac_c_preproc_warn_flag in '' yes
7080 # Use a header file that comes with gcc, so configuring glibc
7081 # with a fresh cross-compiler works.
7082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7083 # <limits.h> exists even on freestanding compilers.
7084 # On the NeXT, cc -E runs the code through the compiler's parser,
7085 # not just through cpp. "Syntax error
" is here to catch this case.
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7089 # include <limits.h>
7091 # include <assert.h>
7095 if ac_fn_c_try_cpp "$LINENO"; then :
7098 # Broken: fails on valid input.
7101 rm -f conftest.err conftest.i conftest.$ac_ext
7103 # OK, works on sane cases. Now check whether nonexistent headers
7104 # can be detected and how.
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 #include <ac_nonexistent.h>
7109 if ac_fn_c_try_cpp "$LINENO"; then :
7110 # Broken: success on invalid input.
7113 # Passes both tests.
7117 rm -f conftest.err conftest.i conftest.$ac_ext
7120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7121 rm -f conftest.i conftest.err conftest.$ac_ext
7122 if $ac_preproc_ok; then :
7125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7127 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7128 See \`config.log' for more details
" "$LINENO" 5; }
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7139 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7140 if ${ac_cv_header_stdc+:} false; then :
7141 $as_echo_n "(cached
) " >&6
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7158 if ac_fn_c_try_compile "$LINENO"; then :
7159 ac_cv_header_stdc=yes
7161 ac_cv_header_stdc=no
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 if test $ac_cv_header_stdc = yes; then
7166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7172 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7173 $EGREP "memchr
" >/dev/null 2>&1; then :
7176 ac_cv_header_stdc=no
7182 if test $ac_cv_header_stdc = yes; then
7183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7189 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7190 $EGREP "free
" >/dev/null 2>&1; then :
7193 ac_cv_header_stdc=no
7199 if test $ac_cv_header_stdc = yes; then
7200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7201 if test "$cross_compiling" = yes; then :
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7208 #if ((' ' & 0x0FF) == 0x020)
7209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7212 # define ISLOWER(c) \
7213 (('a' <= (c) && (c) <= 'i') \
7214 || ('j' <= (c) && (c) <= 'r') \
7215 || ('s' <= (c) && (c) <= 'z'))
7216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7224 for (i = 0; i < 256; i++)
7225 if (XOR (islower (i), ISLOWER (i))
7226 || toupper (i) != TOUPPER (i))
7231 if ac_fn_c_try_run "$LINENO"; then :
7234 ac_cv_header_stdc=no
7236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7237 conftest.$ac_objext conftest.beam conftest.$ac_ext
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7243 $as_echo "$ac_cv_header_stdc" >&6; }
7244 if test $ac_cv_header_stdc = yes; then
7246 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7250 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7251 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7252 inttypes.h stdint.h unistd.h
7254 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7255 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7257 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7258 cat >>confdefs.h
<<_ACEOF
7259 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7267 for ac_header
in dlfcn.h
7269 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7271 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7272 cat >>confdefs.h
<<_ACEOF
7273 #define HAVE_DLFCN_H 1
7294 # Check whether --enable-shared was given.
7295 if test "${enable_shared+set}" = set; then :
7296 enableval
=$enable_shared; p
=${PACKAGE-default}
7298 yes) enable_shared
=yes ;;
7299 no
) enable_shared
=no
;;
7302 # Look at the argument we got. We use all the common list separators.
7303 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7304 for pkg
in $enableval; do
7306 if test "X$pkg" = "X$p"; then
7325 # Check whether --enable-static was given.
7326 if test "${enable_static+set}" = set; then :
7327 enableval
=$enable_static; p
=${PACKAGE-default}
7329 yes) enable_static
=yes ;;
7330 no
) enable_static
=no
;;
7333 # Look at the argument we got. We use all the common list separators.
7334 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7335 for pkg
in $enableval; do
7337 if test "X$pkg" = "X$p"; then
7357 # Check whether --with-pic was given.
7358 if test "${with_pic+set}" = set; then :
7359 withval
=$with_pic; lt_p
=${PACKAGE-default}
7361 yes|no
) pic_mode
=$withval ;;
7364 # Look at the argument we got. We use all the common list separators.
7365 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7366 for lt_pkg
in $withval; do
7368 if test "X$lt_pkg" = "X$lt_p"; then
7380 test -z "$pic_mode" && pic_mode
=default
7388 # Check whether --enable-fast-install was given.
7389 if test "${enable_fast_install+set}" = set; then :
7390 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7392 yes) enable_fast_install
=yes ;;
7393 no
) enable_fast_install
=no
;;
7395 enable_fast_install
=no
7396 # Look at the argument we got. We use all the common list separators.
7397 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7398 for pkg
in $enableval; do
7400 if test "X$pkg" = "X$p"; then
7401 enable_fast_install
=yes
7408 enable_fast_install
=yes
7421 # This can be used to rebuild libtool when needed
7422 LIBTOOL_DEPS
="$ltmain"
7424 # Always use our own libtool.
7425 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7456 test -z "$LN_S" && LN_S
="ln -s"
7471 if test -n "${ZSH_VERSION+set}" ; then
7472 setopt NO_GLOB_SUBST
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7476 $as_echo_n "checking for objdir... " >&6; }
7477 if ${lt_cv_objdir+:} false
; then :
7478 $as_echo_n "(cached) " >&6
7480 rm -f .libs
2>/dev
/null
7481 mkdir .libs
2>/dev
/null
7482 if test -d .libs
; then
7485 # MS-DOS does not allow filenames that begin with a dot.
7488 rmdir .libs
2>/dev
/null
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7491 $as_echo "$lt_cv_objdir" >&6; }
7492 objdir
=$lt_cv_objdir
7498 cat >>confdefs.h
<<_ACEOF
7499 #define LT_OBJDIR "$lt_cv_objdir/"
7507 # AIX sometimes has problems with the GCC collect2 program. For some
7508 # reason, if we set the COLLECT_NAMES environment variable, the problems
7509 # vanish in a puff of smoke.
7510 if test "X${COLLECT_NAMES+set}" != Xset
; then
7512 export COLLECT_NAMES
7519 can_build_shared
=yes
7521 # All known linkers require a `.a' archive for static linking (except MSVC,
7522 # which needs '.lib').
7525 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7528 old_CFLAGS
="$CFLAGS"
7530 # Set sane defaults for various variables
7531 test -z "$CC" && CC
=cc
7532 test -z "$LTCC" && LTCC
=$CC
7533 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7534 test -z "$LD" && LD
=ld
7535 test -z "$ac_objext" && ac_objext
=o
7537 for cc_temp
in $compiler""; do
7539 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7540 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7545 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7548 # Only perform the check for file, if the check method requires it
7549 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7550 case $deplibs_check_method in
7552 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7554 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7555 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
7556 $as_echo_n "(cached) " >&6
7560 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7563 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7564 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7565 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7566 for ac_dir
in $ac_dummy; do
7568 test -z "$ac_dir" && ac_dir
=.
7569 if test -f $ac_dir/${ac_tool_prefix}file; then
7570 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7571 if test -n "$file_magic_test_file"; then
7572 case $deplibs_check_method in
7574 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7575 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7576 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7577 $EGREP "$file_magic_regex" > /dev
/null
; then
7582 *** Warning: the command libtool uses to detect shared libraries,
7583 *** $file_magic_cmd, produces output that libtool cannot recognize.
7584 *** The result is that libtool may fail to recognize shared libraries
7585 *** as such. This will affect the creation of libtool libraries that
7586 *** depend on shared libraries, but programs linked with such libtool
7587 *** libraries will work regardless of this problem. Nevertheless, you
7588 *** may want to report the problem to your system manager and/or to
7589 *** bug-libtool@gnu.org
7599 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7604 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7605 if test -n "$MAGIC_CMD"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7607 $as_echo "$MAGIC_CMD" >&6; }
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7617 if test -z "$lt_cv_path_MAGIC_CMD"; then
7618 if test -n "$ac_tool_prefix"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7620 $as_echo_n "checking for file... " >&6; }
7621 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
7622 $as_echo_n "(cached) " >&6
7626 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7629 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7630 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7631 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7632 for ac_dir
in $ac_dummy; do
7634 test -z "$ac_dir" && ac_dir
=.
7635 if test -f $ac_dir/file; then
7636 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7637 if test -n "$file_magic_test_file"; then
7638 case $deplibs_check_method in
7640 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7641 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7642 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7643 $EGREP "$file_magic_regex" > /dev
/null
; then
7648 *** Warning: the command libtool uses to detect shared libraries,
7649 *** $file_magic_cmd, produces output that libtool cannot recognize.
7650 *** The result is that libtool may fail to recognize shared libraries
7651 *** as such. This will affect the creation of libtool libraries that
7652 *** depend on shared libraries, but programs linked with such libtool
7653 *** libraries will work regardless of this problem. Nevertheless, you
7654 *** may want to report the problem to your system manager and/or to
7655 *** bug-libtool@gnu.org
7665 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7670 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7671 if test -n "$MAGIC_CMD"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7673 $as_echo "$MAGIC_CMD" >&6; }
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7689 # Use C for the default configuration in the libtool script
7693 ac_cpp
='$CPP $CPPFLAGS'
7694 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7695 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7696 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7699 # Source file extension for C test sources.
7702 # Object file extension for compiled C test sources.
7706 # Code to be used in simple compile tests
7707 lt_simple_compile_test_code
="int some_variable = 0;"
7709 # Code to be used in simple link tests
7710 lt_simple_link_test_code
='int main(){return(0);}'
7718 # If no C compiler was specified, use CC.
7721 # If no C compiler flags were specified, use CFLAGS.
7722 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7724 # Allow CC to be a program name with arguments.
7727 # Save the default compiler, since it gets overwritten when the other
7728 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7729 compiler_DEFAULT
=$CC
7731 # save warnings/boilerplate of simple test code
7732 ac_outfile
=conftest.
$ac_objext
7733 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7734 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7735 _lt_compiler_boilerplate
=`cat conftest.err`
7738 ac_outfile
=conftest.
$ac_objext
7739 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7740 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7741 _lt_linker_boilerplate
=`cat conftest.err`
7746 ## There is no encapsulation within the following macros, do not change
7747 ## the running order or otherwise move them around unless you know exactly
7748 ## what you are doing...
7749 if test -n "$compiler"; then
7751 lt_prog_compiler_no_builtin_flag
=
7753 if test "$GCC" = yes; then
7754 case $cc_basename in
7756 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
7758 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7762 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7763 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
7764 $as_echo_n "(cached) " >&6
7766 lt_cv_prog_compiler_rtti_exceptions
=no
7767 ac_outfile
=conftest.
$ac_objext
7768 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7769 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7770 # Insert the option either (1) after the last *FLAGS variable, or
7771 # (2) before a word containing "conftest.", or (3) at the end.
7772 # Note that $ac_compile itself does not contain backslashes and begins
7773 # with a dollar sign (not a hyphen), so the echo should work correctly.
7774 # The option is referenced via a variable to avoid confusing sed.
7775 lt_compile
=`echo "$ac_compile" | $SED \
7776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7778 -e 's:$: $lt_compiler_flag:'`
7779 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7780 (eval "$lt_compile" 2>conftest.err
)
7782 cat conftest.err
>&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 if (exit $ac_status) && test -s "$ac_outfile"; then
7785 # The compiler can only warn and ignore the option if not recognized
7786 # So say no if there are warnings other than the usual output.
7787 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
7788 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7789 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7790 lt_cv_prog_compiler_rtti_exceptions
=yes
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7797 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7799 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7800 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7812 lt_prog_compiler_wl
=
7813 lt_prog_compiler_pic
=
7814 lt_prog_compiler_static
=
7817 if test "$GCC" = yes; then
7818 lt_prog_compiler_wl
='-Wl,'
7819 lt_prog_compiler_static
='-static'
7823 # All AIX code is PIC.
7824 if test "$host_cpu" = ia64
; then
7825 # AIX 5 now supports IA64 processor
7826 lt_prog_compiler_static
='-Bstatic'
7833 # see comment about AmigaOS4 .so support
7834 lt_prog_compiler_pic
='-fPIC'
7837 # FIXME: we need at least 68020 code to build shared libraries, but
7838 # adding the `-m68020' flag to GCC prevents building anything better,
7840 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7845 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7846 # PIC is the default for these OSes.
7849 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7850 # This hack is so that the source file can tell whether it is being
7851 # built for inclusion in a dll (and should export symbols for example).
7852 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7853 # (--disable-auto-import) libraries
7854 lt_prog_compiler_pic
='-DDLL_EXPORT'
7857 darwin
* | rhapsody
*)
7858 # PIC is the default on this platform
7859 # Common symbols not allowed in MH_DYLIB files
7860 lt_prog_compiler_pic
='-fno-common'
7864 # PIC is the default for Haiku.
7865 # The "-static" flag exists, but is broken.
7866 lt_prog_compiler_static
=
7870 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7871 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7872 # sets the default TLS model and affects inlining.
7878 lt_prog_compiler_pic
='-fPIC'
7884 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7885 # Instead, we relocate shared libraries at runtime.
7889 # Just because we use GCC doesn't mean we suddenly get shared libraries
7890 # on systems that don't support them.
7891 lt_prog_compiler_can_build_shared
=no
7896 # QNX uses GNU C++, but need to define -shared option too, otherwise
7898 lt_prog_compiler_pic
='-fPIC -shared'
7902 if test -d /usr
/nec
; then
7903 lt_prog_compiler_pic
=-Kconform_pic
7908 lt_prog_compiler_pic
='-fPIC'
7912 case $cc_basename in
7913 nvcc
*) # Cuda Compiler Driver 2.2
7914 lt_prog_compiler_wl
='-Xlinker '
7915 if test -n "$lt_prog_compiler_pic"; then
7916 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
7921 # PORTME Check for flag to pass linker flags through the system compiler.
7924 lt_prog_compiler_wl
='-Wl,'
7925 if test "$host_cpu" = ia64
; then
7926 # AIX 5 now supports IA64 processor
7927 lt_prog_compiler_static
='-Bstatic'
7929 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7933 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7934 # This hack is so that the source file can tell whether it is being
7935 # built for inclusion in a dll (and should export symbols for example).
7936 lt_prog_compiler_pic
='-DDLL_EXPORT'
7939 hpux9
* | hpux10
* | hpux11
*)
7940 lt_prog_compiler_wl
='-Wl,'
7941 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7948 lt_prog_compiler_pic
='+Z'
7951 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7952 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7955 irix5
* | irix6
* | nonstopux
*)
7956 lt_prog_compiler_wl
='-Wl,'
7957 # PIC (with -KPIC) is the default.
7958 lt_prog_compiler_static
='-non_shared'
7961 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
7962 case $cc_basename in
7963 # old Intel for x86_64 which still supported -KPIC.
7965 lt_prog_compiler_wl
='-Wl,'
7966 lt_prog_compiler_pic
='-KPIC'
7967 lt_prog_compiler_static
='-static'
7969 # icc used to be incompatible with GCC.
7970 # ICC 10 doesn't accept -KPIC any more.
7972 lt_prog_compiler_wl
='-Wl,'
7973 lt_prog_compiler_pic
='-fPIC'
7974 lt_prog_compiler_static
='-static'
7976 # Lahey Fortran 8.1.
7978 lt_prog_compiler_wl
='-Wl,'
7979 lt_prog_compiler_pic
='--shared'
7980 lt_prog_compiler_static
='--static'
7983 # NAG Fortran compiler
7984 lt_prog_compiler_wl
='-Wl,-Wl,,'
7985 lt_prog_compiler_pic
='-PIC'
7986 lt_prog_compiler_static
='-Bstatic'
7988 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
7989 # Portland Group compilers (*not* the Pentium gcc compiler,
7990 # which looks to be a dead project)
7991 lt_prog_compiler_wl
='-Wl,'
7992 lt_prog_compiler_pic
='-fpic'
7993 lt_prog_compiler_static
='-Bstatic'
7996 lt_prog_compiler_wl
='-Wl,'
7997 # All Alpha code is PIC.
7998 lt_prog_compiler_static
='-non_shared'
8000 xl
* | bgxl
* | bgf
* | mpixl
*)
8001 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8002 lt_prog_compiler_wl
='-Wl,'
8003 lt_prog_compiler_pic
='-qpic'
8004 lt_prog_compiler_static
='-qstaticlink'
8007 case `$CC -V 2>&1 | sed 5q` in
8008 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8009 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8010 lt_prog_compiler_pic
='-KPIC'
8011 lt_prog_compiler_static
='-Bstatic'
8012 lt_prog_compiler_wl
=''
8014 *Sun\ F
* |
*Sun
*Fortran
*)
8015 lt_prog_compiler_pic
='-KPIC'
8016 lt_prog_compiler_static
='-Bstatic'
8017 lt_prog_compiler_wl
='-Qoption ld '
8021 lt_prog_compiler_pic
='-KPIC'
8022 lt_prog_compiler_static
='-Bstatic'
8023 lt_prog_compiler_wl
='-Wl,'
8025 *Intel
*\
[CF
]*Compiler
*)
8026 lt_prog_compiler_wl
='-Wl,'
8027 lt_prog_compiler_pic
='-fPIC'
8028 lt_prog_compiler_static
='-static'
8031 lt_prog_compiler_wl
='-Wl,'
8032 lt_prog_compiler_pic
='-fpic'
8033 lt_prog_compiler_static
='-Bstatic'
8041 lt_prog_compiler_pic
='-KPIC'
8042 lt_prog_compiler_static
='-Bstatic'
8046 # QNX uses GNU C++, but need to define -shared option too, otherwise
8048 lt_prog_compiler_pic
='-fPIC -shared'
8051 osf3
* | osf4
* | osf5
*)
8052 lt_prog_compiler_wl
='-Wl,'
8053 # All OSF/1 code is PIC.
8054 lt_prog_compiler_static
='-non_shared'
8058 lt_prog_compiler_static
='-non_shared'
8062 lt_prog_compiler_pic
='-KPIC'
8063 lt_prog_compiler_static
='-Bstatic'
8064 case $cc_basename in
8065 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8066 lt_prog_compiler_wl
='-Qoption ld ';;
8068 lt_prog_compiler_wl
='-Wl,';;
8073 lt_prog_compiler_wl
='-Qoption ld '
8074 lt_prog_compiler_pic
='-PIC'
8075 lt_prog_compiler_static
='-Bstatic'
8078 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8079 lt_prog_compiler_wl
='-Wl,'
8080 lt_prog_compiler_pic
='-KPIC'
8081 lt_prog_compiler_static
='-Bstatic'
8085 if test -d /usr
/nec
;then
8086 lt_prog_compiler_pic
='-Kconform_pic'
8087 lt_prog_compiler_static
='-Bstatic'
8091 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8092 lt_prog_compiler_wl
='-Wl,'
8093 lt_prog_compiler_pic
='-KPIC'
8094 lt_prog_compiler_static
='-Bstatic'
8098 lt_prog_compiler_wl
='-Wl,'
8099 lt_prog_compiler_can_build_shared
=no
8103 lt_prog_compiler_pic
='-pic'
8104 lt_prog_compiler_static
='-Bstatic'
8108 lt_prog_compiler_can_build_shared
=no
8114 # For platforms which do not support PIC, -DPIC is meaningless:
8116 lt_prog_compiler_pic
=
8119 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8124 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8125 if ${lt_cv_prog_compiler_pic+:} false
; then :
8126 $as_echo_n "(cached) " >&6
8128 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8131 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8132 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8135 # Check to make sure the PIC flag actually works.
8137 if test -n "$lt_prog_compiler_pic"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8139 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8140 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8141 $as_echo_n "(cached) " >&6
8143 lt_cv_prog_compiler_pic_works
=no
8144 ac_outfile
=conftest.
$ac_objext
8145 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8146 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8147 # Insert the option either (1) after the last *FLAGS variable, or
8148 # (2) before a word containing "conftest.", or (3) at the end.
8149 # Note that $ac_compile itself does not contain backslashes and begins
8150 # with a dollar sign (not a hyphen), so the echo should work correctly.
8151 # The option is referenced via a variable to avoid confusing sed.
8152 lt_compile
=`echo "$ac_compile" | $SED \
8153 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8155 -e 's:$: $lt_compiler_flag:'`
8156 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8157 (eval "$lt_compile" 2>conftest.err
)
8159 cat conftest.err
>&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 if (exit $ac_status) && test -s "$ac_outfile"; then
8162 # The compiler can only warn and ignore the option if not recognized
8163 # So say no if there are warnings other than the usual output.
8164 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8165 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8166 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8167 lt_cv_prog_compiler_pic_works
=yes
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8174 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8176 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8177 case $lt_prog_compiler_pic in
8179 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8182 lt_prog_compiler_pic
=
8183 lt_prog_compiler_can_build_shared
=no
8199 # Check to make sure the static flag actually works.
8201 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8203 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8204 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8205 $as_echo_n "(cached) " >&6
8207 lt_cv_prog_compiler_static_works
=no
8208 save_LDFLAGS
="$LDFLAGS"
8209 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8210 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8211 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8212 # The linker can only warn and ignore the option if not recognized
8213 # So say no if there are warnings
8214 if test -s conftest.err
; then
8215 # Append any errors to the config.log.
8216 cat conftest.err
1>&5
8217 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8218 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8219 if diff conftest.exp conftest.er2
>/dev
/null
; then
8220 lt_cv_prog_compiler_static_works
=yes
8223 lt_cv_prog_compiler_static_works
=yes
8227 LDFLAGS
="$save_LDFLAGS"
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8231 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8233 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8236 lt_prog_compiler_static
=
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8246 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8247 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8248 $as_echo_n "(cached) " >&6
8250 lt_cv_prog_compiler_c_o
=no
8251 $RM -r conftest
2>/dev
/null
8255 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8257 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8258 # Insert the option either (1) after the last *FLAGS variable, or
8259 # (2) before a word containing "conftest.", or (3) at the end.
8260 # Note that $ac_compile itself does not contain backslashes and begins
8261 # with a dollar sign (not a hyphen), so the echo should work correctly.
8262 lt_compile
=`echo "$ac_compile" | $SED \
8263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8265 -e 's:$: $lt_compiler_flag:'`
8266 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8267 (eval "$lt_compile" 2>out
/conftest.err
)
8269 cat out
/conftest.err
>&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8273 # The compiler can only warn and ignore the option if not recognized
8274 # So say no if there are warnings
8275 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8276 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8277 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8278 lt_cv_prog_compiler_c_o
=yes
8283 # SGI C++ compiler will create directory out/ii_files/ for
8284 # template instantiation
8285 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8286 $RM out
/* && rmdir out
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8293 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8301 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8302 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8303 $as_echo_n "(cached) " >&6
8305 lt_cv_prog_compiler_c_o
=no
8306 $RM -r conftest
2>/dev
/null
8310 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8312 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8313 # Insert the option either (1) after the last *FLAGS variable, or
8314 # (2) before a word containing "conftest.", or (3) at the end.
8315 # Note that $ac_compile itself does not contain backslashes and begins
8316 # with a dollar sign (not a hyphen), so the echo should work correctly.
8317 lt_compile
=`echo "$ac_compile" | $SED \
8318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8320 -e 's:$: $lt_compiler_flag:'`
8321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8322 (eval "$lt_compile" 2>out
/conftest.err
)
8324 cat out
/conftest.err
>&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8328 # The compiler can only warn and ignore the option if not recognized
8329 # So say no if there are warnings
8330 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8331 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8332 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8333 lt_cv_prog_compiler_c_o
=yes
8338 # SGI C++ compiler will create directory out/ii_files/ for
8339 # template instantiation
8340 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8341 $RM out
/* && rmdir out
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8348 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8353 hard_links
="nottested"
8354 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8355 # do not overwrite the value of need_locks provided by the user
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8357 $as_echo_n "checking if we can lock with hard links... " >&6; }
8360 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8362 ln conftest.a conftest.b
2>&5 || hard_links
=no
8363 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8365 $as_echo "$hard_links" >&6; }
8366 if test "$hard_links" = no
; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8368 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8381 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8384 allow_undefined_flag
=
8385 always_export_symbols
=no
8387 archive_expsym_cmds
=
8388 compiler_needs_object
=no
8389 enable_shared_with_static_runtimes
=no
8390 export_dynamic_flag_spec
=
8391 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8392 hardcode_automatic
=no
8394 hardcode_direct_absolute
=no
8395 hardcode_libdir_flag_spec
=
8396 hardcode_libdir_separator
=
8398 hardcode_shlibpath_var
=unsupported
8400 link_all_deplibs
=unknown
8403 old_archive_from_new_cmds
=
8404 old_archive_from_expsyms_cmds
=
8405 thread_safe_flag_spec
=
8406 whole_archive_flag_spec
=
8407 # include_expsyms should be a list of space-separated symbols to be *always*
8408 # included in the symbol list
8410 # exclude_expsyms can be an extended regexp of symbols to exclude
8411 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8412 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8413 # as well as any symbol that contains `d'.
8414 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8415 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8416 # platforms (ab)use it in PIC code, but their linkers get confused if
8417 # the symbol is explicitly referenced. Since portable code cannot
8418 # rely on this symbol name, it's probably fine to never include it in
8419 # preloaded symbol tables.
8420 # Exclude shared library initialization/finalization symbols.
8421 extract_expsyms_cmds
=
8424 cygwin
* | mingw
* | pw32
* | cegcc
*)
8425 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8426 # When not using gcc, we currently assume that we are using
8427 # Microsoft Visual C++.
8428 if test "$GCC" != yes; then
8433 # we just hope/assume this is gcc and not c89 (= MSVC++)
8443 # On some targets, GNU ld is compatible enough with the native linker
8444 # that we're better off using the native interface for both.
8445 lt_use_gnu_ld_interface
=no
8446 if test "$with_gnu_ld" = yes; then
8449 # The AIX port of GNU ld has always aspired to compatibility
8450 # with the native linker. However, as the warning in the GNU ld
8451 # block says, versions before 2.19.5* couldn't really create working
8452 # shared libraries, regardless of the interface used.
8453 case `$LD -v 2>&1` in
8454 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8455 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8456 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8458 lt_use_gnu_ld_interface
=yes
8463 lt_use_gnu_ld_interface
=yes
8468 if test "$lt_use_gnu_ld_interface" = yes; then
8469 # If archive_cmds runs LD, not CC, wlarc should be empty
8472 # Set some defaults for GNU ld with shared library support. These
8473 # are reset later if shared libraries are not supported. Putting them
8474 # here allows them to be overridden if necessary.
8475 runpath_var
=LD_RUN_PATH
8476 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8477 export_dynamic_flag_spec
='${wl}--export-dynamic'
8478 # ancient GNU ld didn't support --whole-archive et. al.
8479 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8480 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8482 whole_archive_flag_spec
=
8484 supports_anon_versioning
=no
8485 case `$LD -v 2>&1` in
8486 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8487 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8488 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8489 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8490 *\
2.11.
*) ;; # other 2.11 versions
8491 *) supports_anon_versioning
=yes ;;
8494 # See if GNU ld supports shared libraries.
8497 # On AIX/PPC, the GNU linker is very broken
8498 if test "$host_cpu" != ia64
; then
8502 *** Warning: the GNU linker, at least up to release 2.19, is reported
8503 *** to be unable to reliably create shared libraries on AIX.
8504 *** Therefore, libtool is disabling shared libraries support. If you
8505 *** really care for shared libraries, you may want to install binutils
8506 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8507 *** You will then need to restart the configuration process.
8516 # see comment about AmigaOS4 .so support
8517 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8518 archive_expsym_cmds
=''
8521 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)'
8522 hardcode_libdir_flag_spec
='-L$libdir'
8523 hardcode_minus_L
=yes
8529 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8530 allow_undefined_flag
=unsupported
8531 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8532 # support --undefined. This deserves some investigation. FIXME
8533 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8539 cygwin
* | mingw
* | pw32
* | cegcc
*)
8540 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8541 # as there is no search path for DLLs.
8542 hardcode_libdir_flag_spec
='-L$libdir'
8543 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8544 allow_undefined_flag
=unsupported
8545 always_export_symbols
=no
8546 enable_shared_with_static_runtimes
=yes
8547 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'
8548 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8550 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8551 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8552 # If the export-symbols file already is a .def file (1st line
8553 # is EXPORTS), use it as is; otherwise, prepend...
8554 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8555 cp $export_symbols $output_objdir/$soname.def;
8557 echo EXPORTS > $output_objdir/$soname.def;
8558 cat $export_symbols >> $output_objdir/$soname.def;
8560 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8567 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8568 link_all_deplibs
=yes
8573 hardcode_shlibpath_var
=no
8574 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8575 export_dynamic_flag_spec
='${wl}-E'
8576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8577 # Instead, shared libraries are loaded at an image base (0x10000000 by
8578 # default) and relocated if they conflict, which is a slow very memory
8579 # consuming and fragmenting process. To avoid this, we pick a random,
8580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8581 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8582 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8583 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'
8586 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8588 if test "$host_os" = linux-dietlibc
; then
8589 case $cc_basename in
8590 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8593 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8594 && test "$tmp_diet" = no
8596 tmp_addflag
=' $pic_flag'
8597 tmp_sharedflag
='-shared'
8598 case $cc_basename,$host_cpu in
8599 pgcc
*) # Portland Group C compiler
8600 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'
8601 tmp_addflag
=' $pic_flag'
8603 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8604 # Portland Group f77 and f90 compilers
8605 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'
8606 tmp_addflag
=' $pic_flag -Mnomain' ;;
8607 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8608 tmp_addflag
=' -i_dynamic' ;;
8609 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8610 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8611 ifc
* | ifort
*) # Intel Fortran compiler
8612 tmp_addflag
=' -nofor_main' ;;
8613 lf95
*) # Lahey Fortran 8.1
8614 whole_archive_flag_spec
=
8615 tmp_sharedflag
='--shared' ;;
8616 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8617 tmp_sharedflag
='-qmkshrobj'
8619 nvcc
*) # Cuda Compiler Driver 2.2
8620 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'
8621 compiler_needs_object
=yes
8624 case `$CC -V 2>&1 | sed 5q` in
8625 *Sun\ C
*) # Sun C 5.9
8626 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'
8627 compiler_needs_object
=yes
8628 tmp_sharedflag
='-G' ;;
8629 *Sun\ F
*) # Sun Fortran 8.3
8630 tmp_sharedflag
='-G' ;;
8632 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8634 if test "x$supports_anon_versioning" = xyes
; then
8635 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8636 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8637 echo "local: *; };" >> $output_objdir/$libname.ver~
8638 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8641 case $cc_basename in
8642 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8643 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8644 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8645 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8646 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8647 if test "x$supports_anon_versioning" = xyes
; then
8648 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8650 echo "local: *; };" >> $output_objdir/$libname.ver~
8651 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8661 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8662 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8665 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8666 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8671 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8675 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8676 *** create shared libraries on Solaris systems. Therefore, libtool
8677 *** is disabling shared libraries support. We urge you to upgrade GNU
8678 *** binutils to release 2.9.1 or newer. Another option is to modify
8679 *** your PATH or compiler configuration so that the native linker is
8680 *** used, and then restart.
8683 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8684 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8691 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8692 case `$LD -v 2>&1` in
8693 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8697 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8698 *** reliably create shared libraries on SCO systems. Therefore, libtool
8699 *** is disabling shared libraries support. We urge you to upgrade GNU
8700 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8701 *** your PATH or compiler configuration so that the native linker is
8702 *** used, and then restart.
8707 # For security reasons, it is highly recommended that you always
8708 # use absolute paths for naming shared libraries, and exclude the
8709 # DT_RUNPATH tag from executables and libraries. But doing so
8710 # requires that you compile everything twice, which is a pain.
8711 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8712 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8713 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8726 hardcode_shlibpath_var
=no
8730 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8731 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8732 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8739 if test "$ld_shlibs" = no
; then
8741 hardcode_libdir_flag_spec
=
8742 export_dynamic_flag_spec
=
8743 whole_archive_flag_spec
=
8746 # PORTME fill in a description of your system's linker (not GNU ld)
8749 allow_undefined_flag
=unsupported
8750 always_export_symbols
=yes
8751 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'
8752 # Note: this linker hardcodes the directories in LIBPATH if there
8753 # are no directories specified by -L.
8754 hardcode_minus_L
=yes
8755 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8756 # Neither direct hardcoding nor static linking is supported with a
8758 hardcode_direct
=unsupported
8763 if test "$host_cpu" = ia64
; then
8764 # On IA64, the linker does run time linking by default, so we don't
8765 # have to do anything special.
8766 aix_use_runtimelinking
=no
8767 exp_sym_flag
='-Bexport'
8770 # If we're using GNU nm, then we don't want the "-C" option.
8771 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8772 # Also, AIX nm treats weak defined symbols like other global
8773 # defined symbols, whereas GNU nm marks them as "W".
8774 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8775 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'
8777 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'
8779 aix_use_runtimelinking
=no
8781 # Test if we are trying to use run time linking or normal
8782 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8783 # need to do runtime linking.
8784 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8785 for ld_flag
in $LDFLAGS; do
8786 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8787 aix_use_runtimelinking
=yes
8794 exp_sym_flag
='-bexport'
8795 no_entry_flag
='-bnoentry'
8798 # When large executables or shared objects are built, AIX ld can
8799 # have problems creating the table of contents. If linking a library
8800 # or program results in "error TOC overflow" add -mminimal-toc to
8801 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8802 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8806 hardcode_direct_absolute
=yes
8807 hardcode_libdir_separator
=':'
8808 link_all_deplibs
=yes
8809 file_list_spec
='${wl}-f,'
8811 if test "$GCC" = yes; then
8812 case $host_os in aix4.
[012]|aix4.
[012].
*)
8813 # We only want to do this on AIX 4.2 and lower, the check
8814 # below for broken collect2 doesn't work under 4.3+
8815 collect2name
=`${CC} -print-prog-name=collect2`
8816 if test -f "$collect2name" &&
8817 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8819 # We have reworked collect2
8822 # We have old collect2
8823 hardcode_direct
=unsupported
8824 # It fails to find uninstalled libraries when the uninstalled
8825 # path is not listed in the libpath. Setting hardcode_minus_L
8826 # to unsupported forces relinking
8827 hardcode_minus_L
=yes
8828 hardcode_libdir_flag_spec
='-L$libdir'
8829 hardcode_libdir_separator
=
8833 shared_flag
='-shared'
8834 if test "$aix_use_runtimelinking" = yes; then
8835 shared_flag
="$shared_flag "'${wl}-G'
8839 if test "$host_cpu" = ia64
; then
8840 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8841 # chokes on -Wl,-G. The following line is correct:
8844 if test "$aix_use_runtimelinking" = yes; then
8845 shared_flag
='${wl}-G'
8847 shared_flag
='${wl}-bM:SRE'
8852 export_dynamic_flag_spec
='${wl}-bexpall'
8853 # It seems that -bexpall does not export symbols beginning with
8854 # underscore (_), so it is better to generate a list of symbols to export.
8855 always_export_symbols
=yes
8856 if test "$aix_use_runtimelinking" = yes; then
8857 # Warning - without using the other runtime loading flags (-brtl),
8858 # -berok will link without error, but may produce a broken library.
8859 allow_undefined_flag
='-berok'
8860 # Determine the default libpath from the value encoded in an
8862 if test "${lt_cv_aix_libpath+set}" = set; then
8863 aix_libpath
=$lt_cv_aix_libpath
8865 if ${lt_cv_aix_libpath_+:} false
; then :
8866 $as_echo_n "(cached) " >&6
8868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8879 if ac_fn_c_try_link
"$LINENO"; then :
8881 lt_aix_libpath_sed
='
8882 /Import File Strings/,/^$/ {
8884 s/^0 *\([^ ]*\) *$/\1/
8888 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8889 # Check for a 64-bit object if we didn't find anything.
8890 if test -z "$lt_cv_aix_libpath_"; then
8891 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8894 rm -f core conftest.err conftest.
$ac_objext \
8895 conftest
$ac_exeext conftest.
$ac_ext
8896 if test -z "$lt_cv_aix_libpath_"; then
8897 lt_cv_aix_libpath_
="/usr/lib:/lib"
8902 aix_libpath
=$lt_cv_aix_libpath_
8905 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8906 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"
8908 if test "$host_cpu" = ia64
; then
8909 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
8910 allow_undefined_flag
="-z nodefs"
8911 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"
8913 # Determine the default libpath from the value encoded in an
8915 if test "${lt_cv_aix_libpath+set}" = set; then
8916 aix_libpath
=$lt_cv_aix_libpath
8918 if ${lt_cv_aix_libpath_+:} false
; then :
8919 $as_echo_n "(cached) " >&6
8921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8932 if ac_fn_c_try_link
"$LINENO"; then :
8934 lt_aix_libpath_sed
='
8935 /Import File Strings/,/^$/ {
8937 s/^0 *\([^ ]*\) *$/\1/
8941 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8942 # Check for a 64-bit object if we didn't find anything.
8943 if test -z "$lt_cv_aix_libpath_"; then
8944 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8947 rm -f core conftest.err conftest.
$ac_objext \
8948 conftest
$ac_exeext conftest.
$ac_ext
8949 if test -z "$lt_cv_aix_libpath_"; then
8950 lt_cv_aix_libpath_
="/usr/lib:/lib"
8955 aix_libpath
=$lt_cv_aix_libpath_
8958 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8959 # Warning - without using the other run time loading flags,
8960 # -berok will link without error, but may produce a broken library.
8961 no_undefined_flag
=' ${wl}-bernotok'
8962 allow_undefined_flag
=' ${wl}-berok'
8963 if test "$with_gnu_ld" = yes; then
8964 # We only use this code for GNU lds that support --whole-archive.
8965 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8967 # Exported symbols can be pulled into shared objects from archives
8968 whole_archive_flag_spec
='$convenience'
8970 archive_cmds_need_lc
=yes
8971 # This is similar to how AIX traditionally builds its shared libraries.
8972 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'
8980 # see comment about AmigaOS4 .so support
8981 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 archive_expsym_cmds
=''
8985 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)'
8986 hardcode_libdir_flag_spec
='-L$libdir'
8987 hardcode_minus_L
=yes
8993 export_dynamic_flag_spec
=-rdynamic
8996 cygwin
* | mingw
* | pw32
* | cegcc
*)
8997 # When not using gcc, we currently assume that we are using
8998 # Microsoft Visual C++.
8999 # hardcode_libdir_flag_spec is actually meaningless, as there is
9000 # no search path for DLLs.
9001 case $cc_basename in
9004 hardcode_libdir_flag_spec
=' '
9005 allow_undefined_flag
=unsupported
9006 always_export_symbols
=yes
9008 # Tell ltmain to make .lib files, not .a files.
9010 # Tell ltmain to make .dll files, not .so files.
9012 # FIXME: Setting linknames here is a bad hack.
9013 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9014 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9015 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
9017 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
9019 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9021 # The linker will not automatically build a static lib if we build a DLL.
9022 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9023 enable_shared_with_static_runtimes
=yes
9024 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9025 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9027 old_postinstall_cmds
='chmod 644 $oldlib'
9028 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9029 lt_tool_outputfile="@TOOL_OUTPUT@"~
9030 case $lt_outputfile in
9033 lt_outputfile="$lt_outputfile.exe"
9034 lt_tool_outputfile="$lt_tool_outputfile.exe"
9037 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9038 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9039 $RM "$lt_outputfile.manifest";
9043 # Assume MSVC wrapper
9044 hardcode_libdir_flag_spec
=' '
9045 allow_undefined_flag
=unsupported
9046 # Tell ltmain to make .lib files, not .a files.
9048 # Tell ltmain to make .dll files, not .so files.
9050 # FIXME: Setting linknames here is a bad hack.
9051 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9052 # The linker will automatically build a .lib file if we build a DLL.
9053 old_archive_from_new_cmds
='true'
9054 # FIXME: Should let the user specify the lib program.
9055 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9056 enable_shared_with_static_runtimes
=yes
9061 darwin
* | rhapsody
*)
9064 archive_cmds_need_lc
=no
9066 hardcode_automatic
=yes
9067 hardcode_shlibpath_var
=unsupported
9068 if test "$lt_cv_ld_force_load" = "yes"; then
9069 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\"`'
9072 whole_archive_flag_spec
=''
9074 link_all_deplibs
=yes
9075 allow_undefined_flag
="$_lt_dar_allow_undefined"
9076 case $cc_basename in
9077 ifort
*) _lt_dar_can_shared
=yes ;;
9078 *) _lt_dar_can_shared
=$GCC ;;
9080 if test "$_lt_dar_can_shared" = "yes"; then
9081 output_verbose_link_cmd
=func_echo_all
9082 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9083 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9084 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}"
9085 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}"
9094 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9095 hardcode_libdir_flag_spec
='-L$libdir'
9096 hardcode_shlibpath_var
=no
9099 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9100 # support. Future versions do this automatically, but an explicit c++rt0.o
9101 # does not break anything, and helps significantly (at the cost of a little
9104 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9105 hardcode_libdir_flag_spec
='-R$libdir'
9107 hardcode_shlibpath_var
=no
9110 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9112 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9114 hardcode_minus_L
=yes
9115 hardcode_shlibpath_var
=no
9118 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9119 freebsd
* | dragonfly
*)
9120 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9121 hardcode_libdir_flag_spec
='-R$libdir'
9123 hardcode_shlibpath_var
=no
9127 if test "$GCC" = yes; then
9128 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'
9130 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'
9132 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9133 hardcode_libdir_separator
=:
9136 # hardcode_minus_L: Not really in the search PATH,
9137 # but as the default location of the library.
9138 hardcode_minus_L
=yes
9139 export_dynamic_flag_spec
='${wl}-E'
9143 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9144 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9146 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9148 if test "$with_gnu_ld" = no
; then
9149 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9150 hardcode_libdir_separator
=:
9152 hardcode_direct_absolute
=yes
9153 export_dynamic_flag_spec
='${wl}-E'
9154 # hardcode_minus_L: Not really in the search PATH,
9155 # but as the default location of the library.
9156 hardcode_minus_L
=yes
9161 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9164 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9167 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9170 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9176 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9183 # Older versions of the 11.00 compiler do not understand -b yet
9184 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9186 $as_echo_n "checking if $CC understands -b... " >&6; }
9187 if ${lt_cv_prog_compiler__b+:} false
; then :
9188 $as_echo_n "(cached) " >&6
9190 lt_cv_prog_compiler__b
=no
9191 save_LDFLAGS
="$LDFLAGS"
9192 LDFLAGS
="$LDFLAGS -b"
9193 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9194 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9195 # The linker can only warn and ignore the option if not recognized
9196 # So say no if there are warnings
9197 if test -s conftest.err
; then
9198 # Append any errors to the config.log.
9199 cat conftest.err
1>&5
9200 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9201 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9202 if diff conftest.exp conftest.er2
>/dev
/null
; then
9203 lt_cv_prog_compiler__b
=yes
9206 lt_cv_prog_compiler__b
=yes
9210 LDFLAGS
="$save_LDFLAGS"
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9214 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9216 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9217 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9219 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9225 if test "$with_gnu_ld" = no
; then
9226 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9227 hardcode_libdir_separator
=:
9232 hardcode_shlibpath_var
=no
9236 hardcode_direct_absolute
=yes
9237 export_dynamic_flag_spec
='${wl}-E'
9239 # hardcode_minus_L: Not really in the search PATH,
9240 # but as the default location of the library.
9241 hardcode_minus_L
=yes
9247 irix5
* | irix6
* | nonstopux
*)
9248 if test "$GCC" = yes; then
9249 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'
9250 # Try to use the -exported_symbol ld option, if it does not
9251 # work, assume that -exports_file does not work either and
9252 # implicitly export all symbols.
9253 # This should be the same for all languages, so no per-tag cache variable.
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9255 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9256 if ${lt_cv_irix_exported_symbol+:} false
; then :
9257 $as_echo_n "(cached) " >&6
9259 save_LDFLAGS
="$LDFLAGS"
9260 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9263 int foo (void) { return 0; }
9265 if ac_fn_c_try_link
"$LINENO"; then :
9266 lt_cv_irix_exported_symbol
=yes
9268 lt_cv_irix_exported_symbol
=no
9270 rm -f core conftest.err conftest.
$ac_objext \
9271 conftest
$ac_exeext conftest.
$ac_ext
9272 LDFLAGS
="$save_LDFLAGS"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9275 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9276 if test "$lt_cv_irix_exported_symbol" = yes; then
9277 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'
9280 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'
9281 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'
9283 archive_cmds_need_lc
='no'
9284 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9285 hardcode_libdir_separator
=:
9287 link_all_deplibs
=yes
9291 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9292 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9294 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9296 hardcode_libdir_flag_spec
='-R$libdir'
9298 hardcode_shlibpath_var
=no
9302 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9304 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9305 hardcode_libdir_separator
=:
9306 hardcode_shlibpath_var
=no
9313 if test -f /usr
/libexec
/ld.so
; then
9315 hardcode_shlibpath_var
=no
9316 hardcode_direct_absolute
=yes
9317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9318 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9319 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9320 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9321 export_dynamic_flag_spec
='${wl}-E'
9324 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9325 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9326 hardcode_libdir_flag_spec
='-R$libdir'
9329 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9330 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9340 hardcode_libdir_flag_spec
='-L$libdir'
9341 hardcode_minus_L
=yes
9342 allow_undefined_flag
=unsupported
9343 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'
9344 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9348 if test "$GCC" = yes; then
9349 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9350 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'
9352 allow_undefined_flag
=' -expect_unresolved \*'
9353 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'
9355 archive_cmds_need_lc
='no'
9356 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9357 hardcode_libdir_separator
=:
9360 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9361 if test "$GCC" = yes; then
9362 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9363 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'
9364 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9366 allow_undefined_flag
=' -expect_unresolved \*'
9367 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'
9368 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~
9369 $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'
9371 # Both c and cxx compiler support -rpath directly
9372 hardcode_libdir_flag_spec
='-rpath $libdir'
9374 archive_cmds_need_lc
='no'
9375 hardcode_libdir_separator
=:
9379 no_undefined_flag
=' -z defs'
9380 if test "$GCC" = yes; then
9382 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9383 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9384 $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'
9386 case `$CC -V 2>&1` in
9389 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9391 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9395 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9396 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9397 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9401 hardcode_libdir_flag_spec
='-R$libdir'
9402 hardcode_shlibpath_var
=no
9404 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9406 # The compiler driver will combine and reorder linker options,
9407 # but understands `-z linker_flag'. GCC discards it without `$wl',
9408 # but is careful enough not to reorder.
9409 # Supported since Solaris 2.6 (maybe 2.5.1?)
9410 if test "$GCC" = yes; then
9411 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9413 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9417 link_all_deplibs
=yes
9421 if test "x$host_vendor" = xsequent
; then
9422 # Use $CC to link under sequent, because it throws in some extra .o
9423 # files that make .init and .fini sections work.
9424 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9426 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9428 hardcode_libdir_flag_spec
='-L$libdir'
9430 hardcode_minus_L
=yes
9431 hardcode_shlibpath_var
=no
9435 case $host_vendor in
9437 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9438 hardcode_direct
=yes # is this really true???
9441 ## LD is ld it makes a PLAMLIB
9442 ## CC just makes a GrossModule.
9443 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9444 reload_cmds
='$CC -r -o $output$reload_objs'
9448 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9452 runpath_var
='LD_RUN_PATH'
9453 hardcode_shlibpath_var
=no
9457 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9458 hardcode_shlibpath_var
=no
9459 export_dynamic_flag_spec
='-Bexport'
9463 if test -d /usr
/nec
; then
9464 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_shlibpath_var
=no
9466 runpath_var
=LD_RUN_PATH
9467 hardcode_runpath_var
=yes
9472 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9473 no_undefined_flag
='${wl}-z,text'
9474 archive_cmds_need_lc
=no
9475 hardcode_shlibpath_var
=no
9476 runpath_var
='LD_RUN_PATH'
9478 if test "$GCC" = yes; then
9479 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9480 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9482 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9483 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9487 sysv5
* | sco3.2v5
* | sco5v6
*)
9488 # Note: We can NOT use -z defs as we might desire, because we do not
9489 # link with -lc, and that would cause any symbols used from libc to
9490 # always be unresolved, which means just about no library would
9491 # ever link correctly. If we're not using GNU ld we use -z text
9492 # though, which does catch some bad symbols but isn't as heavy-handed
9494 no_undefined_flag
='${wl}-z,text'
9495 allow_undefined_flag
='${wl}-z,nodefs'
9496 archive_cmds_need_lc
=no
9497 hardcode_shlibpath_var
=no
9498 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9499 hardcode_libdir_separator
=':'
9500 link_all_deplibs
=yes
9501 export_dynamic_flag_spec
='${wl}-Bexport'
9502 runpath_var
='LD_RUN_PATH'
9504 if test "$GCC" = yes; then
9505 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9506 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9515 hardcode_libdir_flag_spec
='-L$libdir'
9516 hardcode_shlibpath_var
=no
9524 if test x
$host_vendor = xsni
; then
9526 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9527 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9534 $as_echo "$ld_shlibs" >&6; }
9535 test "$ld_shlibs" = no
&& can_build_shared
=no
9537 with_gnu_ld
=$with_gnu_ld
9554 # Do we need to explicitly link libc?
9556 case "x$archive_cmds_need_lc" in
9558 # Assume -lc should be added
9559 archive_cmds_need_lc
=yes
9561 if test "$enable_shared" = yes && test "$GCC" = yes; then
9562 case $archive_cmds in
9564 # FIXME: we may have to deal with multi-command sequences.
9567 # Test whether the compiler implicitly links with -lc since on some
9568 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9569 # to ld, don't add -lc before -lgcc.
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9571 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9572 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
9573 $as_echo_n "(cached) " >&6
9576 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9579 (eval $ac_compile) 2>&5
9581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9582 test $ac_status = 0; } 2>conftest.err
; then
9585 libobjs
=conftest.
$ac_objext
9587 wl
=$lt_prog_compiler_wl
9588 pic_flag
=$lt_prog_compiler_pic
9594 lt_save_allow_undefined_flag
=$allow_undefined_flag
9595 allow_undefined_flag
=
9596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9597 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9600 test $ac_status = 0; }
9602 lt_cv_archive_cmds_need_lc
=no
9604 lt_cv_archive_cmds_need_lc
=yes
9606 allow_undefined_flag
=$lt_save_allow_undefined_flag
9608 cat conftest.err
1>&5
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9614 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9615 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9774 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9776 if test "$GCC" = yes; then
9778 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9779 *) lt_awk_arg
="/^libraries:/" ;;
9782 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
9783 *) lt_sed_strip_eq
="s,=/,/,g" ;;
9785 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9786 case $lt_search_path_spec in
9788 # if the path contains ";" then we assume it to be the separator
9789 # otherwise default to the standard path separator (i.e. ":") - it is
9790 # assumed that no part of a normal pathname contains ";" but that should
9791 # okay in the real world where ";" in dirpaths is itself problematic.
9792 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9795 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9798 # Ok, now we have the path, separated by spaces, we can step through it
9799 # and add multilib dir if necessary.
9800 lt_tmp_lt_search_path_spec
=
9801 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9802 for lt_sys_path
in $lt_search_path_spec; do
9803 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9804 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9806 test -d "$lt_sys_path" && \
9807 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9810 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9811 BEGIN {RS=" "; FS="/|\n";} {
9814 for (lt_i = NF; lt_i > 0; lt_i--) {
9815 if ($lt_i != "" && $lt_i != ".") {
9816 if ($lt_i == "..") {
9819 if (lt_count == 0) {
9820 lt_foo="/" $lt_i lt_foo;
9827 if (lt_foo != "") { lt_freq[lt_foo]++; }
9828 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9830 # AWK program above erroneously prepends '/' to C:/dos/paths
9833 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
9834 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9836 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9838 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9841 libname_spec
='lib$name'
9849 shlibpath_overrides_runpath
=unknown
9851 dynamic_linker
="$host_os ld.so"
9852 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9853 need_lib_prefix
=unknown
9854 hardcode_into_libs
=no
9856 # when you set need_version to no, make sure it does not cause -set_version
9857 # flags to be left without arguments
9858 need_version
=unknown
9862 version_type
=linux
# correct to gnu/linux during the next big refactor
9863 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9864 shlibpath_var
=LIBPATH
9866 # AIX 3 has no versioning support, so we append a major version to the name.
9867 soname_spec
='${libname}${release}${shared_ext}$major'
9871 version_type
=linux
# correct to gnu/linux during the next big refactor
9874 hardcode_into_libs
=yes
9875 if test "$host_cpu" = ia64
; then
9876 # AIX 5 supports IA64
9877 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9878 shlibpath_var
=LD_LIBRARY_PATH
9880 # With GCC up to 2.95.x, collect2 would create an import file
9881 # for dependence libraries. The import file would start with
9882 # the line `#! .'. This would cause the generated library to
9883 # depend on `.', always an invalid library. This was fixed in
9884 # development snapshots of GCC prior to 3.0.
9886 aix4 | aix4.
[01] | aix4.
[01].
*)
9887 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9889 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9896 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9897 # soname into executable. Probably we can add versioning support to
9898 # collect2, so additional links can be useful in future.
9899 if test "$aix_use_runtimelinking" = yes; then
9900 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9901 # instead of lib<name>.a to let people know that these are not
9902 # typical AIX shared libraries.
9903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905 # We preserve .a as extension for shared libraries through AIX4.2
9906 # and later when we are not doing run time linking.
9907 library_names_spec
='${libname}${release}.a $libname.a'
9908 soname_spec
='${libname}${release}${shared_ext}$major'
9910 shlibpath_var
=LIBPATH
9917 # Since July 2007 AmigaOS4 officially supports .so libraries.
9918 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9919 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922 library_names_spec
='$libname.ixlibrary $libname.a'
9923 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9924 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'
9930 library_names_spec
='${libname}${shared_ext}'
9931 dynamic_linker
="$host_os ld.so"
9932 shlibpath_var
=LIBRARY_PATH
9936 version_type
=linux
# correct to gnu/linux during the next big refactor
9938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 soname_spec
='${libname}${release}${shared_ext}$major'
9940 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9941 shlibpath_var
=LD_LIBRARY_PATH
9942 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9943 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9944 # the default ld.so.conf also contains /usr/contrib/lib and
9945 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9946 # libtool to hard-code these into programs
9949 cygwin
* | mingw
* | pw32
* | cegcc
*)
9950 version_type
=windows
9955 case $GCC,$cc_basename in
9958 library_names_spec
='$libname.dll.a'
9959 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9960 postinstall_cmds
='base_file=`basename \${file}`~
9961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9962 dldir=$destdir/`dirname \$dlpath`~
9963 test -d \$dldir || mkdir -p \$dldir~
9964 $install_prog $dir/$dlname \$dldir/$dlname~
9965 chmod a+x \$dldir/$dlname~
9966 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9967 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9969 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9970 dlpath=$dir/\$dldll~
9972 shlibpath_overrides_runpath
=yes
9976 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9977 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9979 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
9982 # MinGW DLLs use traditional 'lib' prefix
9983 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9986 # pw32 DLLs use 'pw' prefix rather than 'lib'
9987 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9990 dynamic_linker
='Win32 ld.exe'
9995 libname_spec
='$name'
9996 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9997 library_names_spec
='${libname}.dll.lib'
10001 sys_lib_search_path_spec
=
10004 for lt_path
in $LIB
10007 # Let DOS variable expansion print the short 8.3 style file name.
10008 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10009 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
10012 # Convert to MSYS style.
10013 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10016 # Convert to unix form, then to dos form, then back to unix form
10017 # but this time dos style (no spaces!) so that the unix form looks
10018 # like /cygdrive/c/PROGRA~1:/cygdr...
10019 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
10020 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10021 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10024 sys_lib_search_path_spec
="$LIB"
10025 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
10026 # It is most probably a Windows format PATH.
10027 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10029 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10031 # FIXME: find the short name or the path components, as spaces are
10032 # common. (e.g. "Program Files" -> "PROGRA~1")
10036 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10037 postinstall_cmds
='base_file=`basename \${file}`~
10038 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10039 dldir=$destdir/`dirname \$dlpath`~
10040 test -d \$dldir || mkdir -p \$dldir~
10041 $install_prog $dir/$dlname \$dldir/$dlname'
10042 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10043 dlpath=$dir/\$dldll~
10045 shlibpath_overrides_runpath
=yes
10046 dynamic_linker
='Win32 link.exe'
10050 # Assume MSVC wrapper
10051 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10052 dynamic_linker
='Win32 ld.exe'
10055 # FIXME: first we should search . and the directory the executable is in
10059 darwin
* | rhapsody
*)
10060 dynamic_linker
="$host_os dyld"
10061 version_type
=darwin
10064 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10065 soname_spec
='${libname}${release}${major}$shared_ext'
10066 shlibpath_overrides_runpath
=yes
10067 shlibpath_var
=DYLD_LIBRARY_PATH
10068 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10070 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10071 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10075 version_type
=linux
# correct to gnu/linux during the next big refactor
10078 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10079 soname_spec
='${libname}${release}${shared_ext}$major'
10080 shlibpath_var
=LD_LIBRARY_PATH
10083 freebsd
* | dragonfly
*)
10084 # DragonFly does not have aout. When/if they implement a new
10085 # versioning mechanism, adjust this.
10086 if test -x /usr
/bin
/objformat
; then
10087 objformat
=`/usr/bin/objformat`
10090 freebsd
[23].
*) objformat
=aout
;;
10091 *) objformat
=elf
;;
10094 version_type
=freebsd-
$objformat
10095 case $version_type in
10097 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10102 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10106 shlibpath_var
=LD_LIBRARY_PATH
10109 shlibpath_overrides_runpath
=yes
10111 freebsd3.
[01]* | freebsdelf3.
[01]*)
10112 shlibpath_overrides_runpath
=yes
10113 hardcode_into_libs
=yes
10115 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10116 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10117 shlibpath_overrides_runpath
=no
10118 hardcode_into_libs
=yes
10120 *) # from 4.6 on, and DragonFly
10121 shlibpath_overrides_runpath
=yes
10122 hardcode_into_libs
=yes
10128 version_type
=linux
# correct to gnu/linux during the next big refactor
10131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10132 soname_spec
='${libname}${release}${shared_ext}$major'
10133 shlibpath_var
=LD_LIBRARY_PATH
10134 shlibpath_overrides_runpath
=no
10135 hardcode_into_libs
=yes
10139 version_type
=linux
# correct to gnu/linux during the next big refactor
10142 dynamic_linker
="$host_os runtime_loader"
10143 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10144 soname_spec
='${libname}${release}${shared_ext}$major'
10145 shlibpath_var
=LIBRARY_PATH
10146 shlibpath_overrides_runpath
=yes
10147 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10148 hardcode_into_libs
=yes
10151 hpux9
* | hpux10
* | hpux11
*)
10152 # Give a soname corresponding to the major version so that dld.sl refuses to
10153 # link against other versions.
10160 hardcode_into_libs
=yes
10161 dynamic_linker
="$host_os dld.so"
10162 shlibpath_var
=LD_LIBRARY_PATH
10163 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10164 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 soname_spec
='${libname}${release}${shared_ext}$major'
10166 if test "X$HPUX_IA64_MODE" = X32
; then
10167 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10169 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10171 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10175 hardcode_into_libs
=yes
10176 dynamic_linker
="$host_os dld.sl"
10177 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10178 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10179 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180 soname_spec
='${libname}${release}${shared_ext}$major'
10181 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10182 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10186 dynamic_linker
="$host_os dld.sl"
10187 shlibpath_var
=SHLIB_PATH
10188 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10189 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190 soname_spec
='${libname}${release}${shared_ext}$major'
10193 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10194 postinstall_cmds
='chmod 555 $lib'
10195 # or fails outright, so override atomically:
10196 install_override_mode
=555
10200 version_type
=linux
# correct to gnu/linux during the next big refactor
10203 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10204 soname_spec
='${libname}${release}${shared_ext}$major'
10205 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10206 shlibpath_var
=LD_LIBRARY_PATH
10207 shlibpath_overrides_runpath
=no
10208 hardcode_into_libs
=yes
10211 irix5
* | irix6
* | nonstopux
*)
10213 nonstopux
*) version_type
=nonstopux
;;
10215 if test "$lt_cv_prog_gnu_ld" = yes; then
10216 version_type
=linux
# correct to gnu/linux during the next big refactor
10223 soname_spec
='${libname}${release}${shared_ext}$major'
10224 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10226 irix5
* | nonstopux
*)
10227 libsuff
= shlibsuff
=
10230 case $LD in # libtool.m4 will add one of these switches to LD
10231 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10232 libsuff
= shlibsuff
= libmagic
=32-bit;;
10233 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10234 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10235 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10236 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10237 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10241 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10242 shlibpath_overrides_runpath
=no
10243 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10244 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10245 hardcode_into_libs
=yes
10248 # No shared lib support for Linux oldld, aout, or coff.
10249 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10253 # This must be glibc/ELF.
10254 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10255 version_type
=linux
# correct to gnu/linux during the next big refactor
10258 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259 soname_spec
='${libname}${release}${shared_ext}$major'
10260 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10261 shlibpath_var
=LD_LIBRARY_PATH
10262 shlibpath_overrides_runpath
=no
10264 # Some binutils ld are patched to set DT_RUNPATH
10265 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10266 $as_echo_n "(cached) " >&6
10268 lt_cv_shlibpath_overrides_runpath
=no
10269 save_LDFLAGS
=$LDFLAGS
10270 save_libdir
=$libdir
10271 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10272 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10284 if ac_fn_c_try_link
"$LINENO"; then :
10285 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10286 lt_cv_shlibpath_overrides_runpath
=yes
10289 rm -f core conftest.err conftest.
$ac_objext \
10290 conftest
$ac_exeext conftest.
$ac_ext
10291 LDFLAGS
=$save_LDFLAGS
10292 libdir
=$save_libdir
10296 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10298 # This implies no fast_install, which is unacceptable.
10299 # Some rework will be needed to allow for fast_install
10300 # before this can be enabled.
10301 hardcode_into_libs
=yes
10303 # Append ld.so.conf contents to the search path
10304 if test -f /etc
/ld.so.conf
; then
10305 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' ' '`
10306 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10309 # We used to test for /lib/ld.so.1 and disable shared libraries on
10310 # powerpc, because MkLinux only supported shared libraries with the
10311 # GNU dynamic linker. Since this was broken with cross compilers,
10312 # most powerpc-linux boxes support dynamic linking these days and
10313 # people can always --disable-shared, the test was removed, and we
10314 # assume the GNU/Linux dynamic linker is in use.
10315 dynamic_linker
='GNU/Linux ld.so'
10322 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10324 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10325 dynamic_linker
='NetBSD (a.out) ld.so'
10327 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10328 soname_spec
='${libname}${release}${shared_ext}$major'
10329 dynamic_linker
='NetBSD ld.elf_so'
10331 shlibpath_var
=LD_LIBRARY_PATH
10332 shlibpath_overrides_runpath
=yes
10333 hardcode_into_libs
=yes
10337 version_type
=linux
# correct to gnu/linux during the next big refactor
10338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 shlibpath_var
=LD_LIBRARY_PATH
10340 shlibpath_overrides_runpath
=yes
10347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec
='${libname}${release}${shared_ext}$major'
10349 shlibpath_var
=LD_LIBRARY_PATH
10350 shlibpath_overrides_runpath
=no
10351 hardcode_into_libs
=yes
10352 dynamic_linker
='ldqnx.so'
10357 sys_lib_dlsearch_path_spec
="/usr/lib"
10359 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10361 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10362 *) need_version
=no
;;
10364 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10365 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10366 shlibpath_var
=LD_LIBRARY_PATH
10367 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10369 openbsd2.
[89] | openbsd2.
[89].
*)
10370 shlibpath_overrides_runpath
=no
10373 shlibpath_overrides_runpath
=yes
10377 shlibpath_overrides_runpath
=yes
10382 libname_spec
='$name'
10385 library_names_spec
='$libname${shared_ext} $libname.a'
10386 dynamic_linker
='OS/2 ld.exe'
10387 shlibpath_var
=LIBPATH
10390 osf3
* | osf4
* | osf5
*)
10394 soname_spec
='${libname}${release}${shared_ext}$major'
10395 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396 shlibpath_var
=LD_LIBRARY_PATH
10397 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10398 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10406 version_type
=linux
# correct to gnu/linux during the next big refactor
10409 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410 soname_spec
='${libname}${release}${shared_ext}$major'
10411 shlibpath_var
=LD_LIBRARY_PATH
10412 shlibpath_overrides_runpath
=yes
10413 hardcode_into_libs
=yes
10414 # ldd complains unless libraries are executable
10415 postinstall_cmds
='chmod +x $lib'
10420 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10421 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10422 shlibpath_var
=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath
=yes
10424 if test "$with_gnu_ld" = yes; then
10431 version_type
=linux
# correct to gnu/linux during the next big refactor
10432 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433 soname_spec
='${libname}${release}${shared_ext}$major'
10434 shlibpath_var
=LD_LIBRARY_PATH
10435 case $host_vendor in
10437 shlibpath_overrides_runpath
=no
10439 runpath_var
=LD_RUN_PATH
10447 shlibpath_overrides_runpath
=no
10448 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10454 if test -d /usr
/nec
;then
10455 version_type
=linux
# correct to gnu/linux during the next big refactor
10456 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10457 soname_spec
='$libname${shared_ext}.$major'
10458 shlibpath_var
=LD_LIBRARY_PATH
10462 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10463 version_type
=freebsd-elf
10466 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10467 soname_spec
='${libname}${release}${shared_ext}$major'
10468 shlibpath_var
=LD_LIBRARY_PATH
10469 shlibpath_overrides_runpath
=yes
10470 hardcode_into_libs
=yes
10471 if test "$with_gnu_ld" = yes; then
10472 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10474 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10477 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10481 sys_lib_dlsearch_path_spec
='/usr/lib'
10485 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10486 version_type
=linux
# correct to gnu/linux during the next big refactor
10489 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 shlibpath_var
=LD_LIBRARY_PATH
10491 shlibpath_overrides_runpath
=no
10492 hardcode_into_libs
=yes
10496 version_type
=linux
# correct to gnu/linux during the next big refactor
10497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498 soname_spec
='${libname}${release}${shared_ext}$major'
10499 shlibpath_var
=LD_LIBRARY_PATH
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10507 $as_echo "$dynamic_linker" >&6; }
10508 test "$dynamic_linker" = no
&& can_build_shared
=no
10510 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10511 if test "$GCC" = yes; then
10512 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10515 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10516 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10518 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10519 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10614 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10616 if test -n "$hardcode_libdir_flag_spec" ||
10617 test -n "$runpath_var" ||
10618 test "X$hardcode_automatic" = "Xyes" ; then
10620 # We can hardcode non-existent directories.
10621 if test "$hardcode_direct" != no
&&
10622 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10623 # have to relink, otherwise we might link with an installed library
10624 # when we should be linking with a yet-to-be-installed one
10625 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10626 test "$hardcode_minus_L" != no
; then
10627 # Linking always hardcodes the temporary library directory.
10628 hardcode_action
=relink
10630 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10631 hardcode_action
=immediate
10634 # We cannot hardcode anything, or else we can only hardcode existing
10636 hardcode_action
=unsupported
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10639 $as_echo "$hardcode_action" >&6; }
10641 if test "$hardcode_action" = relink ||
10642 test "$inherit_rpath" = yes; then
10643 # Fast installation is not supported
10644 enable_fast_install
=no
10645 elif test "$shlibpath_overrides_runpath" = yes ||
10646 test "$enable_shared" = no
; then
10647 # Fast installation is not necessary
10648 enable_fast_install
=needless
10656 if test "x$enable_dlopen" != xyes
; then
10657 enable_dlopen
=unknown
10658 enable_dlopen_self
=unknown
10659 enable_dlopen_self_static
=unknown
10666 lt_cv_dlopen
="load_add_on"
10668 lt_cv_dlopen_self
=yes
10671 mingw
* | pw32
* | cegcc
*)
10672 lt_cv_dlopen
="LoadLibrary"
10677 lt_cv_dlopen
="dlopen"
10682 # if libdl is installed we need to link against it
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10684 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10685 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10686 $as_echo_n "(cached) " >&6
10688 ac_check_lib_save_LIBS
=$LIBS
10690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10693 /* Override any GCC internal prototype to avoid an error.
10694 Use char because int might match the return type of a GCC
10695 builtin and then its argument prototype would still apply. */
10708 if ac_fn_c_try_link
"$LINENO"; then :
10709 ac_cv_lib_dl_dlopen
=yes
10711 ac_cv_lib_dl_dlopen
=no
10713 rm -f core conftest.err conftest.
$ac_objext \
10714 conftest
$ac_exeext conftest.
$ac_ext
10715 LIBS
=$ac_check_lib_save_LIBS
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10718 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10719 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10720 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10723 lt_cv_dlopen
="dyld"
10725 lt_cv_dlopen_self
=yes
10732 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10733 if test "x$ac_cv_func_shl_load" = xyes
; then :
10734 lt_cv_dlopen
="shl_load"
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10737 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10738 if ${ac_cv_lib_dld_shl_load+:} false
; then :
10739 $as_echo_n "(cached) " >&6
10741 ac_check_lib_save_LIBS
=$LIBS
10743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10746 /* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10756 return shl_load ();
10761 if ac_fn_c_try_link
"$LINENO"; then :
10762 ac_cv_lib_dld_shl_load
=yes
10764 ac_cv_lib_dld_shl_load
=no
10766 rm -f core conftest.err conftest.
$ac_objext \
10767 conftest
$ac_exeext conftest.
$ac_ext
10768 LIBS
=$ac_check_lib_save_LIBS
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10771 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10772 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
10773 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10775 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10776 if test "x$ac_cv_func_dlopen" = xyes
; then :
10777 lt_cv_dlopen
="dlopen"
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10780 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10781 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10782 $as_echo_n "(cached) " >&6
10784 ac_check_lib_save_LIBS
=$LIBS
10786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10789 /* Override any GCC internal prototype to avoid an error.
10790 Use char because int might match the return type of a GCC
10791 builtin and then its argument prototype would still apply. */
10804 if ac_fn_c_try_link
"$LINENO"; then :
10805 ac_cv_lib_dl_dlopen
=yes
10807 ac_cv_lib_dl_dlopen
=no
10809 rm -f core conftest.err conftest.
$ac_objext \
10810 conftest
$ac_exeext conftest.
$ac_ext
10811 LIBS
=$ac_check_lib_save_LIBS
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10814 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10815 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10816 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10819 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10820 if ${ac_cv_lib_svld_dlopen+:} false
; then :
10821 $as_echo_n "(cached) " >&6
10823 ac_check_lib_save_LIBS
=$LIBS
10824 LIBS
="-lsvld $LIBS"
10825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10828 /* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
10843 if ac_fn_c_try_link
"$LINENO"; then :
10844 ac_cv_lib_svld_dlopen
=yes
10846 ac_cv_lib_svld_dlopen
=no
10848 rm -f core conftest.err conftest.
$ac_objext \
10849 conftest
$ac_exeext conftest.
$ac_ext
10850 LIBS
=$ac_check_lib_save_LIBS
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10853 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10854 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
10855 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10858 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10859 if ${ac_cv_lib_dld_dld_link+:} false
; then :
10860 $as_echo_n "(cached) " >&6
10862 ac_check_lib_save_LIBS
=$LIBS
10864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10867 /* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10877 return dld_link ();
10882 if ac_fn_c_try_link
"$LINENO"; then :
10883 ac_cv_lib_dld_dld_link
=yes
10885 ac_cv_lib_dld_dld_link
=no
10887 rm -f core conftest.err conftest.
$ac_objext \
10888 conftest
$ac_exeext conftest.
$ac_ext
10889 LIBS
=$ac_check_lib_save_LIBS
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10892 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10893 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
10894 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
10915 if test "x$lt_cv_dlopen" != xno
; then
10921 case $lt_cv_dlopen in
10923 save_CPPFLAGS
="$CPPFLAGS"
10924 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
10926 save_LDFLAGS
="$LDFLAGS"
10927 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
10930 LIBS
="$lt_cv_dlopen_libs $LIBS"
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10933 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10934 if ${lt_cv_dlopen_self+:} false
; then :
10935 $as_echo_n "(cached) " >&6
10937 if test "$cross_compiling" = yes; then :
10938 lt_cv_dlopen_self
=cross
10940 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10941 lt_status
=$lt_dlunknown
10942 cat > conftest.
$ac_ext <<_LT_EOF
10943 #line $LINENO "configure"
10944 #include "confdefs.h"
10953 # define LT_DLGLOBAL RTLD_GLOBAL
10956 # define LT_DLGLOBAL DL_GLOBAL
10958 # define LT_DLGLOBAL 0
10962 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10963 find out it does not work in some platform. */
10964 #ifndef LT_DLLAZY_OR_NOW
10966 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10969 # define LT_DLLAZY_OR_NOW DL_LAZY
10972 # define LT_DLLAZY_OR_NOW RTLD_NOW
10975 # define LT_DLLAZY_OR_NOW DL_NOW
10977 # define LT_DLLAZY_OR_NOW 0
10984 /* When -fvisbility=hidden is used, assume the code has been annotated
10985 correspondingly for the symbols needed. */
10986 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10987 int fnord () __attribute__((visibility("default")));
10990 int fnord () { return 42; }
10993 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10994 int status = $lt_dlunknown;
10998 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11001 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11002 else puts (dlerror ());
11004 /* dlclose (self); */
11012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11013 (eval $ac_link) 2>&5
11015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11016 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11017 (.
/conftest
; exit; ) >&5 2>/dev
/null
11019 case x
$lt_status in
11020 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11021 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11022 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11025 # compilation failed
11026 lt_cv_dlopen_self
=no
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11034 $as_echo "$lt_cv_dlopen_self" >&6; }
11036 if test "x$lt_cv_dlopen_self" = xyes
; then
11037 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11039 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11040 if ${lt_cv_dlopen_self_static+:} false
; then :
11041 $as_echo_n "(cached) " >&6
11043 if test "$cross_compiling" = yes; then :
11044 lt_cv_dlopen_self_static
=cross
11046 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11047 lt_status
=$lt_dlunknown
11048 cat > conftest.
$ac_ext <<_LT_EOF
11049 #line $LINENO "configure"
11050 #include "confdefs.h"
11059 # define LT_DLGLOBAL RTLD_GLOBAL
11062 # define LT_DLGLOBAL DL_GLOBAL
11064 # define LT_DLGLOBAL 0
11068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11069 find out it does not work in some platform. */
11070 #ifndef LT_DLLAZY_OR_NOW
11072 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11075 # define LT_DLLAZY_OR_NOW DL_LAZY
11078 # define LT_DLLAZY_OR_NOW RTLD_NOW
11081 # define LT_DLLAZY_OR_NOW DL_NOW
11083 # define LT_DLLAZY_OR_NOW 0
11090 /* When -fvisbility=hidden is used, assume the code has been annotated
11091 correspondingly for the symbols needed. */
11092 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11093 int fnord () __attribute__((visibility("default")));
11096 int fnord () { return 42; }
11099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11100 int status = $lt_dlunknown;
11104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11107 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11108 else puts (dlerror ());
11110 /* dlclose (self); */
11118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11119 (eval $ac_link) 2>&5
11121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11122 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11123 (.
/conftest
; exit; ) >&5 2>/dev
/null
11125 case x
$lt_status in
11126 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11127 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11128 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11131 # compilation failed
11132 lt_cv_dlopen_self_static
=no
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11140 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11143 CPPFLAGS
="$save_CPPFLAGS"
11144 LDFLAGS
="$save_LDFLAGS"
11149 case $lt_cv_dlopen_self in
11150 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11151 *) enable_dlopen_self
=unknown
;;
11154 case $lt_cv_dlopen_self_static in
11155 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11156 *) enable_dlopen_self_static
=unknown
;;
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11179 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11180 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11181 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11182 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11184 $as_echo "yes" >&6; }
11186 # FIXME - insert some real tests, host_os isn't really good enough
11189 if test -n "$STRIP" ; then
11190 striplib
="$STRIP -x"
11191 old_striplib
="$STRIP -S"
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11193 $as_echo "yes" >&6; }
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196 $as_echo "no" >&6; }
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11217 # Report which library types will actually be built
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11219 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11221 $as_echo "$can_build_shared" >&6; }
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11224 $as_echo_n "checking whether to build shared libraries... " >&6; }
11225 test "$can_build_shared" = "no" && enable_shared
=no
11227 # On AIX, shared libraries and static libraries use the same namespace, and
11228 # are all built from PIC.
11231 test "$enable_shared" = yes && enable_static
=no
11232 if test -n "$RANLIB"; then
11233 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11234 postinstall_cmds
='$RANLIB $lib'
11239 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11240 test "$enable_shared" = yes && enable_static
=no
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11245 $as_echo "$enable_shared" >&6; }
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11248 $as_echo_n "checking whether to build static libraries... " >&6; }
11249 # Make sure either enable_shared or enable_static is yes.
11250 test "$enable_shared" = yes || enable_static
=yes
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11252 $as_echo "$enable_static" >&6; }
11259 ac_cpp
='$CPP $CPPFLAGS'
11260 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11261 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11262 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11280 ac_config_commands
="$ac_config_commands libtool"
11285 # Only expand once:
11288 # Find a good install program. We prefer a C program (faster),
11289 # so one script is as good as another. But avoid the broken or
11290 # incompatible versions:
11291 # SysV /etc/install, /usr/sbin/install
11292 # SunOS /usr/etc/install
11293 # IRIX /sbin/install
11295 # AmigaOS /C/install, which installs bootblocks on floppy discs
11296 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11297 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11298 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11299 # OS/2's system install, which has a completely different semantic
11300 # ./install, which can be erroneously created by make from ./install.sh.
11301 # Reject install programs that cannot install multiple files.
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11303 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11304 if test -z "$INSTALL"; then
11305 if ${ac_cv_path_install+:} false
; then :
11306 $as_echo_n "(cached) " >&6
11308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11309 for as_dir
in $PATH
11312 test -z "$as_dir" && as_dir
=.
11313 # Account for people who put trailing slashes in PATH elements.
11314 case $as_dir/ in #((
11315 .
/ | .
// |
/[cC
]/* | \
11316 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
11317 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
11320 # OSF1 and SCO ODT 3.0 have their own names for install.
11321 # Don't use installbsd from OSF since it installs stuff as root
11323 for ac_prog
in ginstall scoinst
install; do
11324 for ac_exec_ext
in '' $ac_executable_extensions; do
11325 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
11326 if test $ac_prog = install &&
11327 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11328 # AIX install. It has an incompatible calling convention.
11330 elif test $ac_prog = install &&
11331 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11332 # program-specific install script used by HP pwplus--don't use.
11335 rm -rf conftest.one conftest.two conftest.dir
11336 echo one
> conftest.one
11337 echo two
> conftest.two
11339 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
11340 test -s conftest.one
&& test -s conftest.two
&&
11341 test -s conftest.dir
/conftest.one
&&
11342 test -s conftest.dir
/conftest.two
11344 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
11357 rm -rf conftest.one conftest.two conftest.dir
11360 if test "${ac_cv_path_install+set}" = set; then
11361 INSTALL
=$ac_cv_path_install
11363 # As a last resort, use the slow shell script. Don't cache a
11364 # value for INSTALL within a source directory, because that will
11365 # break other packages using the cache if that directory is
11366 # removed, or if the value is a relative name.
11367 INSTALL
=$ac_install_sh
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11371 $as_echo "$INSTALL" >&6; }
11373 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11374 # It thinks the first close brace ends the variable substitution.
11375 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
11377 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
11379 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11382 $as_echo_n "checking whether ln -s works... " >&6; }
11384 if test "$LN_S" = "ln -s"; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11386 $as_echo "yes" >&6; }
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11389 $as_echo "no, using $LN_S" >&6; }
11400 # Warn if the user specified libbind, which is now deprecated
11401 # Check whether --enable-libbind was given.
11402 if test "${enable_libbind+set}" = set; then :
11403 enableval
=$enable_libbind;
11407 case "$enable_libbind" in
11409 as_fn_error $?
"'libbind' is no longer part of the BIND 9 distribution.
11410 It is available from http://www.isc.org as a separate download." "$LINENO" 5
11416 # Check whether --enable-warn_shadow was given.
11417 if test "${enable_warn_shadow+set}" = set; then :
11418 enableval
=$enable_warn_shadow;
11422 # Check whether --enable-warn_error was given.
11423 if test "${enable_warn_error+set}" = set; then :
11424 enableval
=$enable_warn_error;
11428 # Check whether --enable-developer was given.
11429 if test "${enable_developer+set}" = set; then :
11430 enableval
=$enable_developer;
11433 case "$enable_developer" in
11435 STD_CDEFINES
="$STD_CDEFINES -DISC_LIST_CHECKINIT=1"
11436 test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset
=yes
11437 test "${with_atf+set}" = set || with_atf
=yes
11438 test "${enable_filter_aaaa+set}" = set || enable_filter_aaaa
=yes
11439 test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem
=yes
11440 test "${enable_symtable+set}" = set || enable_symtable
=all
11441 test "${enable_sit+set}" = set || enable_sit
=yes
11442 test "${enable_warn_error+set}" = set || enable_warn_error
=yes
11443 test "${enable_warn_shadow+set}" = set || enable_warn_shadow
=yes
11447 #libseccomp sandboxing
11448 # Check whether --enable-seccomp was given.
11449 if test "${enable_seccomp+set}" = set; then :
11450 enableval
=$enable_seccomp;
11453 case "$enable_seccomp" in
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: seccomp is not supported on non-linux platforms; disabling it" >&5
11460 $as_echo "$as_me: WARNING: seccomp is not supported on non-linux platforms; disabling it" >&2;}
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
11465 $as_echo_n "checking for library containing seccomp_init... " >&6; }
11466 if ${ac_cv_search_seccomp_init+:} false
; then :
11467 $as_echo_n "(cached) " >&6
11469 ac_func_search_save_LIBS
=$LIBS
11470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11473 /* Override any GCC internal prototype to avoid an error.
11474 Use char because int might match the return type of a GCC
11475 builtin and then its argument prototype would still apply. */
11479 char seccomp_init ();
11483 return seccomp_init ();
11488 for ac_lib
in '' seccomp
; do
11489 if test -z "$ac_lib"; then
11490 ac_res
="none required"
11493 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11495 if ac_fn_c_try_link
"$LINENO"; then :
11496 ac_cv_search_seccomp_init
=$ac_res
11498 rm -f core conftest.err conftest.
$ac_objext \
11500 if ${ac_cv_search_seccomp_init+:} false
; then :
11504 if ${ac_cv_search_seccomp_init+:} false
; then :
11507 ac_cv_search_seccomp_init
=no
11509 rm conftest.
$ac_ext
11510 LIBS
=$ac_func_search_save_LIBS
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
11513 $as_echo "$ac_cv_search_seccomp_init" >&6; }
11514 ac_res
=$ac_cv_search_seccomp_init
11515 if test "$ac_res" != no
; then :
11516 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11520 if test "$ac_cv_search_seccomp_init" = "-lseccomp" ; then
11521 if test "$cross_compiling" = yes; then :
11522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11524 as_fn_error $?
"cannot run test program while cross compiling
11525 See \`config.log' for more details" "$LINENO" 5; }
11527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11531 #include <stdlib.h>
11533 #include <sys/prctl.h>
11534 #include <linux/seccomp.h>
11540 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
11552 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
11568 if ac_fn_c_try_run
"$LINENO"; then :
11570 $as_echo "#define HAVE_LIBSECCOMP 1" >>confdefs.h
11574 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11575 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11585 # Make very sure that these are the first files processed by
11586 # config.status, since we use the processed output as the input for
11587 # AC_SUBST_FILE() substitutions in other files.
11589 ac_config_files
="$ac_config_files make/rules make/includes"
11592 # Extract the first word of "ar", so it can be a program name with args.
11593 set dummy
ar; ac_word
=$2
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11595 $as_echo_n "checking for $ac_word... " >&6; }
11596 if ${ac_cv_path_AR+:} false
; then :
11597 $as_echo_n "(cached) " >&6
11601 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
11604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11605 for as_dir
in $PATH
11608 test -z "$as_dir" && as_dir
=.
11609 for ac_exec_ext
in '' $ac_executable_extensions; do
11610 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11611 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
11612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11623 if test -n "$AR"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11625 $as_echo "$AR" >&6; }
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628 $as_echo "no" >&6; }
11636 # The POSIX ln(1) program. Non-POSIX systems may substitute
11637 # "copy" or something.
11644 ar program not found. Please fix your PATH to include the directory in
11645 which ar resides, or set AR in the environment with the full path to ar.
11654 for ac_prog
in etags emacs-etags
11656 # Extract the first word of "$ac_prog", so it can be a program name with args.
11657 set dummy
$ac_prog; ac_word
=$2
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11659 $as_echo_n "checking for $ac_word... " >&6; }
11660 if ${ac_cv_path_ETAGS+:} false
; then :
11661 $as_echo_n "(cached) " >&6
11665 ac_cv_path_ETAGS
="$ETAGS" # Let the user override the test with a path.
11668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11669 for as_dir
in $PATH
11672 test -z "$as_dir" && as_dir
=.
11673 for ac_exec_ext
in '' $ac_executable_extensions; do
11674 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11675 ac_cv_path_ETAGS
="$as_dir/$ac_word$ac_exec_ext"
11676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11686 ETAGS
=$ac_cv_path_ETAGS
11687 if test -n "$ETAGS"; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
11689 $as_echo "$ETAGS" >&6; }
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692 $as_echo "no" >&6; }
11696 test -n "$ETAGS" && break
11701 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
11702 # GNU emacs etags, and it requires the -L flag.
11704 if test "X$ETAGS" != "X"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5
11706 $as_echo_n "checking for Exuberant Ctags etags... " >&6; }
11707 if $ETAGS --version 2>&1 |
grep 'Exuberant Ctags' >/dev
/null
2>&1; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11709 $as_echo "yes" >&6; }
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 $as_echo "no" >&6; }
11719 # Perl is optional; it is used only by some of the system test scripts.
11720 # Note: the backtrace feature (see below) uses perl to build the symbol table,
11721 # but it still compiles without perl, in which case an empty table will be used.
11723 for ac_prog
in perl5 perl
11725 # Extract the first word of "$ac_prog", so it can be a program name with args.
11726 set dummy
$ac_prog; ac_word
=$2
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11728 $as_echo_n "checking for $ac_word... " >&6; }
11729 if ${ac_cv_path_PERL+:} false
; then :
11730 $as_echo_n "(cached) " >&6
11734 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
11737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11738 for as_dir
in $PATH
11741 test -z "$as_dir" && as_dir
=.
11742 for ac_exec_ext
in '' $ac_executable_extensions; do
11743 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11744 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
11745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 PERL
=$ac_cv_path_PERL
11756 if test -n "$PERL"; then
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11758 $as_echo "$PERL" >&6; }
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761 $as_echo "no" >&6; }
11765 test -n "$PERL" && break
11771 # Python is also optional; it is used by the tools in bin/python.
11772 # If python is unavailable, we simply don't build those.
11775 # Check whether --with-python was given.
11776 if test "${with_python+set}" = set; then :
11777 withval
=$with_python; use_python
="$withval"
11779 use_python
="unspec"
11783 python
="python python3 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4"
11784 testscript
='try: import argparse
11786 case "$use_python" in
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python support" >&5
11789 $as_echo_n "checking for python support... " >&6; }
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11791 $as_echo "disabled" >&6; }
11794 case "$use_python" in
11800 # Extract the first word of "$ac_prog", so it can be a program name with args.
11801 set dummy
$ac_prog; ac_word
=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if ${ac_cv_path_PYTHON+:} false
; then :
11805 $as_echo_n "(cached) " >&6
11809 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
11812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11813 for as_dir
in $PATH
11816 test -z "$as_dir" && as_dir
=.
11817 for ac_exec_ext
in '' $ac_executable_extensions; do
11818 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11819 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 PYTHON
=$ac_cv_path_PYTHON
11831 if test -n "$PYTHON"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
11833 $as_echo "$PYTHON" >&6; }
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11840 test -n "$PYTHON" && break
11843 if test "X$PYTHON" == "X"; then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python module 'argparse'" >&5
11847 $as_echo_n "checking python module 'argparse'... " >&6; }
11848 if ${PYTHON:-false} -c "$testscript"; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, using $PYTHON" >&5
11850 $as_echo "found, using $PYTHON" >&6; }
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11854 $as_echo "not found" >&6; }
11855 unset ac_cv_path_PYTHON
11858 if test "X$PYTHON" == "X"
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python support" >&5
11861 $as_echo_n "checking for python support... " >&6; }
11862 case "$use_python" in
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11865 $as_echo "disabled" >&6; }
11868 as_fn_error $?
"missing python" "$LINENO" 5
11874 case "$use_python" in
11876 PYTHON
="$use_python"
11879 for ac_prog
in $use_python
11881 # Extract the first word of "$ac_prog", so it can be a program name with args.
11882 set dummy
$ac_prog; ac_word
=$2
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884 $as_echo_n "checking for $ac_word... " >&6; }
11885 if ${ac_cv_path_PYTHON+:} false
; then :
11886 $as_echo_n "(cached) " >&6
11890 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
11893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11894 for as_dir
in $PATH
11897 test -z "$as_dir" && as_dir
=.
11898 for ac_exec_ext
in '' $ac_executable_extensions; do
11899 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11900 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
11901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11911 PYTHON
=$ac_cv_path_PYTHON
11912 if test -n "$PYTHON"; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
11914 $as_echo "$PYTHON" >&6; }
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917 $as_echo "no" >&6; }
11921 test -n "$PYTHON" && break
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python module 'argparse'" >&5
11927 $as_echo_n "checking python module 'argparse'... " >&6; }
11928 if ${PYTHON:-false} -c "$testscript"; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, using $PYTHON" >&5
11930 $as_echo "found, using $PYTHON" >&6; }
11933 as_fn_error $?
"not found" "$LINENO" 5
11943 if test "X$PYTHON" != "X"; then
11944 PYTHON_TOOLS
=python
11953 # Special processing of paths depending on whether --prefix,
11954 # --sysconfdir or --localstatedir arguments were given. What's
11955 # desired is some compatibility with the way previous versions
11956 # of BIND built; they defaulted to /usr/local for most parts of
11957 # the installation, but named.boot/named.conf was in /etc
11958 # and named.pid was in /var/run.
11960 # So ... if none of --prefix, --sysconfdir or --localstatedir are
11961 # specified, set things up that way. If --prefix is given, use
11962 # it for sysconfdir and localstatedir the way configure normally
11963 # would. To change the prefix for everything but leave named.conf
11964 # in /etc or named.pid in /var/run, then do this the usual configure way:
11965 # ./configure --prefix=/somewhere --sysconfdir=/etc
11966 # ./configure --prefix=/somewhere --localstatedir=/var
11968 # To put named.conf and named.pid in /usr/local with everything else,
11969 # set the prefix explicitly to /usr/local even though that's the default:
11970 # ./configure --prefix=/usr/local
11974 case "$sysconfdir" in
11979 case "$localstatedir" in
11988 # Make sure INSTALL uses an absolute path, else it will be wrong in all
11989 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
11990 # configure based on the location of the file where it is substituted.
11991 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
11992 # subdirectory of install-sh, This relative path will be wrong for all
11993 # directories more than one level down from install-sh.
12000 # Not all systems have dirname.
12003 ac_dir
="`echo $INSTALL | sed 's%/[^/]*$%%'`"
12006 ac_prog
="`echo $INSTALL | sed 's%.*/%%'`"
12007 test "$ac_dir" = "$ac_prog" && ac_dir
=.
12008 test -d "$ac_dir" && ac_dir
="`(cd \"$ac_dir\" && pwd)`"
12009 INSTALL
="$ac_dir/$ac_prog"
12014 # On these hosts, we really want to use cc, not gcc, even if it is
12015 # found. The gcc that these systems have will not correctly handle
12018 # However, if the user sets $CC to be something, let that override
12021 if test "X$CC" = "X" ; then
12027 # Use Sun's cc if it is available, but watch
12028 # out for /usr/ucb/cc; it will never be the right
12031 # If setting CC here fails, the AC_PROG_CC done
12032 # below might still find gcc.
12033 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
12034 for ac_dir
in $PATH; do
12035 test -z "$ac_dir" && ac_dir
=.
12041 if test -f "$ac_dir/cc"; then
12060 ac_cpp
='$CPP $CPPFLAGS'
12061 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12062 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12063 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12064 if test -n "$ac_tool_prefix"; then
12065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12066 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12068 $as_echo_n "checking for $ac_word... " >&6; }
12069 if ${ac_cv_prog_CC+:} false
; then :
12070 $as_echo_n "(cached) " >&6
12072 if test -n "$CC"; then
12073 ac_cv_prog_CC
="$CC" # Let the user override the test.
12075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12076 for as_dir
in $PATH
12079 test -z "$as_dir" && as_dir
=.
12080 for ac_exec_ext
in '' $ac_executable_extensions; do
12081 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12082 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
12083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12093 if test -n "$CC"; then
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12095 $as_echo "$CC" >&6; }
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098 $as_echo "no" >&6; }
12103 if test -z "$ac_cv_prog_CC"; then
12105 # Extract the first word of "gcc", so it can be a program name with args.
12106 set dummy gcc
; ac_word
=$2
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12108 $as_echo_n "checking for $ac_word... " >&6; }
12109 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
12110 $as_echo_n "(cached) " >&6
12112 if test -n "$ac_ct_CC"; then
12113 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
12115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12116 for as_dir
in $PATH
12119 test -z "$as_dir" && as_dir
=.
12120 for ac_exec_ext
in '' $ac_executable_extensions; do
12121 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12122 ac_cv_prog_ac_ct_CC
="gcc"
12123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12132 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
12133 if test -n "$ac_ct_CC"; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12135 $as_echo "$ac_ct_CC" >&6; }
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 $as_echo "no" >&6; }
12141 if test "x$ac_ct_CC" = x
; then
12144 case $cross_compiling:$ac_tool_warned in
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12148 ac_tool_warned
=yes ;;
12153 CC
="$ac_cv_prog_CC"
12156 if test -z "$CC"; then
12157 if test -n "$ac_tool_prefix"; then
12158 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12159 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161 $as_echo_n "checking for $ac_word... " >&6; }
12162 if ${ac_cv_prog_CC+:} false
; then :
12163 $as_echo_n "(cached) " >&6
12165 if test -n "$CC"; then
12166 ac_cv_prog_CC
="$CC" # Let the user override the test.
12168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12169 for as_dir
in $PATH
12172 test -z "$as_dir" && as_dir
=.
12173 for ac_exec_ext
in '' $ac_executable_extensions; do
12174 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12175 ac_cv_prog_CC
="${ac_tool_prefix}cc"
12176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12186 if test -n "$CC"; then
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12188 $as_echo "$CC" >&6; }
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12197 if test -z "$CC"; then
12198 # Extract the first word of "cc", so it can be a program name with args.
12199 set dummy cc
; ac_word
=$2
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12201 $as_echo_n "checking for $ac_word... " >&6; }
12202 if ${ac_cv_prog_CC+:} false
; then :
12203 $as_echo_n "(cached) " >&6
12205 if test -n "$CC"; then
12206 ac_cv_prog_CC
="$CC" # Let the user override the test.
12208 ac_prog_rejected
=no
12209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12210 for as_dir
in $PATH
12213 test -z "$as_dir" && as_dir
=.
12214 for ac_exec_ext
in '' $ac_executable_extensions; do
12215 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12216 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12217 ac_prog_rejected
=yes
12221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 if test $ac_prog_rejected = yes; then
12229 # We found a bogon in the path, so make sure we never use it.
12230 set dummy
$ac_cv_prog_CC
12232 if test $# != 0; then
12233 # We chose a different compiler from the bogus one.
12234 # However, it has the same basename, so the bogon will be chosen
12235 # first if we set CC to just the basename; use the full file name.
12237 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
12243 if test -n "$CC"; then
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12245 $as_echo "$CC" >&6; }
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248 $as_echo "no" >&6; }
12253 if test -z "$CC"; then
12254 if test -n "$ac_tool_prefix"; then
12255 for ac_prog
in cl.exe
12257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12258 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12260 $as_echo_n "checking for $ac_word... " >&6; }
12261 if ${ac_cv_prog_CC+:} false
; then :
12262 $as_echo_n "(cached) " >&6
12264 if test -n "$CC"; then
12265 ac_cv_prog_CC
="$CC" # Let the user override the test.
12267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12268 for as_dir
in $PATH
12271 test -z "$as_dir" && as_dir
=.
12272 for ac_exec_ext
in '' $ac_executable_extensions; do
12273 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12274 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
12275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12285 if test -n "$CC"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12287 $as_echo "$CC" >&6; }
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12294 test -n "$CC" && break
12297 if test -z "$CC"; then
12299 for ac_prog
in cl.exe
12301 # Extract the first word of "$ac_prog", so it can be a program name with args.
12302 set dummy
$ac_prog; ac_word
=$2
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304 $as_echo_n "checking for $ac_word... " >&6; }
12305 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
12306 $as_echo_n "(cached) " >&6
12308 if test -n "$ac_ct_CC"; then
12309 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
12311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12312 for as_dir
in $PATH
12315 test -z "$as_dir" && as_dir
=.
12316 for ac_exec_ext
in '' $ac_executable_extensions; do
12317 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12318 ac_cv_prog_ac_ct_CC
="$ac_prog"
12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12328 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
12329 if test -n "$ac_ct_CC"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12331 $as_echo "$ac_ct_CC" >&6; }
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12338 test -n "$ac_ct_CC" && break
12341 if test "x$ac_ct_CC" = x
; then
12344 case $cross_compiling:$ac_tool_warned in
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12348 ac_tool_warned
=yes ;;
12357 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12359 as_fn_error $?
"no acceptable C compiler found in \$PATH
12360 See \`config.log' for more details" "$LINENO" 5; }
12362 # Provide some information about the compiler.
12363 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12366 for ac_option
in --version -v -V -qversion; do
12367 { { ac_try
="$ac_compiler $ac_option >&5"
12368 case "(($ac_try" in
12369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12370 *) ac_try_echo=$ac_try;;
12372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12373 $as_echo "$ac_try_echo"; } >&5
12374 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12376 if test -s conftest.err; then
12378 ... rest of stderr output deleted ...
12379 10q' conftest.err >conftest.er1
12380 cat conftest.er1 >&5
12382 rm -f conftest.er1 conftest.err
12383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12384 test $ac_status = 0; }
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12388 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12389 if ${ac_cv_c_compiler_gnu+:} false; then :
12390 $as_echo_n "(cached) " >&6
12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12406 if ac_fn_c_try_compile "$LINENO"; then :
12407 ac_compiler_gnu=yes
12411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12416 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12417 if test $ac_compiler_gnu = yes; then
12422 ac_test_CFLAGS=${CFLAGS+set}
12423 ac_save_CFLAGS=$CFLAGS
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12425 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12426 if ${ac_cv_prog_cc_g+:} false; then :
12427 $as_echo_n "(cached) " >&6
12429 ac_save_c_werror_flag=$ac_c_werror_flag
12430 ac_c_werror_flag=yes
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12444 if ac_fn_c_try_compile "$LINENO"; then :
12445 ac_cv_prog_cc_g=yes
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h. */
12459 if ac_fn_c_try_compile "$LINENO"; then :
12462 ac_c_werror_flag=$ac_save_c_werror_flag
12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12475 if ac_fn_c_try_compile "$LINENO"; then :
12476 ac_cv_prog_cc_g=yes
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483 ac_c_werror_flag=$ac_save_c_werror_flag
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12486 $as_echo "$ac_cv_prog_cc_g" >&6; }
12487 if test "$ac_test_CFLAGS" = set; then
12488 CFLAGS=$ac_save_CFLAGS
12489 elif test $ac_cv_prog_cc_g = yes; then
12490 if test "$GCC" = yes; then
12496 if test "$GCC" = yes; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12503 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12504 if ${ac_cv_prog_cc_c89+:} false; then :
12505 $as_echo_n "(cached) " >&6
12507 ac_cv_prog_cc_c89=no
12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12511 #include <stdarg.h>
12514 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12515 struct buf { int x; };
12516 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12517 static char *e (p, i)
12523 static char *f (char * (*g) (char **, int), char **p, ...)
12528 s = g (p, va_arg (v,int));
12533 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12534 function prototypes and stuff, but not '\xHH' hex character constants.
12535 These don't provoke an error unfortunately, instead are silently treated
12536 as 'x'. The following induces an error, until -std is added to get
12537 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12538 array size at least. It's necessary to write '\x00'==0 to get something
12539 that's true only with -std. */
12540 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12542 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12543 inside strings and character constants. */
12545 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12547 int test (int i, double x);
12548 struct s1 {int (*f) (int a);};
12549 struct s2 {int (*f) (double a);};
12550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12556 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12561 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12562 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12564 CC="$ac_save_CC $ac_arg"
12565 if ac_fn_c_try_compile "$LINENO"; then :
12566 ac_cv_prog_cc_c89=$ac_arg
12568 rm -f core conftest.err conftest.$ac_objext
12569 test "x$ac_cv_prog_cc_c89" != "xno" && break
12571 rm -f conftest.$ac_ext
12576 case "x$ac_cv_prog_cc_c89" in
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12579 $as_echo "none needed" >&6; } ;;
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12582 $as_echo "unsupported" >&6; } ;;
12584 CC="$CC $ac_cv_prog_cc_c89"
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12586 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12588 if test "x$ac_cv_prog_cc_c89" != xno; then :
12593 ac_cpp='$CPP $CPPFLAGS'
12594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12600 # gcc's optimiser is broken at -02 for ultrasparc
12602 if test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then
12611 # OS dependent CC flags
12614 # OSF 5.0: recv/send are only available with -D_POSIX_PII_SOCKET or
12615 # -D_XOPEN_SOURCE_EXTENDED.
12617 STD_CDEFINES="$STD_CDEFINES -D_POSIX_PII_SOCKET"
12618 CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET"
12620 #HP-UX: need -D_XOPEN_SOURCE_EXTENDED and -lxnet for CMSG macros
12622 STD_CDEFINES="$STD_CDEFINES -D_XOPEN_SOURCE_EXTENDED"
12623 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12624 LIBS="-lxnet $LIBS"
12626 # Solaris: need -D_XPG4_2 and -D__EXTENSIONS__ for CMSG macros
12628 STD_CDEFINES="$STD_CDEFINES -D_XPG4_2 -D__EXTENSIONS__"
12629 CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
12631 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
12632 # parts of the IPv6 Advanced Socket API as a result. This is stupid
12633 # as it breaks how the two halves (Basic and Advanced) of the IPv6
12634 # Socket API were designed to be used but we have to live with it.
12635 # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
12636 *-linux* | *-kfreebsd*-gnu*)
12637 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
12638 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
12641 # Starting with OSX 10.7 (Lion) we must choose which IPv6 API to use.
12642 # Setting this is sufficient to select the correct behavior for BIND 9.
12645 STD_CDEFINES="$STD_CDEFINES -D__APPLE_USE_RFC_3542"
12646 CPPFLAGS="$CPPFLAGS -D__APPLE_USE_RFC_3542"
12651 # CCNOOPT defaults to -O0 on gcc and disables optimization when is last
12653 if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12658 $as_echo_n "checking for ANSI C header files... " >&6; }
12659 if ${ac_cv_header_stdc+:} false; then :
12660 $as_echo_n "(cached) " >&6
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12664 #include <stdlib.h>
12665 #include <stdarg.h>
12666 #include <string.h>
12677 if ac_fn_c_try_compile "$LINENO"; then :
12678 ac_cv_header_stdc=yes
12680 ac_cv_header_stdc=no
12682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12684 if test $ac_cv_header_stdc = yes; then
12685 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12688 #include <string.h>
12691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12692 $EGREP "memchr" >/dev/null 2>&1; then :
12695 ac_cv_header_stdc=no
12701 if test $ac_cv_header_stdc = yes; then
12702 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12705 #include <stdlib.h>
12708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12709 $EGREP "free" >/dev/null 2>&1; then :
12712 ac_cv_header_stdc=no
12718 if test $ac_cv_header_stdc = yes; then
12719 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12720 if test "$cross_compiling" = yes; then :
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12726 #include <stdlib.h>
12727 #if ((' ' & 0x0FF) == 0x020)
12728 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12729 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12731 # define ISLOWER(c) \
12732 (('a' <= (c) && (c) <= 'i') \
12733 || ('j' <= (c) && (c) <= 'r') \
12734 || ('s' <= (c) && (c) <= 'z'))
12735 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12738 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12743 for (i = 0; i < 256; i++)
12744 if (XOR (islower (i), ISLOWER (i))
12745 || toupper (i) != TOUPPER (i))
12750 if ac_fn_c_try_run "$LINENO"; then :
12753 ac_cv_header_stdc=no
12755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12756 conftest.$ac_objext conftest.beam conftest.$ac_ext
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12762 $as_echo "$ac_cv_header_stdc" >&6; }
12763 if test $ac_cv_header_stdc = yes; then
12765 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12770 for ac_header in fcntl.h regex.h sys/time.h unistd.h sys/mman.h sys/sockio.h sys/select.h sys/param.h sys/sysctl.h net/if6.h sys/socket.h net/route.h linux/netlink.h linux/rtnetlink.h
12772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12773 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12774 #ifdef HAVE_SYS_PARAM_H
12775 # include <sys/param.h>
12777 #ifdef HAVE_SYS_SOCKET_H
12778 # include <sys/socket.h>
12782 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12783 cat >>confdefs.h <<_ACEOF
12784 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12793 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12794 if ${ac_cv_c_const+:} false; then :
12795 $as_echo_n "(cached) " >&6
12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12804 #ifndef __cplusplus
12805 /* Ultrix mips cc rejects this sort of thing. */
12806 typedef int charset[2];
12807 const charset cs = { 0, 0 };
12808 /* SunOS 4.1.1 cc rejects this. */
12809 char const *const *pcpcc;
12811 /* NEC SVR4.0.2 mips cc rejects this. */
12812 struct point {int x, y;};
12813 static struct point const zero = {0,0};
12814 /* AIX XL C 1.02.0.0 rejects this.
12815 It does not let you subtract one const X* pointer from another in
12816 an arm of an if-expression whose if-part is not a constant
12818 const char *g = "string";
12819 pcpcc = &g + (g ? g-g : 0);
12820 /* HPUX 7.0 cc rejects these. */
12822 ppc = (char**) pcpcc;
12823 pcpcc = (char const *const *) ppc;
12824 { /* SCO 3.2v4 cc rejects this sort of thing. */
12827 char const *s = 0 ? (char *) 0 : (char const *) 0;
12832 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12833 int x[] = {25, 17};
12834 const int *foo = &x[0];
12837 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12838 typedef const int *iptr;
12842 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12843 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12844 struct s { int j; const int *ap[3]; } bx;
12845 struct s *b = &bx; b->j = 5;
12847 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12848 const int foo = 10;
12849 if (!foo) return 0;
12851 return !cs[0] && !zero.x;
12858 if ac_fn_c_try_compile "$LINENO"; then :
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12866 $as_echo "$ac_cv_c_const" >&6; }
12867 if test $ac_cv_c_const = no; then
12869 $as_echo "#define const /**/" >>confdefs.h
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12874 $as_echo_n "checking for inline... " >&6; }
12875 if ${ac_cv_c_inline+:} false; then :
12876 $as_echo_n "(cached) " >&6
12879 for ac_kw in inline __inline__ __inline; do
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12882 #ifndef __cplusplus
12884 static $ac_kw foo_t static_foo () {return 0; }
12885 $ac_kw foo_t foo () {return 0; }
12889 if ac_fn_c_try_compile "$LINENO"; then :
12890 ac_cv_c_inline=$ac_kw
12892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893 test "$ac_cv_c_inline" != no && break
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12898 $as_echo "$ac_cv_c_inline" >&6; }
12900 case $ac_cv_c_inline in
12903 case $ac_cv_c_inline in
12905 *) ac_val=$ac_cv_c_inline;;
12907 cat >>confdefs.h <<_ACEOF
12908 #ifndef __cplusplus
12909 #define inline $ac_val
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
12916 $as_echo_n "checking for working volatile... " >&6; }
12917 if ${ac_cv_c_volatile+:} false; then :
12918 $as_echo_n "(cached) " >&6
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12928 int * volatile y = (int *) 0;
12934 if ac_fn_c_try_compile "$LINENO"; then :
12935 ac_cv_c_volatile=yes
12937 ac_cv_c_volatile=no
12939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
12942 $as_echo "$ac_cv_c_volatile" >&6; }
12943 if test $ac_cv_c_volatile = no; then
12945 $as_echo "#define volatile /**/" >>confdefs.h
12949 ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
12950 if test "x$ac_cv_func_sysctlbyname" = xyes; then :
12951 $as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
12957 $as_echo_n "checking for flexible array members... " >&6; }
12958 if ${ac_cv_c_flexmember+:} false; then :
12959 $as_echo_n "(cached) " >&6
12961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962 /* end confdefs.h. */
12963 #include <stdlib.h>
12965 #include <stddef.h>
12966 struct s { int n; double d[]; };
12970 int m = getchar ();
12971 struct s *p = malloc (offsetof (struct s, d)
12972 + m * sizeof (double));
12974 return p->d != (double *) NULL;
12979 if ac_fn_c_try_compile "$LINENO"; then :
12980 ac_cv_c_flexmember=yes
12982 ac_cv_c_flexmember=no
12984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
12987 $as_echo "$ac_cv_c_flexmember" >&6; }
12988 if test $ac_cv_c_flexmember = yes; then
12990 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
12993 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
12999 # Check for the existence of mmap to enable the fast format zones
13001 for ac_func in mmap
13003 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13004 if test "x$ac_cv_func_mmap" = xyes; then :
13005 cat >>confdefs.h <<_ACEOF
13006 #define HAVE_MMAP 1
13014 # Older versions of HP/UX don't define seteuid() and setegid()
13016 for ac_func in seteuid setresuid
13018 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13019 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13020 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13021 cat >>confdefs.h <<_ACEOF
13022 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13028 for ac_func in setegid setresgid
13030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13031 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13032 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13033 cat >>confdefs.h <<_ACEOF
13034 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13041 # BSDI doesn't have ftello fseeko
13042 for ac_func in ftello fseeko
13044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13045 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13046 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13047 cat >>confdefs.h <<_ACEOF
13048 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13056 # UnixWare 7.1.1 with the feature supplement to the UDK compiler
13057 # is reported to not support "static inline" (RT #1212).
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static inline breakage" >&5
13060 $as_echo_n "checking for static inline breakage... " >&6; }
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13064 static inline int foo1() {
13068 static inline int foo2() {
13080 if ac_fn_c_try_compile "$LINENO"; then :
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082 $as_echo "no" >&6; }
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13085 $as_echo "yes" >&6; }
13087 $as_echo "#define inline /**/" >>confdefs.h
13090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13092 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13093 if test "x$ac_cv_type_size_t" = xyes; then :
13097 cat >>confdefs.h <<_ACEOF
13098 #define size_t unsigned int
13103 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13104 if test "x$ac_cv_type_ssize_t" = xyes; then :
13108 cat >>confdefs.h <<_ACEOF
13109 #define ssize_t int
13114 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13115 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13119 cat >>confdefs.h <<_ACEOF
13120 #define uintptr_t unsigned long
13125 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13126 #include <sys/types.h>
13127 #include <sys/socket.h>
13130 if test "x$ac_cv_type_socklen_t" = xyes; then :
13131 $as_echo "#define ISC_SOCKADDR_LEN_T socklen_t" >>confdefs.h
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13138 #include <sys/types.h>
13139 #include <sys/socket.h>
13140 int getsockname(int, struct sockaddr *, size_t *);
13150 if ac_fn_c_try_compile "$LINENO"; then :
13151 $as_echo "#define ISC_SOCKADDR_LEN_T size_t" >>confdefs.h
13154 $as_echo "#define ISC_SOCKADDR_LEN_T int" >>confdefs.h
13157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13163 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13164 if ${ac_cv_header_time+:} false; then :
13165 $as_echo_n "(cached) " >&6
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13169 #include <sys/types.h>
13170 #include <sys/time.h>
13176 if ((struct tm *) 0)
13182 if ac_fn_c_try_compile "$LINENO"; then :
13183 ac_cv_header_time=yes
13185 ac_cv_header_time=no
13187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13190 $as_echo "$ac_cv_header_time" >&6; }
13191 if test $ac_cv_header_time = yes; then
13193 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
13198 $as_echo_n "checking for long long... " >&6; }
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13205 long long i = 0; return (0);
13210 if ac_fn_c_try_compile "$LINENO"; then :
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13212 $as_echo "yes" >&6; }
13213 ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1"
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13217 ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG"
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223 # check for GCC noreturn attribute
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
13226 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13233 void foo() __attribute__((noreturn));
13238 if ac_fn_c_try_compile "$LINENO"; then :
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13240 $as_echo "yes" >&6; }
13241 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
13242 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13246 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
13247 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
13249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13254 # check if we have lifconf
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5
13257 $as_echo_n "checking for struct lifconf... " >&6; }
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13261 #include <sys/types.h>
13262 #include <sys/socket.h>
13263 #include <net/if.h>
13269 struct lifconf lifconf;
13270 lifconf.lifc_len = 0;
13277 if ac_fn_c_try_compile "$LINENO"; then :
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13279 $as_echo "yes" >&6; }
13280 ISC_PLATFORM_HAVELIFCONF="#define ISC_PLATFORM_HAVELIFCONF 1"
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13284 ISC_PLATFORM_HAVELIFCONF="#undef ISC_PLATFORM_HAVELIFCONF"
13286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290 # check if we have kqueue
13292 # Check whether --enable-kqueue was given.
13293 if test "${enable_kqueue+set}" = set; then :
13294 enableval=$enable_kqueue; want_kqueue="$enableval"
13299 case $want_kqueue in
13301 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13302 if test "x$ac_cv_func_kqueue" = xyes; then :
13303 ac_cv_have_kqueue=yes
13305 ac_cv_have_kqueue=no
13308 case $ac_cv_have_kqueue in
13310 ISC_PLATFORM_HAVEKQUEUE="#define ISC_PLATFORM_HAVEKQUEUE 1"
13313 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
13318 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
13324 # check if we have epoll. Linux kernel 2.4 has epoll_create() which fails,
13325 # so we need to try running the code, not just test its existence.
13327 # Check whether --enable-epoll was given.
13328 if test "${enable_epoll+set}" = set; then :
13329 enableval=$enable_epoll; want_epoll="$enableval"
13334 case $want_epoll in
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll support" >&5
13337 $as_echo_n "checking epoll support... " >&6; }
13338 if test "$cross_compiling" = yes; then :
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13340 $as_echo "no" >&6; }
13341 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13346 #include <sys/epoll.h>
13348 if (epoll_create(1) < 0)
13354 if ac_fn_c_try_run "$LINENO"; then :
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13356 $as_echo "yes" >&6; }
13357 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360 $as_echo "no" >&6; }
13361 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
13363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13364 conftest.$ac_objext conftest.beam conftest.$ac_ext
13369 ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
13372 ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
13378 # check if we support /dev/poll
13380 # Check whether --enable-devpoll was given.
13381 if test "${enable_devpoll+set}" = set; then :
13382 enableval=$enable_devpoll; want_devpoll="$enableval"
13387 case $want_devpoll in
13389 for ac_header in sys/devpoll.h devpoll.h
13391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
13392 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13393 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13394 cat >>confdefs.h <<_ACEOF
13395 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
13397 ISC_PLATFORM_HAVEDEVPOLL="#define ISC_PLATFORM_HAVEDEVPOLL 1"
13400 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
13408 ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
13414 # check if we need to #include sys/select.h explicitly
13416 case $ac_cv_header_unistd_h in
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unistd.h or sys/types.h defines fd_set" >&5
13419 $as_echo_n "checking if unistd.h or sys/types.h defines fd_set... " >&6; }
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13423 #include <sys/types.h> /* Ultrix */
13424 #include <unistd.h>
13428 fd_set read_set; return (0);
13433 if ac_fn_c_try_compile "$LINENO"; then :
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13435 $as_echo "yes" >&6; }
13436 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
13437 LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440 $as_echo "no" >&6; }
13441 case $ac_cv_header_sys_select_h in
13443 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
13444 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
13447 as_fn_error $? "need either working unistd.h or sys/select.h" "$LINENO" 5
13452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 case $ac_cv_header_sys_select_h in
13457 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
13458 LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
13461 as_fn_error $? "need either unistd.h or sys/select.h" "$LINENO" 5
13470 # Find the machine's endian flavor.
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13473 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13474 if ${ac_cv_c_bigendian+:} false; then :
13475 $as_echo_n "(cached) " >&6
13477 ac_cv_c_bigendian=unknown
13478 # See if we're dealing with a universal compiler.
13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h. */
13481 #ifndef __APPLE_CC__
13482 not a universal capable compiler
13487 if ac_fn_c_try_compile "$LINENO"; then :
13489 # Check for potential -arch flags. It is not universal unless
13490 # there are at least two -arch flags with different values.
13493 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13494 if test -n "$ac_prev"; then
13496 i?86 | x86_64 | ppc | ppc64)
13497 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13500 ac_cv_c_bigendian=universal
13506 elif test "x$ac_word" = "x-arch"; then
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512 if test $ac_cv_c_bigendian = unknown; then
13513 # See if sys/param.h defines the BYTE_ORDER macro.
13514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h. */
13516 #include <sys/types.h>
13517 #include <sys/param.h>
13522 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13523 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13525 bogus endian macros
13532 if ac_fn_c_try_compile "$LINENO"; then :
13533 # It does; now see whether it defined to BIG_ENDIAN or not.
13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h. */
13536 #include <sys/types.h>
13537 #include <sys/param.h>
13542 #if BYTE_ORDER != BIG_ENDIAN
13550 if ac_fn_c_try_compile "$LINENO"; then :
13551 ac_cv_c_bigendian=yes
13553 ac_cv_c_bigendian=no
13555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13559 if test $ac_cv_c_bigendian = unknown; then
13560 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13563 #include <limits.h>
13568 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13569 bogus endian macros
13576 if ac_fn_c_try_compile "$LINENO"; then :
13577 # It does; now see whether it defined to _BIG_ENDIAN or not.
13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13580 #include <limits.h>
13585 #ifndef _BIG_ENDIAN
13593 if ac_fn_c_try_compile "$LINENO"; then :
13594 ac_cv_c_bigendian=yes
13596 ac_cv_c_bigendian=no
13598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 if test $ac_cv_c_bigendian = unknown; then
13603 # Compile a test program.
13604 if test "$cross_compiling" = yes; then :
13605 # Try to guess by grepping values from an object file.
13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h. */
13608 short int ascii_mm[] =
13609 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13610 short int ascii_ii[] =
13611 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13612 int use_ascii (int i) {
13613 return ascii_mm[i] + ascii_ii[i];
13615 short int ebcdic_ii[] =
13616 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13617 short int ebcdic_mm[] =
13618 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13619 int use_ebcdic (int i) {
13620 return ebcdic_mm[i] + ebcdic_ii[i];
13627 return use_ascii (foo) == use_ebcdic (foo);
13632 if ac_fn_c_try_compile "$LINENO"; then :
13633 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13634 ac_cv_c_bigendian=yes
13636 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13637 if test "$ac_cv_c_bigendian" = unknown; then
13638 ac_cv_c_bigendian=no
13640 # finding both strings is unlikely to happen, but who knows?
13641 ac_cv_c_bigendian=unknown
13645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13649 $ac_includes_default
13654 /* Are we little or big endian? From Harbison&Steele. */
13658 char c[sizeof (long int)];
13661 return u.c[sizeof (long int) - 1] == 1;
13667 if ac_fn_c_try_run "$LINENO"; then :
13668 ac_cv_c_bigendian=no
13670 ac_cv_c_bigendian=yes
13672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13673 conftest.$ac_objext conftest.beam conftest.$ac_ext
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13679 $as_echo "$ac_cv_c_bigendian" >&6; }
13680 case $ac_cv_c_bigendian in #(
13682 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13688 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13692 as_fn_error $? "unknown endianness
13693 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13703 # Check whether --with-geoip was given.
13704 if test "${with_geoip+set}" = set; then :
13705 withval=$with_geoip; use_geoip="$withval"
13711 if test "$use_geoip" = "yes"
13713 for d in /usr /usr/local /opt/local
13715 if test -f $d/include/GeoIP.h
13723 case "$use_geoip" in
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
13726 $as_echo_n "checking for GeoIP support... " >&6; }
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13728 $as_echo "disabled" >&6; }
13731 if test -d "$use_geoip" -o -L "$use_geoip"
13733 CFLAGS="$CFLAGS -I$use_geoip/include"
13734 CPPFLAGS="$CPPFLAGS -I$use_geoip/include"
13735 LIBS="$LIBS -L$use_geoip/lib"
13737 netbsd*|openbsd*|solaris*)
13738 LIBS="$LIBS -Wl,-rpath=$use_geoip/lib"
13741 elif test "$use_geoip" = "yes"
13743 as_fn_error $? "GeoIP path not found" "$LINENO" 5
13745 as_fn_error $? "GeoIP path $use_geoip does not exist" "$LINENO" 5
13747 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
13748 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
13751 as_fn_error $? "GeoIP header file not found" "$LINENO" 5
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_open" >&5
13757 $as_echo_n "checking for library containing GeoIP_open... " >&6; }
13758 if ${ac_cv_search_GeoIP_open+:} false; then :
13759 $as_echo_n "(cached) " >&6
13761 ac_func_search_save_LIBS=$LIBS
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13765 /* Override any GCC internal prototype to avoid an error.
13766 Use char because int might match the return type of a GCC
13767 builtin and then its argument prototype would still apply. */
13771 char GeoIP_open ();
13775 return GeoIP_open ();
13780 for ac_lib in '' GeoIP; do
13781 if test -z "$ac_lib"; then
13782 ac_res="none required"
13785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13787 if ac_fn_c_try_link "$LINENO"; then :
13788 ac_cv_search_GeoIP_open=$ac_res
13790 rm -f core conftest.err conftest.$ac_objext \
13792 if ${ac_cv_search_GeoIP_open+:} false; then :
13796 if ${ac_cv_search_GeoIP_open+:} false; then :
13799 ac_cv_search_GeoIP_open=no
13801 rm conftest.$ac_ext
13802 LIBS=$ac_func_search_save_LIBS
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_open" >&5
13805 $as_echo "$ac_cv_search_GeoIP_open" >&6; }
13806 ac_res=$ac_cv_search_GeoIP_open
13807 if test "$ac_res" != no; then :
13808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13811 as_fn_error $? "GeoIP library not found" "$LINENO" 5
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5
13816 $as_echo_n "checking for library containing fabsf... " >&6; }
13817 if ${ac_cv_search_fabsf+:} false; then :
13818 $as_echo_n "(cached) " >&6
13820 ac_func_search_save_LIBS=$LIBS
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13824 /* Override any GCC internal prototype to avoid an error.
13825 Use char because int might match the return type of a GCC
13826 builtin and then its argument prototype would still apply. */
13839 for ac_lib in '' m; do
13840 if test -z "$ac_lib"; then
13841 ac_res="none required"
13844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13846 if ac_fn_c_try_link "$LINENO"; then :
13847 ac_cv_search_fabsf=$ac_res
13849 rm -f core conftest.err conftest.$ac_objext \
13851 if ${ac_cv_search_fabsf+:} false; then :
13855 if ${ac_cv_search_fabsf+:} false; then :
13858 ac_cv_search_fabsf=no
13860 rm conftest.$ac_ext
13861 LIBS=$ac_func_search_save_LIBS
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5
13864 $as_echo "$ac_cv_search_fabsf" >&6; }
13865 ac_res=$ac_cv_search_fabsf
13866 if test "$ac_res" != no; then :
13867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13870 as_fn_error $? "Math library not found" "$LINENO" 5
13875 $as_echo "#define HAVE_GEOIP 1" >>confdefs.h
13877 GEOIPLINKSRCS='${GEOIPLINKSRCS}'
13878 GEOIPLINKOBJS='${GEOIPLINKOBJS}'
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP support" >&5
13880 $as_echo_n "checking for GeoIP support... " >&6; }
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13882 $as_echo "yes" >&6; }
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP Country IPv6 support" >&5
13885 $as_echo_n "checking for GeoIP Country IPv6 support... " >&6; }
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13890 #include <netinet/in.h>
13896 struct in6_addr in6;
13897 GeoIP_country_name_by_ipnum_v6(NULL, in6);
13903 if ac_fn_c_try_compile "$LINENO"; then :
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13906 $as_echo "yes" >&6; }
13908 $as_echo "#define HAVE_GEOIP_V6 1" >>confdefs.h
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913 $as_echo "no" >&6; }
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP City IPv6 support" >&5
13919 $as_echo_n "checking for GeoIP City IPv6 support... " >&6; }
13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13924 #include <GeoIPCity.h>
13925 #include <netinet/in.h>
13931 struct in6_addr in6;
13932 int i = GEOIP_CITY_EDITION_REV0_V6;
13933 GeoIP_record_by_ipnum_v6(NULL, in6);
13939 if ac_fn_c_try_compile "$LINENO"; then :
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13942 $as_echo "yes" >&6; }
13944 $as_echo "#define HAVE_GEOIP_CITY_V6 1" >>confdefs.h
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13949 $as_echo "no" >&6; }
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
13959 $as_echo_n "checking for GSSAPI library... " >&6; }
13961 # Check whether --with-gssapi was given.
13962 if test "${with_gssapi+set}" = set; then :
13963 withval=$with_gssapi; use_gssapi="$withval"
13969 # gssapi is just the framework, we really require kerberos v5, so
13970 # look for those headers (the gssapi headers must be there, too)
13971 # The problem with this implementation is that it doesn't allow
13972 # for the specification of gssapi and krb5 headers in different locations,
13973 # which probably ought to be fixed although fixing might raise the issue of
13974 # trying to build with incompatible versions of gssapi and krb5.
13975 if test "$use_gssapi" = "yes"
13977 # first, deal with the obvious
13978 if test \( -f /usr/include/kerberosv5/krb5.h -o \
13979 -f /usr/include/krb5/krb5.h -o \
13980 -f /usr/include/krb5.h \) -a \
13981 \( -f /usr/include/gssapi.h -o \
13982 -f /usr/include/gssapi/gssapi.h \)
13986 krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
13989 if test -f $d/include/gssapi/gssapi_krb5.h -o \
13990 -f $d/include/krb5.h
13992 if test -f $d/include/gssapi/gssapi.h -o \
13993 -f $d/include/gssapi.h
14004 case "$use_gssapi" in
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14007 $as_echo "disabled" >&6; }
14011 as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
14015 $as_echo "looking in $use_gssapi/lib" >&6; }
14016 USE_GSSAPI='-DGSSAPI'
14017 saved_cppflags="$CPPFLAGS"
14018 CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
14019 for ac_header in gssapi.h gssapi/gssapi.h
14021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
14022 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14024 cat >>confdefs.h <<_ACEOF
14025 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
14027 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
14028 gssapi_hack="#include <$ac_header>"
14034 if test "$ISC_PLATFORM_GSSAPIHEADER" = ""; then
14035 as_fn_error $? "gssapi.h not found" "$LINENO" 5
14038 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
14040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
14041 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14043 cat >>confdefs.h <<_ACEOF
14044 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
14046 ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
14047 gssapi_krb5_hack="#include <$ac_header>"
14053 for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
14055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
14056 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14057 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14058 cat >>confdefs.h <<_ACEOF
14059 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
14061 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
14062 krb5_hack="#include <$ac_header>"
14068 if test "$ISC_PLATFORM_KRB5HEADER" = ""; then
14069 as_fn_error $? "krb5.h not found" "$LINENO" 5
14073 # XXXDCL This probably doesn't work right on all systems.
14074 # It will need to be worked on as problems become evident.
14076 # Essentially the problems here relate to two different
14077 # areas. The first area is building with either KTH
14078 # or MIT Kerberos, particularly when both are present on
14079 # the machine. The other is static versus dynamic linking.
14081 # On the KTH vs MIT issue, Both have libkrb5 that can mess
14082 # up the works if one implementation ends up trying to
14083 # use the other's krb. This is unfortunately a situation
14084 # that very easily arises.
14086 # Dynamic linking when the dependency information is built
14087 # into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
14088 # all such problems go away, but when that setup is not
14089 # present, because either the dynamic libraries lack
14090 # dependencies or static linking is being done, then the
14091 # problems start to show up.
14095 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
14096 "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
14098 "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
14099 "-lgssapi -lkrb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \
14100 "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \
14101 "-lgssapi -lkrb5 -lhx509 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \
14104 # Note that this does not include $saved_libs, because
14105 # on FreeBSD machines this configure script has added
14106 # -L/usr/local/lib to LIBS, which can make the
14107 # -lgssapi_krb5 test succeed with shared libraries even
14108 # when you are trying to build with KTH in /usr/lib.
14109 if test "$use_gssapi" = "/usr"
14113 LIBS="-L$use_gssapi/lib $TRY_LIBS"
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
14116 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h. */
14120 #include <sys/types.h>
14128 gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
14129 #if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
14130 gsskrb5_register_acceptor_identity(NULL);
14136 if ac_fn_c_try_link "$LINENO"; then :
14141 rm -f core conftest.err conftest.$ac_objext \
14142 conftest$ac_exeext conftest.$ac_ext
14143 case $gssapi_linked in
14144 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14145 $as_echo "yes" >&6; }; break ;;
14146 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14147 $as_echo "no" >&6; } ;;
14151 CPPFLAGS="$saved_cppflags"
14153 case $gssapi_linked in
14154 no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
14158 # XXXDCL Major kludge. Tries to cope with KTH in /usr/lib
14159 # but MIT in /usr/local/lib and trying to build with KTH.
14160 # /usr/local/lib can end up earlier on the link lines.
14161 # Like most kludges, this one is not only inelegant it
14162 # is also likely to be the wrong thing to do at least as
14163 # many times as it is the right thing. Something better
14164 # needs to be done.
14166 if test "$use_gssapi" = "/usr" -a \
14167 -f /usr/local/lib/libkrb5.a; then
14171 case "$FIX_KTH_VS_MIT" in
14173 case "$enable_static_linking" in
14174 yes) gssapi_lib_suffix=".a" ;;
14175 *) gssapi_lib_suffix=".so" ;;
14178 for lib in $LIBS; do
14183 new_lib=`echo $lib |
14184 sed -e s
%^
-l%$use_gssapi/lib
/lib
% \
14185 -e s
%$
%$gssapi_lib_suffix%`
14186 NEW_LIBS="$NEW_LIBS $new_lib"
14189 as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
14197 DST_GSSAPI_INC="-I$use_gssapi/include"
14198 DNS_GSSAPI_LIBS="$LIBS"
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
14201 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
14214 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS $DNS_CRYPTO_LIBS"
14217 # Applications linking with libdns also need to link with these libraries.
14223 # was --with-randomdev specified?
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
14226 $as_echo_n "checking for random device... " >&6; }
14228 # Check whether --with-randomdev was given.
14229 if test "${with_randomdev+set}" = set; then :
14230 withval=$with_randomdev; use_randomdev="$withval"
14232 use_randomdev="unspec"
14236 case "$use_randomdev" in
14238 case "$cross_compiling" in
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5
14241 $as_echo "unspecified" >&6; }
14242 as_fn_error $? " need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5
14246 devrandom=/dev/arandom
14249 devrandom=/dev/urandom
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5
14253 $as_echo "$devrandom" >&6; }
14254 as_ac_File=`$as_echo "ac_cv_file_$devrandom" |
$as_tr_sh`
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $devrandom" >&5
14256 $as_echo_n "checking for $devrandom... " >&6; }
14257 if eval \${$as_ac_File+:} false; then :
14258 $as_echo_n "(cached) " >&6
14260 test "$cross_compiling" = yes &&
14261 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14262 if test -r "$devrandom"; then
14263 eval "$as_ac_File=yes"
14265 eval "$as_ac_File=no"
14268 eval ac_res=\$$as_ac_File
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14270 $as_echo "$ac_res" >&6; }
14271 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
14272 cat >>confdefs.h <<_ACEOF
14273 #define PATH_RANDOMDEV "$devrandom"
14281 as_fn_error $? "--with-randomdev must specify a path" "$LINENO" 5
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14285 $as_echo "disabled" >&6; }
14288 cat >>confdefs.h <<_ACEOF
14289 #define PATH_RANDOMDEV "$use_randomdev"
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using \"$use_randomdev\"" >&5
14293 $as_echo "using \"$use_randomdev\"" >&6; }
14298 # Only check dsa signature generation on these platforms when performing
14302 if grep "#define PATH_RANDOMDEV " confdefs.h > /dev/null
14305 *darwin*|*freebsd*)
14313 # Do we have arc4random(), etc ? arc4random_addrandom() has been removed
14314 # from OpenBSD 5.5 onwards.
14316 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
14317 if test "x$ac_cv_func_arc4random" = xyes; then :
14318 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
14322 ac_fn_c_check_func "$LINENO" "arc4random_addrandom" "ac_cv_func_arc4random_addrandom"
14323 if test "x$ac_cv_func_arc4random_addrandom" = xyes; then :
14324 $as_echo "#define HAVE_ARC4RANDOM_ADDRANDOM 1" >>confdefs.h
14330 # Begin pthreads checking.
14332 # First, decide whether to use multithreading or not.
14334 # Enable multithreading by default on systems where it is known
14335 # to work well, and where debugging of multithreaded programs
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with thread support" >&5
14340 $as_echo_n "checking whether to build with thread support... " >&6; }
14344 use_threads=true ;;
14346 # Thread signals are broken on Solaris 2.6; they are sometimes
14347 # delivered to the wrong thread.
14348 use_threads=false ;;
14350 use_threads=true ;;
14352 use_threads=true ;;
14354 use_threads=false ;;
14356 use_threads=true ;;
14358 use_threads=true ;;
14359 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
14361 use_threads=false ;;
14362 *-*-sysv*OpenUNIX*)
14364 use_threads=true ;;
14366 # NetBSD earlier than NetBSD 5.0 has poor pthreads.
14367 # Don't use it by default.
14368 use_threads=false ;;
14370 use_threads=true ;;
14372 # OpenBSD users have reported that named dumps core on
14373 # startup when built with threads.
14374 use_threads=false ;;
14375 *-freebsd[1234567].*)
14376 # Threads are broken at least up to FreeBSD 4.11.
14377 # FreeBSD 5, 6 and 7 we have never officially supported threads
14379 use_threads=false ;;
14381 use_threads=true ;;
14383 # Thread signals do not work reliably on some versions of BSD/OS.
14384 use_threads=false ;;
14386 use_threads=true ;;
14388 use_threads=true ;;
14389 *-darwin[123456789].*)
14390 use_threads=false ;;
14392 use_threads=true ;;
14394 use_threads=true ;;
14397 # Check whether --enable-threads was given.
14398 if test "${enable_threads+set}" = set; then :
14399 enableval=$enable_threads;
14402 case "$enable_threads" in
14410 # Use system-dependent default
14413 as_fn_error $? "--enable-threads takes yes or no" "$LINENO" 5
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14420 $as_echo "yes" >&6; }
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423 $as_echo "no" >&6; }
14429 # Search for / configure pthreads in a system-dependent fashion.
14433 # We don't want to set -lpthread as that break
14434 # the ability to choose threads library at final
14435 # link time and is not valid for all architectures.
14438 if test "X$GCC" = "Xyes"; then
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pthread support" >&5
14442 $as_echo_n "checking for gcc -pthread support... " >&6; };
14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14445 #include <pthread.h>
14449 printf("%x\n", pthread_create);
14454 if ac_fn_c_try_link "$LINENO"; then :
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14457 $as_echo "yes" >&6; }
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14460 $as_echo "no" >&6; }
14462 rm -f core conftest.err conftest.$ac_objext \
14463 conftest$ac_exeext conftest.$ac_ext
14466 if test "X$PTHREAD" != "Xyes"; then
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14468 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14469 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14470 $as_echo_n "(cached) " >&6
14472 ac_check_lib_save_LIBS=$LIBS
14473 LIBS="-lpthread $LIBS"
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14477 /* Override any GCC internal prototype to avoid an error.
14478 Use char because int might match the return type of a GCC
14479 builtin and then its argument prototype would still apply. */
14483 char pthread_create ();
14487 return pthread_create ();
14492 if ac_fn_c_try_link "$LINENO"; then :
14493 ac_cv_lib_pthread_pthread_create=yes
14495 ac_cv_lib_pthread_pthread_create=no
14497 rm -f core conftest.err conftest.$ac_objext \
14498 conftest$ac_exeext conftest.$ac_ext
14499 LIBS=$ac_check_lib_save_LIBS
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14502 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14503 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14504 cat >>confdefs.h <<_ACEOF
14505 #define HAVE_LIBPTHREAD 1
14508 LIBS="-lpthread $LIBS"
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread_create in -lthr" >&5
14512 $as_echo_n "checking for thread_create in -lthr... " >&6; }
14513 if ${ac_cv_lib_thr_thread_create+:} false; then :
14514 $as_echo_n "(cached) " >&6
14516 ac_check_lib_save_LIBS=$LIBS
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14521 /* Override any GCC internal prototype to avoid an error.
14522 Use char because int might match the return type of a GCC
14523 builtin and then its argument prototype would still apply. */
14527 char thread_create ();
14531 return thread_create ();
14536 if ac_fn_c_try_link "$LINENO"; then :
14537 ac_cv_lib_thr_thread_create=yes
14539 ac_cv_lib_thr_thread_create=no
14541 rm -f core conftest.err conftest.$ac_objext \
14542 conftest$ac_exeext conftest.$ac_ext
14543 LIBS=$ac_check_lib_save_LIBS
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thr_thread_create" >&5
14546 $as_echo "$ac_cv_lib_thr_thread_create" >&6; }
14547 if test "x$ac_cv_lib_thr_thread_create" = xyes; then :
14548 cat >>confdefs.h <<_ACEOF
14549 #define HAVE_LIBTHR 1
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
14556 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
14557 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
14558 $as_echo_n "(cached) " >&6
14560 ac_check_lib_save_LIBS=$LIBS
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14565 /* Override any GCC internal prototype to avoid an error.
14566 Use char because int might match the return type of a GCC
14567 builtin and then its argument prototype would still apply. */
14571 char pthread_create ();
14575 return pthread_create ();
14580 if ac_fn_c_try_link "$LINENO"; then :
14581 ac_cv_lib_c_r_pthread_create=yes
14583 ac_cv_lib_c_r_pthread_create=no
14585 rm -f core conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext conftest.$ac_ext
14587 LIBS=$ac_check_lib_save_LIBS
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
14590 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
14591 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
14592 cat >>confdefs.h <<_ACEOF
14593 #define HAVE_LIBC_R 1
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
14600 $as_echo_n "checking for pthread_create in -lc... " >&6; }
14601 if ${ac_cv_lib_c_pthread_create+:} false; then :
14602 $as_echo_n "(cached) " >&6
14604 ac_check_lib_save_LIBS=$LIBS
14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14609 /* Override any GCC internal prototype to avoid an error.
14610 Use char because int might match the return type of a GCC
14611 builtin and then its argument prototype would still apply. */
14615 char pthread_create ();
14619 return pthread_create ();
14624 if ac_fn_c_try_link "$LINENO"; then :
14625 ac_cv_lib_c_pthread_create=yes
14627 ac_cv_lib_c_pthread_create=no
14629 rm -f core conftest.err conftest.$ac_objext \
14630 conftest$ac_exeext conftest.$ac_ext
14631 LIBS=$ac_check_lib_save_LIBS
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
14634 $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
14635 if test "x$ac_cv_lib_c_pthread_create" = xyes; then :
14636 cat >>confdefs.h <<_ACEOF
14637 #define HAVE_LIBC 1
14643 as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14656 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14657 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14658 $as_echo_n "(cached) " >&6
14660 ac_check_lib_save_LIBS=$LIBS
14661 LIBS="-lpthread $LIBS"
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14665 /* Override any GCC internal prototype to avoid an error.
14666 Use char because int might match the return type of a GCC
14667 builtin and then its argument prototype would still apply. */
14671 char pthread_create ();
14675 return pthread_create ();
14680 if ac_fn_c_try_link "$LINENO"; then :
14681 ac_cv_lib_pthread_pthread_create=yes
14683 ac_cv_lib_pthread_pthread_create=no
14685 rm -f core conftest.err conftest.$ac_objext \
14686 conftest$ac_exeext conftest.$ac_ext
14687 LIBS=$ac_check_lib_save_LIBS
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14690 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14691 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14692 cat >>confdefs.h <<_ACEOF
14693 #define HAVE_LIBPTHREAD 1
14696 LIBS="-lpthread $LIBS"
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create in -lpthread" >&5
14700 $as_echo_n "checking for __pthread_create in -lpthread... " >&6; }
14701 if ${ac_cv_lib_pthread___pthread_create+:} false; then :
14702 $as_echo_n "(cached) " >&6
14704 ac_check_lib_save_LIBS=$LIBS
14705 LIBS="-lpthread $LIBS"
14706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h. */
14709 /* Override any GCC internal prototype to avoid an error.
14710 Use char because int might match the return type of a GCC
14711 builtin and then its argument prototype would still apply. */
14715 char __pthread_create ();
14719 return __pthread_create ();
14724 if ac_fn_c_try_link "$LINENO"; then :
14725 ac_cv_lib_pthread___pthread_create=yes
14727 ac_cv_lib_pthread___pthread_create=no
14729 rm -f core conftest.err conftest.$ac_objext \
14730 conftest$ac_exeext conftest.$ac_ext
14731 LIBS=$ac_check_lib_save_LIBS
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create" >&5
14734 $as_echo "$ac_cv_lib_pthread___pthread_create" >&6; }
14735 if test "x$ac_cv_lib_pthread___pthread_create" = xyes; then :
14736 cat >>confdefs.h <<_ACEOF
14737 #define HAVE_LIBPTHREAD 1
14740 LIBS="-lpthread $LIBS"
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
14744 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
14745 if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
14746 $as_echo_n "(cached) " >&6
14748 ac_check_lib_save_LIBS=$LIBS
14749 LIBS="-lpthread $LIBS"
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14753 /* Override any GCC internal prototype to avoid an error.
14754 Use char because int might match the return type of a GCC
14755 builtin and then its argument prototype would still apply. */
14759 char __pthread_create_system ();
14763 return __pthread_create_system ();
14768 if ac_fn_c_try_link "$LINENO"; then :
14769 ac_cv_lib_pthread___pthread_create_system=yes
14771 ac_cv_lib_pthread___pthread_create_system=no
14773 rm -f core conftest.err conftest.$ac_objext \
14774 conftest$ac_exeext conftest.$ac_ext
14775 LIBS=$ac_check_lib_save_LIBS
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14778 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
14779 if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
14780 cat >>confdefs.h <<_ACEOF
14781 #define HAVE_LIBPTHREAD 1
14784 LIBS="-lpthread $LIBS"
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
14788 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
14789 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
14790 $as_echo_n "(cached) " >&6
14792 ac_check_lib_save_LIBS=$LIBS
14794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795 /* end confdefs.h. */
14797 /* Override any GCC internal prototype to avoid an error.
14798 Use char because int might match the return type of a GCC
14799 builtin and then its argument prototype would still apply. */
14803 char pthread_create ();
14807 return pthread_create ();
14812 if ac_fn_c_try_link "$LINENO"; then :
14813 ac_cv_lib_c_r_pthread_create=yes
14815 ac_cv_lib_c_r_pthread_create=no
14817 rm -f core conftest.err conftest.$ac_objext \
14818 conftest$ac_exeext conftest.$ac_ext
14819 LIBS=$ac_check_lib_save_LIBS
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
14822 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
14823 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
14824 cat >>confdefs.h <<_ACEOF
14825 #define HAVE_LIBC_R 1
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
14832 $as_echo_n "checking for pthread_create in -lc... " >&6; }
14833 if ${ac_cv_lib_c_pthread_create+:} false; then :
14834 $as_echo_n "(cached) " >&6
14836 ac_check_lib_save_LIBS=$LIBS
14838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14839 /* end confdefs.h. */
14841 /* Override any GCC internal prototype to avoid an error.
14842 Use char because int might match the return type of a GCC
14843 builtin and then its argument prototype would still apply. */
14847 char pthread_create ();
14851 return pthread_create ();
14856 if ac_fn_c_try_link "$LINENO"; then :
14857 ac_cv_lib_c_pthread_create=yes
14859 ac_cv_lib_c_pthread_create=no
14861 rm -f core conftest.err conftest.$ac_objext \
14862 conftest$ac_exeext conftest.$ac_ext
14863 LIBS=$ac_check_lib_save_LIBS
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
14866 $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
14867 if test "x$ac_cv_lib_c_pthread_create" = xyes; then :
14868 cat >>confdefs.h <<_ACEOF
14869 #define HAVE_LIBC 1
14875 as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5
14892 if test "X$GCC" = "Xyes"; then
14896 CCOPT="$CCOPT -pthread"
14897 CCNOOPT="$CCNOOPT -pthread"
14898 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
14902 CCOPT="$CCOPT -pthread"
14903 CCNOOPT="$CCNOOPT -pthread"
14906 LIBS="$LIBS -lthread"
14909 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
14916 CCOPT="$CCOPT -pthread"
14917 CCNOOPT="$CCNOOPT -pthread"
14922 CCNOOPT="$CCNOOPT -mt"
14925 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
14927 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
14929 CCOPT="$CCOPT -Kthread"
14930 CCNOOPT="$CCNOOPT -Kthread"
14932 *-*-sysv*OpenUNIX*)
14934 CCOPT="$CCOPT -Kpthread"
14935 CCNOOPT="$CCNOOPT -Kpthread"
14939 ALWAYS_DEFINES="-D_REENTRANT"
14940 ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
14941 THREADOPTOBJS='${THREADOPTOBJS}'
14942 THREADOPTSRCS='${THREADOPTSRCS}'
14943 thread_dir=pthreads
14945 # We'd like to use sigwait() too
14947 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
14948 if test "x$ac_cv_func_sigwait" = xyes; then :
14949 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
14953 $as_echo_n "checking for sigwait in -lc... " >&6; }
14954 if ${ac_cv_lib_c_sigwait+:} false; then :
14955 $as_echo_n "(cached) " >&6
14957 ac_check_lib_save_LIBS=$LIBS
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14962 /* Override any GCC internal prototype to avoid an error.
14963 Use char because int might match the return type of a GCC
14964 builtin and then its argument prototype would still apply. */
14977 if ac_fn_c_try_link "$LINENO"; then :
14978 ac_cv_lib_c_sigwait=yes
14980 ac_cv_lib_c_sigwait=no
14982 rm -f core conftest.err conftest.$ac_objext \
14983 conftest$ac_exeext conftest.$ac_ext
14984 LIBS=$ac_check_lib_save_LIBS
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
14987 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
14988 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
14989 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
14993 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
14994 if ${ac_cv_lib_pthread_sigwait+:} false; then :
14995 $as_echo_n "(cached) " >&6
14997 ac_check_lib_save_LIBS=$LIBS
14998 LIBS="-lpthread $LIBS"
14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15002 /* Override any GCC internal prototype to avoid an error.
15003 Use char because int might match the return type of a GCC
15004 builtin and then its argument prototype would still apply. */
15017 if ac_fn_c_try_link "$LINENO"; then :
15018 ac_cv_lib_pthread_sigwait=yes
15020 ac_cv_lib_pthread_sigwait=no
15022 rm -f core conftest.err conftest.$ac_objext \
15023 conftest$ac_exeext conftest.$ac_ext
15024 LIBS=$ac_check_lib_save_LIBS
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
15027 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
15028 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
15029 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
15033 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
15034 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
15035 $as_echo_n "(cached) " >&6
15037 ac_check_lib_save_LIBS=$LIBS
15038 LIBS="-lpthread $LIBS"
15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040 /* end confdefs.h. */
15042 /* Override any GCC internal prototype to avoid an error.
15043 Use char because int might match the return type of a GCC
15044 builtin and then its argument prototype would still apply. */
15052 return _Psigwait ();
15057 if ac_fn_c_try_link "$LINENO"; then :
15058 ac_cv_lib_pthread__Psigwait=yes
15060 ac_cv_lib_pthread__Psigwait=no
15062 rm -f core conftest.err conftest.$ac_objext \
15063 conftest$ac_exeext conftest.$ac_ext
15064 LIBS=$ac_check_lib_save_LIBS
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
15067 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
15068 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
15069 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
15080 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
15081 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
15082 $as_echo "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h
15087 ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
15088 if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes; then :
15089 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
15095 # Check whether --with-locktype was given.
15096 if test "${with_locktype+set}" = set; then :
15097 withval=$with_locktype; locktype="$withval"
15099 locktype="adaptive"
15103 case "$locktype" in
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
15106 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
15108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15109 /* end confdefs.h. */
15111 #define _GNU_SOURCE
15112 #include <pthread.h>
15118 return (PTHREAD_MUTEX_ADAPTIVE_NP);
15124 if ac_fn_c_try_compile "$LINENO"; then :
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
15126 $as_echo "using adaptive lock type" >&6; }
15128 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
15132 $as_echo "using standard lock type" >&6; }
15134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
15138 $as_echo "using standard lock type" >&6; }
15141 as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
15145 for ac_header in sched.h
15147 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15148 if test "x$ac_cv_header_sched_h" = xyes; then :
15149 cat >>confdefs.h <<_ACEOF
15150 #define HAVE_SCHED_H 1
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
15161 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
15162 if ${ac_cv_lib_rt_sched_yield+:} false; then :
15163 $as_echo_n "(cached) " >&6
15165 ac_check_lib_save_LIBS=$LIBS
15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h. */
15170 /* Override any GCC internal prototype to avoid an error.
15171 Use char because int might match the return type of a GCC
15172 builtin and then its argument prototype would still apply. */
15176 char sched_yield ();
15180 return sched_yield ();
15185 if ac_fn_c_try_link "$LINENO"; then :
15186 ac_cv_lib_rt_sched_yield=yes
15188 ac_cv_lib_rt_sched_yield=no
15190 rm -f core conftest.err conftest.$ac_objext \
15191 conftest$ac_exeext conftest.$ac_ext
15192 LIBS=$ac_check_lib_save_LIBS
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
15195 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
15196 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
15197 cat >>confdefs.h <<_ACEOF
15198 #define HAVE_LIBRT 1
15208 for ac_func in sched_yield pthread_yield pthread_yield_np
15210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15212 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15213 cat >>confdefs.h <<_ACEOF
15214 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15222 # Additional OS-specific issues related to pthreads and sigwait.
15226 # One more place to look for sigwait.
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
15230 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
15231 if ${ac_cv_lib_c_r_sigwait+:} false; then :
15232 $as_echo_n "(cached) " >&6
15234 ac_check_lib_save_LIBS=$LIBS
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15239 /* Override any GCC internal prototype to avoid an error.
15240 Use char because int might match the return type of a GCC
15241 builtin and then its argument prototype would still apply. */
15254 if ac_fn_c_try_link "$LINENO"; then :
15255 ac_cv_lib_c_r_sigwait=yes
15257 ac_cv_lib_c_r_sigwait=no
15259 rm -f core conftest.err conftest.$ac_objext \
15260 conftest$ac_exeext conftest.$ac_ext
15261 LIBS=$ac_check_lib_save_LIBS
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
15264 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
15265 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
15266 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
15271 *-freebsd5.[012]|*-freebsd5.[012].*);;
15272 *-freebsd5.[3456789]|*-freebsd5.[3456789].*)
15273 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
15277 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
15283 # BSDI 3.0 through 4.0.1 needs pthread_init() to be
15284 # called before certain pthreads calls. This is deprecated
15287 *-bsdi3.*|*-bsdi4.0*)
15288 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
15292 # LinuxThreads requires some changes to the way we
15293 # deal with signals.
15296 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
15300 # Ensure the right sigwait() semantics on Solaris and make
15301 # sure we call pthread_setconcurrency.
15304 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
15306 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
15307 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
15308 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
15314 # UnixWare does things its own way.
15316 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
15317 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
15323 # Look for sysconf to allow detection of the number of processors.
15325 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
15326 if test "x$ac_cv_func_sysconf" = xyes; then :
15327 $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
15333 ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
15334 thread_dir=nothreads
15344 ISC_THREAD_DIR=$thread_dir
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
15348 $as_echo_n "checking for libtool... " >&6; }
15350 # Check whether --with-libtool was given.
15351 if test "${with_libtool+set}" = set; then :
15352 withval=$with_libtool; use_libtool="$withval"
15358 case $use_libtool in
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15361 $as_echo "yes" >&6; }
15365 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
15366 LIBTOOL_MODE_COMPILE='--mode=compile --tag=CC'
15367 LIBTOOL_MODE_INSTALL='--mode=install --tag=CC'
15368 LIBTOOL_MODE_LINK='--mode=link --tag=CC'
15369 INSTALL_LIBRARY='${INSTALL_PROGRAM}'
15371 *) LIBTOOL_ALLOW_UNDEFINED= ;;
15374 *-ibm-aix*) LIBTOOL_IN_MAIN="-Wl,-bI:T_testlist.imp" ;;
15375 *) LIBTOOL_IN_MAIN= ;;
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15380 $as_echo "no" >&6; }
15386 LIBTOOL_MODE_COMPILE=
15387 LIBTOOL_MODE_INSTALL=
15389 LIBTOOL_ALLOW_UNDEFINED=
15391 INSTALL_LIBRARY='${INSTALL_DATA}'
15397 # was --enable-native-pkcs11 specified?
15398 # (note it implies both --without-openssl and --with-pkcs11)
15400 # Check whether --enable-native-pkcs11 was given.
15401 if test "${enable_native_pkcs11+set}" = set; then :
15402 enableval=$enable_native_pkcs11; want_native_pkcs11="$enableval"
15404 want_native_pkcs11="no"
15409 # was --with-openssl specified?
15412 # Check whether --with-openssl was given.
15413 if test "${with_openssl+set}" = set; then :
15414 withval=$with_openssl; use_openssl="$withval"
15421 # was --with-pkcs11 specified?
15424 # Check whether --with-pkcs11 was given.
15425 if test "${with_pkcs11+set}" = set; then :
15426 withval=$with_pkcs11; use_pkcs11="$withval"
15433 # were --with-ecdsa, --with-gost, --with-aes specified
15436 # Check whether --with-ecdsa was given.
15437 if test "${with_ecdsa+set}" = set; then :
15438 withval=$with_ecdsa; with_ecdsa="$withval"
15444 # Check whether --with-gost was given.
15445 if test "${with_gost+set}" = set; then :
15446 withval=$with_gost; with_gost="$withval"
15452 # Check whether --with-aes was given.
15453 if test "${with_aes+set}" = set; then :
15454 withval=$with_aes; with_aes="$withval"
15456 with_aes="checksit"
15461 # was --enable-openssl-hash specified?
15463 # Check whether --enable-openssl-hash was given.
15464 if test "${enable_openssl_hash+set}" = set; then :
15465 enableval=$enable_openssl_hash; want_openssl_hash="$enableval"
15467 want_openssl_hash="checksit"
15472 # Enable Source Identity Token support
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Source Identity Token support" >&5
15475 $as_echo_n "checking for Source Identity Token support... " >&6; }
15476 # Check whether --enable-sit was given.
15477 if test "${enable_sit+set}" = set; then :
15478 enableval=$enable_sit; enable_sit="$enableval"
15484 ISC_PLATFORM_USESIT="#undef ISC_PLATFORM_USESIT"
15486 case "$enable_sit" in
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15489 $as_echo "yes" >&6; }
15490 ISC_PLATFORM_USESIT="#define ISC_PLATFORM_USESIT 1"
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15495 $as_echo "no" >&6; }
15498 as_fn_error $? "\"enable-sit requires yes or no\"" "$LINENO" 5
15505 # Source Identity Token algorithm choice
15508 # Check whether --with-sit-alg was given.
15509 if test "${with_sit_alg+set}" = set; then :
15510 withval=$with_sit_alg; with_sit_alg="$withval"
15512 with_sit_alg="auto"
15516 if test "$enable_sit" = "yes"
15518 case $with_sit_alg in
15520 with_sit_alg="sha1"
15523 with_sit_alg="sha256"
15526 if test "$with_aes" != "no"
15533 if test "$with_aes" != "no"
15540 if test "with_aes" = "checksit"
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library" >&5
15546 $as_echo_n "checking for OpenSSL library... " >&6; }
15548 openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw"
15549 if test "$use_openssl" = "auto"
15551 if test "$want_native_pkcs11" = "yes"
15553 use_openssl="native_pkcs11"
15555 for d in $openssldirs
15557 if test -f $d/include/openssl/opensslv.h
15568 case "$with_gost" in
15574 $as_echo "#define PREFER_GOSTASN1 1" >>confdefs.h
15582 as_fn_error $? "unknown GOST private key encoding" "$LINENO" 5
15586 case "$use_openssl" in
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled because of native PKCS11" >&5
15589 $as_echo "disabled because of native PKCS11" >&6; }
15591 CRYPTO="-DPKCS11CRYPTO"
15592 OPENSSLGOSTLINKOBJS=""
15593 OPENSSLGOSTLINKSRS=""
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15599 $as_echo "no" >&6; }
15602 OPENSSLGOSTLINKOBJS=""
15603 OPENSSLGOSTLINKSRS=""
15610 OPENSSLGOSTLINKOBJS=""
15611 OPENSSLGOSTLINKSRS=""
15614 as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path
15615 If you don't want OpenSSL, use --without-openssl" "$LINENO" 5
15618 if test "$want_native_pkcs11" = "yes"
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15622 as_fn_error $? "OpenSSL and native PKCS11 cannot be used together." "$LINENO" 5
15624 if test "$use_openssl" = "yes"
15626 # User did not specify a path - guess it
15627 for d in $openssldirs
15629 if test -f $d/include/openssl/opensslv.h
15635 if test "$use_openssl" = "yes"
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15638 $as_echo "not found" >&6; }
15639 as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" "$LINENO" 5
15641 elif ! test -f "$use_openssl"/include/openssl/opensslv.h
15643 as_fn_error $? "\"$use_openssl/include/openssl/opensslv.h\" not found" "$LINENO" 5
15646 if test "$use_openssl" = "/usr"
15649 DST_OPENSSL_LIBS="-lcrypto"
15651 DST_OPENSSL_INC="-I$use_openssl/include"
15654 DST_OPENSSL_LIBS="-L$use_openssl/lib -R$use_openssl/lib -lcrypto"
15657 DST_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lcrypto"
15661 # Apple's ld seaches for serially for dynamic
15662 # then static libraries. This means you can't
15663 # use -L to override dynamic system libraries
15664 # with static ones when linking. Instead
15665 # we specify a absolute path.
15667 if test -f "$use_openssl/lib/libcrypto.dylib"
15669 DST_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
15671 DST_OPENSSL_LIBS="$use_openssl/lib/libcrypto.a"
15675 DST_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenSSL from $use_openssl/lib and $use_openssl/include" >&5
15680 $as_echo "using OpenSSL from $use_openssl/lib and $use_openssl/include" >&6; }
15683 saved_cflags="$CFLAGS"
15685 CFLAGS="$CFLAGS $DST_OPENSSL_INC"
15686 LIBS="$LIBS $DST_OPENSSL_LIBS"
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL works" >&5
15688 $as_echo_n "checking whether linking with OpenSSL works... " >&6; }
15689 if test "$cross_compiling" = yes; then :
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming it does work on target platform" >&5
15691 $as_echo "assuming it does work on target platform" >&6; }
15693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694 /* end confdefs.h. */
15696 #include <openssl/err.h>
15703 if ac_fn_c_try_run "$LINENO"; then :
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15705 $as_echo "yes" >&6; }
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15708 $as_echo "no" >&6; }
15709 as_fn_error $? "Could not run test program using OpenSSL from
15710 $use_openssl/lib and $use_openssl/include.
15711 Please check the argument to --with-openssl and your
15712 shared library configuration (e.g., LD_LIBRARY_PATH)." "$LINENO" 5
15714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15715 conftest.$ac_objext conftest.beam conftest.$ac_ext
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL requires -ldl" >&5
15720 $as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; }
15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h. */
15724 #include <openssl/err.h>
15728 DSO_METHOD_dlfcn();
15733 if ac_fn_c_try_link "$LINENO"; then :
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15735 $as_echo "no" >&6; }
15738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739 /* end confdefs.h. */
15741 #include <openssl/err.h>
15746 DSO_METHOD_dlfcn();
15751 if ac_fn_c_try_link "$LINENO"; then :
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15753 $as_echo "yes" >&6; }
15754 DST_OPENSSL_LIBS="$DST_OPENSSL_LIBS -ldl"
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
15758 $as_echo "unknown" >&6; }
15759 as_fn_error $? "OpenSSL has unsupported dynamic loading" "$LINENO" 5
15761 rm -f core conftest.err conftest.$ac_objext \
15762 conftest$ac_exeext conftest.$ac_ext
15765 rm -f core conftest.err conftest.$ac_objext \
15766 conftest$ac_exeext conftest.$ac_ext
15768 # Check whether --enable-openssl-version-check was given.
15769 if test "${enable_openssl_version_check+set}" = set; then :
15770 enableval=$enable_openssl_version_check;
15773 case "$enable_openssl_version_check" in
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
15776 $as_echo_n "checking OpenSSL library version... " >&6; }
15777 if test "$cross_compiling" = yes; then :
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform has compatible version" >&5
15779 $as_echo "assuming target platform has compatible version" >&6; }
15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h. */
15785 #include <openssl/opensslv.h>
15787 if ((OPENSSL_VERSION_NUMBER >= 0x009070cfL &&
15788 OPENSSL_VERSION_NUMBER < 0x00908000L) ||
15789 OPENSSL_VERSION_NUMBER >= 0x0090804fL)
15791 printf("\n\nFound OPENSSL_VERSION_NUMBER %#010x\n",
15792 OPENSSL_VERSION_NUMBER);
15793 printf("Require OPENSSL_VERSION_NUMBER 0x009070cf or greater (0.9.7l)\n"
15794 "Require OPENSSL_VERSION_NUMBER 0x0090804f or greater (0.9.8d)\n\n");
15799 if ac_fn_c_try_run "$LINENO"; then :
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15801 $as_echo "ok" >&6; }
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not compatible" >&5
15804 $as_echo "not compatible" >&6; }
15805 OPENSSL_WARNING=yes
15808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15809 conftest.$ac_objext conftest.beam conftest.$ac_ext
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipped OpenSSL version check" >&5
15815 $as_echo "Skipped OpenSSL version check" >&6; }
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL DSA support" >&5
15820 $as_echo_n "checking for OpenSSL DSA support... " >&6; }
15821 if test -f $use_openssl/include/openssl/dsa.h
15823 $as_echo "#define HAVE_OPENSSL_DSA 1" >>confdefs.h
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15826 $as_echo "yes" >&6; }
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15829 $as_echo "no" >&6; }
15832 for ac_func in EVP_sha256 EVP_sha384 EVP_sha512
15834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15835 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15836 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15837 cat >>confdefs.h <<_ACEOF
15838 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ECDSA support" >&5
15846 $as_echo_n "checking for OpenSSL ECDSA support... " >&6; }
15848 if test "$cross_compiling" = yes; then :
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-ecdsa" >&5
15850 $as_echo "using --with-ecdsa" >&6; }
15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h. */
15855 #include <openssl/ecdsa.h>
15856 #include <openssl/objects.h>
15858 EC_KEY *ec256, *ec384;
15860 #if !defined(HAVE_EVP_SHA256) || !defined(HAVE_EVP_SHA384)
15863 ec256 = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
15864 ec384 = EC_KEY_new_by_curve_name(NID_secp384r1);
15865 if (ec256 == NULL || ec384 == NULL)
15871 if ac_fn_c_try_run "$LINENO"; then :
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15873 $as_echo "yes" >&6; }
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15877 $as_echo "no" >&6; }
15880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15881 conftest.$ac_objext conftest.beam conftest.$ac_ext
15884 case "$with_ecdsa" in
15886 case "$have_ecdsa" in
15887 no) as_fn_error $? "ecdsa not supported" "$LINENO" 5 ;;
15888 *) have_ecdsa=yes ;;
15894 case "$have_ecdsa" in
15896 *) as_fn_error $? "need --with-ecdsa=[yes or no]" "$LINENO" 5 ;;
15900 case $have_ecdsa in
15902 OPENSSL_ECDSA="yes"
15904 $as_echo "#define HAVE_OPENSSL_ECDSA 1" >>confdefs.h
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL GOST support" >&5
15912 $as_echo_n "checking for OpenSSL GOST support... " >&6; }
15914 case "$use_pkcs11" in
15918 if $use_threads; then
15923 if test "$cross_compiling" = yes; then :
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-gost" >&5
15925 $as_echo "using --with-gost" >&6; }
15927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h. */
15930 #include <openssl/conf.h>
15931 #include <openssl/engine.h>
15933 #if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
15938 OPENSSL_config(NULL);
15940 e = ENGINE_by_id("gost");
15943 if (ENGINE_init(e) <= 0)
15952 if ac_fn_c_try_run "$LINENO"; then :
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15954 $as_echo "yes" >&6; }
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15958 $as_echo "no" >&6; }
15961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15962 conftest.$ac_objext conftest.beam conftest.$ac_ext
15965 case "$with_gost" in
15967 case "$have_gost" in
15968 no) as_fn_error $? "gost not supported" "$LINENO" 5 ;;
15969 *) have_gost=yes ;;
15975 case "$have_gost" in
15977 *) as_fn_error $? "need --with-gost=[yes, no, raw or asn1]" "$LINENO" 5 ;;
15984 OPENSSLGOSTLINKOBJS='${OPENSSLGOSTLINKOBJS}'
15985 OPENSSLGOSTLINKSRCS='${OPENSSLGOSTLINKSRCS}'
15987 $as_echo "#define HAVE_OPENSSL_GOST 1" >>confdefs.h
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL AES support" >&5
15996 $as_echo_n "checking for OpenSSL AES support... " >&6; }
15997 if test "$cross_compiling" = yes; then :
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using --with-aes" >&5
15999 $as_echo "using --with-aes" >&6; }
16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h. */
16004 #include <openssl/evp.h>
16006 EVP_CIPHER *aes128, *aes192, *aes256;
16008 aes128 = EVP_aes_128_ecb();
16009 aes192 = EVP_aes_192_ecb();
16010 aes256 = EVP_aes_256_ecb();
16011 if (aes128 == NULL || aes192 == NULL || aes256 == NULL)
16017 if ac_fn_c_try_run "$LINENO"; then :
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16019 $as_echo "yes" >&6; }
16022 ac_fn_c_check_func "$LINENO" "AES_encrypt" "ac_cv_func_AES_encrypt"
16023 if test "x$ac_cv_func_AES_encrypt" = xyes; then :
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16025 $as_echo "yes" >&6; }
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16029 $as_echo "no" >&6; }
16033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16034 conftest.$ac_objext conftest.beam conftest.$ac_ext
16039 ISC_OPENSSL_LIBS=""
16040 if test "$with_aes" = "yes"
16042 case "$have_aes" in
16045 $as_echo "#define HAVE_OPENSSL_EVP_AES 1" >>confdefs.h
16047 ISC_OPENSSL_INC="$DST_OPENSSL_INC"
16048 ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS"
16052 $as_echo "#define HAVE_OPENSSL_AES 1" >>confdefs.h
16054 ISC_OPENSSL_INC="$DST_OPENSSL_INC"
16055 ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS"
16063 CFLAGS="$saved_cflags"
16065 OPENSSLLINKOBJS='${OPENSSLLINKOBJS}'
16066 OPENSSLLINKSRCS='${OPENSSLLINKSRCS}'
16072 # This would include the system openssl path (and linker options to use
16073 # it as needed) if it is found.
16084 DNS_CRYPTO_LIBS="$DNS_CRYPTO_LIBS $DST_OPENSSL_LIBS"
16086 ISC_PLATFORM_WANTAES="#undef ISC_PLATFORM_WANTAES"
16087 if test "$with_aes" = "yes"
16089 if test "X$CRYPTO" = "X"
16094 if test "$with_aes" = "yes"
16096 ISC_PLATFORM_WANTAES="#define ISC_PLATFORM_WANTAES 1"
16101 # Choose SIT algorithm
16104 if test "$enable_sit" = "yes"
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Algorithm for SIT" >&5
16107 $as_echo_n "checking for the Algorithm for SIT... " >&6; }
16108 if test "$with_sit_alg" = "auto"
16110 if test "$with_aes" = "yes"
16114 with_sit_alg="sha256"
16118 case $with_sit_alg in
16120 if test "$enable_sit" != "yes"
16122 as_fn_error $? "\"with-sit-alg requires enable-sit\"" "$LINENO" 5;
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha1" >&5
16125 $as_echo "sha1" >&6; }
16126 if test "$CRYPTO" = "-DOPENSSL"
16128 if test "$want_openssl_hash" = "checksit"
16130 want_openssl_hash="yes"
16134 $as_echo "#define HMAC_SHA1_SIT 1" >>confdefs.h
16138 if test "$enable_sit" != "yes"
16140 as_fn_error $? "\"with-sit-alg requires enable-sit\"" "$LINENO" 5;
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sha256" >&5
16143 $as_echo "sha256" >&6; }
16144 if test "$CRYPTO" = "-DOPENSSL"
16146 if test "$want_openssl_hash" = "checksit"
16148 want_openssl_hash="yes"
16152 $as_echo "#define HMAC_SHA256_SIT 1" >>confdefs.h
16156 if test "$enable_sit" != "yes"
16158 as_fn_error $? "\"with-sit-alg requires enable-sit\"" "$LINENO" 5;
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: aes" >&5
16161 $as_echo "aes" >&6; }
16162 if test "$with_aes" != "yes"
16164 as_fn_error $? "\"SIT wants to use unavailable AES\"" "$LINENO" 5;
16167 $as_echo "#define AES_SIT 1" >>confdefs.h
16171 if test "$want_openssl_hash" = "checksit"
16173 want_openssl_hash="no"
16177 # Use OpenSSL for hash functions
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for using OpenSSL for hash functions" >&5
16181 $as_echo_n "checking for using OpenSSL for hash functions... " >&6; }
16182 ISC_PLATFORM_OPENSSLHASH="#undef ISC_PLATFORM_OPENSSLHASH"
16183 case $want_openssl_hash in
16185 if test "$CRYPTO" != "-DOPENSSL"
16187 as_fn_error $? "No OpenSSL for hash functions" "$LINENO" 5
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16190 $as_echo "yes" >&6; }
16191 ISC_PLATFORM_OPENSSLHASH="#define ISC_PLATFORM_OPENSSLHASH 1"
16192 ISC_OPENSSL_INC="$DST_OPENSSL_INC"
16193 ISC_OPENSSL_LIBS="$DST_OPENSSL_LIBS"
16194 saved_cflags="$CFLAGS"
16196 CFLAGS="$CFLAGS $ISC_OPENSSL_INC"
16197 LIBS="$LIBS $ISC_OPENSSL_LIBS"
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HMAC_Init() return type" >&5
16199 $as_echo_n "checking HMAC_Init() return type... " >&6; }
16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201 /* end confdefs.h. */
16203 #include <openssl/hmac.h>
16209 int n = HMAC_Init(&ctx, NULL, 0, NULL);
16210 n += HMAC_Update(&ctx, NULL, 0);
16211 n += HMAC_Final(&ctx, NULL, NULL);
16216 if ac_fn_c_try_compile "$LINENO"; then :
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
16219 $as_echo "int" >&6; }
16221 $as_echo "#define HMAC_RETURN_INT 1" >>confdefs.h
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
16226 $as_echo "void" >&6; }
16228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229 CFLAGS="$saved_cflags"
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16234 $as_echo "no" >&6; }
16242 # PKCS11 (aka crypto hardware) support (--with moved just after openssl)
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 support" >&5
16245 $as_echo_n "checking for PKCS11 support... " >&6; }
16247 if test "$use_pkcs11" = "auto"
16249 if test "$want_native_pkcs11" = "yes"
16257 case "$use_pkcs11" in
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16260 $as_echo "no" >&6; }
16268 ISC_PK11_RESULT_C=""
16269 ISC_PK11_RESULT_O=""
16270 ISC_ISCPK11_API_C=""
16271 ISC_ISCPK11_API_O=""
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16275 $as_echo "yes" >&6; }
16276 if ! $use_threads; then
16277 as_fn_error $? "PKCS11 requires thread support" "$LINENO" 5
16279 if test "$CRYPTO" = "-DOPENSSL"
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL with PKCS11 support" >&5
16282 $as_echo_n "checking for OpenSSL with PKCS11 support... " >&6; }
16284 saved_cflags="$CFLAGS"
16287 CFLAGS="$CFLAGS $DST_OPENSSL_INC"
16288 LIBS="$LIBS $DST_OPENSSL_LIBS"
16289 if test "$cross_compiling" = yes; then :
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compile" >&5
16291 $as_echo "cross compile" >&6; }
16293 PKCS11_ENGINE='-DPKCS11_ENGINE=NULL'
16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296 /* end confdefs.h. */
16298 #include <openssl/conf.h>
16299 #include <openssl/engine.h>
16303 OPENSSL_config(NULL);
16304 e = ENGINE_by_id("pkcs11");
16307 if (ENGINE_init(e) <= 0)
16313 if ac_fn_c_try_run "$LINENO"; then :
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16315 $as_echo "yes" >&6; }
16316 PKCS11_TEST=pkcs11ssl
16317 PKCS11_ENGINE='-DPKCS11_ENGINE="\"pkcs11\""'
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16320 $as_echo "no" >&6; }
16322 PKCS11_ENGINE='-DPKCS11_ENGINE=NULL'
16324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16325 conftest.$ac_objext conftest.beam conftest.$ac_ext
16329 CFLAGS="$saved_cflags"
16333 PKCS11_ENGINE='-DPKCS11_ENGINE=NULL'
16336 USE_PKCS11='-DUSE_PKCS11'
16337 PKCS11_TOOLS=pkcs11
16338 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
16339 if test "x$ac_cv_func_getpassphrase" = xyes; then :
16340 $as_echo "#define HAVE_GETPASSPHRASE 1" >>confdefs.h
16344 ISC_PK11_C="pk11.c"
16345 ISC_PK11_O="pk11.$O"
16346 ISC_PK11_API_C="pk11_api.c"
16347 ISC_PK11_API_O="pk11_api.$O"
16348 ISC_PK11_RESULT_C="pk11_result.c"
16349 ISC_PK11_RESULT_O="pk11_result.$O"
16350 ISC_ISCPK11_API_C="unix/pk11_api.c"
16351 ISC_ISCPK11_API_O="unix/pk11_api.$O"
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 tools" >&5
16367 $as_echo_n "checking for PKCS11 tools... " >&6; }
16368 case "$use_pkcs11" in
16370 PKCS11_PROVIDER="undefined"
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16372 $as_echo "disabled" >&6; }
16375 PKCS11_PROVIDER="undefined"
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
16377 $as_echo "enabled" >&6; }
16380 PKCS11_PROVIDER="$use_pkcs11"
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled, PKCS11 provider is $PKCS11_PROVIDER" >&5
16382 $as_echo "enabled, PKCS11 provider is $PKCS11_PROVIDER" >&6; }
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native PKCS11" >&5
16391 $as_echo_n "checking for native PKCS11... " >&6; }
16393 case "$want_native_pkcs11" in
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using native PKCS11 crypto" >&5
16396 $as_echo "using native PKCS11 crypto" >&6; }
16397 PKCS11LINKOBJS='${PKCS11LINKOBJS}'
16398 PKCS11LINKSRCS='${PKCS11LINKSRCS}'
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 ECDSA" >&5
16401 $as_echo_n "checking for PKCS11 ECDSA... " >&6; }
16402 case "$with_ecdsa" in
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16405 $as_echo "disabled" >&6; }
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
16409 $as_echo "enabled" >&6; }
16412 $as_echo "#define HAVE_PKCS11_ECDSA 1" >>confdefs.h
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 GOST" >&5
16417 $as_echo_n "checking for PKCS11 GOST... " >&6; }
16418 case "$with_gost" in
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
16421 $as_echo "enabled" >&6; }
16424 $as_echo "#define HAVE_PKCS11_GOST 1" >>confdefs.h
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16429 $as_echo "disabled" >&6; }
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
16435 $as_echo "disabled" >&6; }
16446 # for PKCS11 benchmarks
16449 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
16450 if test "x$ac_cv_func_clock_gettime" = xyes; then :
16454 if test "$have_clock_gt" = "no"; then
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16456 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16457 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
16458 $as_echo_n "(cached) " >&6
16460 ac_check_lib_save_LIBS=$LIBS
16462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16463 /* end confdefs.h. */
16465 /* Override any GCC internal prototype to avoid an error.
16466 Use char because int might match the return type of a GCC
16467 builtin and then its argument prototype would still apply. */
16471 char clock_gettime ();
16475 return clock_gettime ();
16480 if ac_fn_c_try_link "$LINENO"; then :
16481 ac_cv_lib_rt_clock_gettime=yes
16483 ac_cv_lib_rt_clock_gettime=no
16485 rm -f core conftest.err conftest.$ac_objext \
16486 conftest$ac_exeext conftest.$ac_ext
16487 LIBS=$ac_check_lib_save_LIBS
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16490 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16491 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16497 if test "$have_clock_gt" != "no"; then
16499 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16503 if test "$have_clock_gt" = "rt"; then
16508 # was --with-libxml2 specified?
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5
16511 $as_echo_n "checking for libxml2 library... " >&6; }
16513 # Check whether --with-libxml2 was given.
16514 if test "${with_libxml2+set}" = set; then :
16515 withval=$with_libxml2; use_libxml2="$withval"
16521 case "$use_libxml2" in
16526 case X`(xml2-config
--version) 2>/dev
/null
` in
16528 libxml2_libs=`xml2-config
--libs`
16529 libxml2_cflags=`xml2-config
--cflags`
16538 if test -f "$use_libxml2/bin/xml2-config" ; then
16539 libxml2_libs=`$use_libxml2/bin
/xml2-config
--libs`
16540 libxml2_cflags=`$use_libxml2/bin
/xml2-config
--cflags`
16545 if test "X$libxml2_libs" != "X"
16547 CFLAGS="$CFLAGS $libxml2_cflags"
16548 LIBS="$LIBS $libxml2_libs"
16550 # Sanity check xml2-config output.
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16554 #include <libxml/xmlwriter.h>
16558 return(xmlTextWriterStartElement(NULL, NULL));
16563 if ac_fn_c_try_link "$LINENO"; then :
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16565 $as_echo "yes" >&6; }
16567 as_fn_error $? "xml2-config returns badness" "$LINENO" 5
16569 rm -f core conftest.err conftest.$ac_objext \
16570 conftest$ac_exeext conftest.$ac_ext
16572 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16576 $as_echo "no" >&6; }
16580 # was --with-libjson specified?
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json library" >&5
16583 $as_echo_n "checking for json library... " >&6; }
16585 # Check whether --with-libjson was given.
16586 if test "${with_libjson+set}" = set; then :
16587 withval=$with_libjson; use_libjson="$withval"
16594 case "$use_libjson" in
16599 for d in /usr /usr/local /opt/local
16601 if test -f "${d}/include/json/json.h"
16603 libjson_cflags="-I ${d}/include/json"
16604 if test ${d} != /usr
16606 LIBS="$LIBS -L${d}/lib"
16609 elif test -f "${d}/include/json-c/json.h"
16611 libjson_cflags="-I ${d}/include/json-c"
16612 if test ${d} != /usr
16614 LIBS="$LIBS -L${d}/lib"
16621 if test -f "${use_libjson}/include/json/json.h"
16623 libjson_cflags="-I${use_libjson}/include/json"
16624 LIBS="$LIBS -L${use_libjson}/lib"
16626 elif test -f "${use_libjson}/include/json-c/json.h"
16628 libjson_cflags="-I${use_libjson}/include/json-c"
16629 LIBS="$LIBS -L${use_libjson}/lib"
16632 as_fn_error $? "$use_libjson/include/json{,-c}/json.h not found." "$LINENO" 5
16637 if test "X${have_libjson}" != "X"
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16640 $as_echo "yes" >&6; }
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_object_new_int64" >&5
16642 $as_echo_n "checking for library containing json_object_new_int64... " >&6; }
16643 if ${ac_cv_search_json_object_new_int64+:} false; then :
16644 $as_echo_n "(cached) " >&6
16646 ac_func_search_save_LIBS=$LIBS
16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648 /* end confdefs.h. */
16650 /* Override any GCC internal prototype to avoid an error.
16651 Use char because int might match the return type of a GCC
16652 builtin and then its argument prototype would still apply. */
16656 char json_object_new_int64 ();
16660 return json_object_new_int64 ();
16665 for ac_lib in '' json json-c; do
16666 if test -z "$ac_lib"; then
16667 ac_res="none required"
16670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16672 if ac_fn_c_try_link "$LINENO"; then :
16673 ac_cv_search_json_object_new_int64=$ac_res
16675 rm -f core conftest.err conftest.$ac_objext \
16677 if ${ac_cv_search_json_object_new_int64+:} false; then :
16681 if ${ac_cv_search_json_object_new_int64+:} false; then :
16684 ac_cv_search_json_object_new_int64=no
16686 rm conftest.$ac_ext
16687 LIBS=$ac_func_search_save_LIBS
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_object_new_int64" >&5
16690 $as_echo "$ac_cv_search_json_object_new_int64" >&6; }
16691 ac_res=$ac_cv_search_json_object_new_int64
16692 if test "$ac_res" != no; then :
16693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16696 as_fn_error $? "found libjson include but not library." "$LINENO" 5
16700 elif test "X$use_libjson" = Xyes
16702 as_fn_error $? "include/json{,-c}/json.h not found." "$LINENO" 5
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16705 $as_echo "no" >&6; }
16708 if test "X${have_libjson}" != "X"
16710 CFLAGS="$CFLAGS $libjson_cflags"
16712 $as_echo "#define HAVE_JSON 1" >>confdefs.h
16717 # In solaris 10, SMF can manage named service
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
16720 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
16721 if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
16722 $as_echo_n "(cached) " >&6
16724 ac_check_lib_save_LIBS=$LIBS
16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h. */
16729 /* Override any GCC internal prototype to avoid an error.
16730 Use char because int might match the return type of a GCC
16731 builtin and then its argument prototype would still apply. */
16735 char smf_enable_instance ();
16739 return smf_enable_instance ();
16744 if ac_fn_c_try_link "$LINENO"; then :
16745 ac_cv_lib_scf_smf_enable_instance=yes
16747 ac_cv_lib_scf_smf_enable_instance=no
16749 rm -f core conftest.err conftest.$ac_objext \
16750 conftest$ac_exeext conftest.$ac_ext
16751 LIBS=$ac_check_lib_save_LIBS
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
16754 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
16755 if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
16756 cat >>confdefs.h <<_ACEOF
16757 #define HAVE_LIBSCF 1
16766 # flockfile is usually provided by pthreads, but we may want to use it
16767 # even if compiled with --disable-threads. getc_unlocked might also not
16770 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
16771 if test "x$ac_cv_func_flockfile" = xyes; then :
16772 $as_echo "#define HAVE_FLOCKFILE 1" >>confdefs.h
16776 ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
16777 if test "x$ac_cv_func_getc_unlocked" = xyes; then :
16778 $as_echo "#define HAVE_GETCUNLOCKED 1" >>confdefs.h
16784 # Indicate what the final decision was regarding threads.
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with threads" >&5
16787 $as_echo_n "checking whether to build with threads... " >&6; }
16788 if $use_threads; then
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16790 $as_echo "yes" >&6; }
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16793 $as_echo "no" >&6; }
16797 # End of pthreads stuff.
16803 # Check whether --enable-largefile was given.
16804 if test "${enable_largefile+set}" = set; then :
16805 enableval=$enable_largefile; want_largefile="yes"
16807 want_largefile="no"
16810 case $want_largefile in
16812 ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
16819 # Additional compiler settings.
16823 IRIX_DNSSEC_WARNINGS_HACK=""
16825 if test "X$GCC" = "Xyes"; then
16826 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
16828 $as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
16829 SAVE_CFLAGS="$CFLAGS"
16830 CFLAGS="$CFLAGS -fno-strict-aliasing"
16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832 /* end confdefs.h. */
16842 if ac_fn_c_try_compile "$LINENO"; then :
16843 FNOSTRICTALIASING=yes
16845 FNOSTRICTALIASING=no
16847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16848 CFLAGS="$SAVE_CFLAGS"
16849 if test "$FNOSTRICTALIASING" = "yes"; then
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16851 $as_echo "yes" >&6; }
16852 STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16855 $as_echo "no" >&6; }
16858 # turn off delete null pointer checks
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-delete-null-pointer-checks" >&5
16861 $as_echo_n "checking if \"$CC\" supports -fno-delete-null-pointer-checks... " >&6; }
16862 SAVE_CFLAGS="$CFLAGS"
16863 CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16875 if ac_fn_c_try_compile "$LINENO"; then :
16876 FNODELETENULLPOINTERCHECKS=yes
16878 FNODELETENULLPOINTERCHECKS=no
16880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16881 CFLAGS="$SAVE_CFLAGS"
16882 if test "$FNODELETENULLPOINTERCHECKS" = "yes"; then
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16884 $as_echo "yes" >&6; }
16885 STD_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16888 $as_echo "no" >&6; }
16892 CFLAGS="$CFLAGS -Wl,+vnocompatwarnings"
16893 BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings"
16896 if test "X$enable_warn_shadow" = Xyes; then
16897 STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
16899 if test "X$enable_warn_error" = Xyes; then
16900 STD_CWARNINGS="$STD_CWARNINGS -Werror"
16906 CCOPT="$CCOPT -std"
16907 CCNOOPT="$CCNOOPT -std"
16912 # The version of the C compiler that constantly warns about
16913 # 'const' as well as alignment issues is unfortunately not
16914 # able to be discerned via the version of the operating
16915 # system, nor does cc have a version flag.
16916 case "`$CC +W
123 2>&1`" in
16918 STD_CWARNINGS="+w1"
16921 # Turn off the pointlessly noisy warnings.
16922 STD_CWARNINGS="+w1 +W 474,530,2193,2236"
16925 CCOPT="$CCOPT -Ae -z"
16926 CCNOOPT="$CCNOOPT -Ae -z"
16927 CFLAGS="$CFLAGS -Wl,+vnocompatwarnings"
16928 BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings"
16929 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
16932 STD_CWARNINGS="-fullwarn -woff 1209"
16934 # Silence more than 250 instances of
16935 # "prototyped function redeclared without prototype"
16936 # and 11 instances of
16937 # "variable ... was set but never used"
16938 # from lib/dns/sec/openssl.
16940 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
16945 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
16960 ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
16961 if test "x$ac_cv_func_catgets" = xyes; then :
16962 $as_echo "#define HAVE_CATGETS 1" >>confdefs.h
16968 # -lxnet buys us one big porting headache... standards, gotta love 'em.
16970 # AC_CHECK_LIB(xnet, socket, ,
16971 # AC_CHECK_LIB(socket, socket)
16974 # Use this for now, instead:
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16983 $as_echo_n "checking for socket in -lsocket... " >&6; }
16984 if ${ac_cv_lib_socket_socket+:} false; then :
16985 $as_echo_n "(cached) " >&6
16987 ac_check_lib_save_LIBS=$LIBS
16988 LIBS="-lsocket $LIBS"
16989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16990 /* end confdefs.h. */
16992 /* Override any GCC internal prototype to avoid an error.
16993 Use char because int might match the return type of a GCC
16994 builtin and then its argument prototype would still apply. */
17007 if ac_fn_c_try_link "$LINENO"; then :
17008 ac_cv_lib_socket_socket=yes
17010 ac_cv_lib_socket_socket=no
17012 rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17014 LIBS=$ac_check_lib_save_LIBS
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17017 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17018 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17019 cat >>confdefs.h <<_ACEOF
17020 #define HAVE_LIBSOCKET 1
17023 LIBS="-lsocket $LIBS"
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
17028 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
17029 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
17030 $as_echo_n "(cached) " >&6
17032 ac_check_lib_save_LIBS=$LIBS
17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035 /* end confdefs.h. */
17037 /* Override any GCC internal prototype to avoid an error.
17038 Use char because int might match the return type of a GCC
17039 builtin and then its argument prototype would still apply. */
17047 return inet_addr ();
17052 if ac_fn_c_try_link "$LINENO"; then :
17053 ac_cv_lib_nsl_inet_addr=yes
17055 ac_cv_lib_nsl_inet_addr=no
17057 rm -f core conftest.err conftest.$ac_objext \
17058 conftest$ac_exeext conftest.$ac_ext
17059 LIBS=$ac_check_lib_save_LIBS
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
17062 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
17063 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
17064 cat >>confdefs.h <<_ACEOF
17065 #define HAVE_LIBNSL 1
17076 # Work around Solaris's select() limitations.
17079 *-solaris2.[89]|*-solaris2.1?)
17081 $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
17090 $as_echo_n "checking whether to use purify... " >&6; }
17092 # Check whether --with-purify was given.
17093 if test "${with_purify+set}" = set; then :
17094 withval=$with_purify; use_purify="$withval"
17100 case "$use_purify" in
17104 # Extract the first word of "purify", so it can be a program name with args.
17105 set dummy purify; ac_word=$2
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17107 $as_echo_n "checking for $ac_word... " >&6; }
17108 if ${ac_cv_path_purify_path+:} false; then :
17109 $as_echo_n "(cached) " >&6
17111 case $purify_path in
17113 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
17116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17117 for as_dir in $PATH
17120 test -z "$as_dir" && as_dir=.
17121 for ac_exec_ext in '' $ac_executable_extensions; do
17122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17123 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
17124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17131 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
17135 purify_path=$ac_cv_path_purify_path
17136 if test -n "$purify_path"; then
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
17138 $as_echo "$purify_path" >&6; }
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17141 $as_echo "no" >&6; }
17147 purify_path="$use_purify"
17151 case "$use_purify" in
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17154 $as_echo "no" >&6; }
17158 if test -f $purify_path || test $purify_path = purify; then
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
17160 $as_echo "$purify_path" >&6; }
17161 PURIFYFLAGS="`echo $PURIFYOPTIONS`"
17162 PURIFY="$purify_path $PURIFYFLAGS"
17164 as_fn_error $? "$purify_path not found.
17166 Please choose the proper path with the following command:
17168 configure --with-purify=PATH
17177 # Google/Great Performance Tools CPU Profiler
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
17180 $as_echo_n "checking whether to use gperftools profiler... " >&6; }
17182 # Check whether --with-gperftools-profiler was given.
17183 if test "${with_gperftools_profiler+set}" = set; then :
17184 withval=$with_gperftools_profiler; use_profiler="$withval"
17190 case $use_profiler in
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17193 $as_echo "yes" >&6; }
17195 $as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
17197 LIBS="$LIBS -lprofiler"
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17201 $as_echo "no" >&6; }
17206 # enable/disable dumping stack backtrace. Also check if the system supports
17207 # glibc-compatible backtrace() function.
17209 # Check whether --enable-backtrace was given.
17210 if test "${enable_backtrace+set}" = set; then :
17211 enableval=$enable_backtrace; want_backtrace="$enableval"
17213 want_backtrace="yes"
17216 case $want_backtrace in
17218 ISC_PLATFORM_USEBACKTRACE="#define ISC_PLATFORM_USEBACKTRACE 1"
17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h. */
17221 #include <execinfo.h>
17225 return (backtrace((void **)0, 0));
17230 if ac_fn_c_try_link "$LINENO"; then :
17232 $as_echo "#define HAVE_LIBCTRACE /**/" >>confdefs.h
17235 rm -f core conftest.err conftest.$ac_objext \
17236 conftest$ac_exeext conftest.$ac_ext
17239 ISC_PLATFORM_USEBACKTRACE="#undef ISC_PLATFORM_USEBACKTRACE"
17244 # Check whether --enable-symtable was given.
17245 if test "${enable_symtable+set}" = set; then :
17246 enableval=$enable_symtable; want_symtable="$enableval"
17248 want_symtable="minimal"
17251 case $want_symtable in
17252 yes|all|minimal) # "yes" is a hidden value equivalent to "minimal"
17253 if test "$PERL" = ""
17255 as_fn_error $? "Internal symbol table requires perl but no perl is found.
17256 Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
17258 if test "$use_libtool" = "yes"; then
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&5
17260 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool. Disabling symbol table." >&2;}
17262 # we generate the internal symbol table only for those systems
17263 # known to work to avoid unexpected build failure. Also, warn
17264 # about unsupported systems when the feature is enabled
17267 freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
17268 MKSYMTBL_PROGRAM="$PERL"
17269 if test $want_symtable = all; then
17270 ALWAYS_MAKE_SYMTABLE="yes"
17274 if test $want_symtable = yes -o $want_symtable = all
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
17277 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
17289 # File name extension for static archive files, for those few places
17290 # where they are treated differently from dynamic ones.
17304 BIND9_CO_RULE=".c.$O:"
17308 # Here begins a very long section to determine the system's networking
17309 # capabilities. The order of the tests is significant.
17315 # Check whether --enable-ipv6 was given.
17316 if test "${enable_ipv6+set}" = set; then :
17317 enableval=$enable_ipv6;
17321 case "$enable_ipv6" in
17323 $as_echo "#define WANT_IPV6 1" >>confdefs.h
17331 # We do the IPv6 compilation checking after libtool so that we can put
17332 # the right suffix on the files.
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
17335 $as_echo_n "checking for IPv6 structures... " >&6; }
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17339 #include <sys/types.h>
17340 #include <sys/socket.h>
17341 #include <netinet/in.h>
17345 struct sockaddr_in6 sin6; return (0);
17350 if ac_fn_c_try_compile "$LINENO"; then :
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17352 $as_echo "yes" >&6; }
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17356 $as_echo "no" >&6; }
17359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17362 # See whether IPv6 support is provided via a Kame add-on.
17363 # This is done before other IPv6 linking tests to LIBS is properly set.
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
17366 $as_echo_n "checking for Kame IPv6 support... " >&6; }
17368 # Check whether --with-kame was given.
17369 if test "${with_kame+set}" = set; then :
17370 withval=$with_kame; use_kame="$withval"
17376 case "$use_kame" in
17380 kame_path=/usr/local/v6
17383 kame_path="$use_kame"
17387 case "$use_kame" in
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17390 $as_echo "no" >&6; }
17393 if test -f $kame_path/lib/libinet6.a; then
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
17395 $as_echo "$kame_path/lib/libinet6.a" >&6; }
17396 LIBS="-L$kame_path/lib -linet6 $LIBS"
17398 as_fn_error $? "$kame_path/lib/libinet6.a not found.
17400 Please choose the proper path with the following command:
17402 configure --with-kame=PATH
17409 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
17410 # Including it on Kame-using platforms is very bad, though, because
17411 # Kame uses #error against direct inclusion. So include it on only
17412 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
17413 # This is done before the in6_pktinfo check because that's what
17414 # netinet6/in6.h is needed for.
17419 ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
17420 LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
17421 isc_netinet6in6_hack="#include <netinet6/in6.h>"
17424 ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
17425 LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
17426 isc_netinet6in6_hack=""
17432 # This is similar to the netinet6/in6.h issue.
17435 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
17437 ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
17438 LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
17439 ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
17440 isc_netinetin6_hack="#include <netinet/in6.h>"
17443 ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
17444 LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
17445 ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
17446 isc_netinetin6_hack=""
17451 # Now delve deeper into the suitability of the IPv6 support.
17453 case "$found_ipv6" in
17455 ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
17456 LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_addr" >&5
17459 $as_echo_n "checking for in6_addr... " >&6; }
17460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461 /* end confdefs.h. */
17463 #include <sys/types.h>
17464 #include <sys/socket.h>
17465 #include <netinet/in.h>
17466 $isc_netinetin6_hack
17467 $isc_netinet6in6_hack
17472 struct in6_addr in6; return (0);
17477 if ac_fn_c_try_compile "$LINENO"; then :
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17479 $as_echo "yes" >&6; }
17480 ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
17481 LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6"
17482 isc_in_addr6_hack=""
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17485 $as_echo "no" >&6; }
17486 ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1"
17487 LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1"
17488 isc_in_addr6_hack="#define in6_addr in_addr6"
17490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
17493 $as_echo_n "checking for in6addr_any... " >&6; }
17494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17495 /* end confdefs.h. */
17497 #include <sys/types.h>
17498 #include <sys/socket.h>
17499 #include <netinet/in.h>
17500 $isc_netinetin6_hack
17501 $isc_netinet6in6_hack
17507 struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
17512 if ac_fn_c_try_link "$LINENO"; then :
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17514 $as_echo "yes" >&6; }
17515 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
17516 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17519 $as_echo "no" >&6; }
17520 ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
17521 LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
17523 rm -f core conftest.err conftest.$ac_objext \
17524 conftest$ac_exeext conftest.$ac_ext
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5
17527 $as_echo_n "checking for in6addr_loopback... " >&6; }
17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529 /* end confdefs.h. */
17531 #include <sys/types.h>
17532 #include <sys/socket.h>
17533 #include <netinet/in.h>
17534 $isc_netinetin6_hack
17535 $isc_netinet6in6_hack
17541 struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]);
17546 if ac_fn_c_try_link "$LINENO"; then :
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17548 $as_echo "yes" >&6; }
17549 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK"
17550 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK"
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17553 $as_echo "no" >&6; }
17554 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#define ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
17555 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#define LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
17557 rm -f core conftest.err conftest.$ac_objext \
17558 conftest$ac_exeext conftest.$ac_ext
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin6_scope_id in struct sockaddr_in6" >&5
17561 $as_echo_n "checking for sin6_scope_id in struct sockaddr_in6... " >&6; }
17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563 /* end confdefs.h. */
17565 #include <sys/types.h>
17566 #include <sys/socket.h>
17567 #include <netinet/in.h>
17568 $isc_netinetin6_hack
17569 $isc_netinet6in6_hack
17574 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
17579 if ac_fn_c_try_compile "$LINENO"; then :
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17581 $as_echo "yes" >&6; }
17582 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
17583 result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17586 $as_echo "no" >&6; }
17587 ISC_PLATFORM_HAVESCOPEID="#undef ISC_PLATFORM_HAVESCOPEID"
17588 result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
17590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591 LWRES_HAVE_SIN6_SCOPE_ID="$result"
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
17594 $as_echo_n "checking for in6_pktinfo... " >&6; }
17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h. */
17598 #include <sys/types.h>
17599 #include <sys/socket.h>
17600 #include <netinet/in.h>
17601 $isc_netinetin6_hack
17602 $isc_netinet6in6_hack
17607 struct in6_pktinfo xyzzy; return (0);
17612 if ac_fn_c_try_compile "$LINENO"; then :
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17614 $as_echo "yes" >&6; }
17615 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- disabling runtime ipv6 support" >&5
17618 $as_echo "no -- disabling runtime ipv6 support" >&6; }
17619 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
17621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17624 ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
17625 LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
17626 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
17627 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
17628 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
17629 LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
17630 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
17631 ISC_IPV6_H="ipv6.h"
17632 ISC_IPV6_O="ipv6.$O"
17633 ISC_ISCIPV6_O="unix/ipv6.$O"
17634 ISC_IPV6_C="ipv6.c"
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
17639 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
17640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17641 /* end confdefs.h. */
17643 #include <sys/types.h>
17644 #include <sys/socket.h>
17645 $isc_netinetin6_hack
17646 $isc_netinet6in6_hack
17651 struct sockaddr_storage storage; return (0);
17656 if ac_fn_c_try_compile "$LINENO"; then :
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17658 $as_echo "yes" >&6; }
17659 ISC_PLATFORM_HAVESOCKADDRSTORAGE="#define ISC_PLATFORM_HAVESOCKADDRSTORAGE 1"
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17662 $as_echo "no" >&6; }
17663 ISC_PLATFORM_HAVESOCKADDRSTORAGE="#undef ISC_PLATFORM_HAVESOCKADDRSTORAGE"
17665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
17690 $as_echo_n "checking for struct if_laddrreq... " >&6; }
17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h. */
17694 #include <sys/types.h>
17695 #include <net/if6.h>
17700 struct if_laddrreq a;
17705 if ac_fn_c_try_link "$LINENO"; then :
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17707 $as_echo "yes" >&6; }
17708 ISC_PLATFORM_HAVEIF_LADDRREQ="#define ISC_PLATFORM_HAVEIF_LADDRREQ 1"
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17711 $as_echo "no" >&6; }
17712 ISC_PLATFORM_HAVEIF_LADDRREQ="#undef ISC_PLATFORM_HAVEIF_LADDRREQ"
17714 rm -f core conftest.err conftest.$ac_objext \
17715 conftest$ac_exeext conftest.$ac_ext
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
17719 $as_echo_n "checking for struct if_laddrconf... " >&6; }
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17723 #include <sys/types.h>
17724 #include <net/if6.h>
17729 struct if_laddrconf a;
17734 if ac_fn_c_try_link "$LINENO"; then :
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17736 $as_echo "yes" >&6; }
17737 ISC_PLATFORM_HAVEIF_LADDRCONF="#define ISC_PLATFORM_HAVEIF_LADDRCONF 1"
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17740 $as_echo "no" >&6; }
17741 ISC_PLATFORM_HAVEIF_LADDRCONF="#undef ISC_PLATFORM_HAVEIF_LADDRCONF"
17743 rm -f core conftest.err conftest.$ac_objext \
17744 conftest$ac_exeext conftest.$ac_ext
17748 # Check for network functions that are often missing. We do this
17749 # after the libtool checking, so we can put the right suffix on
17750 # the files. It also needs to come after checking for a Kame add-on,
17751 # which provides some (all?) of the desired functions.
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop with IPv6 support" >&5
17755 $as_echo_n "checking for inet_ntop with IPv6 support... " >&6; }
17756 if test "$cross_compiling" = yes; then :
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_ntop not needed" >&5
17758 $as_echo "assuming inet_ntop not needed" >&6; }
17759 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17764 #include <sys/types.h>
17765 #include <sys/socket.h>
17766 #include <netinet/in.h>
17767 #include <arpa/inet.h>
17769 char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);}
17771 if ac_fn_c_try_run "$LINENO"; then :
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17773 $as_echo "yes" >&6; }
17774 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17777 $as_echo "no" >&6; }
17778 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
17779 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
17780 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
17782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17783 conftest.$ac_objext conftest.beam conftest.$ac_ext
17788 # On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts
17789 # addresses with less than four octets, like "1.2.3". Also leading
17790 # zeros should also be rejected.
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working inet_pton with IPv6 support" >&5
17793 $as_echo_n "checking for working inet_pton with IPv6 support... " >&6; }
17794 if test "$cross_compiling" = yes; then :
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_pton needed" >&5
17796 $as_echo "assuming inet_pton needed" >&6; }
17797 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
17798 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
17799 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
17801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17802 /* end confdefs.h. */
17804 #include <sys/types.h>
17805 #include <sys/socket.h>
17806 #include <netinet/in.h>
17807 #include <arpa/inet.h>
17808 main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 :
17809 inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 :
17810 (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); }
17812 if ac_fn_c_try_run "$LINENO"; then :
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17814 $as_echo "yes" >&6; }
17815 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17818 $as_echo "no" >&6; }
17819 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
17820 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
17821 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
17823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17824 conftest.$ac_objext conftest.beam conftest.$ac_ext
17832 # Look for a 4.4BSD-style sa_len member in struct sockaddr.
17836 # Turn on 4.4BSD style sa_len support.
17837 $as_echo "#define _SOCKADDR_LEN 1" >>confdefs.h
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5
17843 $as_echo_n "checking for sa_len in struct sockaddr... " >&6; }
17844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17847 #include <sys/types.h>
17848 #include <sys/socket.h>
17852 struct sockaddr sa; sa.sa_len = 0; return (0);
17857 if ac_fn_c_try_compile "$LINENO"; then :
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17859 $as_echo "yes" >&6; }
17860 ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
17861 LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17864 $as_echo "no" >&6; }
17865 ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
17866 LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
17868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17873 # Look for a 4.4BSD or 4.3BSD struct msghdr
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr flavor" >&5
17876 $as_echo_n "checking for struct msghdr flavor... " >&6; }
17877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17878 /* end confdefs.h. */
17880 #include <sys/types.h>
17881 #include <sys/socket.h>
17885 struct msghdr msg; msg.msg_flags = 0; return (0);
17890 if ac_fn_c_try_compile "$LINENO"; then :
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.4BSD" >&5
17892 $as_echo "4.4BSD" >&6; }
17893 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.3BSD" >&5
17896 $as_echo "4.3BSD" >&6; }
17897 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
17899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17903 # Look for in_port_t.
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_port_t" >&5
17906 $as_echo_n "checking for type in_port_t... " >&6; }
17907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908 /* end confdefs.h. */
17910 #include <sys/types.h>
17911 #include <netinet/in.h>
17915 in_port_t port = 25; return (0);
17920 if ac_fn_c_try_compile "$LINENO"; then :
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17922 $as_echo "yes" >&6; }
17923 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17926 $as_echo "no" >&6; }
17927 ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
17929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17933 # Check for addrinfo
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
17936 $as_echo_n "checking for struct addrinfo... " >&6; }
17937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17938 /* end confdefs.h. */
17944 struct addrinfo a; return (0);
17949 if ac_fn_c_try_compile "$LINENO"; then :
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17951 $as_echo "yes" >&6; }
17952 ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
17953 ISC_IRS_NEEDADDRINFO="#undef ISC_IRS_NEEDADDRINFO"
17954 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17958 $as_echo "no" >&6; }
17959 ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
17960 ISC_IRS_NEEDADDRINFO="#define ISC_IRS_NEEDADDRINFO 1"
17962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17967 # Check for rrsetinfo
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rrsetinfo" >&5
17970 $as_echo_n "checking for struct rrsetinfo... " >&6; }
17971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17972 /* end confdefs.h. */
17978 struct rrsetinfo r; return (0);
17983 if ac_fn_c_try_compile "$LINENO"; then :
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17985 $as_echo "yes" >&6; }
17986 ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO"
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17989 $as_echo "no" >&6; }
17990 ISC_LWRES_NEEDRRSETINFO="#define ISC_LWRES_NEEDRRSETINFO 1"
17992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int sethostent" >&5
17996 $as_echo_n "checking for int sethostent... " >&6; }
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
18004 int i = sethostent(0); return(0);
18009 if ac_fn_c_try_compile "$LINENO"; then :
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18011 $as_echo "yes" >&6; }
18012 ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18015 $as_echo "no" >&6; }
18016 ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
18018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endhostent" >&5
18022 $as_echo_n "checking for int endhostent... " >&6; }
18023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18024 /* end confdefs.h. */
18030 int i = endhostent(); return(0);
18035 if ac_fn_c_try_compile "$LINENO"; then :
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18037 $as_echo "yes" >&6; }
18038 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18041 $as_echo "no" >&6; }
18042 ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
18044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnetbyaddr(in_addr_t, ...)" >&5
18048 $as_echo_n "checking for getnetbyaddr(in_addr_t, ...)... " >&6; }
18049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18050 /* end confdefs.h. */
18053 struct netent *getnetbyaddr(in_addr_t, int);
18062 if ac_fn_c_try_compile "$LINENO"; then :
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18064 $as_echo "yes" >&6; }
18065 ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18068 $as_echo "no" >&6; }
18069 ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
18071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int setnetent" >&5
18075 $as_echo_n "checking for int setnetent... " >&6; }
18076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h. */
18083 int i = setnetent(0); return(0);
18088 if ac_fn_c_try_compile "$LINENO"; then :
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18090 $as_echo "yes" >&6; }
18091 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18094 $as_echo "no" >&6; }
18095 ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
18097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endnetent" >&5
18101 $as_echo_n "checking for int endnetent... " >&6; }
18102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h. */
18109 int i = endnetent(); return(0);
18114 if ac_fn_c_try_compile "$LINENO"; then :
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18116 $as_echo "yes" >&6; }
18117 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18120 $as_echo "no" >&6; }
18121 ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
18123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr(const void *, size_t, ...)" >&5
18127 $as_echo_n "checking for gethostbyaddr(const void *, size_t, ...)... " >&6; }
18128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18129 /* end confdefs.h. */
18132 struct hostent *gethostbyaddr(const void *, size_t, int);
18141 if ac_fn_c_try_compile "$LINENO"; then :
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18143 $as_echo "yes" >&6; }
18144 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18147 $as_echo "no" >&6; }
18148 ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
18150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
18154 $as_echo_n "checking for h_errno in netdb.h... " >&6; }
18155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18156 /* end confdefs.h. */
18162 h_errno = 1; return(0);
18167 if ac_fn_c_try_compile "$LINENO"; then :
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18169 $as_echo "yes" >&6; }
18170 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18173 $as_echo "no" >&6; }
18174 ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
18176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18180 # Sadly, the definitions of system-supplied getnameinfo(3) vary. Try to catch
18181 # known variations here:
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo prototype definitions" >&5
18184 $as_echo_n "checking for getnameinfo prototype definitions... " >&6; }
18185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18186 /* end confdefs.h. */
18188 #include <sys/types.h>
18189 #include <sys/socket.h>
18191 int getnameinfo(const struct sockaddr *, socklen_t, char *,
18192 socklen_t, char *, socklen_t, unsigned int);
18201 if ac_fn_c_try_compile "$LINENO"; then :
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t for buflen; u_int for flags" >&5
18203 $as_echo "socklen_t for buflen; u_int for flags" >&6; }
18205 $as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h
18208 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h
18211 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T unsigned int" >>confdefs.h
18214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18215 /* end confdefs.h. */
18217 #include <sys/types.h>
18218 #include <sys/socket.h>
18220 int getnameinfo(const struct sockaddr *, socklen_t, char *,
18221 size_t, char *, size_t, int);
18230 if ac_fn_c_try_compile "$LINENO"; then :
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t for buflen; int for flags" >&5
18232 $as_echo "size_t for buflen; int for flags" >&6; }
18233 $as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h
18235 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T size_t" >>confdefs.h
18237 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241 /* end confdefs.h. */
18243 #include <sys/types.h>
18244 #include <sys/socket.h>
18246 int getnameinfo(const struct sockaddr *, size_t, char *,
18247 size_t, char *, size_t, int);
18256 if ac_fn_c_try_compile "$LINENO"; then :
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t for buflen; int for flags" >&5
18258 $as_echo "size_t for buflen; int for flags" >&6; }
18259 $as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T size_t" >>confdefs.h
18261 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T size_t" >>confdefs.h
18263 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5
18267 $as_echo "not match any subspecies; assume standard definition" >&6; }
18268 $as_echo "#define IRS_GETNAMEINFO_SOCKLEN_T socklen_t" >>confdefs.h
18270 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h
18272 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
18275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18282 # ...and same for gai_strerror().
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror prototype definitions" >&5
18285 $as_echo_n "checking for gai_strerror prototype definitions... " >&6; }
18286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18289 #include <sys/types.h>
18290 #include <sys/socket.h>
18292 char *gai_strerror(int ecode);
18301 if ac_fn_c_try_compile "$LINENO"; then :
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: returning char *" >&5
18303 $as_echo "returning char *" >&6; }
18305 $as_echo "#define IRS_GAISTRERROR_RETURN_T char *" >>confdefs.h
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5
18309 $as_echo "not match any subspecies; assume standard definition" >&6; }
18310 $as_echo "#define IRS_GAISTRERROR_RETURN_T const char *" >>confdefs.h
18313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18315 ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname"
18316 if test "x$ac_cv_func_getipnodebyname" = xyes; then :
18317 ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
18319 ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
18322 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
18323 if test "x$ac_cv_func_getnameinfo" = xyes; then :
18324 ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
18326 ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
18329 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18330 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18331 ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
18332 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
18335 ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
18338 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
18339 if test "x$ac_cv_func_gai_strerror" = xyes; then :
18340 $as_echo "#define HAVE_GAISTRERROR 1" >>confdefs.h
18349 # Check whether --enable-getifaddrs was given.
18350 if test "${enable_getifaddrs+set}" = set; then :
18351 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
18353 want_getifaddrs="yes"
18358 # This interface iteration code for getifaddrs() will fall back to using
18359 # /proc/net/if_inet6 if getifaddrs() in glibc doesn't return any IPv6
18362 case $want_getifaddrs in
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&5
18365 $as_echo "$as_me: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&2;}
18366 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
18367 if test "x$ac_cv_func_getifaddrs" = xyes; then :
18368 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
18374 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
18375 if test "x$ac_cv_func_getifaddrs" = xyes; then :
18376 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
18386 # Look for a sysctl call to get the list of network interfaces.
18388 case $ac_cv_header_sys_sysctl_h in
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
18391 $as_echo_n "checking for interface list sysctl... " >&6; }
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h. */
18395 #include <sys/param.h>
18396 #include <sys/sysctl.h>
18397 #include <sys/socket.h>
18398 #ifdef NET_RT_IFLIST
18403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18404 $EGREP "found_rt_iflist" >/dev/null 2>&1; then :
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18406 $as_echo "yes" >&6; }
18407 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18411 $as_echo "no" >&6; }
18419 # Check for some other useful functions that are not ever-present.
18422 # We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC
18423 # because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77
18424 # reportedly defines strsep() without declaring it in <string.h> when
18425 # -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and
18426 # AC_CHECK_FUNC() incorrectly succeeds because it declares
18427 # the function itself.
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correctly declared strsep()" >&5
18429 $as_echo_n "checking for correctly declared strsep()... " >&6; }
18430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431 /* end confdefs.h. */
18432 #include <string.h>
18436 char *sp; char *foo = strsep(&sp, ".");
18441 if ac_fn_c_try_link "$LINENO"; then :
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18443 $as_echo "yes" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18446 $as_echo "no" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
18448 rm -f core conftest.err conftest.$ac_objext \
18449 conftest$ac_exeext conftest.$ac_ext
18452 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18453 if test "x$ac_cv_func_memmove" = xyes; then :
18454 ISC_PLATFORM_NEEDMEMMOVE="#undef ISC_PLATFORM_NEEDMEMMOVE"
18456 ISC_PLATFORM_NEEDMEMMOVE="#define ISC_PLATFORM_NEEDMEMMOVE 1"
18461 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
18462 if test "x$ac_cv_func_strtoul" = xyes; then :
18463 ISC_PLATFORM_NEEDSTRTOUL="#undef ISC_PLATFORM_NEEDSTRTOUL"
18464 LWRES_PLATFORM_NEEDSTRTOUL="#undef LWRES_PLATFORM_NEEDSTRTOUL"
18467 ISC_PLATFORM_NEEDSTRTOUL="#define ISC_PLATFORM_NEEDSTRTOUL 1"
18468 LWRES_PLATFORM_NEEDSTRTOUL="#define LWRES_PLATFORM_NEEDSTRTOUL 1"
18469 GENRANDOMLIB='${ISCLIBS}'
18476 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18477 if test "x$ac_cv_func_strlcpy" = xyes; then :
18478 ISC_PLATFORM_NEEDSTRLCPY="#undef ISC_PLATFORM_NEEDSTRLCPY"
18479 LWRES_PLATFORM_NEEDSTRLCPY="#undef LWRES_PLATFORM_NEEDSTRLCPY"
18481 ISC_PLATFORM_NEEDSTRLCPY="#define ISC_PLATFORM_NEEDSTRLCPY 1"
18482 LWRES_PLATFORM_NEEDSTRLCPY="#define LWRES_PLATFORM_NEEDSTRLCPY 1"
18488 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
18489 if test "x$ac_cv_func_strlcat" = xyes; then :
18490 ISC_PLATFORM_NEEDSTRLCAT="#undef ISC_PLATFORM_NEEDSTRLCAT"
18492 ISC_PLATFORM_NEEDSTRLCAT="#define ISC_PLATFORM_NEEDSTRLCAT 1"
18497 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
18498 if test "x$ac_cv_func_strcasestr" = xyes; then :
18499 ISC_PLATFORM_NEEDSTRCASESTR="#undef ISC_PLATFORM_NEEDSTRCASESTR"
18501 ISC_PLATFORM_NEEDSTRCASESTR="#define ISC_PLATFORM_NEEDSTRCASESTR 1"
18508 # Check whether --with-readline was given.
18509 if test "${with_readline+set}" = set; then :
18510 withval=$with_readline; readline="$withval"
18512 readline="-lreadline"
18515 case "$readline" in
18518 if test "x$readline" = "xyes"
18520 readline=-lreadline
18524 for ac_func in readline
18526 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
18527 if test "x$ac_cv_func_readline" = xyes; then :
18528 cat >>confdefs.h <<_ACEOF
18529 #define HAVE_READLINE 1
18535 if test "$ac_cv_func_readline" = "yes"
18537 READLINE_LIB="$readline"
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sprintf" >&5
18547 $as_echo_n "checking sprintf... " >&6; }
18548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18549 /* end confdefs.h. */
18556 char buf[2]; return(*sprintf(buf,"x"));
18561 if ac_fn_c_try_compile "$LINENO"; then :
18563 ISC_PRINT_OBJS="print.$O"
18564 ISC_PRINT_SRCS="print.c"
18565 ISC_PLATFORM_NEEDSPRINTF="#define ISC_PLATFORM_NEEDSPRINTF"
18566 LWRES_PLATFORM_NEEDSPRINTF="#define LWRES_PLATFORM_NEEDSPRINTF"
18569 ISC_PLATFORM_NEEDSPRINTF="#undef ISC_PLATFORM_NEEDSPRINTF"
18570 LWRES_PLATFORM_NEEDSPRINTF="#undef LWRES_PLATFORM_NEEDSPRINTF"
18573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18577 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
18578 if test "x$ac_cv_func_vsnprintf" = xyes; then :
18579 ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
18580 LWRES_PLATFORM_NEEDVSNPRINTF="#undef LWRES_PLATFORM_NEEDVSNPRINTF"
18582 ISC_PRINT_OBJS="print.$O"
18583 ISC_PRINT_SRCS="print.c"
18584 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
18585 LWRES_PLATFORM_NEEDVSNPRINTF="#define LWRES_PLATFORM_NEEDVSNPRINTF 1"
18590 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS $ISC_PRINT_OBJS"
18591 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS $ISC_PRINT_SRCS"
18593 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
18594 if test "x$ac_cv_func_strerror" = xyes; then :
18595 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
18604 # Use our own SPNEGO implementation?
18606 # Check whether --enable-isc-spnego was given.
18607 if test "${enable_isc_spnego+set}" = set; then :
18608 enableval=$enable_isc_spnego;
18612 if test -n "$USE_GSSAPI"
18614 case "$enable_isc_spnego" in
18616 USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
18617 DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
18618 DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
18620 $as_echo "using SPNEGO from lib/dns" >&6; }
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
18624 $as_echo "using SPNEGO from GSSAPI library" >&6; }
18634 # Determine the printf format characters to use when printing
18635 # values of type isc_int64_t. This will normally be "ll", but where
18636 # the compiler treats "long long" as a alias for "long" and printf
18637 # doesn't know about "long long" use "l". Hopefully the sprintf
18638 # will produce a inconsistent result in the later case. If the compiler
18639 # fails due to seeing "%lld" we fall back to "l".
18641 # Digital Unix 4.0 (gcc?) (long long) is 64 bits as is its long. It uses
18642 # %ld even for (long long)/
18644 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
18645 # configure on Win32.
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format modifier for 64-bit integers" >&5
18648 $as_echo_n "checking printf format modifier for 64-bit integers... " >&6; }
18649 if test "$cross_compiling" = yes; then :
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform uses ll" >&5
18651 $as_echo "assuming target platform uses ll" >&6; }
18652 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
18653 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
18655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18656 /* end confdefs.h. */
18660 long long int j = 0;
18663 sprintf(buf, "%lld", j);
18664 exit((sizeof(long long int) != sizeof(long int))? 0 :
18665 (strcmp(buf, "0") != 0));
18669 if ac_fn_c_try_run "$LINENO"; then :
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ll" >&5
18671 $as_echo "ll" >&6; }
18672 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
18673 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: l" >&5
18676 $as_echo "l" >&6; }
18677 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
18678 LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "l"'
18680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18681 conftest.$ac_objext conftest.beam conftest.$ac_ext
18690 # Note it is very recommended to *not* disable chroot(),
18691 # this is only because chroot() was made obsolete by Posix.
18692 # Check whether --enable-chroot was given.
18693 if test "${enable_chroot+set}" = set; then :
18694 enableval=$enable_chroot;
18697 case "$enable_chroot" in
18699 for ac_func in chroot
18701 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
18702 if test "x$ac_cv_func_chroot" = xyes; then :
18703 cat >>confdefs.h <<_ACEOF
18704 #define HAVE_CHROOT 1
18714 # Check whether --enable-linux-caps was given.
18715 if test "${enable_linux_caps+set}" = set; then :
18716 enableval=$enable_linux_caps;
18719 case "$enable_linux_caps" in
18721 for ac_header in linux/types.h
18723 ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
18724 if test "x$ac_cv_header_linux_types_h" = xyes; then :
18725 cat >>confdefs.h <<_ACEOF
18726 #define HAVE_LINUX_TYPES_H 1
18733 for ac_header in sys/capability.h
18735 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
18736 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
18737 cat >>confdefs.h <<_ACEOF
18738 #define HAVE_SYS_CAPABILITY_H 1
18745 for ac_header in linux/capability.h
18747 ac_fn_c_check_header_compile "$LINENO" "linux/capability.h" "ac_cv_header_linux_capability_h" "#ifdef HAVE_LINUX_TYPES_H
18748 #include <linux/types.h>
18752 if test "x$ac_cv_header_linux_capability_h" = xyes; then :
18753 cat >>confdefs.h <<_ACEOF
18754 #define HAVE_LINUX_CAPABILITY_H 1
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
18762 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
18763 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
18764 $as_echo_n "(cached) " >&6
18766 ac_check_lib_save_LIBS=$LIBS
18768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18771 /* Override any GCC internal prototype to avoid an error.
18772 Use char because int might match the return type of a GCC
18773 builtin and then its argument prototype would still apply. */
18777 char cap_set_proc ();
18781 return cap_set_proc ();
18786 if ac_fn_c_try_link "$LINENO"; then :
18787 ac_cv_lib_cap_cap_set_proc=yes
18789 ac_cv_lib_cap_cap_set_proc=no
18791 rm -f core conftest.err conftest.$ac_objext \
18792 conftest$ac_exeext conftest.$ac_ext
18793 LIBS=$ac_check_lib_save_LIBS
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
18796 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
18797 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
18798 cat >>confdefs.h <<_ACEOF
18799 #define HAVE_LIBCAP 1
18810 for ac_header in sys/prctl.h
18812 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
18813 if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
18814 cat >>confdefs.h <<_ACEOF
18815 #define HAVE_SYS_PRCTL_H 1
18823 for ac_header in sys/un.h
18825 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
18826 if test "x$ac_cv_header_sys_un_h" = xyes; then :
18827 cat >>confdefs.h <<_ACEOF
18828 #define HAVE_SYS_UN_H 1
18830 ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
18833 ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
18844 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
18849 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
18857 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
18858 if test "x$ac_cv_func_tzset" = xyes; then :
18859 $as_echo "#define HAVE_TZSET 1" >>confdefs.h
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
18865 $as_echo_n "checking for optarg declaration... " >&6; }
18866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18867 /* end confdefs.h. */
18869 #include <unistd.h>
18879 if ac_fn_c_try_compile "$LINENO"; then :
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18881 $as_echo "yes" >&6; }
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18884 $as_echo "no" >&6; }
18885 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
18887 $as_echo "#define NEED_OPTARG 1" >>confdefs.h
18890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18893 # BSD/OS, and perhaps some others, don't define rlim_t.
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type rlim_t" >&5
18896 $as_echo_n "checking for type rlim_t... " >&6; }
18897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18898 /* end confdefs.h. */
18900 #include <sys/types.h>
18901 #include <sys/time.h>
18902 #include <sys/resource.h>
18906 rlim_t rl = 19671212; return (0);
18911 if ac_fn_c_try_compile "$LINENO"; then :
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18913 $as_echo "yes" >&6; }
18914 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t"
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18917 $as_echo "no" >&6; }
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of rlim_cur" >&5
18920 $as_echo_n "checking type of rlim_cur... " >&6; }
18921 if test "$cross_compiling" = yes; then :
18924 # Check whether --with-rlimtype was given.
18925 if test "${with_rlimtype+set}" = set; then :
18926 withval=$with_rlimtype; rlimtype="$withval"
18928 rlimtype="long long int"
18931 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE $rlimtype"
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot determine type of rlim_cur when cross compiling - assuming $rlimtype" >&5
18933 $as_echo "cannot determine type of rlim_cur when cross compiling - assuming $rlimtype" >&6; }
18935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18936 /* end confdefs.h. */
18938 #include <sys/types.h>
18939 #include <sys/time.h>
18940 #include <sys/resource.h>
18941 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
18943 if ac_fn_c_try_run "$LINENO"; then :
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18945 $as_echo "int" >&6; }
18946 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int"
18949 if test "$cross_compiling" = yes; then :
18950 as_fn_error $? "this cannot happen" "$LINENO" 5
18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18953 /* end confdefs.h. */
18955 #include <sys/types.h>
18956 #include <sys/time.h>
18957 #include <sys/resource.h>
18958 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
18960 if ac_fn_c_try_run "$LINENO"; then :
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: long int" >&5
18962 $as_echo "long int" >&6; }
18963 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int"
18966 if test "$cross_compiling" = yes; then :
18967 as_fn_error $? "this cannot happen" "$LINENO" 5
18969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18970 /* end confdefs.h. */
18972 #include <sys/types.h>
18973 #include <sys/time.h>
18974 #include <sys/resource.h>
18975 main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
18977 if ac_fn_c_try_run "$LINENO"; then :
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: long long int" >&5
18979 $as_echo "long long int" >&6; }
18980 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
18982 as_fn_error $? "unable to determine sizeof rlim_cur" "$LINENO" 5
18985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18986 conftest.$ac_objext conftest.beam conftest.$ac_ext
18991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18992 conftest.$ac_objext conftest.beam conftest.$ac_ext
18997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18998 conftest.$ac_objext conftest.beam conftest.$ac_ext
19003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19007 # Older HP-UX doesn't have gettune
19011 for ac_header in sys/dyntune.h
19013 ac_fn_c_check_header_mongrel "$LINENO" "sys/dyntune.h" "ac_cv_header_sys_dyntune_h" "$ac_includes_default"
19014 if test "x$ac_cv_header_sys_dyntune_h" = xyes; then :
19015 cat >>confdefs.h <<_ACEOF
19016 #define HAVE_SYS_DYNTUNE_H 1
19030 # Compaq TruCluster requires more code for handling cluster IP aliases
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clua_getaliasaddress in -lclua" >&5
19035 $as_echo_n "checking for clua_getaliasaddress in -lclua... " >&6; }
19036 if ${ac_cv_lib_clua_clua_getaliasaddress+:} false; then :
19037 $as_echo_n "(cached) " >&6
19039 ac_check_lib_save_LIBS=$LIBS
19040 LIBS="-lclua $LIBS"
19041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19044 /* Override any GCC internal prototype to avoid an error.
19045 Use char because int might match the return type of a GCC
19046 builtin and then its argument prototype would still apply. */
19050 char clua_getaliasaddress ();
19054 return clua_getaliasaddress ();
19059 if ac_fn_c_try_link "$LINENO"; then :
19060 ac_cv_lib_clua_clua_getaliasaddress=yes
19062 ac_cv_lib_clua_clua_getaliasaddress=no
19064 rm -f core conftest.err conftest.$ac_objext \
19065 conftest$ac_exeext conftest.$ac_ext
19066 LIBS=$ac_check_lib_save_LIBS
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clua_clua_getaliasaddress" >&5
19069 $as_echo "$ac_cv_lib_clua_clua_getaliasaddress" >&6; }
19070 if test "x$ac_cv_lib_clua_clua_getaliasaddress" = xyes; then :
19071 LIBS="-lclua $LIBS"
19074 ac_fn_c_check_func "$LINENO" "clua_getaliasaddress" "ac_cv_func_clua_getaliasaddress"
19075 if test "x$ac_cv_func_clua_getaliasaddress" = xyes; then :
19077 $as_echo "#define HAVE_TRUCLUSTER 1" >>confdefs.h
19087 # Some hosts need msg_namelen to match the size of the socket structure.
19088 # Some hosts don't set msg_namelen appropriately on return from recvmsg().
19093 $as_echo "#define BROKEN_RECVMSG 1" >>confdefs.h
19099 # Microsoft has their own way of handling shared libraries that requires
19100 # additional qualifiers on extern variables. Unix systems don't need it.
19103 ISC_PLATFORM_USEDECLSPEC="#undef ISC_PLATFORM_USEDECLSPEC"
19105 LWRES_PLATFORM_USEDECLSPEC="#undef LWRES_PLATFORM_USEDECLSPEC"
19107 IRS_PLATFORM_USEDECLSPEC="#undef IRS_PLATFORM_USEDECLSPEC"
19110 # Random remaining OS-specific issues involving compiler warnings.
19111 # XXXDCL print messages to indicate some compensation is being done?
19114 ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
19118 hack_shutup_pthreadonceinit=yes
19121 hack_shutup_sputaux=yes
19124 hack_shutup_sigwait=yes
19125 hack_shutup_sputaux=yes
19128 hack_shutup_stdargcast=yes
19131 hack_shutup_pthreadonceinit=yes
19134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19135 /* end confdefs.h. */
19136 #include <pthread.h>
19140 static pthread_once_t once_test = { PTHREAD_ONCE_INIT };
19145 if ac_fn_c_try_compile "$LINENO"; then :
19146 hack_shutup_pthreadonceinit=yes
19148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19152 case "$hack_shutup_pthreadonceinit" in
19155 # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
19157 ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
19161 case "$hack_shutup_sigwait" in
19164 # Shut up a -Wmissing-prototypes warning for sigwait().
19166 $as_echo "#define SHUTUP_SIGWAIT 1" >>confdefs.h
19171 case "$hack_shutup_sputaux" in
19174 # Shut up a -Wmissing-prototypes warning from <stdio.h>.
19176 $as_echo "#define SHUTUP_SPUTAUX 1" >>confdefs.h
19181 case "$hack_shutup_stdargcast" in
19184 # Shut up a -Wcast-qual warning from va_start().
19186 $as_echo "#define SHUTUP_STDARG_CAST 1" >>confdefs.h
19191 for ac_header in strings.h
19193 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
19194 if test "x$ac_cv_header_strings_h" = xyes; then :
19195 cat >>confdefs.h <<_ACEOF
19196 #define HAVE_STRINGS_H 1
19198 ISC_PLATFORM_HAVESTRINGSH="#define ISC_PLATFORM_HAVESTRINGSH 1"
19201 ISC_PLATFORM_HAVESTRINGSH="#undef ISC_PLATFORM_HAVESTRINGSH"
19210 # Check for if_nametoindex() for IPv6 scoped addresses support
19212 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
19213 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
19214 ac_cv_have_if_nametoindex=yes
19216 ac_cv_have_if_nametoindex=no
19219 case $ac_cv_have_if_nametoindex in
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5
19224 $as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
19225 if ${ac_cv_lib_ipv6_if_nametoindex+:} false; then :
19226 $as_echo_n "(cached) " >&6
19228 ac_check_lib_save_LIBS=$LIBS
19229 LIBS="-lipv6 $LIBS"
19230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h. */
19233 /* Override any GCC internal prototype to avoid an error.
19234 Use char because int might match the return type of a GCC
19235 builtin and then its argument prototype would still apply. */
19239 char if_nametoindex ();
19243 return if_nametoindex ();
19248 if ac_fn_c_try_link "$LINENO"; then :
19249 ac_cv_lib_ipv6_if_nametoindex=yes
19251 ac_cv_lib_ipv6_if_nametoindex=no
19253 rm -f core conftest.err conftest.$ac_objext \
19254 conftest$ac_exeext conftest.$ac_ext
19255 LIBS=$ac_check_lib_save_LIBS
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
19258 $as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; }
19259 if test "x$ac_cv_lib_ipv6_if_nametoindex" = xyes; then :
19260 ac_cv_have_if_nametoindex=yes
19261 LIBS="-lipv6 $LIBS"
19267 case $ac_cv_have_if_nametoindex in
19269 ISC_PLATFORM_HAVEIFNAMETOINDEX="#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1"
19271 $as_echo "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
19276 ISC_PLATFORM_HAVEIFNAMETOINDEX="#undef ISC_PLATFORM_HAVEIFNAMETOINDEX"
19281 for ac_func in nanosleep usleep
19283 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19284 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19285 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19286 cat >>confdefs.h <<_ACEOF
19287 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19295 # Machine architecture dependent features
19297 # Check whether --enable-atomic was given.
19298 if test "${enable_atomic+set}" = set; then :
19299 enableval=$enable_atomic; enable_atomic="$enableval"
19301 enable_atomic="autodetect"
19304 case "$enable_atomic" in
19308 if test "X$GCC" = "Xyes"; then
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"isc\"); works" >&5
19310 $as_echo_n "checking if asm(\"isc\"); works... " >&6; }
19311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312 /* end confdefs.h. */
19318 main() { asm("ics"); exit(0); }
19324 if ac_fn_c_try_compile "$LINENO"; then :
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19326 $as_echo "yes" >&6; }
19330 saved_cflags="$CFLAGS"
19331 CFLAGS="$CFLAGS -Wa,-many"
19332 if test "$cross_compiling" = yes; then :
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compile, assume yes" >&5
19334 $as_echo "cross compile, assume yes" >&6; }
19335 CFLAGS="$saved_cflags"
19338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19339 /* end confdefs.h. */
19341 main() { asm("ics"); exit(0); }
19344 if ac_fn_c_try_run "$LINENO"; then :
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, required -Wa,-many" >&5
19346 $as_echo "yes, required -Wa,-many" >&6; }
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, use_atomic disabled" >&5
19350 $as_echo "no, use_atomic disabled" >&6; }
19351 CFLAGS="$saved_cflags"
19354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19355 conftest.$ac_objext conftest.beam conftest.$ac_ext
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19377 ISC_PLATFORM_USEOSFASM="#undef ISC_PLATFORM_USEOSFASM"
19378 if test "$use_atomic" = "yes"; then
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking architecture type for atomic operations" >&5
19380 $as_echo_n "checking architecture type for atomic operations... " >&6; }
19381 have_atomic=yes # set default
19384 # XXX: some old x86 architectures actually do not support
19385 # (some of) these operations. Do we need stricter checks?
19386 # The cast to long int works around a bug in the HP C Compiler
19387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19388 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
19389 # This bug is HP SR number 8606223364.
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
19391 $as_echo_n "checking size of void *... " >&6; }
19392 if ${ac_cv_sizeof_void_p+:} false; then :
19393 $as_echo_n "(cached) " >&6
19395 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
19398 if test "$ac_cv_type_void_p" = yes; then
19399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19400 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
19401 as_fn_error 77 "cannot compute sizeof (void *)
19402 See \`config.log
' for more details" "$LINENO" 5; }
19404 ac_cv_sizeof_void_p=0
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
19410 $as_echo "$ac_cv_sizeof_void_p" >&6; }
19414 cat >>confdefs.h <<_ACEOF
19415 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19419 if test $ac_cv_sizeof_void_p = 8; then
19427 # The cast to long int works around a bug in the HP C Compiler
19428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19430 # This bug is HP SR number 8606223364.
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
19432 $as_echo_n "checking size of void *... " >&6; }
19433 if ${ac_cv_sizeof_void_p+:} false
; then :
19434 $as_echo_n "(cached) " >&6
19436 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
19439 if test "$ac_cv_type_void_p" = yes; then
19440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19442 as_fn_error
77 "cannot compute sizeof (void *)
19443 See \`config.log' for more details" "$LINENO" 5; }
19445 ac_cv_sizeof_void_p
=0
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
19451 $as_echo "$ac_cv_sizeof_void_p" >&6; }
19455 cat >>confdefs.h
<<_ACEOF
19456 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19460 if test $ac_cv_sizeof_void_p = 8; then
19470 powerpc-
*|powerpc64-
*)
19473 mips-
*|mipsel-
*|mips64-
*|mips64el-
*)
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arch" >&5
19485 $as_echo "$arch" >&6; }
19488 if test "$have_atomic" = "yes"; then
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for inline assembly code" >&5
19490 $as_echo_n "checking compiler support for inline assembly code... " >&6; }
19493 # Check whether the compiler supports the assembly syntax we provide.
19494 if test "X$GCC" = "Xyes"; then
19495 # GCC's ASM extension always works
19497 if test $arch = "x86_64"; then
19498 # We can share the same code for gcc with x86_32
19501 if test $arch = "powerpc"; then
19503 # The MacOS (and maybe others) uses "r0" for register
19504 # zero. Under linux/ibm it is "0" for register 0.
19505 # Probe to see if we have a MacOS style assembler.
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for MacOS style assembler syntax" >&5
19508 $as_echo_n "checking Checking for MacOS style assembler syntax... " >&6; }
19509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19510 /* end confdefs.h. */
19516 __asm__ volatile ("li r0, 0x0\n"::);
19522 if ac_fn_c_try_compile
"$LINENO"; then :
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19525 $as_echo "yes" >&6; }
19527 ISC_PLATFORM_USEMACASM
="#define ISC_PLATFORM_USEMACASM 1"
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19531 $as_echo "no" >&6; }
19533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19538 # Tru64 compiler has its own syntax for inline
19540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19541 /* end confdefs.h. */
19548 #error "unexpected compiler"
19555 if ac_fn_c_try_compile
"$LINENO"; then :
19558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19565 case "$compiler" in
19567 ISC_PLATFORM_USEGCCASM
="#define ISC_PLATFORM_USEGCCASM 1"
19570 ISC_PLATFORM_USEOSFASM
="#define ISC_PLATFORM_USEOSFASM 1"
19577 # See if the generic __asm function works. If not,
19578 # we need to disable the atomic operations.
19579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19580 /* end confdefs.h. */
19592 if ac_fn_c_try_link
"$LINENO"; then :
19593 compiler
="standard"
19594 ISC_PLATFORM_USESTDASM
="#define ISC_PLATFORM_USESTDASM 1"
19596 compiler
="not supported (atomic operations disabled)"
19600 rm -f core conftest.err conftest.
$ac_objext \
19601 conftest
$ac_exeext conftest.
$ac_ext;
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler" >&5
19606 $as_echo "$compiler" >&6; }
19609 if test "$have_atomic" = "yes"; then
19610 ISC_PLATFORM_HAVEXADD
="#define ISC_PLATFORM_HAVEXADD 1"
19611 ISC_PLATFORM_HAVECMPXCHG
="#define ISC_PLATFORM_HAVECMPXCHG 1"
19612 ISC_PLATFORM_HAVEATOMICSTORE
="#define ISC_PLATFORM_HAVEATOMICSTORE 1"
19614 ISC_PLATFORM_HAVEXADD
="#undef ISC_PLATFORM_HAVEXADD"
19615 ISC_PLATFORM_HAVECMPXCHG
="#undef ISC_PLATFORM_HAVECMPXCHG"
19616 ISC_PLATFORM_HAVEATOMICSTORE
="#undef ISC_PLATFORM_HAVEATOMICSTORE"
19619 if test "$have_xaddq" = "yes"; then
19620 ISC_PLATFORM_HAVEXADDQ
="#define ISC_PLATFORM_HAVEXADDQ 1"
19622 ISC_PLATFORM_HAVEXADDQ
="#undef ISC_PLATFORM_HAVEXADDQ"
19639 # Activate "rrset-order fixed" or not?
19641 # Check whether --enable-fixed-rrset was given.
19642 if test "${enable_fixed_rrset+set}" = set; then :
19643 enableval
=$enable_fixed_rrset; enable_fixed
="$enableval"
19648 case "$enable_fixed" in
19651 $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
19661 # Enable response policy rewriting using NS IP addresses
19663 # Check whether --enable-rpz-nsip was given.
19664 if test "${enable_rpz_nsip+set}" = set; then :
19665 enableval
=$enable_rpz_nsip; enable_nsip
="$enableval"
19670 case "$enable_nsip" in
19673 $as_echo "#define ENABLE_RPZ_NSIP 1" >>confdefs.h
19683 # Enable response policy rewriting using NS name
19685 # Check whether --enable-rpz-nsdname was given.
19686 if test "${enable_rpz_nsdname+set}" = set; then :
19687 enableval
=$enable_rpz_nsdname; enable_nsdname
="$enableval"
19689 enable_nsdname
="yes"
19692 case "$enable_nsdname" in
19695 $as_echo "#define ENABLE_RPZ_NSDNAME 1" >>confdefs.h
19705 # Activate "filter-aaaa-on-v4/v6" or not?
19707 # Check whether --enable-filter-aaaa was given.
19708 if test "${enable_filter_aaaa+set}" = set; then :
19709 enableval
=$enable_filter_aaaa; enable_filter
="$enableval"
19714 case "$enable_filter" in
19717 $as_echo "#define ALLOW_FILTER_AAAA 1" >>confdefs.h
19727 # The following sets up how non-blocking i/o is established.
19728 # Sunos, cygwin and solaris 2.x (x<5) require special handling.
19731 *-sunos*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
19733 *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
19735 *-solaris2.
[01234])
19736 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
19739 $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
19743 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
19748 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
19749 # This prevents the source address being set.
19752 *-solaris2.
[012345]|
*-solaris2.5
.1)
19754 $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
19759 # The following sections deal with tools used for formatting
19760 # the documentation. They are all optional, unless you are
19761 # a developer editing the documentation source.
19768 for ac_prog
in latex
19770 # Extract the first word of "$ac_prog", so it can be a program name with args.
19771 set dummy
$ac_prog; ac_word
=$2
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19773 $as_echo_n "checking for $ac_word... " >&6; }
19774 if ${ac_cv_path_LATEX+:} false
; then :
19775 $as_echo_n "(cached) " >&6
19779 ac_cv_path_LATEX
="$LATEX" # Let the user override the test with a path.
19782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19783 for as_dir
in $PATH
19786 test -z "$as_dir" && as_dir
=.
19787 for ac_exec_ext
in '' $ac_executable_extensions; do
19788 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19789 ac_cv_path_LATEX
="$as_dir/$ac_word$ac_exec_ext"
19790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19800 LATEX
=$ac_cv_path_LATEX
19801 if test -n "$LATEX"; then
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
19803 $as_echo "$LATEX" >&6; }
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19806 $as_echo "no" >&6; }
19810 test -n "$LATEX" && break
19812 test -n "$LATEX" || LATEX
="latex"
19816 for ac_prog
in pdflatex
19818 # Extract the first word of "$ac_prog", so it can be a program name with args.
19819 set dummy
$ac_prog; ac_word
=$2
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19821 $as_echo_n "checking for $ac_word... " >&6; }
19822 if ${ac_cv_path_PDFLATEX+:} false
; then :
19823 $as_echo_n "(cached) " >&6
19827 ac_cv_path_PDFLATEX
="$PDFLATEX" # Let the user override the test with a path.
19830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19831 for as_dir
in $PATH
19834 test -z "$as_dir" && as_dir
=.
19835 for ac_exec_ext
in '' $ac_executable_extensions; do
19836 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19837 ac_cv_path_PDFLATEX
="$as_dir/$ac_word$ac_exec_ext"
19838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19848 PDFLATEX
=$ac_cv_path_PDFLATEX
19849 if test -n "$PDFLATEX"; then
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
19851 $as_echo "$PDFLATEX" >&6; }
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19854 $as_echo "no" >&6; }
19858 test -n "$PDFLATEX" && break
19860 test -n "$PDFLATEX" || PDFLATEX
="pdflatex"
19870 # Extract the first word of "$ac_prog", so it can be a program name with args.
19871 set dummy
$ac_prog; ac_word
=$2
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19873 $as_echo_n "checking for $ac_word... " >&6; }
19874 if ${ac_cv_path_W3M+:} false
; then :
19875 $as_echo_n "(cached) " >&6
19879 ac_cv_path_W3M
="$W3M" # Let the user override the test with a path.
19882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19883 for as_dir
in $PATH
19886 test -z "$as_dir" && as_dir
=.
19887 for ac_exec_ext
in '' $ac_executable_extensions; do
19888 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19889 ac_cv_path_W3M
="$as_dir/$ac_word$ac_exec_ext"
19890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19900 W3M
=$ac_cv_path_W3M
19901 if test -n "$W3M"; then
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
19903 $as_echo "$W3M" >&6; }
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19906 $as_echo "no" >&6; }
19910 test -n "$W3M" && break
19912 test -n "$W3M" || W3M
="w3m"
19917 # Look for xsltproc (libxslt)
19920 # Extract the first word of "xsltproc", so it can be a program name with args.
19921 set dummy xsltproc
; ac_word
=$2
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19923 $as_echo_n "checking for $ac_word... " >&6; }
19924 if ${ac_cv_path_XSLTPROC+:} false
; then :
19925 $as_echo_n "(cached) " >&6
19929 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19933 for as_dir
in $PATH
19936 test -z "$as_dir" && as_dir
=.
19937 for ac_exec_ext
in '' $ac_executable_extensions; do
19938 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19939 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19947 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC
="xsltproc"
19951 XSLTPROC
=$ac_cv_path_XSLTPROC
19952 if test -n "$XSLTPROC"; then
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19954 $as_echo "$XSLTPROC" >&6; }
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19957 $as_echo "no" >&6; }
19964 # Look for xmllint (libxml2)
19967 # Extract the first word of "xmllint", so it can be a program name with args.
19968 set dummy xmllint
; ac_word
=$2
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19970 $as_echo_n "checking for $ac_word... " >&6; }
19971 if ${ac_cv_path_XMLLINT+:} false
; then :
19972 $as_echo_n "(cached) " >&6
19976 ac_cv_path_XMLLINT
="$XMLLINT" # Let the user override the test with a path.
19979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19980 for as_dir
in $PATH
19983 test -z "$as_dir" && as_dir
=.
19984 for ac_exec_ext
in '' $ac_executable_extensions; do
19985 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19986 ac_cv_path_XMLLINT
="$as_dir/$ac_word$ac_exec_ext"
19987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19994 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT
="xmllint"
19998 XMLLINT
=$ac_cv_path_XMLLINT
19999 if test -n "$XMLLINT"; then
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
20001 $as_echo "$XMLLINT" >&6; }
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20004 $as_echo "no" >&6; }
20014 # Extract the first word of "doxygen", so it can be a program name with args.
20015 set dummy doxygen
; ac_word
=$2
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20017 $as_echo_n "checking for $ac_word... " >&6; }
20018 if ${ac_cv_path_DOXYGEN+:} false
; then :
20019 $as_echo_n "(cached) " >&6
20023 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
20026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20027 for as_dir
in $PATH
20030 test -z "$as_dir" && as_dir
=.
20031 for ac_exec_ext
in '' $ac_executable_extensions; do
20032 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20033 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
20034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20041 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN
="doxygen"
20045 DOXYGEN
=$ac_cv_path_DOXYGEN
20046 if test -n "$DOXYGEN"; then
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
20048 $as_echo "$DOXYGEN" >&6; }
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20051 $as_echo "no" >&6; }
20058 # Subroutine for searching for an ordinary file (e.g., a stylesheet)
20059 # in a number of directories:
20061 # NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
20063 # If the file FILENAME is found in one of the DIRECTORIES, the shell
20064 # variable VARIABLE is defined to its absolute pathname. Otherwise,
20065 # it is set to FILENAME, with no directory prefix (that's not terribly
20066 # useful, but looks less confusing in substitutions than leaving it
20067 # empty). The variable VARIABLE will be substituted into output files.
20073 # Look for Docbook-XSL stylesheets. Location probably varies by system.
20074 # If it's not explicitly specified, guess where it might be found, based on
20075 # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
20076 # of at the moment).
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5
20079 $as_echo_n "checking for Docbook-XSL path... " >&6; }
20081 # Check whether --with-docbook-xsl was given.
20082 if test "${with_docbook_xsl+set}" = set; then :
20083 withval
=$with_docbook_xsl; docbook_path
="$withval"
20085 docbook_path
="auto"
20088 case "$docbook_path" in
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
20091 $as_echo "auto" >&6; }
20092 docbook_xsl_trees
="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook /usr/share/xsl/docbook /opt/local/share/xsl/docbook-xsl"
20095 docbook_xsl_trees
="$withval"
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
20097 $as_echo "$docbook_xsl_trees" >&6; }
20102 # Look for stylesheets we need.
20106 XSLT_DOCBOOK_STYLE_HTML
=""
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5
20108 $as_echo_n "checking for html/docbook.xsl... " >&6; }
20109 for d
in $docbook_xsl_trees
20111 f
=$d/html
/docbook.xsl
20114 XSLT_DOCBOOK_STYLE_HTML
=$f
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
20116 $as_echo "$f" >&6; }
20120 if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
20123 $as_echo "\"not found\"" >&6; };
20124 XSLT_DOCBOOK_STYLE_HTML
=html
/docbook.xsl
20129 XSLT_DOCBOOK_STYLE_XHTML
=""
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5
20131 $as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
20132 for d
in $docbook_xsl_trees
20134 f
=$d/xhtml
/docbook.xsl
20137 XSLT_DOCBOOK_STYLE_XHTML
=$f
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
20139 $as_echo "$f" >&6; }
20143 if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
20146 $as_echo "\"not found\"" >&6; };
20147 XSLT_DOCBOOK_STYLE_XHTML
=xhtml
/docbook.xsl
20152 XSLT_DOCBOOK_STYLE_MAN
=""
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5
20154 $as_echo_n "checking for manpages/docbook.xsl... " >&6; }
20155 for d
in $docbook_xsl_trees
20157 f
=$d/manpages
/docbook.xsl
20160 XSLT_DOCBOOK_STYLE_MAN
=$f
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
20162 $as_echo "$f" >&6; }
20166 if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
20169 $as_echo "\"not found\"" >&6; };
20170 XSLT_DOCBOOK_STYLE_MAN
=manpages
/docbook.xsl
20175 XSLT_DOCBOOK_CHUNK_HTML
=""
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5
20177 $as_echo_n "checking for html/chunk.xsl... " >&6; }
20178 for d
in $docbook_xsl_trees
20180 f
=$d/html
/chunk.xsl
20183 XSLT_DOCBOOK_CHUNK_HTML
=$f
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
20185 $as_echo "$f" >&6; }
20189 if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
20192 $as_echo "\"not found\"" >&6; };
20193 XSLT_DOCBOOK_CHUNK_HTML
=html
/chunk.xsl
20198 XSLT_DOCBOOK_CHUNK_XHTML
=""
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5
20200 $as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
20201 for d
in $docbook_xsl_trees
20203 f
=$d/xhtml
/chunk.xsl
20206 XSLT_DOCBOOK_CHUNK_XHTML
=$f
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
20208 $as_echo "$f" >&6; }
20212 if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
20215 $as_echo "\"not found\"" >&6; };
20216 XSLT_DOCBOOK_CHUNK_XHTML
=xhtml
/chunk.xsl
20221 XSLT_DOCBOOK_CHUNKTOC_HTML
=""
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5
20223 $as_echo_n "checking for html/chunktoc.xsl... " >&6; }
20224 for d
in $docbook_xsl_trees
20226 f
=$d/html
/chunktoc.xsl
20229 XSLT_DOCBOOK_CHUNKTOC_HTML
=$f
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
20231 $as_echo "$f" >&6; }
20235 if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
20238 $as_echo "\"not found\"" >&6; };
20239 XSLT_DOCBOOK_CHUNKTOC_HTML
=html
/chunktoc.xsl
20244 XSLT_DOCBOOK_CHUNKTOC_XHTML
=""
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5
20246 $as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
20247 for d
in $docbook_xsl_trees
20249 f
=$d/xhtml
/chunktoc.xsl
20252 XSLT_DOCBOOK_CHUNKTOC_XHTML
=$f
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
20254 $as_echo "$f" >&6; }
20258 if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
20261 $as_echo "\"not found\"" >&6; };
20262 XSLT_DOCBOOK_CHUNKTOC_XHTML
=xhtml
/chunktoc.xsl
20267 XSLT_DOCBOOK_MAKETOC_HTML
=""
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5
20269 $as_echo_n "checking for html/maketoc.xsl... " >&6; }
20270 for d
in $docbook_xsl_trees
20272 f
=$d/html
/maketoc.xsl
20275 XSLT_DOCBOOK_MAKETOC_HTML
=$f
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
20277 $as_echo "$f" >&6; }
20281 if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
20284 $as_echo "\"not found\"" >&6; };
20285 XSLT_DOCBOOK_MAKETOC_HTML
=html
/maketoc.xsl
20290 XSLT_DOCBOOK_MAKETOC_XHTML
=""
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5
20292 $as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
20293 for d
in $docbook_xsl_trees
20295 f
=$d/xhtml
/maketoc.xsl
20298 XSLT_DOCBOOK_MAKETOC_XHTML
=$f
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
20300 $as_echo "$f" >&6; }
20304 if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
20307 $as_echo "\"not found\"" >&6; };
20308 XSLT_DOCBOOK_MAKETOC_XHTML
=xhtml
/maketoc.xsl
20314 # Same dance for db2latex
20317 db2latex_xsl_trees
="/usr/local/share/db2latex/xsl /usr/pkg/share/xsl/db2latex"
20320 # Look for stylesheets we need.
20324 XSLT_DB2LATEX_STYLE
=""
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docbook.xsl" >&5
20326 $as_echo_n "checking for docbook.xsl... " >&6; }
20327 for d
in $db2latex_xsl_trees
20332 XSLT_DB2LATEX_STYLE
=$f
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
20334 $as_echo "$f" >&6; }
20338 if test "X$XSLT_DB2LATEX_STYLE" = "X"
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
20341 $as_echo "\"not found\"" >&6; };
20342 XSLT_DB2LATEX_STYLE
=docbook.xsl
20348 # Look for "admonition" image directory. Can't use NOM_PATH_FILE()
20349 # because it's a directory, so just do the same things, inline.
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db2latex xsl figures" >&5
20353 $as_echo_n "checking for db2latex xsl figures... " >&6; }
20354 for d
in $db2latex_xsl_trees
20356 if test -d $d/figures
20358 XSLT_DB2LATEX_ADMONITIONS
=$d/figures
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d/figures" >&5
20360 $as_echo "$d/figures" >&6; }
20364 if test "X$XSLT_DB2LATEX_ADMONITIONS" = "X"
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20367 $as_echo "not found" >&6; }
20368 XSLT_DB2LATEX_ADMONITIONS
=db2latex
/xsl
/figures
20376 # Check whether --with-idn was given.
20377 if test "${with_idn+set}" = set; then :
20378 withval
=$with_idn; use_idn
="$withval"
20385 if test X
$prefix = XNONE
; then
20386 idn_path
=/usr
/local
20394 idn_path
="$use_idn"
20401 # Check whether --with-libiconv was given.
20402 if test "${with_libiconv+set}" = set; then :
20403 withval
=$with_libiconv; use_libiconv
="$withval"
20408 case "$use_libiconv" in
20410 if test X
$prefix = XNONE
; then
20411 iconvlib
="-L/usr/local/lib -R/usr/local/lib -liconv"
20413 iconvlib
="-L$prefix/lib -R$prefix/lib -liconv"
20420 iconvlib
="-L$use_libiconv/lib -R$use_libiconv/lib -liconv"
20425 # Check whether --with-iconv was given.
20426 if test "${with_iconv+set}" = set; then :
20427 withval
=$with_iconv; iconvlib
="$withval"
20430 case "$iconvlib" in
20440 # Check whether --with-idnlib was given.
20441 if test "${with_idnlib+set}" = set; then :
20442 withval
=$with_idnlib; idnlib
="$withval"
20447 if test "$idnlib" = yes; then
20448 as_fn_error $?
"You must specify ARG for --with-idnlib." "$LINENO" 5
20452 if test "$use_idn" != no
; then
20454 $as_echo "#define WITH_IDN 1" >>confdefs.h
20456 STD_CINCLUDES
="$STD_CINCLUDES -I$idn_path/include"
20457 if test "$idnlib" != no
; then
20458 IDNLIBS
="$idnlib $iconvlib"
20460 IDNLIBS
="-L$idn_path/lib -lidnkit $iconvlib"
20466 # Check whether to build Automated Test Framework unit tests
20469 # Check whether --with-atf was given.
20470 if test "${with_atf+set}" = set; then :
20471 withval
=$with_atf; atf
="$withval"
20476 if test "$atf" = yes; then
20480 ac_config_commands
="$ac_config_commands atf-config"
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: building ATF from bind9/unit/atf-src" >&5
20483 $as_echo "building ATF from bind9/unit/atf-src" >&6; }
20487 if test "$atf" != no
; then
20489 $as_echo "#define ATF_TEST 1" >>confdefs.h
20491 STD_CINCLUDES
="$STD_CINCLUDES -I$atf/include"
20493 ATFLIBS
="-L$atf/lib -latf-c"
20500 for ac_header
in locale.h
20502 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
20503 if test "x$ac_cv_header_locale_h" = xyes
; then :
20504 cat >>confdefs.h
<<_ACEOF
20505 #define HAVE_LOCALE_H 1
20512 for ac_func
in setlocale
20514 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
20515 if test "x$ac_cv_func_setlocale" = xyes
; then :
20516 cat >>confdefs.h
<<_ACEOF
20517 #define HAVE_SETLOCALE 1
20525 # was --with-tuning specified?
20528 # Check whether --with-tuning was given.
20529 if test "${with_tuning+set}" = set; then :
20530 withval
=$with_tuning; use_tuning
="$withval"
20536 case "$use_tuning" in
20538 if ! $use_threads; then
20539 as_fn_error $?
"Large-system tuning requires threads." "$LINENO" 5
20542 $as_echo "#define TUNE_LARGE 1" >>confdefs.h
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using large-system tuning" >&5
20545 $as_echo "using large-system tuning" >&6; }
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default tuning" >&5
20549 $as_echo "using default tuning" >&6; }
20552 as_fn_error $?
"You must specify \"large\" or \"default\" for --with-tuning." "$LINENO" 5
20560 BIND9_TOP_BUILDDIR
=`pwd`
20569 if test "X$srcdir" != "X"; then
20570 BIND9_ISC_BUILDINCLUDE
="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
20571 BIND9_ISCCC_BUILDINCLUDE
="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
20572 BIND9_ISCCFG_BUILDINCLUDE
="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
20573 BIND9_DNS_BUILDINCLUDE
="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
20574 BIND9_LWRES_BUILDINCLUDE
="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
20575 BIND9_BIND9_BUILDINCLUDE
="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
20576 BIND9_IRS_BUILDINCLUDE
="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
20578 BIND9_ISC_BUILDINCLUDE
=""
20579 BIND9_ISCCC_BUILDINCLUDE
=""
20580 BIND9_ISCCFG_BUILDINCLUDE
=""
20581 BIND9_DNS_BUILDINCLUDE
=""
20582 BIND9_LWRES_BUILDINCLUDE
=""
20583 BIND9_BIND9_BUILDINCLUDE
=""
20584 BIND9_IRS_BUILDINCLUDE
=""
20588 BIND9_MAKE_INCLUDES
=$BIND9_TOP_BUILDDIR/make
/includes
20591 BIND9_MAKE_RULES
=$BIND9_TOP_BUILDDIR/make
/rules
20593 .
"$srcdir/version"
20594 BIND9_PRODUCT
="PRODUCT=\"${PRODUCT}\""
20596 BIND9_DESCRIPTION
="DESCRIPTION=\"${DESCRIPTION}\""
20598 BIND9_VERSION
="VERSION=${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
20600 BIND9_MAJOR
="MAJOR=${MAJORVER}.${MINORVER}"
20602 BIND9_VERSIONSTRING
="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
20605 BIND9_SRCID
="SRCID=unset"
20606 if test -f "${srcdir}/srcid"; then
20607 .
"${srcdir}/srcid"
20608 BIND9_SRCID
="SRCID=$SRCID"
20609 elif test -d "${srcdir}/.git"; then
20610 BIND9_SRCID
="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
20615 if test -z "$ac_configure_args"; then
20616 BIND9_CONFIGARGS
="defaults"
20618 for a
in $ac_configure_args
20620 BIND9_CONFIGARGS
="$BIND9_CONFIGARGS $a"
20623 BIND9_CONFIGARGS
="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
20624 BIND9_CONFIGARGS
="CONFIGARGS=${BIND9_CONFIGARGS}"
20628 LIBISC_API
="$srcdir/lib/isc/api"
20631 LIBISCCC_API
="$srcdir/lib/isccc/api"
20634 LIBISCCFG_API
="$srcdir/lib/isccfg/api"
20637 LIBDNS_API
="$srcdir/lib/dns/api"
20640 LIBDNS_MAPAPI
="$srcdir/lib/dns/mapapi"
20643 LIBBIND9_API
="$srcdir/lib/bind9/api"
20646 LIBLWRES_API
="$srcdir/lib/lwres/api"
20649 LIBIRS_API
="$srcdir/lib/irs/api"
20652 # Configure any DLZ drivers.
20654 # If config.dlz.in selects one or more DLZ drivers, it will set
20655 # CONTRIB_DLZ to a non-empty value, which will be our clue to
20656 # build DLZ drivers in contrib.
20658 # This section has to come after the libtool stuff because it needs to
20659 # know how to name the driver object files.
20663 DLZ_DRIVER_INCLUDES
=""
20670 # Configure support for building a shared library object
20672 # Even when libtool is available it can't always be relied upon
20673 # to build an object that can be dlopen()'ed, but this is necessary
20674 # for building the dlzexternal system test, so we'll try it the
20675 # old-fashioned way.
20684 # Check whether --with-dlopen was given.
20685 if test "${with_dlopen+set}" = set; then :
20686 withval
=$with_dlopen; dlopen
="$withval"
20693 *-sunos*) dlopen
="no"
20697 if test "$dlopen" = "yes"; then
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20699 $as_echo_n "checking for dlopen in -ldl... " >&6; }
20700 if ${ac_cv_lib_dl_dlopen+:} false
; then :
20701 $as_echo_n "(cached) " >&6
20703 ac_check_lib_save_LIBS
=$LIBS
20705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20706 /* end confdefs.h. */
20708 /* Override any GCC internal prototype to avoid an error.
20709 Use char because int might match the return type of a GCC
20710 builtin and then its argument prototype would still apply. */
20723 if ac_fn_c_try_link
"$LINENO"; then :
20724 ac_cv_lib_dl_dlopen
=yes
20726 ac_cv_lib_dl_dlopen
=no
20728 rm -f core conftest.err conftest.
$ac_objext \
20729 conftest
$ac_exeext conftest.
$ac_ext
20730 LIBS
=$ac_check_lib_save_LIBS
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20733 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20734 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
20740 if test "$have_dl" = "yes"; then
20743 for ac_func
in dlopen dlclose dlsym
20745 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20746 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20747 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
20748 cat >>confdefs.h
<<_ACEOF
20749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20759 if test "$dlopen" = "yes"; then
20764 if test "$have_dl" = "yes"
20766 if test "$use_libtool" = "yes"; then
20767 SO_LDFLAGS
="-Xcompiler -shared"
20770 SO_LDFLAGS
="-shared"
20774 SO_LDFLAGS
="-shared"
20778 *-freebsd*|
*-openbsd*|
*-netbsd*)
20780 SO_LDFLAGS
="-Bshareable -x"
20785 SO_LDFLAGS
="-G -z text"
20791 SO_LDFLAGS
="-b +vnocompatwarnings"
20799 if test "X$GCC" = "Xyes"; then
20801 if test -z "$SO_LD"
20803 if test "$use_libtool" = "yes"; then
20804 SO_LDFLAGS
="-Xcompiler -shared"
20807 SO_LDFLAGS
="-shared"
20813 # If we still don't know how to make shared objects, don't make any.
20814 if test -n "$SO_LD"; then
20815 SO_TARGETS
="\${SO_TARGETS}"
20817 $as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
20828 # Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
20830 # Permission to use, copy, modify, and distribute this software for any
20831 # purpose with or without fee is hereby granted, provided that the above
20832 # copyright notice and this permission notice appear in all copies.
20834 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
20835 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
20836 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
20837 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
20838 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
20839 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20840 # PERFORMANCE OF THIS SOFTWARE.
20843 # Shorthand. Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
20845 dlzdir
='${DLZ_DRIVER_DIR}'
20848 # Private autoconf macro to simplify configuring drivers:
20850 # DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
20853 # DEFINE is FOO (to define -DDLZ_FOO)
20854 # DRIVER is dlz_foo_driver (sources without the .c)
20855 # INCLUDES is any necessary include definitions
20856 # LIBS is any necessary library definitions
20861 # Check for the various DLZ drivers
20865 # Was --with-dlz-postgres specified?
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
20869 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
20871 # Check whether --with-dlz_postgres was given.
20872 if test "${with_dlz_postgres+set}" = set; then :
20873 withval
=$with_dlz_postgres; use_dlz_postgres
="$withval"
20875 use_dlz_postgres
="no"
20879 if test "$use_dlz_postgres" != "no"
20881 if test "$use_dlz_postgres" != "yes"
20883 for ac_prog
in pg_config
20885 # Extract the first word of "$ac_prog", so it can be a program name with args.
20886 set dummy
$ac_prog; ac_word
=$2
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20888 $as_echo_n "checking for $ac_word... " >&6; }
20889 if ${ac_cv_path_PG_CONFIG+:} false
; then :
20890 $as_echo_n "(cached) " >&6
20894 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
20897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20898 for as_dir
in $use_dlz_postgres/bin
20901 test -z "$as_dir" && as_dir
=.
20902 for ac_exec_ext
in '' $ac_executable_extensions; do
20903 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20904 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
20905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20915 PG_CONFIG
=$ac_cv_path_PG_CONFIG
20916 if test -n "$PG_CONFIG"; then
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
20918 $as_echo "$PG_CONFIG" >&6; }
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20921 $as_echo "no" >&6; }
20925 test -n "$PG_CONFIG" && break
20927 test -n "$PG_CONFIG" || PG_CONFIG
="not found"
20930 for ac_prog
in pg_config
20932 # Extract the first word of "$ac_prog", so it can be a program name with args.
20933 set dummy
$ac_prog; ac_word
=$2
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20935 $as_echo_n "checking for $ac_word... " >&6; }
20936 if ${ac_cv_path_PG_CONFIG+:} false
; then :
20937 $as_echo_n "(cached) " >&6
20941 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
20944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20945 for as_dir
in $PATH
20948 test -z "$as_dir" && as_dir
=.
20949 for ac_exec_ext
in '' $ac_executable_extensions; do
20950 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20951 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
20952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20962 PG_CONFIG
=$ac_cv_path_PG_CONFIG
20963 if test -n "$PG_CONFIG"; then
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
20965 $as_echo "$PG_CONFIG" >&6; }
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20968 $as_echo "no" >&6; }
20972 test -n "$PG_CONFIG" && break
20974 test -n "$PG_CONFIG" || PG_CONFIG
="not found"
20978 if test "$PG_CONFIG" != "not found"
20980 use_dlz_postgres
=`$PG_CONFIG --includedir`
20981 use_dlz_postgres_lib
=`$PG_CONFIG --libdir`
20983 pgprefix
="$use_dlz_postgres"
20984 use_dlz_postgres
="$pgprefix/include"
20985 use_dlz_postgres_lib
="$pgprefix/lib"
20989 if test "$use_dlz_postgres" = "yes/include"
20991 # User did not specify path and Postgres didn't say - guess it
20992 pgdirs
="/usr /usr/local /usr/local/pgsql /usr/pkg"
20995 if test -f $d/include
/libpq-fe.h
20997 use_dlz_postgres
=$d/include
20998 use_dlz_postgres_lib
=$d/lib
21004 if test "$use_dlz_postgres" = "yes/include"
21006 # Still no joy, give up
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21009 $as_echo "not found" >&6; }
21010 as_fn_error $?
"No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" "$LINENO" 5
21013 case "$use_dlz_postgres" in
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21016 $as_echo "no" >&6; }
21020 CONTRIB_DLZ
="$CONTRIB_DLZ -DDLZ_POSTGRES"
21021 for i
in dlz_postgres_driver
21023 DLZ_DRIVER_SRCS
="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21024 DLZ_DRIVER_OBJS
="$DLZ_DRIVER_OBJS $i.$O"
21026 if test -n "-I$use_dlz_postgres"
21028 DLZ_DRIVER_INCLUDES
="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
21030 if test -n "-L$use_dlz_postgres_lib -lpq"
21032 DLZ_DRIVER_LIBS
="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
21037 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
21043 # Was --with-dlz-mysql specified?
21046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
21047 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
21049 # Check whether --with-dlz_mysql was given.
21050 if test "${with_dlz_mysql+set}" = set; then :
21051 withval
=$with_dlz_mysql; use_dlz_mysql
="$withval"
21059 if test "$use_dlz_mysql" = "yes"
21061 # User did not specify a path - guess it
21062 mysqldirs
="/usr /usr/local /usr/local/mysql /usr/pkg"
21063 for d
in $mysqldirs
21065 if test -f $d/include
/mysql
/mysql.h
21068 mysql_include
=$d/include
/mysql
21069 if test -d $d/lib
/mysql
21071 mysql_lib
=$d/lib
/mysql
21076 elif test -f $d/include
/mysql.h
21079 mysql_include
=$d/include
21080 if test -d $d/lib
/mysql
21082 mysql_lib
=$d/lib
/mysql
21089 elif test "$use_dlz_mysql" != "no"
21092 if test -f $d/include
/mysql
/mysql.h
21094 mysql_include
=$d/include
/mysql
21095 if test -d $d/lib
/mysql
21097 mysql_lib
=$d/lib
/mysql
21101 elif test -f $d/include
/mysql.h
21103 mysql_include
=$d/include
21104 if test -d $d/lib
/mysql
21106 mysql_lib
=$d/lib
/mysql
21113 if test "$use_dlz_mysql" = "yes"
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21116 $as_echo "not found" >&6; }
21117 as_fn_error $?
"MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
21120 case "$use_dlz_mysql" in
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21123 $as_echo "no" >&6; }
21127 CONTRIB_DLZ
="$CONTRIB_DLZ -DDLZ_MYSQL"
21128 for i
in dlz_mysql_driver
21130 DLZ_DRIVER_SRCS
="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
21131 DLZ_DRIVER_OBJS
="$DLZ_DRIVER_OBJS $i.$O"
21133 if test -n "-I${mysql_include}"
21135 DLZ_DRIVER_INCLUDES
="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
21137 if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
21139 DLZ_DRIVER_LIBS
="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
21144 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
21150 # Was --with-dlz-bdb specified?
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for Berkeley DB DLZ driver...
" >&5
21154 $as_echo_n "checking
for Berkeley DB DLZ driver......
" >&6; }
21156 # Check whether --with-dlz_bdb was given.
21157 if test "${with_dlz_bdb+set}" = set; then :
21158 withval=$with_dlz_bdb; use_dlz_bdb="$withval"
21164 case "$use_dlz_bdb" in
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
21167 $as_echo "no
" >&6; }
21170 if test "$use_dlz_bdb" = "yes"
21172 # User did not specify a path - guess directories
21173 bdbdirs="/usr
/local /usr
/pkg
/usr
"
21174 elif test -d "$use_dlz_bdb"
21176 # User specified directory and it exists
21177 bdbdirs="$use_dlz_bdb"
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: not found
" >&5
21180 $as_echo "not found
" >&6; }
21181 as_fn_error $? "path
$use_dlz_bdb does not exist
" "$LINENO" 5
21185 # Use path we were given or guessed. This is insanely
21186 # complicated because we have to search for a bunch of
21187 # platform-specific variations and have to check
21188 # separately for include and library directories.
21190 # Set both to yes, so we can check them later
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: " >&5
21198 # Skip nonexistant directories
21204 # Check other locations for includes.
21205 # Order is important (sigh).
21207 bdb_incdirs="/db53
/db51
/db48
/db47
/db46
/db45
/db44
/db43
/db42
/db41
/db4
/db
"
21208 # include a blank element first
21209 for d in "" $bdb_incdirs
21211 if test -f "$dd/include
${d}/db.h
"
21213 dlz_bdb_inc="-I$dd/include
${d}"
21218 # Give up on this directory if we couldn't
21219 # find the include subdir
21221 if test "$dlz_bdb_inc" = "yes"
21226 # Look for libname other than libdb.so.
21227 # Order is important (sigh).
21229 bdb_libnames="db53 db-5.3 db51 db-5.1 db48 db-4.8 db47 db-4.7 db46 db-4.6 db45 db-4.5 db44 db-4.4 db43 db-4.3 db42 db-4.2 db41 db-4.1 db
"
21230 for d in $bdb_libnames
21232 if test "$dd" = "/usr
"
21234 as_ac_Lib=`$as_echo "ac_cv_lib_
$d''_db_create
" | $as_tr_sh`
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for db_create
in -l$d" >&5
21236 $as_echo_n "checking
for db_create
in -l$d...
" >&6; }
21237 if eval \${$as_ac_Lib+:} false; then :
21238 $as_echo_n "(cached
) " >&6
21240 ac_check_lib_save_LIBS=$LIBS
21242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21243 /* end confdefs.h. */
21245 /* Override any GCC internal prototype to avoid an error.
21246 Use char because int might match the return type of a GCC
21247 builtin and then its argument prototype would still apply. */
21255 return db_create ();
21260 if ac_fn_c_try_link "$LINENO"; then :
21261 eval "$as_ac_Lib=yes"
21263 eval "$as_ac_Lib=no
"
21265 rm -f core conftest.err conftest.$ac_objext \
21266 conftest$ac_exeext conftest.$ac_ext
21267 LIBS=$ac_check_lib_save_LIBS
21269 eval ac_res=\$$as_ac_Lib
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
21271 $as_echo "$ac_res" >&6; }
21272 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21273 dlz_bdb_libs="-l${d}"
21276 if test $dlz_bdb_libs != "yes"
21280 elif test -f "$dd/lib
/lib
${d}.so
"
21282 dlz_bdb_libs="-L${dd}/lib
-l${d}"
21287 # If we found both incdir and lib, we're done
21288 if test "$dlz_bdb_libs" != "yes"
21293 # Otherwise, we're starting over
21299 # Done searching, now make sure we got everything.
21301 if test "$dlz_bdb_inc" = "yes"
21303 as_fn_error $? "could not
find Berkeley DB include directory
" "$LINENO" 5
21306 if test "$dlz_bdb_libs" = "yes"
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: not found
" >&5
21309 $as_echo "not found
" >&6; }
21310 as_fn_error $? "could not
find Berkeley DB library
" "$LINENO" 5
21314 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
21315 for i in dlz_bdb_driver dlz_bdbhpt_driver
21317 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c
"
21318 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.
$O"
21320 if test -n "$dlz_bdb_inc"
21322 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
21324 if test -n "$dlz_bdb_libs"
21326 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: using Berkeley DB
: $dlz_bdb_inc $dlz_bdb_libs" >&5
21331 $as_echo "using Berkeley DB
: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
21333 ac_config_files="$ac_config_files contrib
/dlz
/bin
/dlzbdb
/Makefile
"
21340 # Was --with-dlz-filesystem specified?
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file system DLZ driver
" >&5
21344 $as_echo_n "checking
for file system DLZ driver...
" >&6; }
21346 # Check whether --with-dlz_filesystem was given.
21347 if test "${with_dlz_filesystem+set}" = set; then :
21348 withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
21350 use_dlz_filesystem="no
"
21354 case "$use_dlz_filesystem" in
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
21357 $as_echo "no
" >&6; }
21361 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
21362 for i in dlz_filesystem_driver
21364 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c
"
21365 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.
$O"
21369 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
21373 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
21376 DLZ_SYSTEM_TEST=filesystem
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
21378 $as_echo "yes" >&6; }
21384 # Was --with-dlz-ldap specified?
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for LDAP DLZ driver
" >&5
21388 $as_echo_n "checking
for LDAP DLZ driver...
" >&6; }
21390 # Check whether --with-dlz_ldap was given.
21391 if test "${with_dlz_ldap+set}" = set; then :
21392 withval=$with_dlz_ldap; use_dlz_ldap="$withval"
21398 if test "$use_dlz_ldap" = "yes"
21400 # User did not specify a path - guess it
21401 ldapdirs="/usr
/usr
/local /usr
/pkg
"
21404 if test -f $d/include/ldap.h
21412 if test "$use_dlz_ldap" = "yes"
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: not found
" >&5
21415 $as_echo "not found
" >&6; }
21416 as_fn_error $? "LDAP headers were not found
in any of
$ldapdirs; use
--with-dlz-ldap=/path
" "$LINENO" 5
21419 case "$use_dlz_ldap" in
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
21422 $as_echo "no
" >&6; }
21426 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
21427 for i in dlz_ldap_driver
21429 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c
"
21430 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.
$O"
21432 if test -n "-I$use_dlz_ldap/include
"
21434 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include
"
21436 if test -n "-L$use_dlz_ldap/lib
-lldap -llber"
21438 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib
-lldap -llber"
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: using LDAP from
$use_dlz_ldap/lib and
$use_dlz_ldap/include
" >&5
21443 $as_echo "using LDAP from
$use_dlz_ldap/lib and
$use_dlz_ldap/include
" >&6; }
21449 # Was --with-dlz-odbc specified?
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ODBC DLZ driver
" >&5
21453 $as_echo_n "checking
for ODBC DLZ driver...
" >&6; }
21455 # Check whether --with-dlz_odbc was given.
21456 if test "${with_dlz_odbc+set}" = set; then :
21457 withval=$with_dlz_odbc; use_dlz_odbc="$withval"
21463 if test "$use_dlz_odbc" = "yes"
21465 # User did not specify a path - guess it
21468 ac_fn_c_check_header_mongrel "$LINENO" "sql.h
" "ac_cv_header_sql_h
" "$ac_includes_default"
21469 if test "x
$ac_cv_header_sql_h" = xyes; then :
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for SQLConnect
in -lodbc" >&5
21475 $as_echo_n "checking
for SQLConnect
in -lodbc...
" >&6; }
21476 if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
21477 $as_echo_n "(cached
) " >&6
21479 ac_check_lib_save_LIBS=$LIBS
21480 LIBS="-lodbc $LIBS"
21481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21482 /* end confdefs.h. */
21484 /* Override any GCC internal prototype to avoid an error.
21485 Use char because int might match the return type of a GCC
21486 builtin and then its argument prototype would still apply. */
21490 char SQLConnect ();
21494 return SQLConnect ();
21499 if ac_fn_c_try_link "$LINENO"; then :
21500 ac_cv_lib_odbc_SQLConnect=yes
21502 ac_cv_lib_odbc_SQLConnect=no
21504 rm -f core conftest.err conftest.$ac_objext \
21505 conftest$ac_exeext conftest.$ac_ext
21506 LIBS=$ac_check_lib_save_LIBS
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_lib_odbc_SQLConnect" >&5
21509 $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
21510 if test "x
$ac_cv_lib_odbc_SQLConnect" = xyes; then :
21515 if test $libodbc_found = "yes" -o $sql_h_found = "yes"
21517 use_dlz_odbc=system
21518 dlz_odbc_include=""
21519 dlz_odbc_libs="-lodbc"
21521 odbcdirs="/usr
/usr
/local /usr
/pkg
"
21524 if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
21527 dlz_odbc_include="-I$use_dlz_odbc/include
"
21528 dlz_odbc_libs="-L$use_dlz_odbc/lib
-lodbc"
21535 case "$use_dlz_odbc" in
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
21538 $as_echo "no
" >&6; }
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: not found
" >&5
21542 $as_echo "not found
" >&6; }
21543 as_fn_error $? "ODBC headers were not found
in any of
$odbcdirs; use
--with-dlz-odbc=/path
" "$LINENO" 5
21547 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
21548 for i in dlz_odbc_driver
21550 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c
"
21551 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.
$O"
21553 if test -n "$dlz_odbc_include"
21555 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
21557 if test -n "$dlz_odbc_libs"
21559 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: using ODBC from
$use_dlz_odbc" >&5
21564 $as_echo "using ODBC from
$use_dlz_odbc" >&6; }
21570 # Was --with-dlz-stub specified?
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for stub DLZ driver
" >&5
21574 $as_echo_n "checking
for stub DLZ driver...
" >&6; }
21576 # Check whether --with-dlz_stub was given.
21577 if test "${with_dlz_stub+set}" = set; then :
21578 withval=$with_dlz_stub; use_dlz_stub="$withval"
21584 case "$use_dlz_stub" in
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
21587 $as_echo "no
" >&6; }
21592 CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
21593 for i in dlz_stub_driver
21595 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c
"
21596 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.
$O"
21600 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
21604 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
21609 $as_echo "yes" >&6; }
21613 # Add any additional DLZ drivers here.
21616 # Finally, some generic stuff that applies to all drivers, assuming
21617 # we're compiling contrib DLZ drivers at all.
21619 if test -n "$CONTRIB_DLZ"
21621 CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
21624 # Where to find DLZ driver header files.
21626 DLZ_DRIVER_INCLUDES="-I$dlzdir/include
$DLZ_DRIVER_INCLUDES"
21629 # Initialization and shutdown wrappers, helper functions.
21631 DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c
$dlzdir/sdlz_helper.c
$DLZ_DRIVER_SRCS"
21632 DLZ_DRIVER_OBJS="dlz_drivers.
$O sdlz_helper.
$O $DLZ_DRIVER_OBJS"
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers
" >&5
21636 $as_echo_n "checking contributed DLZ drivers...
" >&6; }
21638 if test -n "$CONTRIB_DLZ"
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
21641 $as_echo "yes" >&6; }
21642 DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
21643 ac_config_files="$ac_config_files $DLZ_DRIVER_RULES"
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
21647 $as_echo "no
" >&6; }
21648 DLZ_DRIVER_RULES=/dev/null
21659 if test "$cross_compiling" = "yes"; then
21660 if test -z "$BUILD_CC"; then
21661 as_fn_error $? "BUILD_CC not
set" "$LINENO" 5
21663 BUILD_CFLAGS="$BUILD_CFLAGS"
21664 BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
21665 BUILD_LDFLAGS="$BUILD_LDFLAGS"
21666 BUILD_LIBS="$BUILD_LIBS"
21669 BUILD_CFLAGS="$CFLAGS"
21670 BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
21671 BUILD_LDFLAGS="$LDFLAGS"
21676 for e in $BUILD_LDFLAGS ; do
21681 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21682 NEWFLAGS="$NEWFLAGS $e $ee"
21685 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21686 NEWFLAGS="$NEWFLAGS $e $ee"
21689 ee=`echo $e | sed -e 's%^-L%-R%'`
21690 NEWFLAGS="$NEWFLAGS $e $ee"
21693 NEWFLAGS="$NEWFLAGS $e"
21698 NEWFLAGS="$NEWFLAGS $e"
21702 BUILD_LDFLAGS="$NEWFLAGS"
21705 for e in $DNS_GSSAPI_LIBS ; do
21710 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21711 NEWFLAGS="$NEWFLAGS $e $ee"
21714 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21715 NEWFLAGS="$NEWFLAGS $e $ee"
21718 ee=`echo $e | sed -e 's%^-L%-R%'`
21719 NEWFLAGS="$NEWFLAGS $e $ee"
21722 NEWFLAGS="$NEWFLAGS $e"
21727 NEWFLAGS="$NEWFLAGS $e"
21731 DNS_GSSAPI_LIBS="$NEWFLAGS"
21734 for e in $ISC_OPENSSL_LIBS ; do
21739 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21740 NEWFLAGS="$NEWFLAGS $e $ee"
21743 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21744 NEWFLAGS="$NEWFLAGS $e $ee"
21747 ee=`echo $e | sed -e 's%^-L%-R%'`
21748 NEWFLAGS="$NEWFLAGS $e $ee"
21751 NEWFLAGS="$NEWFLAGS $e"
21756 NEWFLAGS="$NEWFLAGS $e"
21760 ISC_OPENSSL_LIBS="$NEWFLAGS"
21763 for e in $DNS_CRYPTO_LIBS ; do
21768 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21769 NEWFLAGS="$NEWFLAGS $e $ee"
21772 ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
21773 NEWFLAGS="$NEWFLAGS $e $ee"
21776 ee=`echo $e | sed -e 's%^-L%-R%'`
21777 NEWFLAGS="$NEWFLAGS $e $ee"
21780 NEWFLAGS="$NEWFLAGS $e"
21785 NEWFLAGS="$NEWFLAGS $e"
21789 DNS_CRYPTO_LIBS="$NEWFLAGS"
21798 # Commands to run at the end of config.status.
21799 # Don't just put these into configure, it won't work right if somebody
21800 # runs config.status directly (which autoconf allows).
21803 ac_config_commands="$ac_config_commands chmod"
21807 # Files to configure. These are listed here because we used to
21808 # specify them as arguments to AC_OUTPUT. It's (now) ok to move these
21809 # elsewhere if there's a good reason for doing so.
21812 ac_config_files="$ac_config_files make
/Makefile make
/mkdep Makefile bin
/Makefile bin
/check
/Makefile bin
/confgen
/Makefile bin
/confgen
/unix
/Makefile bin
/delv
/Makefile bin
/dig
/Makefile bin
/dnssec
/Makefile bin
/named
/Makefile bin
/named
/unix
/Makefile bin
/nsupdate
/Makefile bin
/pkcs11
/Makefile bin
/python
/Makefile bin
/python
/dnssec-checkds.py bin
/python
/dnssec-coverage.py bin
/rndc
/Makefile bin
/tests
/Makefile bin
/tests
/atomic
/Makefile bin
/tests
/db
/Makefile bin
/tests
/dst
/Makefile bin
/tests
/dst
/Kdh.
+002+18602.key bin
/tests
/dst
/Kdh.
+002+18602.private bin
/tests
/dst
/Kdh.
+002+48957.key bin
/tests
/dst
/Kdh.
+002+48957.private bin
/tests
/dst
/Ktest.
+001+00002.key bin
/tests
/dst
/Ktest.
+001+54622.key bin
/tests
/dst
/Ktest.
+001+54622.private bin
/tests
/dst
/Ktest.
+003+23616.key bin
/tests
/dst
/Ktest.
+003+23616.private bin
/tests
/dst
/Ktest.
+003+49667.key bin
/tests
/dst
/dst_2_data bin
/tests
/dst
/t2_data_1 bin
/tests
/dst
/t2_data_2 bin
/tests
/dst
/t2_dsasig bin
/tests
/dst
/t2_rsasig bin
/tests
/hashes
/Makefile bin
/tests
/headerdep_test.sh bin
/tests
/master
/Makefile bin
/tests
/mem
/Makefile bin
/tests
/names
/Makefile bin
/tests
/net
/Makefile bin
/tests
/pkcs11
/Makefile bin
/tests
/pkcs11
/benchmarks
/Makefile bin
/tests
/rbt
/Makefile bin
/tests
/resolver
/Makefile bin
/tests
/sockaddr
/Makefile bin
/tests
/system
/Makefile bin
/tests
/system
/conf.sh bin
/tests
/system
/builtin
/Makefile bin
/tests
/system
/dlz
/prereq.sh bin
/tests
/system
/dlzexternal
/Makefile bin
/tests
/system
/dlzexternal
/ns
1/named.conf bin
/tests
/system
/dlzredir
/prereq.sh bin
/tests
/system
/filter-aaaa
/Makefile bin
/tests
/system
/geoip
/Makefile bin
/tests
/system
/inline
/checkdsa.sh bin
/tests
/system
/lwresd
/Makefile bin
/tests
/system
/sit
/prereq.sh bin
/tests
/system
/rpz
/Makefile bin
/tests
/system
/rsabigexponent
/Makefile bin
/tests
/system
/tkey
/Makefile bin
/tests
/system
/tsiggss
/Makefile bin
/tests
/tasks
/Makefile bin
/tests
/timers
/Makefile bin
/tests
/virtual-time
/Makefile bin
/tests
/virtual-time
/conf.sh bin
/tools
/Makefile contrib
/scripts
/check-secure-delegation.pl contrib
/scripts
/zone-edit.sh
doc
/Makefile
doc
/arm
/Makefile
doc
/doxygen
/Doxyfile
doc
/doxygen
/Makefile
doc
/doxygen
/doxygen-input-filter
doc
/misc
/Makefile
doc
/xsl
/Makefile
doc
/xsl
/isc-docbook-chunk.xsl
doc
/xsl
/isc-docbook-html.xsl
doc
/xsl
/isc-docbook-latex.xsl
doc
/xsl
/isc-manpage.xsl
doc
/xsl
/isc-notes-html.xsl
doc
/xsl
/isc-notes-latex.xsl isc-config.sh lib
/Makefile lib
/bind9/Makefile lib
/bind9/include
/Makefile lib
/bind9/include
/bind9/Makefile lib
/dns
/Makefile lib
/dns
/include
/Makefile lib
/dns
/include
/dns
/Makefile lib
/dns
/include
/dst
/Makefile lib
/dns
/tests
/Makefile lib
/irs
/Makefile lib
/irs
/include
/Makefile lib
/irs
/include
/irs
/Makefile lib
/irs
/include
/irs
/netdb.h lib
/irs
/include
/irs
/platform.h lib
/isc
/$arch/Makefile lib
/isc
/$arch/include
/Makefile lib
/isc
/$arch/include
/isc
/Makefile lib
/isc
/$thread_dir/Makefile lib
/isc
/$thread_dir/include
/Makefile lib
/isc
/$thread_dir/include
/isc
/Makefile lib
/isc
/Makefile lib
/isc
/include
/Makefile lib
/isc
/include
/isc
/Makefile lib
/isc
/include
/isc
/platform.h lib
/isc
/include
/pk11
/Makefile lib
/isc
/include
/pkcs11
/Makefile lib
/isc
/tests
/Makefile lib
/isc
/nls
/Makefile lib
/isc
/unix
/Makefile lib
/isc
/unix
/include
/Makefile lib
/isc
/unix
/include
/isc
/Makefile lib
/isc
/unix
/include
/pkcs11
/Makefile lib
/isccc
/Makefile lib
/isccc
/include
/Makefile lib
/isccc
/include
/isccc
/Makefile lib
/isccfg
/Makefile lib
/isccfg
/include
/Makefile lib
/isccfg
/include
/isccfg
/Makefile lib
/lwres
/Makefile lib
/lwres
/include
/Makefile lib
/lwres
/include
/lwres
/Makefile lib
/lwres
/include
/lwres
/netdb.h lib
/lwres
/include
/lwres
/platform.h lib
/lwres
/man
/Makefile lib
/lwres
/tests
/Makefile lib
/lwres
/unix
/Makefile lib
/lwres
/unix
/include
/Makefile lib
/lwres
/unix
/include
/lwres
/Makefile lib
/tests
/Makefile lib
/tests
/include
/Makefile lib
/tests
/include
/tests
/Makefile lib
/samples
/Makefile lib
/samples
/Makefile-postinstall unit
/Makefile unit
/unittest.sh
"
21819 cat >confcache <<\_ACEOF
21820 # This file is a shell script that caches the results of configure
21821 # tests run on this system so they can be shared between configure
21822 # scripts and configure runs, see configure's option --config-cache.
21823 # It is not useful on other systems. If it contains results you don't
21824 # want to keep, you may remove or edit it.
21826 # config.status only pays attention to the cache file if you give it
21827 # the --recheck option to rerun configure.
21829 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21830 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21831 # following values.
21835 # The following way of writing the cache mishandles newlines in values,
21836 # but we know of no workaround that is simple, portable, and efficient.
21837 # So, we kill variables containing newlines.
21838 # Ultrix sh set writes to stderr and can't be redirected directly,
21839 # and sets the high bit in the cache file unless we assign to the vars.
21841 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21842 eval ac_val=\$$ac_var
21846 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
21847 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
21850 _ | IFS | as_nl) ;; #(
21851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21852 *) { eval $ac_var=; unset $ac_var;} ;;
21858 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21859 *${as_nl}ac_space=\ *)
21860 # `set' does not quote correctly, so add quotes: double-quote
21861 # substitution turns \\\\ into \\, and sed turns \\ into \.
21864 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
21867 # `set' quotes correctly as required by POSIX, so do not add quotes.
21868 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
21877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21879 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21881 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21882 if test -w "$cache_file"; then
21883 if test "x
$cache_file" != "x
/dev
/null
"; then
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
21885 $as_echo "$as_me: updating cache
$cache_file" >&6;}
21886 if test ! -f "$cache_file" || test -h "$cache_file"; then
21887 cat confcache >"$cache_file"
21889 case $cache_file in #(
21891 mv -f confcache "$cache_file"$$ &&
21892 mv -f "$cache_file"$$ "$cache_file" ;; #(
21894 mv -f confcache "$cache_file" ;;
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
21900 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
21905 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
21906 # Let make expand exec_prefix.
21907 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
21909 DEFS=-DHAVE_CONFIG_H
21914 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
21915 # 1. Remove the extension, and $U if already installed.
21916 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21917 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21918 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21919 # will be set to the directory where LIBOBJS objects are built.
21920 as_fn_append ac_libobjs " \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
21921 as_fn_append ac_ltlibobjs " \
${LIBOBJDIR}$ac_i"'$U.lo'
21923 LIBOBJS=$ac_libobjs
21925 LTLIBOBJS=$ac_ltlibobjs
21930 : "${CONFIG_STATUS=./config.status}"
21932 ac_clean_files_save=$ac_clean_files
21933 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$CONFIG_STATUS" >&5
21935 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
21937 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21939 # Generated by $as_me.
21940 # Run this file to recreate the current configuration.
21941 # Compiler output produced by configure, useful for debugging
21942 # configure, is in config.log if it exists.
21945 ac_cs_recheck=false
21948 SHELL=\${CONFIG_SHELL-$SHELL}
21951 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21952 ## -------------------- ##
21953 ## M4sh Initialization. ##
21954 ## -------------------- ##
21956 # Be more Bourne compatible
21957 DUALCASE=1; export DUALCASE # for MKS sh
21958 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21961 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21962 # is contrary to our usage. Disable this feature.
21963 alias -g '${1+"$@"}'='"$@
"'
21964 setopt NO_GLOB_SUBST
21966 case `(set -o) 2>/dev/null` in #(
21978 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21979 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21980 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21981 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21982 # Prefer a ksh shell builtin over an external printf program on Solaris,
21983 # but without wasting forks for bash or zsh.
21984 if test -z "$BASH_VERSION$ZSH_VERSION" \
21985 && (test "X
`print -r -- $as_echo`" = "X
$as_echo") 2>/dev/null; then
21986 as_echo='print -r --'
21987 as_echo_n='print -rn --'
21988 elif (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
21989 as_echo='printf %s\n'
21990 as_echo_n='printf %s'
21992 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
21993 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21994 as_echo_n='/usr/ucb/echo -n'
21996 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
21997 as_echo_n_body='eval
22001 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
22002 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
22004 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
22006 export as_echo_n_body
22007 as_echo_n='sh -c $as_echo_n_body as_echo'
22009 export as_echo_body
22010 as_echo='sh -c $as_echo_body as_echo'
22013 # The user is always right.
22014 if test "${PATH_SEPARATOR+set}" != set; then
22016 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22017 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22024 # We need space, tab and new line, in precisely that order. Quoting is
22025 # there to prevent editors from complaining about space-tab.
22026 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22027 # splitting by setting IFS to empty value.)
22030 # Find who we are. Look in the path if we contain no directory separator.
22033 *[\\/]* ) as_myself=$0 ;;
22034 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22035 for as_dir in $PATH
22038 test -z "$as_dir" && as_dir=.
22039 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22045 # We did not find ourselves, most probably we were run as `sh COMMAND'
22046 # in which case we are not to be found in the path.
22047 if test "x
$as_myself" = x; then
22050 if test ! -f "$as_myself"; then
22051 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
22055 # Unset variables that we do not need and which cause bugs (e.g. in
22056 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "||
exit 1"
22057 # suppresses any "Segmentation fault
" message there. '((' could
22058 # trigger a bug in pdksh 5.2.14.
22059 for as_var in BASH_ENV ENV MAIL MAILPATH
22060 do eval test x\${$as_var+set} = xset \
22061 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22074 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22077 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22078 # ----------------------------------------
22079 # Output "`basename $0`: error
: ERROR
" to stderr. If LINENO and LOG_FD are
22080 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22081 # script with STATUS, using 1 if that was 0.
22084 as_status=$1; test $as_status -eq 0 && as_status=1
22086 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22087 $as_echo "$as_me:${as_lineno-$LINENO}: error
: $2" >&$4
22089 $as_echo "$as_me: error
: $2" >&2
22090 as_fn_exit $as_status
22094 # as_fn_set_status STATUS
22095 # -----------------------
22096 # Set $? to STATUS, without forking.
22097 as_fn_set_status ()
22100 } # as_fn_set_status
22102 # as_fn_exit STATUS
22103 # -----------------
22104 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22108 as_fn_set_status $1
22114 # Portably unset VAR.
22117 { eval $1=; unset $1;}
22119 as_unset=as_fn_unset
22120 # as_fn_append VAR VALUE
22121 # ----------------------
22122 # Append the text in VALUE to the end of the definition contained in VAR. Take
22123 # advantage of any shell optimizations that allow amortized linear growth over
22124 # repeated appends, instead of the typical quadratic growth present in naive
22126 if (eval "as_var
=1; as_var
+=2; test x\
$as_var = x12
") 2>/dev/null; then :
22127 eval 'as_fn_append ()
22138 # as_fn_arith ARG...
22139 # ------------------
22140 # Perform arithmetic evaluation on the ARGs, and store the result in the
22141 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22142 # must be portable across $(()) and expr.
22143 if (eval "test \$
(( 1 + 1 )) = 2") 2>/dev/null; then :
22144 eval 'as_fn_arith ()
22151 as_val=`expr "$@
" || test $? -eq 1`
22156 if expr a : '\(a\)' >/dev/null 2>&1 &&
22157 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
22163 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
22164 as_basename=basename
22169 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
22175 as_me=`$as_basename -- "$0" ||
22176 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22177 X"$0" : 'X\(//\)$' \| \
22178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22180 sed '/^.*\/\([^/][^/]*\)\/*$/{
22194 # Avoid depending upon Character Ranges.
22195 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22196 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22197 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22198 as_cr_digits='0123456789'
22199 as_cr_alnum=$as_cr_Letters$as_cr_digits
22201 ECHO_C= ECHO_N= ECHO_T=
22202 case `echo -n x` in #(((((
22204 case `echo 'xy\c'` in
22205 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22207 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22214 rm -f conf$$ conf$$.exe conf$$.file
22215 if test -d conf$$.dir; then
22216 rm -f conf$$.dir/conf$$.file
22219 mkdir conf$$.dir 2>/dev/null
22221 if (echo >conf$$.file) 2>/dev/null; then
22222 if ln -s conf$$.file conf$$ 2>/dev/null; then
22224 # ... but there are two gotchas:
22225 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22226 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22227 # In both cases, we have to default to `cp -pR'.
22228 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22230 elif ln conf$$.file conf$$ 2>/dev/null; then
22238 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22239 rmdir conf$$.dir 2>/dev/null
22244 # Create "$as_dir" as a directory, including parents if necessary.
22249 -*) as_dir=./$as_dir;;
22251 test -d "$as_dir" || eval $as_mkdir_p || {
22255 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s
/'/'\\\\\\\\''/g
"`;; #'(
22256 *) as_qdir=$as_dir;;
22258 as_dirs="'$as_qdir' $as_dirs"
22259 as_dir=`$as_dirname -- "$as_dir" ||
22260 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22261 X"$as_dir" : 'X\(//\)[^/]' \| \
22262 X"$as_dir" : 'X\(//\)$' \| \
22263 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22264 $as_echo X"$as_dir" |
22265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22269 /^X\(\/\/\)[^/].*/{
22282 test -d "$as_dir" && break
22284 test -z "$as_dirs" || eval "mkdir
$as_dirs"
22285 } || test -d "$as_dir" || as_fn_error $? "cannot create directory
$as_dir"
22289 if mkdir -p . 2>/dev/null; then
22290 as_mkdir_p='mkdir -p "$as_dir"'
22292 test -d ./-p && rmdir ./-p
22297 # as_fn_executable_p FILE
22298 # -----------------------
22299 # Test if FILE is an executable regular file.
22300 as_fn_executable_p ()
22302 test -f "$1" && test -x "$1"
22303 } # as_fn_executable_p
22304 as_test_x='test -x'
22305 as_executable_p=as_fn_executable_p
22307 # Sed expression to map a string onto a valid CPP name.
22308 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22310 # Sed expression to map a string onto a valid variable name.
22311 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22315 ## ----------------------------------- ##
22316 ## Main body of $CONFIG_STATUS script. ##
22317 ## ----------------------------------- ##
22319 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22322 # Save the log message, to keep $0 and so on meaningful, and to
22323 # report actual input values of CONFIG_FILES etc. instead of their
22324 # values after options handling.
22326 This
file was extended by BIND
$as_me 9.10, which was
22327 generated by GNU Autoconf
2.69. Invocation
command line was
22329 CONFIG_FILES
= $CONFIG_FILES
22330 CONFIG_HEADERS
= $CONFIG_HEADERS
22331 CONFIG_LINKS
= $CONFIG_LINKS
22332 CONFIG_COMMANDS
= $CONFIG_COMMANDS
22335 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
22340 case $ac_config_files in *"
22341 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22344 case $ac_config_headers in *"
22345 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22350 # Files that config.status was made for.
22351 config_files="$ac_config_files"
22352 config_headers="$ac_config_headers"
22353 config_commands="$ac_config_commands"
22357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22359 \
`$as_me' instantiates files and other configuration actions
22360 from templates according to the current configuration. Unless the files
22361 and actions are specified as TAGs, all are instantiated by default.
22363 Usage: $0 [OPTION]... [TAG]...
22365 -h, --help print this help, then exit
22366 -V, --version print version number and configuration settings, then exit
22367 --config print configuration, then exit
22368 -q, --quiet, --silent
22369 do not print progress messages
22370 -d, --debug don't remove temporary files
22371 --recheck update $as_me by reconfiguring in the same conditions
22372 --file=FILE[:TEMPLATE]
22373 instantiate the configuration file FILE
22374 --header=FILE[:TEMPLATE]
22375 instantiate the configuration header FILE
22377 Configuration files:
22380 Configuration headers:
22383 Configuration commands:
22386 Report bugs to <bind9-bugs@isc.org>.
22387 BIND home page: <https://www.isc.org/downloads/BIND/>."
22390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22391 ac_cs_config="`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22393 BIND config.status 9.10
22394 configured by $0, generated by GNU Autoconf 2.69,
22395 with options \\"\$ac_cs_config\\"
22397 Copyright (C) 2012 Free Software Foundation, Inc.
22398 This config.status script is free software; the Free Software Foundation
22399 gives unlimited permission to copy, distribute and modify it."
22405 test -n "\$AWK" || AWK=awk
22408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22409 # The default lists apply if the user does not specify any file.
22415 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22416 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22420 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22432 # Handling of the options.
22433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22435 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22436 $as_echo "$ac_cs_version"; exit ;;
22437 --config | --confi | --conf | --con | --co | --c )
22438 $as_echo "$ac_cs_config"; exit ;;
22439 --debug | --debu | --deb | --de | --d | -d )
22441 --file | --fil | --fi | --f )
22444 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
22445 '') as_fn_error $? "missing file argument" ;;
22447 as_fn_append CONFIG_FILES " '$ac_optarg'"
22448 ac_need_defaults=false;;
22449 --header | --heade | --head | --hea )
22452 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
22454 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22455 ac_need_defaults=false;;
22457 # Conflict between --help and --header
22458 as_fn_error $? "ambiguous option: \`$1'
22459 Try \`$0 --help' for more information.
";;
22460 --help | --hel | -h )
22461 $as_echo "$ac_cs_usage"; exit ;;
22462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22463 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22466 # This is an error.
22467 -*) as_fn_error $? "unrecognized option
: \
`$1'
22468 Try \`$0 --help' for more information." ;;
22470 *) as_fn_append ac_config_targets " $1"
22471 ac_need_defaults=false ;;
22477 ac_configure_extra_args=
22479 if $ac_cs_silent; then
22481 ac_configure_extra_args="$ac_configure_extra_args --silent"
22485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22486 if \$ac_cs_recheck; then
22487 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22489 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22490 CONFIG_SHELL='$SHELL'
22491 export CONFIG_SHELL
22496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22500 sed 'h
;s
/.
/-/g
;s
/^...
/## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22501 ## Running $as_me. ##
22507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22513 # The HP-UX ksh and POSIX shell print the target directory to stdout
22514 # if CDPATH is set.
22515 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22517 sed_quote_subst='$sed_quote_subst'
22518 double_quote_subst='$double_quote_subst'
22519 delay_variable_subst='$delay_variable_subst'
22520 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22521 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22522 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22523 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22524 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22525 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22526 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22527 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22528 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22529 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22530 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22531 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22532 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22533 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22534 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22535 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22536 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22537 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22538 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22539 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22540 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22541 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22542 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22543 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22544 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22545 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22546 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22547 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22548 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22549 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22550 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22551 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22552 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22553 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22554 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22555 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22556 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22557 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22558 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22559 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22560 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22561 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22562 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22563 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22564 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22565 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22566 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22567 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22568 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22569 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22570 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22571 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22572 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22573 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22574 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22575 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22576 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"`'
22577 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22578 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22579 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22580 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22581 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22582 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22583 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22584 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22585 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22586 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22587 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22588 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22589 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22590 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22591 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22592 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22593 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22594 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22595 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22596 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22597 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22598 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22599 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22600 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22601 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22602 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22603 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22604 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22605 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22606 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22607 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22608 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22609 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22610 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22611 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22612 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22613 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22614 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22615 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22616 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22617 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22618 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22619 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22620 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22621 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22622 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22623 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22624 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22625 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22626 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22627 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22628 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22629 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22630 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22631 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22632 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22633 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22634 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22635 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22636 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22637 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22638 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22639 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22640 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22641 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22642 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22643 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22644 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22645 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22646 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22647 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22648 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22649 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22652 LTCFLAGS='$LTCFLAGS'
22653 compiler='$compiler_DEFAULT'
22655 # A function that is used when there is no print builtin or printf.
22656 func_fallback_echo ()
22658 eval 'cat <<_LTECHO_EOF
22663 # Quote evaled strings.
22678 deplibs_check_method \
22683 sharedlib_from_linklib_cmd \
22686 archiver_list_spec \
22692 lt_cv_sys_global_symbol_pipe \
22693 lt_cv_sys_global_symbol_to_cdecl \
22694 lt_cv_sys_global_symbol_to_c_name_address \
22695 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22696 nm_file_list_spec \
22697 lt_prog_compiler_no_builtin_flag \
22698 lt_prog_compiler_pic \
22699 lt_prog_compiler_wl \
22700 lt_prog_compiler_static \
22701 lt_cv_prog_compiler_c_o \
22710 export_dynamic_flag_spec \
22711 whole_archive_flag_spec \
22712 compiler_needs_object \
22714 allow_undefined_flag \
22715 no_undefined_flag \
22716 hardcode_libdir_flag_spec \
22717 hardcode_libdir_separator \
22721 variables_saved_for_relink \
22723 library_names_spec \
22725 install_override_mode \
22729 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22730 *[\\\\\\\`\\"\\\$]*)
22731 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22734 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22739 # Double-quote double-evaled strings.
22740 for var in reload_cmds \
22741 old_postinstall_cmds \
22742 old_postuninstall_cmds \
22744 extract_expsyms_cmds \
22745 old_archive_from_new_cmds \
22746 old_archive_from_expsyms_cmds \
22748 archive_expsym_cmds \
22750 module_expsym_cmds \
22751 export_symbols_cmds \
22755 postuninstall_cmds \
22757 sys_lib_search_path_spec \
22758 sys_lib_dlsearch_path_spec; do
22759 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22760 *[\\\\\\\`\\"\\\$]*)
22761 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22764 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22769 ac_aux_dir='$ac_aux_dir'
22770 xsi_shell='$xsi_shell'
22771 lt_shell_append='$lt_shell_append'
22773 # See if we are running on zsh, and set the options which allow our
22774 # commands through without removal of \ escapes INIT.
22775 if test -n "\${ZSH_VERSION+set}" ; then
22776 setopt NO_GLOB_SUBST
22782 TIMESTAMP='$TIMESTAMP'
22788 atfdir=`pwd`/unit/atf
22792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22794 # Handling of arguments.
22795 for ac_config_target
in $ac_config_targets
22797 case $ac_config_target in
22798 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
22799 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
22800 "make/rules") CONFIG_FILES
="$CONFIG_FILES make/rules" ;;
22801 "make/includes") CONFIG_FILES
="$CONFIG_FILES make/includes" ;;
22802 "atf-config") CONFIG_COMMANDS
="$CONFIG_COMMANDS atf-config" ;;
22803 "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
22804 "$DLZ_DRIVER_RULES") CONFIG_FILES
="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
22805 "chmod") CONFIG_COMMANDS
="$CONFIG_COMMANDS chmod" ;;
22806 "make/Makefile") CONFIG_FILES
="$CONFIG_FILES make/Makefile" ;;
22807 "make/mkdep") CONFIG_FILES
="$CONFIG_FILES make/mkdep" ;;
22808 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22809 "bin/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/Makefile" ;;
22810 "bin/check/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/check/Makefile" ;;
22811 "bin/confgen/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/confgen/Makefile" ;;
22812 "bin/confgen/unix/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
22813 "bin/delv/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/delv/Makefile" ;;
22814 "bin/dig/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/dig/Makefile" ;;
22815 "bin/dnssec/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/dnssec/Makefile" ;;
22816 "bin/named/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/named/Makefile" ;;
22817 "bin/named/unix/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/named/unix/Makefile" ;;
22818 "bin/nsupdate/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/nsupdate/Makefile" ;;
22819 "bin/pkcs11/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/pkcs11/Makefile" ;;
22820 "bin/python/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/python/Makefile" ;;
22821 "bin/python/dnssec-checkds.py") CONFIG_FILES
="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
22822 "bin/python/dnssec-coverage.py") CONFIG_FILES
="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
22823 "bin/rndc/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/rndc/Makefile" ;;
22824 "bin/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/Makefile" ;;
22825 "bin/tests/atomic/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/atomic/Makefile" ;;
22826 "bin/tests/db/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/db/Makefile" ;;
22827 "bin/tests/dst/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/Makefile" ;;
22828 "bin/tests/dst/Kdh.+002+18602.key") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/Kdh.+002+18602.key" ;;
22829 "bin/tests/dst/Kdh.+002+18602.private") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/Kdh.+002+18602.private" ;;
22830 "bin/tests/dst/Kdh.+002+48957.key") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/Kdh.+002+48957.key" ;;
22831 "bin/tests/dst/Kdh.+002+48957.private") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/Kdh.+002+48957.private" ;;
22832 "bin/tests/dst/Ktest.+001+00002.key") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/Ktest.+001+00002.key" ;;
22833 "bin/tests/dst/Ktest.+001+54622.key") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/Ktest.+001+54622.key" ;;
22834 "bin/tests/dst/Ktest.+001+54622.private") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/Ktest.+001+54622.private" ;;
22835 "bin/tests/dst/Ktest.+003+23616.key") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/Ktest.+003+23616.key" ;;
22836 "bin/tests/dst/Ktest.+003+23616.private") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/Ktest.+003+23616.private" ;;
22837 "bin/tests/dst/Ktest.+003+49667.key") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/Ktest.+003+49667.key" ;;
22838 "bin/tests/dst/dst_2_data") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/dst_2_data" ;;
22839 "bin/tests/dst/t2_data_1") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/t2_data_1" ;;
22840 "bin/tests/dst/t2_data_2") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/t2_data_2" ;;
22841 "bin/tests/dst/t2_dsasig") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/t2_dsasig" ;;
22842 "bin/tests/dst/t2_rsasig") CONFIG_FILES
="$CONFIG_FILES bin/tests/dst/t2_rsasig" ;;
22843 "bin/tests/hashes/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/hashes/Makefile" ;;
22844 "bin/tests/headerdep_test.sh") CONFIG_FILES
="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
22845 "bin/tests/master/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/master/Makefile" ;;
22846 "bin/tests/mem/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/mem/Makefile" ;;
22847 "bin/tests/names/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/names/Makefile" ;;
22848 "bin/tests/net/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/net/Makefile" ;;
22849 "bin/tests/pkcs11/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
22850 "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
22851 "bin/tests/rbt/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/rbt/Makefile" ;;
22852 "bin/tests/resolver/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/resolver/Makefile" ;;
22853 "bin/tests/sockaddr/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/sockaddr/Makefile" ;;
22854 "bin/tests/system/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/Makefile" ;;
22855 "bin/tests/system/conf.sh") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/conf.sh" ;;
22856 "bin/tests/system/builtin/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/builtin/Makefile" ;;
22857 "bin/tests/system/dlz/prereq.sh") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/dlz/prereq.sh" ;;
22858 "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
22859 "bin/tests/system/dlzexternal/ns1/named.conf") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/named.conf" ;;
22860 "bin/tests/system/dlzredir/prereq.sh") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/dlzredir/prereq.sh" ;;
22861 "bin/tests/system/filter-aaaa/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/filter-aaaa/Makefile" ;;
22862 "bin/tests/system/geoip/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/geoip/Makefile" ;;
22863 "bin/tests/system/inline/checkdsa.sh") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/inline/checkdsa.sh" ;;
22864 "bin/tests/system/lwresd/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/lwresd/Makefile" ;;
22865 "bin/tests/system/sit/prereq.sh") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/sit/prereq.sh" ;;
22866 "bin/tests/system/rpz/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
22867 "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
22868 "bin/tests/system/tkey/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
22869 "bin/tests/system/tsiggss/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/system/tsiggss/Makefile" ;;
22870 "bin/tests/tasks/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/tasks/Makefile" ;;
22871 "bin/tests/timers/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/timers/Makefile" ;;
22872 "bin/tests/virtual-time/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;;
22873 "bin/tests/virtual-time/conf.sh") CONFIG_FILES
="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;;
22874 "bin/tools/Makefile") CONFIG_FILES
="$CONFIG_FILES bin/tools/Makefile" ;;
22875 "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES
="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
22876 "contrib/scripts/zone-edit.sh") CONFIG_FILES
="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
22877 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
22878 "doc/arm/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/arm/Makefile" ;;
22879 "doc/doxygen/Doxyfile") CONFIG_FILES
="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
22880 "doc/doxygen/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/doxygen/Makefile" ;;
22881 "doc/doxygen/doxygen-input-filter") CONFIG_FILES
="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
22882 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
22883 "doc/xsl/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/xsl/Makefile" ;;
22884 "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES
="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
22885 "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES
="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
22886 "doc/xsl/isc-docbook-latex.xsl") CONFIG_FILES
="$CONFIG_FILES doc/xsl/isc-docbook-latex.xsl" ;;
22887 "doc/xsl/isc-manpage.xsl") CONFIG_FILES
="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
22888 "doc/xsl/isc-notes-html.xsl") CONFIG_FILES
="$CONFIG_FILES doc/xsl/isc-notes-html.xsl" ;;
22889 "doc/xsl/isc-notes-latex.xsl") CONFIG_FILES
="$CONFIG_FILES doc/xsl/isc-notes-latex.xsl" ;;
22890 "isc-config.sh") CONFIG_FILES
="$CONFIG_FILES isc-config.sh" ;;
22891 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
22892 "lib/bind9/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/bind9/Makefile" ;;
22893 "lib/bind9/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/bind9/include/Makefile" ;;
22894 "lib/bind9/include/bind9/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
22895 "lib/dns/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/dns/Makefile" ;;
22896 "lib/dns/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/dns/include/Makefile" ;;
22897 "lib/dns/include/dns/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
22898 "lib/dns/include/dst/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
22899 "lib/dns/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/dns/tests/Makefile" ;;
22900 "lib/irs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/irs/Makefile" ;;
22901 "lib/irs/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/irs/include/Makefile" ;;
22902 "lib/irs/include/irs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
22903 "lib/irs/include/irs/netdb.h") CONFIG_FILES
="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
22904 "lib/irs/include/irs/platform.h") CONFIG_FILES
="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
22905 "lib/isc/$arch/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/$arch/Makefile" ;;
22906 "lib/isc/$arch/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/$arch/include/Makefile" ;;
22907 "lib/isc/$arch/include/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/$arch/include/isc/Makefile" ;;
22908 "lib/isc/$thread_dir/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/$thread_dir/Makefile" ;;
22909 "lib/isc/$thread_dir/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/$thread_dir/include/Makefile" ;;
22910 "lib/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/$thread_dir/include/isc/Makefile" ;;
22911 "lib/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/Makefile" ;;
22912 "lib/isc/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/include/Makefile" ;;
22913 "lib/isc/include/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
22914 "lib/isc/include/isc/platform.h") CONFIG_FILES
="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
22915 "lib/isc/include/pk11/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
22916 "lib/isc/include/pkcs11/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
22917 "lib/isc/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/tests/Makefile" ;;
22918 "lib/isc/nls/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/nls/Makefile" ;;
22919 "lib/isc/unix/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/unix/Makefile" ;;
22920 "lib/isc/unix/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
22921 "lib/isc/unix/include/isc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
22922 "lib/isc/unix/include/pkcs11/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isc/unix/include/pkcs11/Makefile" ;;
22923 "lib/isccc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isccc/Makefile" ;;
22924 "lib/isccc/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isccc/include/Makefile" ;;
22925 "lib/isccc/include/isccc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
22926 "lib/isccfg/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isccfg/Makefile" ;;
22927 "lib/isccfg/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
22928 "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
22929 "lib/lwres/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/Makefile" ;;
22930 "lib/lwres/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/include/Makefile" ;;
22931 "lib/lwres/include/lwres/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/include/lwres/Makefile" ;;
22932 "lib/lwres/include/lwres/netdb.h") CONFIG_FILES
="$CONFIG_FILES lib/lwres/include/lwres/netdb.h" ;;
22933 "lib/lwres/include/lwres/platform.h") CONFIG_FILES
="$CONFIG_FILES lib/lwres/include/lwres/platform.h" ;;
22934 "lib/lwres/man/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/man/Makefile" ;;
22935 "lib/lwres/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/tests/Makefile" ;;
22936 "lib/lwres/unix/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/unix/Makefile" ;;
22937 "lib/lwres/unix/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/unix/include/Makefile" ;;
22938 "lib/lwres/unix/include/lwres/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/lwres/unix/include/lwres/Makefile" ;;
22939 "lib/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/tests/Makefile" ;;
22940 "lib/tests/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/tests/include/Makefile" ;;
22941 "lib/tests/include/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/tests/include/tests/Makefile" ;;
22942 "lib/samples/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/samples/Makefile" ;;
22943 "lib/samples/Makefile-postinstall") CONFIG_FILES
="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
22944 "unit/Makefile") CONFIG_FILES
="$CONFIG_FILES unit/Makefile" ;;
22945 "unit/unittest.sh") CONFIG_FILES
="$CONFIG_FILES unit/unittest.sh" ;;
22947 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22952 # If the user did not use the arguments to specify the items to instantiate,
22953 # then the envvar interface is used. Set only those that are not.
22954 # We use the long form for the default assignment because of an extremely
22955 # bizarre bug on SunOS 4.1.3.
22956 if $ac_need_defaults; then
22957 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22958 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22959 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22962 # Have a temporary directory for convenience. Make it in the build tree
22963 # simply because there is no reason against having it here, and in addition,
22964 # creating and moving files from /tmp can sometimes cause problems.
22965 # Hook for its removal unless debugging.
22966 # Note that there is a small window in which the directory will not be cleaned:
22967 # after its creation but before its name has been assigned to `$tmp'.
22971 trap 'exit_status=$?
22972 : "${ac_tmp:=$tmp}"
22973 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22975 trap 'as_fn_exit 1' 1 2 13 15
22977 # Create a (secure) tmp directory for tmp files.
22980 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22984 tmp
=.
/conf$$
-$RANDOM
22985 (umask 077 && mkdir
"$tmp")
22986 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
22989 # Set up the scripts for CONFIG_FILES section.
22990 # No need to generate them if there are no CONFIG_FILES.
22991 # This happens for instance with `./config.status config.h'.
22992 if test -n "$CONFIG_FILES"; then
22994 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
22995 ac_cs_awk_getline
=:
22996 ac_cs_awk_pipe_init
=
22997 ac_cs_awk_read_file
='
22998 while ((getline aline < (F[key])) > 0)
23001 ac_cs_awk_pipe_fini
=
23003 ac_cs_awk_getline
=false
23004 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
23005 ac_cs_awk_read_file
='
23007 print "cat " F[key] " &&"
23008 '$ac_cs_awk_pipe_init
23009 # The final `:' finishes the AND list.
23010 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
23012 ac_cr
=`echo X | tr X '\015'`
23013 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23014 # But we know of no other shell where ac_cr would be empty at this
23015 # point, so we can use a bashism as a fallback.
23016 if test "x$ac_cr" = x
; then
23017 eval ac_cr
=\$
\'\\r
\'
23019 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23020 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23023 ac_cs_awk_cr
=$ac_cr
23026 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23029 # Create commands to substitute file output variables.
23031 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23032 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
23033 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
23036 } >conf$
$files.sh
&&
23037 . .
/conf$
$files.sh ||
23038 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
23039 rm -f conf$
$files.sh
23042 echo "cat >conf$$subs.awk <<_ACEOF" &&
23043 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23045 } >conf$$subs.sh ||
23046 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
23047 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23049 for ac_last_try in false false false false false :; do
23050 . ./conf$$subs.sh ||
23051 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
23053 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
23054 if test $ac_delim_n = $ac_delim_num; then
23056 elif $ac_last_try; then
23057 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
23059 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23062 rm -f conf$$subs.sh
23064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23065 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
23069 s/^/S["/; s
/!.
*/"]=/
23079 s/\(.\{148\}\)..*/\1/
23081 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
23086 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23093 s/\(.\{148\}\)..*/\1/
23095 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
23099 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23104 ' <conf$$subs.awk | sed '
23109 ' >>$CONFIG_STATUS || ac_write_fail=1
23110 rm -f conf$$subs.awk
23111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23113 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
23114 for (key in S) S_is_set[key] = 1
23116 \$ac_cs_awk_pipe_init
23120 nfields = split(line, field, "@
")
23122 len = length(field[1])
23123 for (i = 2; i < nfields; i++) {
23125 keylen = length(key)
23126 if (S_is_set[key]) {
23128 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23129 len += length(value) + length(field[++i])
23134 if (nfields == 3 && !substed) {
23136 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23137 \$ac_cs_awk_read_file
23143 \$ac_cs_awk_pipe_fini
23146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23147 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23148 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
23151 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
23152 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
23155 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23156 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
23157 # trailing colons and then remove the whole line if VPATH becomes empty
23158 # (actually we leave an empty line to preserve line numbers).
23159 if test "x
$srcdir" = x.; then
23160 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23179 fi # test -n "$CONFIG_FILES"
23181 # Set up the scripts for CONFIG_HEADERS section.
23182 # No need to generate them if there are no CONFIG_HEADERS.
23183 # This happens for instance with `./config.status Makefile'.
23184 if test -n "$CONFIG_HEADERS"; then
23185 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
23189 # Transform confdefs.h into an awk script `defines.awk', embedded as
23190 # here-document in config.status, that substitutes the proper values into
23191 # config.h.in to produce config.h.
23193 # Create a delimiter string that does not exist in confdefs.h, to ease
23194 # handling of long lines.
23196 for ac_last_try in false false :; do
23197 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
23198 if test -z "$ac_tt"; then
23200 elif $ac_last_try; then
23201 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
23203 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23207 # For the awk script, D is an array of macro values keyed by name,
23208 # likewise P contains macro parameters if any. Preserve backslash
23209 # newline sequences.
23211 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23213 s/.\{148\}/&'"$ac_delim"'/g
23216 s/^[ ]*#[ ]*define[ ][ ]*/ /
23223 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
23225 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
23229 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
23230 D["\
1"]=" \
3\\\\\\n
"\\/p
23232 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
23237 s/.\{148\}/&'"$ac_delim"'/g
23242 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
23245 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
23247 ' <confdefs.h | sed '
23248 s/'"$ac_delim"'/"\\\
23249 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23252 for (key in D) D_is_set[key] = 1
23255 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23257 split(line, arg, " ")
23258 if (arg[1] == "#") {
23262 defundef
= substr
(arg
[1], 2)
23265 split(mac1
, mac2
, "(") #)
23267 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
23268 if (D_is_set
[macro
]) {
23269 # Preserve the white space surrounding the "#".
23270 print prefix
"define", macro P
[macro
] D
[macro
]
23273 # Replace #undef with comments. This is necessary, for example,
23274 # in the case of _POSIX_SOURCE, which is predefined and required
23275 # on some systems where configure will not decide to define it.
23276 if (defundef
== "undef") {
23277 print
"/*", prefix defundef
, macro
, "*/"
23285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23286 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
23287 fi # test -n "$CONFIG_HEADERS"
23290 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23295 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23297 case $ac_mode$ac_tag in
23299 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
23300 :[FH
]-) ac_tag
=-:-;;
23301 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23318 -) ac_f
="$ac_tmp/stdin";;
23319 *) # Look for the file first in the build tree, then in the source tree
23320 # (if the path is not absolute). The absolute path cannot be DOS-style,
23321 # because $ac_f cannot contain `:'.
23325 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23327 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23329 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23330 as_fn_append ac_file_inputs
" '$ac_f'"
23333 # Let's still pretend it is `configure' which instantiates (i.e., don't
23334 # use $as_me), people would be surprised to read:
23335 # /* config.h. Generated by config.status. */
23336 configure_input
='Generated from '`
23337 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23339 if test x
"$ac_file" != x-
; then
23340 configure_input
="$ac_file. $configure_input"
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23342 $as_echo "$as_me: creating $ac_file" >&6;}
23344 # Neutralize special characters interpreted by sed in replacement strings.
23345 case $configure_input in #(
23346 *\
&* |
*\|
* |
*\\* )
23347 ac_sed_conf_input
=`$as_echo "$configure_input" |
23348 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23349 *) ac_sed_conf_input
=$configure_input;;
23353 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
23354 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
23359 ac_dir
=`$as_dirname -- "$ac_file" ||
23360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23361 X"$ac_file" : 'X\(//\)[^/]' \| \
23362 X"$ac_file" : 'X\(//\)$' \| \
23363 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23364 $as_echo X"$ac_file" |
23365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23369 /^X\(\/\/\)[^/].*/{
23382 as_dir
="$ac_dir"; as_fn_mkdir_p
23386 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23388 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23389 # A ".." for each directory in $ac_dir_suffix.
23390 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23391 case $ac_top_builddir_sub in
23392 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23393 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23396 ac_abs_top_builddir
=$ac_pwd
23397 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23398 # for backward compatibility:
23399 ac_top_builddir
=$ac_top_build_prefix
23402 .
) # We are building in place.
23404 ac_top_srcdir
=$ac_top_builddir_sub
23405 ac_abs_top_srcdir
=$ac_pwd ;;
23406 [\\/]* | ?
:[\\/]* ) # Absolute name.
23407 ac_srcdir
=$srcdir$ac_dir_suffix;
23408 ac_top_srcdir
=$srcdir
23409 ac_abs_top_srcdir
=$srcdir ;;
23410 *) # Relative name.
23411 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23412 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23413 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23415 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23425 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23426 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23431 # If the template does not know about datarootdir, expand it.
23432 # FIXME: This hack should be removed a few years after 2.60.
23433 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23444 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23445 *datarootdir
*) ac_datarootdir_seen
=yes;;
23446 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23448 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23451 ac_datarootdir_hack='
23452 s&@datadir@&$datadir&g
23453 s&@docdir@&$docdir&g
23454 s&@infodir@&$infodir&g
23455 s&@localedir@&$localedir&g
23456 s&@mandir@&$mandir&g
23457 s&\\\${datarootdir}&$datarootdir&g' ;;
23461 # Neutralize VPATH when `$srcdir' = `.'.
23462 # Shell code in configure.ac might set extrasub.
23463 # FIXME: do we really want to maintain this feature?
23464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23465 ac_sed_extra="$ac_vpsub
23468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23470 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23471 s|@configure_input@|
$ac_sed_conf_input|
;t t
23472 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23473 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
23474 s
&@srcdir@
&$ac_srcdir&;t t
23475 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23476 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23477 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23478 s
&@builddir@
&$ac_builddir&;t t
23479 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23480 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23481 s
&@INSTALL@
&$ac_INSTALL&;t t
23482 $ac_datarootdir_hack
23484 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23485 if $ac_cs_awk_getline; then
23486 $AWK -f "$ac_tmp/subs.
awk"
23488 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
23490 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
23492 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23493 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
23494 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23495 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23497 which seems to be undefined. Please make sure it is defined" >&5
23498 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23499 which seems to be undefined. Please make sure it is defined" >&2;}
23501 rm -f "$ac_tmp/stdin"
23503 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23504 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23512 if test x"$ac_file" != x-; then
23514 $as_echo "/* $configure_input */" \
23515 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23516 } >"$ac_tmp/config.h" \
23517 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23518 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23520 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23523 mv "$ac_tmp/config.h" "$ac_file" \
23524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23527 $as_echo "/* $configure_input */" \
23528 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23529 || as_fn_error $? "could not create -" "$LINENO" 5
23533 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23534 $as_echo "$as_me: executing $ac_file commands" >&6;}
23539 case $ac_file$ac_mode in
23542 # See if we are running on zsh, and set the options which allow our
23543 # commands through without removal of \ escapes.
23544 if test -n "${ZSH_VERSION+set}" ; then
23545 setopt NO_GLOB_SUBST
23548 cfgfile="${ofile}T"
23549 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23552 cat <<_LT_EOF >> "$cfgfile"
23555 # `$ECHO "$ofile" | sed 's
%^.
*/%%'` - Provide generalized library-building support services.
23556 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23557 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23558 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23560 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23561 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23563 # Written by Gordon Matzigkeit, 1996
23565 # This file is part of GNU Libtool.
23567 # GNU Libtool is free software; you can redistribute it and/or
23568 # modify it under the terms of the GNU General Public License as
23569 # published by the Free Software Foundation; either version 2 of
23570 # the License, or (at your option) any later version.
23572 # As a special exception to the GNU General Public License,
23573 # if you distribute this file as part of a program or library that
23574 # is built using GNU Libtool, you may include this file under the
23575 # same distribution terms that you use for the rest of that program.
23577 # GNU Libtool is distributed in the hope that it will be useful,
23578 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23579 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23580 # GNU General Public License for more details.
23582 # You should have received a copy of the GNU General Public License
23583 # along with GNU Libtool; see the file COPYING. If not, a copy
23584 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23585 # obtained by writing to the Free Software Foundation, Inc.,
23586 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23589 # The names of the tagged configurations supported by this script.
23592 # ### BEGIN LIBTOOL CONFIG
23594 # Which release of libtool.m4 was used?
23595 macro_version=$macro_version
23596 macro_revision=$macro_revision
23598 # Whether or not to build shared libraries.
23599 build_libtool_libs=$enable_shared
23601 # Whether or not to build static libraries.
23602 build_old_libs=$enable_static
23604 # What type of objects to build.
23607 # Whether or not to optimize for fast installation.
23608 fast_install=$enable_fast_install
23610 # Shell to use when invoking shell scripts.
23613 # An echo program that protects backslashes.
23616 # The PATH separator for the build system.
23617 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23620 host_alias=$host_alias
23624 # The build system.
23625 build_alias=$build_alias
23629 # A sed program that does not truncate output.
23632 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23633 Xsed="\$SED -e 1s/^X//"
23635 # A grep program that handles long lines.
23641 # A literal string matcher.
23644 # A BSD- or MS-compatible name lister.
23647 # Whether we need soft or hard links.
23650 # What is the maximum length of a command?
23651 max_cmd_len=$max_cmd_len
23653 # Object file suffix (normally "o").
23656 # Executable file suffix (normally "").
23659 # whether the shell understands "unset".
23662 # turn spaces into newlines.
23665 # turn newlines into spaces.
23668 # convert \$build file names to \$host format.
23669 to_host_file_cmd=$lt_cv_to_host_file_cmd
23671 # convert \$build files to toolchain format.
23672 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23674 # An object symbol dumper.
23675 OBJDUMP=$lt_OBJDUMP
23677 # Method to check whether dependent libraries are shared objects.
23678 deplibs_check_method=$lt_deplibs_check_method
23680 # Command to use when deplibs_check_method = "file_magic".
23681 file_magic_cmd=$lt_file_magic_cmd
23683 # How to find potential files when deplibs_check_method = "file_magic".
23684 file_magic_glob=$lt_file_magic_glob
23686 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23687 want_nocaseglob=$lt_want_nocaseglob
23689 # DLL creation program.
23690 DLLTOOL=$lt_DLLTOOL
23692 # Command to associate shared and link libraries.
23693 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23698 # Flags to create an archive.
23699 AR_FLAGS=$lt_AR_FLAGS
23701 # How to feed a file listing to the archiver.
23702 archiver_list_spec=$lt_archiver_list_spec
23704 # A symbol stripping program.
23707 # Commands used to install an old-style archive.
23709 old_postinstall_cmds=$lt_old_postinstall_cmds
23710 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23712 # Whether to use a lock for old archive extraction.
23713 lock_old_archive_extraction=$lock_old_archive_extraction
23718 # LTCC compiler flags.
23719 LTCFLAGS=$lt_CFLAGS
23721 # Take the output of nm and produce a listing of raw symbols and C names.
23722 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23724 # Transform the output of nm in a proper C declaration.
23725 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23727 # Transform the output of nm in a C name address pair.
23728 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23730 # Transform the output of nm in a C name address pair when lib prefix is needed.
23731 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23733 # Specify filename containing input files for \$NM.
23734 nm_file_list_spec=$lt_nm_file_list_spec
23736 # The root where to search for dependent libraries,and in which our libraries should be installed.
23737 lt_sysroot=$lt_sysroot
23739 # The name of the directory that contains temporary libtool files.
23742 # Used to examine libraries when file_magic_cmd begins with "file".
23743 MAGIC_CMD=$MAGIC_CMD
23745 # Must we lock files when doing compilation?
23746 need_locks=$lt_need_locks
23749 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23751 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23752 DSYMUTIL=$lt_DSYMUTIL
23754 # Tool to change global to local symbols on Mac OS X.
23757 # Tool to manipulate fat objects and archives on Mac OS X.
23760 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23763 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23764 OTOOL64=$lt_OTOOL64
23766 # Old archive suffix (normally "a").
23769 # Shared library suffix (normally ".so").
23770 shrext_cmds=$lt_shrext_cmds
23772 # The commands to extract the exported symbol list from a shared archive.
23773 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23775 # Variables whose values should be saved in libtool wrapper scripts and
23776 # restored at link time.
23777 variables_saved_for_relink=$lt_variables_saved_for_relink
23779 # Do we need the "lib" prefix for modules?
23780 need_lib_prefix=$need_lib_prefix
23782 # Do we need a version for libraries?
23783 need_version=$need_version
23785 # Library versioning type.
23786 version_type=$version_type
23788 # Shared library runtime path variable.
23789 runpath_var=$runpath_var
23791 # Shared library path variable.
23792 shlibpath_var=$shlibpath_var
23794 # Is shlibpath searched before the hard-coded library search path?
23795 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23797 # Format of library name prefix.
23798 libname_spec=$lt_libname_spec
23800 # List of archive names. First name is the real one, the rest are links.
23801 # The last name is the one that the linker finds with -lNAME
23802 library_names_spec=$lt_library_names_spec
23804 # The coded name of the library, if different from the real name.
23805 soname_spec=$lt_soname_spec
23807 # Permission mode override for installation of shared libraries.
23808 install_override_mode=$lt_install_override_mode
23810 # Command to use after installation of a shared archive.
23811 postinstall_cmds=$lt_postinstall_cmds
23813 # Command to use after uninstallation of a shared archive.
23814 postuninstall_cmds=$lt_postuninstall_cmds
23816 # Commands used to finish a libtool library installation in a directory.
23817 finish_cmds=$lt_finish_cmds
23819 # As "finish_cmds", except a single script fragment to be evaled but
23821 finish_eval=$lt_finish_eval
23823 # Whether we should hardcode library paths into libraries.
23824 hardcode_into_libs=$hardcode_into_libs
23826 # Compile-time system search path for libraries.
23827 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23829 # Run-time system search path for libraries.
23830 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23832 # Whether dlopen is supported.
23833 dlopen_support=$enable_dlopen
23835 # Whether dlopen of programs is supported.
23836 dlopen_self=$enable_dlopen_self
23838 # Whether dlopen of statically linked programs is supported.
23839 dlopen_self_static=$enable_dlopen_self_static
23841 # Commands to strip libraries.
23842 old_striplib=$lt_old_striplib
23843 striplib=$lt_striplib
23846 # The linker used to build libraries.
23849 # How to create reloadable object files.
23850 reload_flag=$lt_reload_flag
23851 reload_cmds=$lt_reload_cmds
23853 # Commands used to build an old-style archive.
23854 old_archive_cmds=$lt_old_archive_cmds
23856 # A language specific compiler.
23859 # Is the compiler the GNU compiler?
23862 # Compiler flag to turn off builtin functions.
23863 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23865 # Additional compiler flags for building library objects.
23866 pic_flag=$lt_lt_prog_compiler_pic
23868 # How to pass a linker flag through the compiler.
23869 wl=$lt_lt_prog_compiler_wl
23871 # Compiler flag to prevent dynamic linking.
23872 link_static_flag=$lt_lt_prog_compiler_static
23874 # Does compiler simultaneously support -c and -o options?
23875 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23877 # Whether or not to add -lc for building shared libraries.
23878 build_libtool_need_lc=$archive_cmds_need_lc
23880 # Whether or not to disallow shared libs when runtime libs are static.
23881 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23883 # Compiler flag to allow reflexive dlopens.
23884 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23886 # Compiler flag to generate shared objects directly from archives.
23887 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23889 # Whether the compiler copes with passing no objects directly.
23890 compiler_needs_object=$lt_compiler_needs_object
23892 # Create an old-style archive from a shared archive.
23893 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23895 # Create a temporary old-style archive to link instead of a shared archive.
23896 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23898 # Commands used to build a shared archive.
23899 archive_cmds=$lt_archive_cmds
23900 archive_expsym_cmds=$lt_archive_expsym_cmds
23902 # Commands used to build a loadable module if different from building
23903 # a shared archive.
23904 module_cmds=$lt_module_cmds
23905 module_expsym_cmds=$lt_module_expsym_cmds
23907 # Whether we are building with GNU ld or not.
23908 with_gnu_ld=$lt_with_gnu_ld
23910 # Flag that allows shared libraries with undefined symbols to be built.
23911 allow_undefined_flag=$lt_allow_undefined_flag
23913 # Flag that enforces no undefined symbols.
23914 no_undefined_flag=$lt_no_undefined_flag
23916 # Flag to hardcode \$libdir into a binary during linking.
23917 # This must work even if \$libdir does not exist
23918 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23920 # Whether we need a single "-rpath" flag with a separated argument.
23921 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23923 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23924 # DIR into the resulting binary.
23925 hardcode_direct=$hardcode_direct
23927 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23928 # DIR into the resulting binary and the resulting library dependency is
23929 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23930 # library is relocated.
23931 hardcode_direct_absolute=$hardcode_direct_absolute
23933 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23934 # into the resulting binary.
23935 hardcode_minus_L=$hardcode_minus_L
23937 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23938 # into the resulting binary.
23939 hardcode_shlibpath_var=$hardcode_shlibpath_var
23941 # Set to "yes" if building a shared library automatically hardcodes DIR
23942 # into the library and all subsequent libraries and executables linked
23944 hardcode_automatic=$hardcode_automatic
23946 # Set to yes if linker adds runtime paths of dependent libraries
23947 # to runtime path list.
23948 inherit_rpath=$inherit_rpath
23950 # Whether libtool must link a program against all its dependency libraries.
23951 link_all_deplibs=$link_all_deplibs
23953 # Set to "yes" if exported symbols are required.
23954 always_export_symbols=$always_export_symbols
23956 # The commands to list exported symbols.
23957 export_symbols_cmds=$lt_export_symbols_cmds
23959 # Symbols that should not be listed in the preloaded symbols.
23960 exclude_expsyms=$lt_exclude_expsyms
23962 # Symbols that must always be exported.
23963 include_expsyms=$lt_include_expsyms
23965 # Commands necessary for linking programs (against libraries) with templates.
23966 prelink_cmds=$lt_prelink_cmds
23968 # Commands necessary for finishing linking programs.
23969 postlink_cmds=$lt_postlink_cmds
23971 # Specify filename containing input files.
23972 file_list_spec=$lt_file_list_spec
23974 # How to hardcode a shared library path into an executable.
23975 hardcode_action=$hardcode_action
23977 # ### END LIBTOOL CONFIG
23983 cat <<\_LT_EOF >> "$cfgfile"
23984 # AIX sometimes has problems with the GCC collect2 program. For some
23985 # reason, if we set the COLLECT_NAMES environment variable, the problems
23986 # vanish in a puff of smoke.
23987 if test "X${COLLECT_NAMES+set}" != Xset; then
23989 export COLLECT_NAMES
23996 ltmain="$ac_aux_dir/ltmain.sh"
23999 # We use sed instead of cat because bash on DJGPP gets confused if
24000 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24001 # text mode, it properly converts lines to CR/LF. This bash problem
24002 # is reportedly fixed, but why not run on old versions too?
24003 sed '$q' "$ltmain" >> "$cfgfile" \
24004 || (rm -f "$cfgfile"; exit 1)
24006 if test x"$xsi_shell" = xyes; then
24007 sed -e '/^func_dirname
()$
/,/^
} # func_dirname /c\
24011 \
*/*) func_dirname_result
="${1%/*}${2}" ;;\
24012 \
* ) func_dirname_result
="${3}" ;;\
24014 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24015 && mv -f "$cfgfile.tmp" "$cfgfile" \
24016 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24017 test 0 -eq $? || _lt_function_replace_fail
=:
24020 sed -e '/^func_basename ()$/,/^} # func_basename /c\
24023 \ func_basename_result="${1##*/}"\
24024 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24025 && mv -f "$cfgfile.tmp" "$cfgfile" \
24026 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24027 test 0 -eq $? || _lt_function_replace_fail
=:
24030 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24031 func_dirname_and_basename ()\
24034 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24035 \ * ) func_dirname_result="${3}" ;;\
24037 \ func_basename_result="${1##*/}"\
24038 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24039 && mv -f "$cfgfile.tmp" "$cfgfile" \
24040 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24041 test 0 -eq $? || _lt_function_replace_fail
=:
24044 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24047 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24048 \ # positional parameters, so assign one to ordinary parameter first.\
24049 \ func_stripname_result=${3}\
24050 \ func_stripname_result=${func_stripname_result#"${1}"}\
24051 \ func_stripname_result=${func_stripname_result%"${2}"}\
24052 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24053 && mv -f "$cfgfile.tmp" "$cfgfile" \
24054 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24055 test 0 -eq $? || _lt_function_replace_fail
=:
24058 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24059 func_split_long_opt ()\
24061 \ func_split_long_opt_name=${1%%=*}\
24062 \ func_split_long_opt_arg=${1#*=}\
24063 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24064 && mv -f "$cfgfile.tmp" "$cfgfile" \
24065 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24066 test 0 -eq $? || _lt_function_replace_fail
=:
24069 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
24070 func_split_short_opt ()\
24072 \ func_split_short_opt_arg=${1#??}\
24073 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
24074 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
24075 && mv -f "$cfgfile.tmp" "$cfgfile" \
24076 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24077 test 0 -eq $? || _lt_function_replace_fail
=:
24080 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
24084 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
24085 \ *) func_lo2o_result=${1} ;;\
24087 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
24088 && mv -f "$cfgfile.tmp" "$cfgfile" \
24089 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24090 test 0 -eq $? || _lt_function_replace_fail
=:
24093 sed -e '/^func_xform ()$/,/^} # func_xform /c\
24096 func_xform_result=${1%.*}.lo\
24097 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
24098 && mv -f "$cfgfile.tmp" "$cfgfile" \
24099 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24100 test 0 -eq $? || _lt_function_replace_fail
=:
24103 sed -e '/^func_arith ()$/,/^} # func_arith /c\
24106 func_arith_result=$(( $* ))\
24107 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24108 && mv -f "$cfgfile.tmp" "$cfgfile" \
24109 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24110 test 0 -eq $? || _lt_function_replace_fail
=:
24113 sed -e '/^func_len ()$/,/^} # func_len /c\
24116 func_len_result=${#1}\
24117 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24118 && mv -f "$cfgfile.tmp" "$cfgfile" \
24119 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24120 test 0 -eq $? || _lt_function_replace_fail
=:
24124 if test x
"$lt_shell_append" = xyes
; then
24125 sed -e '/^func_append ()$/,/^} # func_append /c\
24128 eval "${1}+=\\${2}"\
24129 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24130 && mv -f "$cfgfile.tmp" "$cfgfile" \
24131 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24132 test 0 -eq $? || _lt_function_replace_fail
=:
24135 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24136 func_append_quoted ()\
24138 \ func_quote_for_eval "${2}"\
24139 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24140 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24141 && mv -f "$cfgfile.tmp" "$cfgfile" \
24142 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24143 test 0 -eq $? || _lt_function_replace_fail
=:
24146 # Save a `func_append' function call where possible by direct use of '+='
24147 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24148 && mv -f "$cfgfile.tmp" "$cfgfile" \
24149 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24150 test 0 -eq $? || _lt_function_replace_fail
=:
24152 # Save a `func_append' function call even when '+=' is not available
24153 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24154 && mv -f "$cfgfile.tmp" "$cfgfile" \
24155 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24156 test 0 -eq $? || _lt_function_replace_fail
=:
24159 if test x
"$_lt_function_replace_fail" = x
":"; then
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24161 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24165 mv -f "$cfgfile" "$ofile" ||
24166 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24171 mkdir
-p unit
/atf-src
;
24175 *) srcdir
="../../$srcdir";;
24177 ${SHELL} "${srcdir}${srcdir:+/unit/atf-src/}.
/configure
" --enable-tools --disable-shared MISSING=: --prefix $atfdir;
24179 "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
24187 ac_clean_files=$ac_clean_files_save
24189 test $ac_write_fail = 0 ||
24190 as_fn_error $? "write failure creating
$CONFIG_STATUS" "$LINENO" 5
24193 # configure is writing to config.log, and then calls config.status.
24194 # config.status does its own redirection, appending to config.log.
24195 # Unfortunately, on DOS this fails, as config.log is still kept open
24196 # by configure, so config.status won't be able to write to it; its
24197 # output is simply discarded. So we exec the FD to /dev/null,
24198 # effectively closing config.log, so it can be properly (re)opened and
24199 # appended to by config.status. When coming back to configure, we
24200 # need to make the FD available again.
24201 if test "$no_create" != yes; then
24203 ac_config_status_args=
24204 test "$silent" = yes &&
24205 ac_config_status_args="$ac_config_status_args --quiet"
24207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24210 # would make configure fail if this is the last instruction.
24211 $ac_cs_success || as_fn_exit 1
24213 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&5
24215 $as_echo "$as_me: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&2;}
24220 # Now that the Makefiles exist we can ensure that everything is rebuilt.
24223 # Check whether --with-make-clean was given.
24224 if test "${with_make_clean+set}" = set; then :
24225 withval=$with_make_clean; make_clean="$withval"
24230 case "$make_clean" in
24236 # Check whether --enable-full-report was given.
24237 if test "${enable_full_report+set}" = set; then :
24238 enableval=$enable_full_report;
24242 echo "========================================================================"
24243 echo "Configuration summary
:"
24244 echo "------------------------------------------------------------------------"
24245 echo "Optional features enabled
:"
24246 if $use_threads; then
24247 echo " Multiprocessing support
(--enable-threads)"
24248 if test "$enable_full_report" = "yes" -o "$locktype" = "standard
"; then
24249 echo " Mutex lock
type: $locktype"
24252 test "$use_tuning" = "large
" && echo " Large-system tuning
(--with-tuning)"
24253 test "$use_geoip" = "no
" || echo " GeoIP access control
(--with-geoip)"
24254 test "$use_gssapi" = "no
" || echo " GSS-API
(--with-gssapi)"
24255 if test "$enable_sit" != "no
"; then
24256 echo " Source Identity Token support
(--enable-sit)"
24257 if test "$enable_full_report" = "yes" -o "$with_sit_alg" != "aes
"; then
24258 echo " Algorithm
: $with_sit_alg"
24262 # these lines are only printed if run with --enable-full-report
24263 if test "$enable_full_report" = "yes"; then
24264 test "$enable_ipv6" = "no
" -o "$found_ipv6" = "no
" || \
24265 echo " IPv6 support
(--enable-ipv6)"
24266 test "X
$CRYPTO" = "X
" -o "$want_native_pkcs11" = "yes" || \
24267 echo " OpenSSL cryptography
/DNSSEC
(--with-openssl)"
24268 test "X
$PYTHON" = "X
" || echo " Python tools
(--with-python)"
24269 test "X
$libxml2_libs" = "X
" || echo " XML statistics
(--with-libxml2)"
24270 test "X
$have_libjson" = "X
" || echo " JSON statistics
(--with-libjson)"
24273 if test "$use_pkcs11" != "no
"; then
24274 if test "$want_native_pkcs11" = "yes"; then
24275 echo " Native PKCS
#11/Cryptoki support (--enable-native-pkcs11)"
24277 echo " PKCS#11/Cryptoki support using OpenSSL (--with-pkcs11)"
24279 echo " Provider library: $PKCS11_PROVIDER"
24281 if test "$OPENSSL_GOST" = "yes" -o "$PKCS11_GOST" = "yes"; then
24282 echo " GOST algorithm support (encoding: $gosttype) (--with-gost)"
24284 test "$OPENSSL_ECDSA" = "yes" -o "$PKCS11_ECDSA" = "yes" && \
24285 echo " ECDSA algorithm support (--with-ecdsa)"
24286 test "$enable_fixed" = "yes" && \
24287 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)"
24288 test "$enable_filter" = "yes" && \
24289 echo " AAAA filtering (--enable-filter-aaaa)"
24290 test "$enable_seccomp" = yes && \
24291 echo " Use libseccomp system call filtering (--enable-seccomp)"
24292 test "$want_backtrace" = "yes" && \
24293 echo " Print backtrace on crash (--enable-backtrace)"
24294 test "$want_symtable" = "minimal" && \
24295 echo " Use symbol table for backtrace, named only (--enable-symtable)"
24296 test "$want_symtable" = "yes" -o "$want_symtable" = "all" && \
24297 echo " Use symbol table for backtrace, all binaries (--enable-symtable=all)"
24298 test "$use_libtool" = "no" ||
echo " Use GNU libtool (--with-libtool)"
24299 test "$atf" = "no" ||
echo " Automated Testing Framework (--with-atf)"
24301 echo " Dynamically loadable zone (DLZ) drivers:"
24302 test "$use_dlz_bdb" = "no" || \
24303 echo " Berkeley DB (--with-dlz-bdb)"
24304 test "$use_dlz_ldap" = "no" || \
24305 echo " LDAP (--with-dlz-ldap)"
24306 test "$use_dlz_mysql" = "no" || \
24307 echo " MySQL (--with-dlz-mysql)"
24308 test "$use_dlz_odbc" = "no" || \
24309 echo " ODBC (--with-dlz-odbc)"
24310 test "$use_dlz_postgres" = "no" || \
24311 echo " Postgres (--with-dlz-postgres)"
24312 test "$use_dlz_filesystem" = "no" || \
24313 echo " Filesystem (--with-dlz-filesystem)"
24314 test "$use_dlz_stub" = "no" || \
24315 echo " Stub (--with-dlz-stub)"
24316 test "$use_dlz_bdb $use_dlz_ldap $use_dlz_mysql $use_dlz_odbc $use_dlz_postgres $use_dlz_filesystem $use_dlz_stub" = "no no no no no no no" && echo " None"
24319 echo "Features disabled or unavailable on this platform:"
24320 $use_threads ||
echo " Multiprocessing support (--enable-threads)"
24321 test "$enable_ipv6" = "no" -o "$found_ipv6" = "no" && \
24322 echo " IPv6 support (--enable-ipv6)"
24323 test "$use_tuning" = "large" ||
echo " Large-system tuning (--with-tuning)"
24325 test "$use_geoip" = "no" && echo " GeoIP access control (--with-geoip)"
24326 test "$use_gssapi" = "no" && echo " GSS-API (--with-gssapi)"
24327 test "$enable_sit" = "no" && echo " Source Identity Token support (--enable-sit)"
24329 test "$enable_fixed" = "yes" || \
24330 echo " Allow 'fixed' rrset-order (--enable-fixed-rrset)"
24332 if test "X$CRYPTO" = "X" -o "$want_native_pkcs11" = "yes"
24334 echo " OpenSSL cryptography/DNSSEC (--with-openssl)"
24335 elif test "$use_pkcs11" = "no"; then
24336 echo " PKCS#11/Cryptoki support (--with-pkcs11)"
24338 test "$want_native_pkcs11" = "yes" ||
24339 echo " Native PKCS#11/Cryptoki support (--enable-native-pkcs11)"
24340 test "X$CRYPTO" = "X" -o "$OPENSSL_GOST" = "yes" -o "$PKCS11_GOST" = "yes" || \
24341 echo " GOST algorithm support (--with-gost)"
24342 test "X$CRYPTO" = "X" -o "$OPENSSL_ECDSA" = "yes" -o "$PKCS11_ECDSA" = "yes" || \
24343 echo " ECDSA algorithm support (--with-ecdsa)"
24345 test "$enable_seccomp" = yes || \
24346 echo " Use libseccomp system call filtering (--enable-seccomp)"
24347 test "$want_backtrace" = "yes" || \
24348 echo " Print backtrace on crash (--enable-backtrace)"
24349 test "$use_libtool" = "yes" ||
echo " Use GNU libtool (--with-libtool)"
24350 test "$atf" = "no" && echo " Automated Testing Framework (--with-atf)"
24352 test "X$PYTHON" = "X" && echo " Python tools (--with-python)"
24353 test "X$libxml2_libs" = "X" && echo " XML statistics (--with-libxml2)"
24354 test "X$have_libjson" = "X" && echo " JSON statistics (--with-libjson)"
24356 if test "X$ac_unrecognized_opts" != "X"; then
24358 echo "Unrecognized options:"
24359 echo " $ac_unrecognized_opts"
24361 echo "========================================================================"
24363 if test "X$CRYPTO" = "X"; then
24365 BIND
9 is being built without cryptography support. This means it will
24366 not have DNSSEC support. Use
--with-openssl, or
--with-pkcs11 and
24367 --enable-native-pkcs11 to
enable cryptography.
24371 if test "X$OPENSSL_WARNING" != "X"; then
24373 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
24374 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
24376 WARNING Your OpenSSL crypto library may be vulnerable to WARNING
24377 WARNING one or
more of the the following known security WARNING
24378 WARNING flaws
: WARNING
24380 WARNING CAN-2002-0659
, CAN-2006-4339
, CVE-2006-2937 and WARNING
24381 WARNING CVE-2006-2940. WARNING
24383 WARNING It is recommended that you upgrade to OpenSSL WARNING
24384 WARNING version
0.9.8d
/0.9.7l (or greater
). WARNING
24386 WARNING You can disable this warning by specifying
: WARNING
24388 WARNING
--disable-openssl-version-check WARNING
24390 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
24391 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
24395 # Tell Emacs to edit this file in shell mode.